midol
Posts: 14
Joined: Wed Feb 05, 2014 6:38 pm

pi zero w wifi gone after power cycle

Thu Mar 07, 2019 7:55 pm

Raspbian up to date, wifi fine when using it one day. Orderly shutdown and no wifi the next day on power up. eth0 fine but ifconfig shows no wlan0. The unit has been configured according to these instructions - https://www.raspberrypi.org/documentati ... -point.md
up to the end of the section labelled Add routing and masquerade I only want remote access to the pi at this point.

Does the wifi show up in a startup log file? I can't see any mention of it in dmesg. Test? other log files? Suggestions welcome.

Dave

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: pi zero w wifi gone after power cycle

Thu Mar 07, 2019 11:33 pm

There's no ethernet on a Zero only WiFi so your post doesn't make sense.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

midol
Posts: 14
Joined: Wed Feb 05, 2014 6:38 pm

Re: pi zero w wifi gone after power cycle

Fri Mar 08, 2019 1:02 am

yes the eth0 is on a plugin to the usb OTG port

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: pi zero w wifi gone after power cycle

Fri Mar 08, 2019 7:00 am

Get a fresh SDCard and a fresh copy of plain Raspbian (NOT NOOBS), write that to the fresh SDCard with Etcher.

Write /boot/ssh (a blank zero length file is all you need) and /boot/wpa_supplicant.conf on that new SDCard so that SSH and the WiFi work on first boot.

wpa_supplicant.conf

Code: Select all

country=GB
update_config=1
ctrl_interface=/var/run/wpa_supplicant

network={
 scan_ssid=1
 ssid="MyNetworkSSID"
 psk="mySecurePassword"
}
Boot that, does the WiFi work?
Run sudo apt update; sudo apt dist-upgrade -y to get the latest kernel and bootcode, does that work?
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

midol
Posts: 14
Joined: Wed Feb 05, 2014 6:38 pm

Re: pi zero w wifi gone after power cycle

Mon Mar 11, 2019 11:57 pm

excellent, thanks very much, I'll let you know.

Dave

midol
Posts: 14
Joined: Wed Feb 05, 2014 6:38 pm

Re: pi zero w wifi gone after power cycle

Tue May 19, 2020 5:06 am

I know it has taken a long time, but anyway no joy.

Code: Select all

pi@raspberrypi:~ $ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.122  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::b497:b105:527f:38f2  prefixlen 64  scopeid 0x20<link>
        ether 00:e0:4c:53:44:58  txqueuelen 1000  (Ethernet)
        RX packets 82  bytes 8146 (7.9 KiB)
        RX errors 1  dropped 1  overruns 0  frame 2
        TX packets 73  bytes 10996 (10.7 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether b8:27:eb:94:40:d8  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
and

Code: Select all

pi@raspberrypi:~ $ dmesg | grep wlan0
[   30.588933] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
further ideas?

d

User avatar
kerry_s
Posts: 759
Joined: Thu Jan 30, 2020 7:14 pm

Re: pi zero w wifi gone after power cycle

Tue May 19, 2020 6:04 am

have you tried just using "sudo raspi-config" -> network options-> wifi

midol
Posts: 14
Joined: Wed Feb 05, 2014 6:38 pm

Re: pi zero w wifi gone after power cycle

Tue May 19, 2020 3:39 pm

got these:

Failed to set SSID or passphrase
There was an error running option N2 Wireless LAN

good idea though. any others? don't know which logfiles might be informative, ideas?

D

Return to “Networking and servers”