I manage to get my wifi working on raspberry pi zero 2w on a buildroot image.
this is my /etc/wpa_supplicant/wpa_supplicant.conf:
this is my /etc/network/interfaces:
and this is my /etc/init.d/S40network
and this my /etc/dhcpcd.conf:
All these are added under your rootfs overlay folder to be added to build.
If there a better way let me know, but this worked for me.
this is my /etc/wpa_supplicant/wpa_supplicant.conf:
Code:
country=ZAupdate_config=1network={ ssid="Home" psk="password" key_mgmt=WPA-PSK}
Code:
auto loiface lo inet loopbackauto wlan0iface wlan0 inet dhcp wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
Code:
#!/bin/shcase "$1" in start) echo "Loading brcmfmac module..." modprobe brcmfmac echo "Bringing up loopback interface..." ifup lo echo "Starting wpa_supplicant..." /usr/sbin/wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf echo "Starting dhcpcd..." /sbin/dhcpcd wlan0 ;; stop) echo "Stopping dhcpcd..." /sbin/dhcpcd -k wlan0 echo "Stopping wpa_supplicant..." killall wpa_supplicant echo "Taking down loopback interface..." ifdown lo ;; restart|reload) $0 stop $0 start ;; *) echo "Usage: $0 {start|stop|restart|reload}" exit 1 ;;esacexit 0
Code:
duidpersistentvendorclassidoption domain_name_servers, domain_name, domain_searchoption classless_static_routesoption interface_mtuoption host_nameoption rapid_commitrequire dhcp_server_identifierslaac private# Configuration specific to wlan0interface wlan0 dhcp
If there a better way let me know, but this worked for me.
Statistics: Posted by murlin — Mon May 20, 2024 6:09 am