Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3763

Troubleshooting • Raspberry Pi Zero W with buildroot - WiFi not working

$
0
0
Hi, I've recently bought a Raspberry Pi Zero W and can't get the wifi to work, which I need to login to the system through SSH. I have a headless setup, the RPi0 is connected to my laptop through USB only. The system boots ok (since the green light is on constantly), but I don't see the device IP address neither in nmap scan nor in my phone wifi router settings (I'm using my phone as a router).

On the SD card I have a system prepared by the latest version of buildroot, which I built with the default config:

Code:

make raspberrypi0w_defconfig
Apart from that, I've also added the necessary packages i.e. brcmfmac-sdio-firmware-rpi, wpa_supplicant with nl80211 support, dhcp and dhcpd.

Here's what I have added to the system:
* wpa_supplicant.conf, which I added to the boot partition and the /etc/wpa_supplicant.conf in the root partition

Code:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdevupdate_config=1country=ITnetwork={    ssid="My phone WiFi SSID"    psk="mypassword"    key_mgmt=WPA-PSK}
* /etc/network/interfaces:

Code:

auto wlan0iface wlan0 inet dhcp    pre-up wpa_supplicant -D nl80211 -i wlan0 -c /etc/wpa_supplicant.conf -B    post-down killall -q wpa_supplicant
* /etc/inittab:

Code:

...# now run any rc scripts::sysinit:/sbin/modprobe brcmfmac  # <--- this line was added by me::sysinit:/etc/init.d/rcS...
Any help and suggestion what could be wrong in this setup would be very appreciated1! :D

Edit: When I'm using the RPi-Imager, use Raspbian OS with the wpa_supplicant file modified as above, the WiFi works perfectly fine.

Statistics: Posted by panantoni01 — Wed May 15, 2024 10:20 pm



Viewing all articles
Browse latest Browse all 3763

Trending Articles