pwalden
Posts: 56
Joined: Wed Jan 09, 2013 3:23 am

brcmfmac: Direct firmware load for brcm .. failed with error -2

Sun Sep 06, 2020 7:01 pm

I tried something I probably should not have, but it seems to have worked.

I finally acquired a Pi zero w (pi0w) and a camera v2 to build a small network camera. I already had a working version using a Pi 3B and camera v2.

Rather than start from scratch, I copied the Pi3B sdcard over to a new one for the Pi0w, I changed the hostname and booted the Pi0w. It came up and is working with no apparent issues.

I checked the dmesg and discovered this entry below.

Code: Select all

brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.raspberrypi,model-zero-w.txt failed with error -2
It seems to be looking for a file.

Any clues what is happening.

epoch1970
Posts: 7271
Joined: Thu May 05, 2016 9:33 am
Location: France

Re: brcmfmac: Direct firmware load for brcm .. failed with error -2

Mon Sep 07, 2020 2:42 pm

"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

trejan
Posts: 3862
Joined: Tue Jul 02, 2019 2:28 pm

Re: brcmfmac: Direct firmware load for brcm .. failed with error -2

Mon Sep 07, 2020 2:52 pm

pwalden wrote:
Sun Sep 06, 2020 7:01 pm
I checked the dmesg and discovered this entry below.

Code: Select all

brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.raspberrypi,model-zero-w.txt failed with error -2
It seems to be looking for a file.
This is normal. There isn't a standalone "nvram" parameter file for the WiFi chip on a Zero W as all the necessary settings are integrated into the firmware itself.

User avatar
dickon
Posts: 2113
Joined: Sun Dec 09, 2012 3:54 pm
Location: Home, in Towcester

Re: brcmfmac: Direct firmware load for brcm .. failed with error -2

Mon Sep 07, 2020 3:25 pm

It's a non-issue. It appears that the driver looks for a board-specific firmware blob (which doesn't exist), and then falls back to a more generic one (which does).
As it is apparently board policy to disallow any criticism of anything, as it appears to criticise something is to criticise all the users of that something, I will no longer be commenting in threads which are not directly relevant to my uses of the Pi.

pwalden
Posts: 56
Joined: Wed Jan 09, 2013 3:23 am

Re: brcmfmac: Direct firmware load for brcm .. failed with error -2

Tue Sep 08, 2020 2:01 am

Thanks for the swift replies.

Glad to hear it is non-issue.

xantegh
Posts: 1
Joined: Wed Sep 23, 2020 6:45 am

Re: brcmfmac: Direct firmware load for brcm .. failed with error -2

Wed Sep 23, 2020 7:13 am

I have the same error on Pi 3B+ with failure to detect any AP.

Would you please help.

pi@raspberrypi:~ $ sudo iwlist wlan0 scan
wlan0 Interface doesn't support scanning : Connection timed out

Code: Select all

$ dmesg

[    7.380486] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    7.381431] usbcore: registered new interface driver brcmfmac
[    7.418397] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.raspberrypi,3-model-b-plus.txt failed with error -2
[    7.645756] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    7.663071] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Mar 23 2020 02:19:54 version 7.45.206 (r725000 CY) FWID 01-88ee44ea
[    7.723072] random: crng init done
[    7.723085] random: 7 urandom warning(s) missed due to ratelimiting
[    9.592284] 8021q: 802.1Q VLAN Support v1.8
[    9.643840] uart-pl011 3f201000.serial: no DMA platform data
[    9.940637] Adding 102396k swap on /var/swap.  Priority:-2 extents:1 across:102396k SSFS
[   10.223658] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[   10.629883] 8021q: adding VLAN 0 to HW filter on device eth0
[   10.631179] lan78xx 1-1.1.1:1.0 eth0: kevent 4 may have been dropped
[   10.641593] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   12.241278] ICMPv6: process `dhcpcd' is using deprecated sysctl (syscall) net.ipv6.neigh.eth0.retrans_time - use net.ipv6.neigh.eth0.retrans_time_ms instead
[   14.799604] fuse: init (API version 7.31)
[   20.956828] ieee80211 phy0: brcmf_escan_timeout: timer expired
[   23.516878] brcmfmac: brcmf_sdio_bus_rxctl: resumed on timeout
[   23.517298] brcmfmac: brcmf_sdio_checkdied: firmware trap in dongle
[   23.517526] brcmfmac: dongle trap info: type 0x4 @ epc 0x00000bf2
                 cpsr 0x8000019f spsr 0x800001bf sp 0x0025fec8
                 lr   0x000161ef pc   0x00000bf2 offset 0x25fe70
                 r0   0x0025a6d0 r1   0x18000000 r2 0x00000d74 r3 0x00000010
                 r4   0x00000000 r5   0x0025a758 r6 0x18000000 r7 0x00000000
[   23.517550] ieee80211 phy0: brcmf_notify_escan_complete: Scan abort failed
[   28.087064] brcmfmac: brcmf_sdio_bus_rxctl: resumed on timeout
[   28.087526] brcmfmac: brcmf_sdio_checkdied: firmware trap in dongle
[   28.087760] brcmfmac: dongle trap info: type 0x4 @ epc 0x00000bf2
                 cpsr 0x8000019f spsr 0x800001bf sp 0x0025fec8
                 lr   0x000161ef pc   0x00000bf2 offset 0x25fe70
                 r0   0x0025a6d0 r1   0x18000000 r2 0x00000d74 r3 0x00000010
                 r4   0x00000000 r5   0x0025a758 r6 0x18000000 r7 0x00000000
[   28.087783] ieee80211 phy0: brcmf_run_escan: error (-110)
[   28.087801] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-110)
[   31.596871] brcmfmac: brcmf_sdio_bus_rxctl: resumed on timeout
[   31.597295] brcmfmac: brcmf_sdio_checkdied: firmware trap in dongle
[   31.597520] brcmfmac: dongle trap info: type 0x4 @ epc 0x00000bf2
                 cpsr 0x8000019f spsr 0x800001bf sp 0x0025fec8
                 lr   0x000161ef pc   0x00000bf2 offset 0x25fe70
                 r0   0x0025a6d0 r1   0x18000000 r2 0x00000d74 r3 0x00000010
                 r4   0x00000000 r5   0x0025a758 r6 0x18000000 r7 0x00000000
[   31.597544] ieee80211 phy0: brcmf_run_escan: error (-110)
[   31.597561] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-110)
[   35.116954] brcmfmac: brcmf_sdio_bus_rxctl: resumed on timeout
[   35.117369] brcmfmac: brcmf_sdio_checkdied: firmware trap in dongle
[   35.117601] brcmfmac: dongle trap info: type 0x4 @ epc 0x00000bf2
                 cpsr 0x8000019f spsr 0x800001bf sp 0x0025fec8
                 lr   0x000161ef pc   0x00000bf2 offset 0x25fe70
                 r0   0x0025a6d0 r1   0x18000000 r2 0x00000d74 r3 0x00000010
                 r4   0x00000000 r5   0x0025a758 r6 0x18000000 r7 0x00000000

pyavitz
Posts: 27
Joined: Thu Aug 09, 2018 7:23 pm

Re: brcmfmac: Direct firmware load for brcm .. failed with error -2

Sun Oct 04, 2020 1:04 am

You can find the said files here. Select file, click raw, copy url and wget it into /lib/firmware/brcm

After which reboot and the error should go away.

Return to “Advanced users”