pe78420
Posts: 7
Joined: Wed Jun 12, 2019 10:28 pm

Strange behaviour with the latest raspbian image on my Pi Zero W...

Fri Jun 14, 2019 10:07 pm

Hi guys,

Trying to boot the latest Raspbian Stretch Lite image (2019-04-08) on a Pi Zero W, I experimented some troubles :(

First try... using Windows Etcher, I flashed the latest Raspbian Stretch Lite image on a 16Go SD card, I booted on it directly without any modification --> OK ;)

Second try... I added wpa_supplicant.conf, modified config.txt and cmdline.txt on the SD card via the windows explorer --> boot KO (nothing appeared on the screen)

Third try... I mounted an unmodified Raspbian image on a Debian server via kpartx to add wpa_supplicant.conf and modify config.txt and cmdline.txt, then I unmounted it, I flashed the modified image on a new SD card --> boot KO, same symptoms :(

Fourth and fifth try... I used an older image (2018-11-13), I added wpa_supplicant and modified the 2 others files via windows explorer (fourth try) or via mounting image on the Debian server (fifth try) --> boot is OK!

So what's wrong with the latest Raspbian Lite image ?

Do you have any ideas ?

Many thanks in advance and best regards

Philippe
A french guy...

User avatar
rpdom
Posts: 15169
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Strange behaviour with the latest raspbian image on my Pi Zero W...

Fri Jun 14, 2019 10:13 pm

Possibly whatever editor Windows Explorer is using is converting the files to have Windows line endings (CRLF) instead of Linux line endings (LF). Raspbian won't like the files if they have Windows style line endings.

Notepad++ is one editor for Windows that can save a file with Linux line endings. I think Wordpad is capable of doing it too. Otherwise use an editor in Linux, as that will use the correct line breaks.

pe78420
Posts: 7
Joined: Wed Jun 12, 2019 10:28 pm

Re: Strange behaviour with the latest raspbian image on my Pi Zero W...

Fri Jun 14, 2019 10:36 pm

Thanks ;)
But I already checked this (all lines are ended by LF) :(
Remenber... same symptoms using a Debian Server to add or modify theses files!
Seems like this newest image doesn't accept to modify it :(
With the previous image, all was OK no matter how you do it, via Windows or Linux...

User avatar
HawaiianPi
Posts: 4584
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: Strange behaviour with the latest raspbian image on my Pi Zero W...

Fri Jun 14, 2019 11:11 pm

Works fine for me when writing a card with Etcher and adding/editing files from Windows, or mounting and modifying the image in Linux on my Pi Zero 1.3 (with a WiFi dongle) or Zero W.

Since it works for you with the default image, something must be going wrong when you are adding/editing files.
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

Andyroo
Posts: 4465
Joined: Sat Jun 16, 2018 12:49 am
Location: Lincs U.K.

Re: Strange behaviour with the latest raspbian image on my Pi Zero W...

Fri Jun 14, 2019 11:21 pm

I have to wonder if here is anything odd you are adding to a file?

Have you tried making the changes in two steps? Put the WPA and cmdline.txt in first then the rest after second boot?

Do you want to post the files (without password) here?
Need Pi spray - these things are breeding in my house...

pe78420
Posts: 7
Joined: Wed Jun 12, 2019 10:28 pm

Re: Strange behaviour with the latest raspbian image on my Pi Zero W...

Fri Jun 14, 2019 11:33 pm

@HawaiianPi
Do you tried the latest image?

@Andyroo
The strange thing is when I used the same process (using Windows or Debian) in the previous image... it's OK!
So the wpa_supplicant.conf, the config.txt and the cmdline.txt are good and I can boot with the WiFi and the USB gadget operational!

Why the same process (without modification) works on the previous image and doesn't work on the latest image?
That's the weird question :shock:

User avatar
HawaiianPi
Posts: 4584
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: Strange behaviour with the latest raspbian image on my Pi Zero W...

Fri Jun 14, 2019 11:50 pm

pe78420 wrote:
Fri Jun 14, 2019 11:33 pm
@HawaiianPi
Do you tried the latest image?
Yes, 2019-04-08-raspbian-stretch-lite.zip
The strange thing is when I used the same process (using Windows or Debian) in the previous image... it's OK!
So the wpa_supplicant.conf, the config.txt and the cmdline.txt are good...
Not necessarily. Some older versions could boot with simpler wpa_supplicant.conf files.

Here's what mine looks like:

Code: Select all

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US

network={
	ssid="WiFi SSID"
	psk="WPA/WPA2 passphrase"
	key_mgmt=WPA-PSK
}
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

User avatar
HawaiianPi
Posts: 4584
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: Strange behaviour with the latest raspbian image on my Pi Zero W...

Fri Jun 14, 2019 11:56 pm

Try this image I made for Pi Zero USB Gadget mode.

2019-04-08-raspbian-stretch-lite_Pi0USB.zip

It's ready to burn-n-boot (no edits needed). Write it to your card with Etcher and test it with no modifications. If it works, shut it down, then add your wpa_supplicant.conf file and test it again.
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

pe78420
Posts: 7
Joined: Wed Jun 12, 2019 10:28 pm

Re: Strange behaviour with the latest raspbian image on my Pi Zero W...

Sat Jun 15, 2019 12:17 am

HawaiianPi wrote:
Fri Jun 14, 2019 11:50 pm
pe78420 wrote:
Fri Jun 14, 2019 11:33 pm
@HawaiianPi
Do you tried the latest image?
Yes, 2019-04-08-raspbian-stretch-lite.zip
The strange thing is when I used the same process (using Windows or Debian) in the previous image... it's OK!
So the wpa_supplicant.conf, the config.txt and the cmdline.txt are good...
Not necessarily. Some older versions could boot with simpler wpa_supplicant.conf files.

Here's what mine looks like:

Code: Select all

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US

network={
	ssid="WiFi SSID"
	psk="WPA/WPA2 passphrase"
	key_mgmt=WPA-PSK
}
Mine :

Code: Select all

country=FR
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
    ssid="xxxx"
    psk="yyyy"
    key_mgmt=WPA-PSK
    priority=2
}
Pretty similar... no?

The fact is: as soon as I copy/modify files to/from SD card, the boot process hangs from the very beginning!
No logo... no text on the screen... just a poor "-" :(

pe78420
Posts: 7
Joined: Wed Jun 12, 2019 10:28 pm

Re: Strange behaviour with the latest raspbian image on my Pi Zero W...

Sat Jun 15, 2019 12:19 am

HawaiianPi wrote:
Fri Jun 14, 2019 11:56 pm
Try this image I made for Pi Zero USB Gadget mode.

2019-04-08-raspbian-stretch-lite_Pi0USB.zip

It's ready to burn-n-boot (no edits needed). Write it to your card with Etcher and test it with no modifications. If it works, shut it down, then add your wpa_supplicant.conf file and test it again.
I will test this image tomorrow morning ;)
Thanks

pe78420
Posts: 7
Joined: Wed Jun 12, 2019 10:28 pm

Re: Strange behaviour with the latest raspbian image on my Pi Zero W...

Sat Jun 15, 2019 11:13 pm

@HawaiianPi
@Andyroo
@rpdom

Sorry for bothering you yesterday :(
I'm an idiot!

I used and modified a cmdline.txt that I took from a previous version of raspbian... so I tried to boot with a wrong "root=PARTUUID" :?

Thanks and regards...

Philippe

Return to “Raspbian”