[Buildroot] no device wlan0 for wifi on rasp3 linux system from raspberrypi3_defconfig

Xin Zhao tibalt.zhao at gmail.com
Sun Jul 3 10:20:58 UTC 2016


This issue can be solved following below link:
http://lists.busybox.net/pipermail/buildroot/2016-April/159688.html

A short summary is that the linux from raspberrypi3_defconfig does not have
brcmfmac43430-sdio.bin.
>From the link I downloaded shows that it is not free in some way:
https://raw.githubusercontent.com/RPi-Distro/firmware-nonfree/master/brcm80211/brcm/brcmfmac43430-sdio.bin

Could buildroot handle the driver with below license?
https://github.com/RPi-Distro/firmware-nonfree/blob/master/brcm80211/LICENSE

If it is possible, I would like to make a patch to make wifi work for
raspberry pi 3 without the trouble above.


Thanks,
Regards,
Tibalt


2016-07-01 16:28 GMT+08:00 Xin Zhao <tibalt.zhao at gmail.com>:

> I do not know if somebody has suffered the same problem.
> I tried the defconfig for rasp3. The sdcard.img generated by buildroot is
> running well except that wlan0 is not in the system. Then I tried to fix it
> by compilation with BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y, but still
> did not work.
>
> Then I checked the modules loaded by the system
> *# lsmod*
> *Module                  Size  Used by    Not tainted*
> *ipv6                  334070 24 [permanent]*
> *bcm2835_wdt             3128  0*
> *bcm2835_gpiomem         2939  0*
> *uio_pdrv_genirq         3089  0*
> *uio                     7715  1 uio_pdrv_genirq*
> *brcmfmac              175175  0*
> *brcmutil                5585  1 brcmfmac*
> *cfg80211              416114  1 brcmfmac*
> *rfkill                 14461  1 cfg80211*
>
> Seems brcmfmac is the needed module for wlan. And it is loaded. The dmesg
> shows
> *[    2.958655] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers
> at 0x3f200000*
> *[    2.964906] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog
> timer*
> *[    2.988707] random: dd urandom read with 79 bits of entropy available*
> *[    3.138008] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000):
> clkctl 0x50*
> *[    3.232991] NET: Registered protocol family 10*
> *[    3.329925] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote
> wakeup*
> *[    3.332085] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready*
> *[    4.148354] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000):
> clkctl 0x50*
> *[    4.820909] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready*
> *[    4.823506] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex,
> lpa 0xC5E1*
> *[   12.292458] random: nonblocking pool is initialized*
>
> Then I tried remove the module and load the module again. Dmesg shows:
> *[  294.949174] usbcore: deregistering interface driver brcmfmac*
> *[  298.170953] brcmfmac: brcmf_sdio_drivestrengthinit: No SDIO Drive
> strength init done for chip 43430 rev 1 pmurev 24*
> *[  298.177551] usbcore: registered new interface driver brcmfmac*
> *[  298.179173] brcmfmac_sdio mmc1:0001:1: Direct firmware load for
> brcm/brcmfmac43430-sdio.bin failed with error -2*
> *[  299.187783] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000):
> clkctl 0x50*
>
> And ifconfig -a shows no wlan0.
>
>
> The version of buildroot I am using is pretty new.  Version details as
> below:
>
> *commit a542d0fd55e961e3c5805f12bba490d3dcc15d33*
> *Author: Frank Hunleth <fhunleth at troodon-software.com
> <fhunleth at troodon-software.com>>*
> *Date:   Tue Jun 21 12:46:53 2016 -0400*
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160703/4fd5a39f/attachment-0002.html>


More information about the buildroot mailing list