Can you tell which file I should copy? should I copy all the files?
BTW here is my lib/firmware now:
ls /lib/firmware/brcm
BCM43430A1.hcd brcmfmac43430-sdio.bin brcmfmac43456-sdio.bin
BCM4345C5.hcd brcmfmac43430-sdio.txt brcmfmac43456-sdio.txt
Zero cannot connect to wifi
I have not changed anything yet but wifi is back after rebooting. it seems it load fmac43456-sdio if it cannot find fmac43456-sdio.radxa,zero.txt , but this does not happen consistently.
Here is new dsmeg:
sudo dmesg | grep brcm
[ 6.260632] brcm fmac: F1 signature read @0x18000000=0x15294345
[ 6.284470] brcm fmac: brcm f_of_probe: interrupt could not be mapped
[ 6.290934] brcm fmac: brcm f_fw_alloc_request: using brcm / brcm fmac43456-sdio for chip BCM4345/9
[ 6.296629] usbcore: registered new interface driver brcm fmac
[ 6.298908] brcm fmac mmc2:0001:1: Direct firmware load for brcm / brcm fmac43456-sdio.radxa,zero.txt failed with error -2
[ 6.554495] brcm fmac: brcm f_fw_alloc_request: using brcm / brcm fmac43456-sdio for chip BCM4345/9
[ 6.558917] brcm fmac: brcm f_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[ 6.570447] brcm fmac: brcm f_c_preinit_dcmds: Firmware: BCM4345/9 wl0: Feb 11 2020 11:54:51 version 7.45.96.61 (be7af2d@shgit) (r745790) FWID 01-a41d86bd es7.c5.n4.a3
[ 6.717275] Bluetooth: hci0: BCM4345C5 ’ brcm /BCM4345C5.hcd’ Patchsome times it will load
I change fmac43456-sdio.* to fmac43456-sdio.radxa,zero.* now it can load the firmware. hopefully it can work consistently.
still not stable…
Can you be more specific on “not stable”? Did it disconnect? Was the device gone? Can you restore functionality after ifupdown or you need to reboot? Hard to tell what’s the problem here.
Every time I power the board, there is 40% chance system can load the firmware so I will have wifi working. Other 60% time the board cannot load the firmware so I have to reboot system.
Even after renaming the file?
yes, I actually copied them instead of renaming them. Here is the firmware folder:
ls /lib/firmware/brcm
BCM43430A1.hcd
brcmfmac43456-sdio.bin
BCM4345C5.hcd
brcmfmac43456-sdio.radxa,zero.bin
brcmfmac43430-sdio.bin
brcmfmac43456-sdio.radxa,zero.txt
brcmfmac43430-sdio.txt
brcmfmac43456-sdio.txt
Here is the dmesg (when wifi works):
[ 6.380337] brcm fmac: F1 signature read @0x18000000=0x15294345
[ 6.394212] brcm fmac: brcm f_of_probe: interrupt could not be mapped
[ 6.404185] brcm fmac: brcm f_fw_alloc_request: using brcm / brcm fmac43456-sdio for chip BCM4345/9
[ 6.423530] usbcore: registered new interface driver brcm fmac
[ 6.679087] brcm fmac: brcm f_fw_alloc_request: using brcm / brcm fmac43456-sdio for chip BCM4345/9
[ 6.682870] brcm fmac: brcm f_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[ 6.701789] Bluetooth: hci0: BCM4345C5 ’ brcm /BCM4345C5.hcd’ Patch
[ 6.702949] brcm fmac: brcm f_c_preinit_dcmds: Firmware: BCM4345/9 wl0: Feb 11 2020 11:54:51 version 7.45.96.61 (be7af2d@shgit) (r745790) FWID 01-a41d86bd es7.c5.n4.a3
[ 1266.028003] brcm fmac: brcm f_sdio_read_control: read 2048 control bytes failed: -84
[ 1266.030026] brcm fmac: brcm f_sdio_rxfail: abort command, terminate frame, send NAK
[ 1268.619885] brcm fmac: brcm f_sdio_bus_rxctl: resumed on timeout
[ 1268.623564] ieee80211 phy0: brcm f_fill_bss_param: Failed to get bss info (-110)
Here is the dmesg when wifi doesn’t work
sudo dmesg | grep brcm
[ 6.488543] brcm fmac: F1 signature read @0x18000000=0x15294345
[ 6.489000] brcm fmac: brcm f_chip_cores_check: CPU core not detected
[ 6.489644] brcm fmac: brcm f_sdio_probe_attach: brcm f_chip_attach failed!
[ 6.501536] brcm fmac: brcm f_sdio_probe: brcm f_sdio_probe_attach failed
[ 6.515186] brcm fmac: brcm f_ops_sdio_probe: F2 error, probe failed -19…
[ 6.520563] usbcore: registered new interface driver brcm fmac
[ 6.870389] Bluetooth: hci0: BCM4345C5 ’ brcm /BCM4345C5.hcd’ Patch
Can you try rmmod brcmfmac && modprobe brcmfmac
a few times to see if that can bring wifi back?
Hi, after run the command wifi works. Here are the outputs:
dmesg
sudo dmesg | grep brcm
[ 6.358881] brcm fmac: F1 signature read @0x18000000=0x15294345
[ 6.361150] brcm fmac: brcm f_of_probe: interrupt could not be mapped
[ 6.361408] brcm fmac: brcm f_fw_alloc_request: using brcm / brcm fmac43456-sdio for chip BCM4345/9
[ 6.366387] usbcore: registered new interface driver brcm fmac
[ 6.499604] brcm fmac: brcm f_sdiod_ramrw: membytes transfer failed
[ 6.499620] brcm fmac: brcm f_sdio_verifymemory: error -84 on reading 2048 membytes at 0x001be000
[ 6.499723] brcm fmac: brcm f_sdio_download_firmware: dongle image file download failed
[ 6.757423] Bluetooth: hci0: BCM4345C5 ’ brcm /BCM4345C5.hcd’ Patch
[ 3629.343196] usbcore: deregistering interface driver brcm fmac
[ 3652.520688] brcm fmac: F1 signature read @0x18000000=0x15294345
[ 3652.523522] brcm fmac: brcm f_of_probe: interrupt could not be mapped
[ 3652.524513] brcm fmac: brcm f_fw_alloc_request: using brcm / brcm fmac43456-sdio for chip BCM4345/9
[ 3652.535619] usbcore: registered new interface driver brcm fmac
[ 3652.754540] brcm fmac: brcm f_fw_alloc_request: using brcm / brcm fmac43456-sdio for chip BCM4345/9
[ 3652.757717] brcm fmac: brcm f_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[ 3652.778573] brcm fmac: brcm f_c_preinit_dcmds: Firmware: BCM4345/9 wl0: Feb 11 2020 11:54:51 version 7.45.96.61 (be7af2d@shgit) (r745790) FWID 01-a41d86bd es7.c5.n4.a3
sudo modprobe brcmfmac
[ 3652.523522] brcmfmac: brcmf_of_probe: interrupt could not be mapped
[ 3652.524513] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43456-sdio for chip BCM4345/9
[ 3652.754540] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43456-sdio for chip BCM4345/9
[ 3652.757717] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[ 3652.778573] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/9 wl0: Feb 11 2020 11:54:51 version 7.45.96.61 (be7af2d@shgit) (r745790) FWID 01-a41d86bd es7.c5.n4.a3
BTW, I noticed there is new image released in github. Do I need to reinstall the latest image to get the latest update or just run apt update && apt upgrade?
I also have following message pops up for several times:
[ 6360.535400] mmc2: tuning execution failed: -5
Could you tell me what is going wrong?
Thanks
Currently our apt repo is having some technical issue. After we clear it you can update with apt.
@Jing_Guo @spikerguy @stuartiannaylor To build Radxa mraa on Manjaro, you need to apply the following patch before building: curl https://github.com/eclipse/mraa/commit/aaa0a5cd4e401bde4fb3691dd4e6c70a5c61e031.patch | git apply
That repo is maintained by @Stephen and @ken so I’m not touching it for now. I’ll make sure Zero 2’s mraa is merged upstream though (just realized I need to write this piece as well ).
The eclipse one seems a better bet as all brands I guess can contribute to that and maybe we might just get distro binaries.
Thanks for the patch though as we can compile the Radxa one.
Did you mention Zero2… fingers crossed soon.
Hope @Jing_Guo is sorted one way or another now think it was just dtbo availability for other distro’s?
I have added it to the PKGBUILD
Users can get it using the following:
git clone https://github.com/spikerguy/mraa
cd mraa
makepkg -scri
Test it out and let me know.
#Try these
rfkill lists all
rfkill unblock all
sudo nano wifikeyfile.txt
ssid=“ssid”
psk=“yourpasscode”
sudo nmcli dev wifi connect “ssid” password “password”
#diagnostics:
nmcli r wifi on
#Scan WIFI
$ nmcli dev wifi
Hello, I have a radxa zero (512MB ram, no emmc) with AP6212. Is it possible that it is restricted to wifi channels 1-11?
The plain “mraa” AUR package is long out of date and doesn’t contain recent RADXA source, So I created a version that does. I also added support for aarch64, armv6h and armv7h, so it will work on raspberry pi’s etc.
Tested and confirmed working on Rock Pi 4b + Manjaro, will test ZERO once mine arrives…
https://aur.archlinux.org/packages/mraa-radxa-git
git clone https://aur.archlinux.org/mraa-radxa-git.git
cd mraa-radxa-git
makepkg
sudo pacman -U package_name_here