Brcmfmac failed on Pi3 and Pi Zero

Hello.
I am new in this forum, and I have a problem building images for Raspberry PI3 and PI Zero.
When I build the firmware all seems correct, but it is not possible to get the on Board wifi working.

When I register (modprobe brcmfmac) I get the following error in dmesg:

[  498.336552] usbcore: deregistering interface driver brcmfmac
[  505.710108] brcmfmac: F1 signature read @0x18000000=0x1541a9a6
[  505.714529] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[  505.866922] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[  505.879482] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.clm_blob failed with error -2
[  505.893644] brcmfmac mmc1:0001:1: Falling back to user helper
[  505.910788] firmware brcm!brcmfmac43430-sdio.clm_blob: firmware_loading_store: map pages failed
[  505.923700] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-11), device may have limited channels available
[  505.942904] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Oct 23 2017 03:55:53 version 7.45.98.38 (r674442 CY) FWID 01-e58d219f
[  505.976900] ------------[ cut here ]------------
[  505.983806] WARNING: CPU: 1 PID: 1588 at backports-4.19-rc5-1/net/wireless/core.c:736 wiphy_register+0x23c/0x8c0 [cfg80211]
[  505.999507] Modules linked in: brcmfmac(+) rtl8192cu rtl8192c_common rtl_usb pppoe ppp_async option usb_wwan rtlwifi pppox ppp_generic nf_conntrack_ipv6 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT usbserial usbhid ums_usbat ums_sddr55 ums_sddr09 ums_karma ums_jumpshot ums_isd200 ums_freecom ums_datafab ums_cypress ums_alauda spidev spi_gpio spi_bitbang slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ip_tables hid_generic crc_ccitt compat cdc_wdm cdc_acm brcmutil hid evdev i2c_gpio i2c_bcm2708 i2c_algo_bit
[  506.093019]  i2c_dev i2c_core ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables tun snd_compress snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd_rawmidi snd_seq_device snd_hwdep snd soundcore nls_utf8 vfat fat nls_iso8859_1 nls_cp437 xhci_plat_hcd xhci_hcd ohci_platform ohci_hcd ehci_platform ehci_hcd broadcom bcm_phy_lib [last unloaded: brcmfmac]

[  506.144972] CPU: 1 PID: 1588 Comm: kworker/1:0 Tainted: G        W       4.9.135 #0
[  506.157373] Hardware name: Raspberry Pi 3 Model B Rev 1.2 (DT)
[  506.165643] Workqueue: events request_firmware_work_func
[  506.173334] task: ffffffc038302a00 task.stack: ffffffc0378a4000
[  506.181634] PC is at wiphy_register+0x23c/0x8c0 [cfg80211]
[  506.189455] LR is at brcmf_cfg80211_attach+0x904/0x1050 [brcmfmac]
[  506.197927] pc : [<ffffff800071057c>] lr : [<ffffff800089f854>] pstate: 40000145
[  506.209723] sp : ffffffc0378a7af0
[  506.215157] x29: ffffffc0378a7af0 x28: ffffffc037dc6d00
[  506.222603] x27: ffffff80008bbea8 x26: ffffff80086e0a20
[  506.229980] x25: 0000000000000001 x24: ffffffc0379f3000
[  506.237294] x23: ffffffc0378a7c00 x22: ffffffc0379f2880
[  506.244543] x21: ffffffc037dc6d1c x20: ffffffc0379cbf00
[  506.251705] x19: ffffffc037dfd800 x18: ffffffc03a3a1668
[  506.258791] x17: ffffff80084fd84c x16: 0000000000000007
[  506.265810] x15: ffffff80084fd84c x14: 000e09b400000000
[  506.272520] x13: 0000000000000000 x12: 0000000000000000
[  506.278656] x11: ffffff80008cbb08 x10: ffffffc0378a7b40
[  506.284783] x9 : 00000000ffffffd8 x8 : ffffffc0378a7b20
[  506.290883] x7 : 0000000000000000 x6 : ffffffc038c0ab80
[  506.296953] x5 : 0000000000000000 x4 : ffffff8000894cb8
[  506.302990] x3 : ffffff800089c1b8 x2 : ffffffc0379ccf8a
[  506.309014] x1 : 000000000000070e x0 : ffffffc0379cc300
[  506.315017]
[  506.317097] ---[ end trace 1054c8d32a0293f8 ]---
[  506.322368] Call trace:
[  506.325397] Exception stack(0xffffffc0378a7910 to 0xffffffc0378a7a40)
[  506.332499] 7900:                                   ffffffc037dfd800 0000007fffffffff
[  506.341595] 7920: ffffffc0378a7af0 ffffff800071057c 0000000040000145 000000000000003d
[  506.350807] 7940: ffffffc0378a7970 ffffff800811101c 0000000000000003 ffffffc0378ba400
[  506.360168] 7960: ffffffc0378a79d0 ffffff80008b4578 ffffff80008c9148 ffffffc0378a7980
[  506.369680] 7980: ffffffc0378a79d0 ffffffc0378a79d0 ffffffc0378a79a0 00000000ffffffd8
[  506.379335] 79a0: 000000000000001c 000000000000001c 000000000000001c 0000000000000000
[  506.389139] 79c0: ffffffc0379cc300 000000000000070e ffffffc0379ccf8a ffffff800089c1b8
[  506.399102] 79e0: ffffff8000894cb8 0000000000000000 ffffffc038c0ab80 0000000000000000
[  506.409213] 7a00: ffffffc0378a7b20 00000000ffffffd8 ffffffc0378a7b40 ffffff80008cbb08
[  506.419438] 7a20: 0000000000000000 0000000000000000 000e09b400000000 ffffff80084fd84c
[  506.429741] [<ffffff800071057c>] wiphy_register+0x23c/0x8c0 [cfg80211]
[  506.437593] [<ffffff800089f854>] brcmf_cfg80211_attach+0x904/0x1050 [brcmfmac]
[  506.446151] [<ffffff80008a9908>] brcmf_attach+0x1d0/0x1148 [brcmfmac]
[  506.453900] [<ffffff80008b3da0>] brcmf_sdio_wd_timer+0x590/0x3680 [brcmfmac]
[  506.462237] [<ffffff80008aa7d0>] brcmf_attach+0x1098/0x1148 [brcmfmac]
[  506.470022] [<ffffff800830a51c>] request_firmware_work_func+0x34/0x60
[  506.477687] [<ffffff80080a9c30>] process_one_work+0x208/0x350
[  506.484625] [<ffffff80080aa014>] worker_thread+0x29c/0x4a8
[  506.491269] [<ffffff80080af8d4>] kthread+0xdc/0xf0
[  506.497169] [<ffffff8008082d30>] ret_from_fork+0x10/0x20
[  506.503595] brcmfmac: brcmf_cfg80211_attach: Could not register wiphy device (-22)
[  506.513363] brcmfmac: brcmf_bus_started: failed: -12
[  506.519417] brcmfmac: brcmf_attach: dongle is not responding: err=-12
[  506.564132] brcmfmac: brcmf_sdio_firmware_callback: brcmf_attach failed
[  510.801222] usbcore: registered new interface driver brcmfmac

