Page 1 of 1
pi zero w wifi gone after power cycle
Posted: Thu Mar 07, 2019 7:55 pm
by midol
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
Re: pi zero w wifi gone after power cycle
Posted: Thu Mar 07, 2019 11:33 pm
by DougieLawson
There's no ethernet on a Zero only WiFi so your post doesn't make sense.
Re: pi zero w wifi gone after power cycle
Posted: Fri Mar 08, 2019 1:02 am
by midol
yes the eth0 is on a plugin to the usb OTG port
Re: pi zero w wifi gone after power cycle
Posted: Fri Mar 08, 2019 7:00 am
by DougieLawson
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?
Re: pi zero w wifi gone after power cycle
Posted: Mon Mar 11, 2019 11:57 pm
by midol
excellent, thanks very much, I'll let you know.
Dave
Re: pi zero w wifi gone after power cycle
Posted: Tue May 19, 2020 5:06 am
by midol
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
Re: pi zero w wifi gone after power cycle
Posted: Tue May 19, 2020 6:04 am
by kerry_s
have you tried just using "sudo raspi-config" -> network options-> wifi
Re: pi zero w wifi gone after power cycle
Posted: Tue May 19, 2020 3:39 pm
by midol
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