Bug 15546

Summary: raspberry pi zero 2 w no Wi-Fi device
Product: buildroot Reporter: Andrei Cherniaev <glscene2010>
Component: OtherAssignee: cheikh.taib
Status: RESOLVED MOVED    
Severity: minor CC: buildroot, yann.morin.1998
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description Andrei Cherniaev 2023-04-17 15:52:41 UTC
I use raspberry pi zero 2 w. I use master branch Buildroot.
Full steps here https://forums.raspberrypi.com/viewtopic.php?p=2100121#p2100121 
Summary my steps:
I add this tree lines in raspberrypizero2w_defconfig
BR2_PACKAGE_BRCMFMAC_SDIO_FIRMWARE_RPI=y
BR2_PACKAGE_BRCMFMAC_SDIO_FIRMWARE_RPI_BT=y
BR2_PACKAGE_BRCMFMAC_SDIO_FIRMWARE_RPI_WIFI=y
And build: 
make clean -C buildroot
make  -C buildroot raspberrypizero2w_defconfig
make -C buildroot

But there is no Wi-Fi device. 
I know how manually enable Wi-Fi in Buildroot for raspberry pi zero 2 w, do:
modprobe brcmfmac
/etc/init.d/S40Network restart

Why Buildroot don't do it by himself?
Comment 1 cheikh.taib 2023-08-02 21:19:47 UTC
Hello, 

I have a fix, but I don't have a board to test , could you please test it on yours and tell me if it works ? 

https://drive.google.com/drive/folders/1SGZQx2rH06zXhqDeGsUTss_K7h4G2Hbz?usp=sharing

Thanks, 
Taieb
Comment 2 Jose Angel Torres 2023-09-11 18:25:52 UTC
(In reply to cheikh.taib from comment #1)

Hi Taib,
This is a compiled Buildroot image that you have provided thus, asking others to run this image poses a potential security risk for some.
In the future, instead of asking others to test a binary, can you share what you did to resolve the issue so that we can reproduce on our end.
Thanks!
Sincerely,
Jose
Comment 3 Andrei Cherniaev 2023-09-13 12:47:37 UTC
(In reply to cheikh.taib from comment #1)
I try sdcard.img
I boot and ask
uname -a 
Linux buildroot 5.10.92-v7 #1 SMP Tue Aug 1 22:21:04 CEST 2023

Let's check our problem
ifconfig -a
says again only one lo device. The same problem, nothing happen.
After I do
modprobe brcmfmac
/etc/init.d/S40Network restart
I can see wlan0 device.
P.S. May be this problem because of old kernel?
Comment 4 Joost Molenaar 2023-10-16 09:53:29 UTC
I ran into this on a Pi 0 W; the module isn't loaded because there's no udev by default, which creates device files but also loads modules for available hardware. You can enable it under System configuration -> /dev management, I chose 'Dynamic using devtmpfs + mdev', that is, CONFIG_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y.
Comment 5 Yann E. MORIN 2024-06-15 15:08:18 UTC
Thank you for your report.

The issue tracker for the Buildroot project has been moved to
the Gitlab.com issue tracker:
    https://gitlab.com/buildroot.org/buildroot/-/issues

We are taking this opportunity to close old issues in this old
tracker. If you believe your issue is still relevant, please
open one in the new issue tracker.

Thank you!