brcmfmac43436 firmware missing, no wifi on pi zero 2 w

Raspberry Pi 2

brcmfmac43436 firmware missing, no wifi on pi zero 2 w

Postby caesar » Sat May 14, 2022 12:37 am

The problem is quickly explained:
$this->bbcode_second_pass_code('', '
$ tar tvf firmware-raspberrypi-20220411-1-any.pkg.tar.xz | grep brcmfmac43436-
-rw-r--r-- root/root 416101 2022-04-11 18:03 usr/lib/firmware/updates/brcm/brcmfmac43436-sdio.bin
-rw-r--r-- root/root 11209 2022-04-11 18:03 usr/lib/firmware/updates/brcm/brcmfmac43436-sdio.clm_blob
-rw-r--r-- root/root 1613 2022-04-11 18:03 usr/lib/firmware/updates/brcm/brcmfmac43436-sdio.txt
$ tar tvf firmware-raspberrypi-20220505-1-any.pkg.tar.xz | grep brcmfmac43436-
-rw-r--r-- root/root 11209 2022-05-05 17:33 usr/lib/firmware/updates/brcm/brcmfmac43436-sdio.clm_blob')

Dmesg with the working, old firmware package:
$this->bbcode_second_pass_code('', '
[ 12.089735] brcmfmac: F1 signature read @0x18000000=0x1542a9a6
[ 12.108425] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43436-sdio for chip BCM43430/2
[ 12.114893] usbcore: registered new interface driver brcmfmac
[ 12.122518] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43436-sdio.raspberrypi,model-zero-2-w.bin failed with error -2
[ 12.276304] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43436-sdio for chip BCM43430/2
[ 12.279683] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43436-sdio for chip BCM43430/2
[ 12.313270] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/2 wl0: Mar 31 2022 17:24:51 version 9.88.4.77 (g58bc5cc) FWID 01-3b307371
[ 12.637583] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled')

Dmesg with new firmware package:
$this->bbcode_second_pass_code('', '[ 12.699391] brcmfmac: F1 signature read @0x18000000=0x1542a9a6
[ 12.706947] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43436-sdio for chip BCM43430/2
[ 12.722216] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43436-sdio.raspberrypi,model-zero-2-w.bin failed with error -2
[ 12.727668] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43436-sdio.bin failed with error -2
[ 12.734045] usbcore: registered new interface driver brcmfmac
[ 12.739255] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430b0-sdio for chip BCM43430/2
[ 12.748768] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43430b0-sdio.raspberrypi,model-zero-2-w.bin failed with error -2
[ 12.769268] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43430b0-sdio.bin failed with error -2
[ 13.779181] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50')
caesar
 
Posts: 5
Joined: Sat May 14, 2022 12:06 am

Re: brcmfmac43436 firmware missing, no wifi on pi zero 2 w

Postby graysky » Sat May 14, 2022 6:47 am

It seems that upstream reverted the commit supplying those files: https://github.com/RPi-Distro/firmware- ... 3b202a4cd4
graysky
Developer
 
Posts: 1723
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: brcmfmac43436 firmware missing, no wifi on pi zero 2 w

Postby caesar » Sat May 14, 2022 8:42 am

I don't think the reverted commit supplied the files? The commit just deletes some 2kB from the 400kB driver. (Though I don't understand why that was necessary.)

The next commit seems more related to the problem: It renames the files from brcmfmac43436 to brcmfmac43436f so debian can add some update-alternatives choice (create a symlink in place of the original files). Those files are actually present.
$this->bbcode_second_pass_code('', '
$ tar tvf firmware-raspberrypi-20220505-1-any.pkg.tar.xz | grep brcmfmac43436f-
-rw-r--r-- root/root 416101 2022-05-05 17:33 usr/lib/firmware/updates/brcm/brcmfmac43436f-sdio.bin
-rw-r--r-- root/root 1613 2022-05-05 17:33 usr/lib/firmware/updates/brcm/brcmfmac43436f-sdio.txt
')
caesar
 
Posts: 5
Joined: Sat May 14, 2022 12:06 am

Re: brcmfmac43436 firmware missing, no wifi on pi zero 2 w

Postby graysky » Sat May 14, 2022 11:33 am

Yes, they go on to re-implement it as well. Does simply creating symlinks fix it? Please build from my try branch and report back: https://github.com/graysky2/PKGBUILDs/c ... 81a7bd031e
graysky
Developer
 
Posts: 1723
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: brcmfmac43436 firmware missing, no wifi on pi zero 2 w

Postby caesar » Sat May 14, 2022 12:17 pm

Symlinking does work.

But it gets weirder. I tried testing this on a different piz2w. There, an up-to-date install of firmware-raspberrypi works just fine. Just to make sure, I transferred the SD-Card from one Pi to the other, and indeed, the same install doesn't work on one but works on the other. No idea what to make of this. They both report as Raspberry Pi Zero 2 W Rev 1.0. (If you want the output of some hardware info dumping tool, please do tell.)

For completeness, Dmesg from the hardware working without symlinks:
$this->bbcode_second_pass_code('', '# dmesg | grep brcm
[ 11.024451] brcmfmac: F1 signature read @0x18000000=0x1541a9a6
[ 11.028560] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43436s-sdio for chip BCM43430/1
[ 11.033118] usbcore: registered new interface driver brcmfmac
[ 11.036409] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43436s-sdio.raspberrypi,model-zero-2-w.bin failed with error -2
[ 11.231609] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43436s-sdio for chip BCM43430/1
[ 11.235526] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43436s-sdio for chip BCM43430/1
[ 11.240913] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[ 11.249288] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Feb 5 2021 12:49:07 version 7.45.96 (r745790) FWID 01-71817851 es7
[ 11.578882] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled')
caesar
 
Posts: 5
Joined: Sat May 14, 2022 12:06 am

Re: brcmfmac43436 firmware missing, no wifi on pi zero 2 w

Postby graysky » Sat May 14, 2022 12:23 pm

I don't have the hardware for testing. I don't have any ideas.
graysky
Developer
 
Posts: 1723
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: brcmfmac43436 firmware missing, no wifi on pi zero 2 w

Postby caesar » Sat May 14, 2022 12:42 pm

Eh, I'm blind, the difference is in the dmesg.
BCM43430/1 works without symlinks, BCM43430/2 needs symlinks.
caesar
 
Posts: 5
Joined: Sat May 14, 2022 12:06 am

Re: brcmfmac43436 firmware missing, no wifi on pi zero 2 w

Postby graysky » Sun May 15, 2022 9:40 am

$this->bbcode_second_pass_quote('caesar', 'B')CM43430/1 works without symlinks, BCM43430/2 needs symlinks.


Please report this upstream, you can include the symlink comment as a potential fix: https://github.com/RPi-Distro/firmware- ... issues/new
graysky
Developer
 
Posts: 1723
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: brcmfmac43436 firmware missing, no wifi on pi zero 2 w

Postby caesar » Sat May 21, 2022 2:13 am

I'm not quite sure what you want me to report. Raspbian will create the symlinks via update-alternatives, and you have added it to the pkgbuild (Thank you!) for Arch Linux ARM. Is there any issue that needs reporting?
caesar
 
Posts: 5
Joined: Sat May 14, 2022 12:06 am

Re: brcmfmac43436 firmware missing, no wifi on pi zero 2 w

Postby graysky » Sat May 21, 2022 9:23 am

Ah, did not know they have a post-processing script that created these... why not just package them. Not a fan of the debian way. No need to open an issue.
graysky
Developer
 
Posts: 1723
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000


Return to Broadcom

Who is online

Users browsing this forum: No registered users and 1 guest