initialization of wpa_supplicant is very long
lambertarthur22 at gmail.com
Wed Jun 5 01:26:31 PDT 2019
> Looks like on bootup your system does not have enough randomness
> entropy which then blocks the supplicant (and anything else needing
> entropy). You can add programs like rng-tools that grab more entropy
> and feed it to the kernel.
> See https://wiki.archlinux.org/index.php/Rng-tools for some examples.
Thank you for your answer ! I just add rng tools in my buildroot defconfig.
No more success after testing it. But it was due to the default argument used
by rngd deamon. With default argument, rngd is not able to find en entropy source :
# rngd -f
No entropy sources working, exiting rngd
By using "-r /dev/urandom" now everything is working perfectly. And now wpa_supplicant
is starting very quickly.
# time /usr/sbin/wpa_supplicant -B -i wlan0 -c /data/conf/wpa_supplicant.conf
Successfully initialized wpa_supplicant
rfkill: Cannot open RFKILL control device
IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
rfkill: Cannot get wiphy information
real 0m 0.62s
user 0m 0.20s
sys 0m 0.07s
Thank you again !
More information about the Hostap