Has anyone a solution for this?

Thanks Marc.

I tried now different solutions and can not get wifi working.
I build 2 clean images brcm2808-brcm2809 and brcm2808-brcm2810 clean from 'git clone' on master branch.
Both Images show the errors above in dmesg. I tried the image on pi3b and pi-Zero-w.
Has anyone OpenWrt running on this Systems and check?
Thanks Marc

I can confirm the issue. Until we can push a fix, you can either build master at commit e9d92bf1e1af71ff19e4cdc753de3f65963c58a5 after deleting package/kernel/mac80211/patches/brcm/864-brcmfmac-do-not-use-internal-roaming-engine-by-default.patch, or use 18.06.

1 Like

I reported the issue upstream and have a patch to revert the change that broke wifi in my staging tree.

Thank you stintel, good work. will try it this week.

Hi all,
still no progress on this?
Thanks

I just pushed a fix to master.

1 Like

Hi friends,
I found this topic and i have the same problem... I try build firmware BCM2708 / v18.06.2 on raspberry zero WH and in logread i have:

Wed Jan 30 12:21:08 2019 kern.info kernel: [    8.473899] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
Wed Jan 30 12:21:08 2019 kern.warn kernel: [    8.510011] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.raspberrypi,model-zero-w.txt failed with error -2
Wed Jan 30 12:21:08 2019 kern.warn kernel: [    8.526984] brcmfmac mmc1:0001:1: Falling back to user helper
Wed Jan 30 12:21:08 2019 kern.err kernel: [    8.839294] firmware brcm!brcmfmac43430-sdio.raspberrypi,model-zero-w.txt: firmware_loading_store: map pages failed
Wed Jan 30 12:21:08 2019 kern.info kernel: [    9.003971] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
Wed Jan 30 12:21:08 2019 kern.warn kernel: [    9.017358] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.clm_blob failed with error -2
Wed Jan 30 12:21:08 2019 kern.warn kernel: [    9.032493] brcmfmac mmc1:0001:1: Falling back to user helper
Wed Jan 30 12:21:08 2019 kern.err kernel: [    9.059022] firmware brcm!brcmfmac43430-sdio.clm_blob: firmware_loading_store: map pages failed
Wed Jan 30 12:21:08 2019 kern.info kernel: [    9.073542] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-11), device may have limited channels available
Wed Jan 30 12:21:08 2019 kern.info kernel: [    9.094827] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Oct 23 2017 03:55:53 version 7.45.98.38 (r674442 CY) FWID 01-e58d219f

Can you help me solve this problem and fix it? Thank you for your help.

Hi. I rolled Bach tons further version of openwrt sources an that solves the problem

from 'git clone' on master branch will be ok?? On my raspberry 3B+ work all very well but Zero WH don't work...

Hi the master branch had the problems so i got the advice to use the openwrt-18.06 brench,

here i had no problems.

git branch

master

  • openwrt-18.06
1 Like