LibreELEC / brcmfmac_sdio-firmware

Broadcom SDIO firmware used with LibreELEC
21 stars 21 forks source link

The brcmfmac4356-sdio.bin firmware is old and will break wifi if I add some specific kernel config #27

Open ihipop opened 2 years ago

ihipop commented 2 years ago

Board: Nanopc T4 Kernel:Linux kernel 5.10.76 LibreELEC version: LibreELEC 10.0.2

When I try to add Any of these kernel config , The wifi dongle will stop working

image

CONFIG_NF_CONNTRACK_SIP=m

Dmesg: dmesg.log

[   10.249242] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4356-sdio for chip BCM4356/2
[   10.250211] usbcore: registered new interface driver brcmfmac
[   10.671662] brcmfmac mmc0:0001:1: Direct firmware load for brcm/brcmfmac4356-sdio.friendlyarm,nanopc-t4.txt failed with error -2
[   10.880044] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4356-sdio for chip BCM4356/2
[   11.061427] ieee80211 phy0: brcmf_c_process_clm_blob: clmload (5750 byte file) failed (-52)
[   11.062501] ieee80211 phy0: brcmf_c_process_clm_blob: get clmload_status failed (-52)
[   11.062623] ieee80211 phy0: brcmf_c_preinit_dcmds: download CLM blob file failed, -5
[   11.062630] ieee80211 phy0: brcmf_bus_started: failed: -5
[   11.062651] ieee80211 phy0: brcmf_attach: dongle is not responding: err=-5
[   11.094611] brcmfmac: brcmf_sdio_firmware_callback: brcmf_attach failed
strings /usr/lib/firmware/brcm/brcmfmac4356-sdio.bin |grep -oE 'Version.*'
Version: 7.35.184.0 CRC: a4b3b224 Date: Tue 2015-06-16 14:27:46 CST FWID 01-b22ae69c

I placed a sets of new version of firmware from Armbian https://github.com/armbian/firmware/commit/9c800d7e16616dd30cfd854f26e563fb675e3f8a in /storage firmware dir then reboot and everything works again

Firmware Source: https://community.cypress.com/docs/DOC-19375

strings /storage/.config/firmware/brcm/brcmfmac4356-sdio.bin  |grep -oE 'Version.*'
Version: 7.35.349.87 (r724447 CY) CRC: 2977caa0 Date: Wed 2020-03-04 22:09:43 PST Ucode Ver: 986.1209 FWID 01-c68a2890
chewitt commented 2 years ago

@ihipop Can you submit a PR to update the firmware?