Wireless settings don't survive reboot
#1
Mon, 2016-05-23 02:39
dbabits
-
- Offline
- 1 year 10 months ago
- 2016-05-23
I followed instructions on this page, which work, but don't survive reboot:
https://wiki.alpinelinux.org/wiki/Connecting_to_a_wireless_access_point
wpa_supplicant exits with this message in /var/logs/messages:
Jan 1 00:00:11 alpine daemon.err /etc/init.d/wpa_supplicant[1102]: ERROR: wpa_supplicant failed to start Jan 1 00:00:12 alpine daemon.info init: starting pid 1220, tty '': '/sbin/rc default' Jan 1 00:00:12 alpine daemon.warn openrc[1220]: WARNING: clock skew detected! Jan 1 00:00:12 alpine daemon.err /etc/init.d/wpa_supplicant[1240]: start-stop-daemon: failed to start `/sbin/wpa_supplicant' Jan 1 00:00:12 alpine daemon.err /etc/init.d/wpa_supplicant[1222]: ERROR: wpa_supplicant failed to start
Every time after reboot, I execute commands referenced at the WIki link above, and then everything works.
I'm running Raspberry Pi 2, and have followed installation instructions at that page.
I do not forget lbu commit
alpine:~$ sudo rc-update
....
udhcpd | boot
wpa_supplicant | boot
Has you followed this part? :
Also check your /etc/network/interfaces file.
Yes, I followed all parts, and it works when executing manually. wpa_supplicant fails to start on reboot without any detailed error.
Here it is working (and I am using diskless mode too), so something is wrong with your configuration.
One thing I can think of is dbus. I believe it needs to start before wpa_supplicant at boot.
Try rc-update add dbus then lbu ci and reboot.
This is my complete rc-update:
acpid | default bootmisc | boot dbus | default devfs | sysinit dmesg | sysinit hostname | boot hwclock | boot hwdrivers | sysinit keymaps | boot killprocs | shutdown local | default modloop | sysinit modules | boot mount-ro | shutdown networking | boot savecache | shutdown sysctl | boot syslog | boot udev | default sysinit udev-postmount | default sysinit udev-trigger | sysinit urandom | boot wpa_supplicant | bootI added dbus, but it didn't help.
Should it be at default level or boot level?
alpine:~$ sudo rc-update acpid | default bootmisc | boot chronyd | default cron | default dbus | default devfs | sysinit dmesg | sysinit hostname | boot hwdrivers | sysinit keymaps | boot killprocs | shutdown mdev | sysinit modloop | sysinit modules | boot mount-ro | shutdown networking | boot nginx | default ntpd | boot default php-fpm | default savecache | shutdown sshd | boot default swclock | boot sysctl | boot syslog | boot udhcpd | boot urandom | boot wpa_supplicant | boot alpine daemon.err /etc/init.d/wpa_supplicant[1122]: start-stop-daemon: failed to start `/sbin/wpa_supplicant'This is what I have to do manually every time after boot to activate wireless:
alpine:~$ cat /etc/wpa_supplicant/wpa_supplicant.conf # reading passphrase from stdin network={ ssid="D2D8F4" #psk="78508162" psk=8ac8cb56916ac69475fb794563b1b973fd32e6f83a0ebe06adb7f740744814c6 }Please could you also post your
/etc/network/interfaces? Perhaps the problem is there.dima@alpine:~$cat /etc/network/interfaces auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp hostname alpine auto wlan0 iface wlan0 inet dhcp hostname alpineMaybe udhcpc times out and it does not get a lease. Try:
auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp hostname alpine auto wlan0 iface wlan0 inet dhcp udhcpc_opts -t 10 -T 10 hostname alpineThanks, but it did not help.
Can we see more output from wpa_supplicant? Start it with the -dd flag from the init script.
Also, how does this behave?
rc-update del wpa_supplicant
reboot
rc-service wpa_supplicant start