Wifi Connection issues

  • I tried installing LibreELEC today, first I used my Rock Pi 4C with Rockchip RK3399, everything worked, except for the Wifi. DHCP eventually resolved to an APIPA IP. Static IP Adresss did not either, and made my GUI bugging out. External USB Wifi doesnt seem to fix the issue.


    Then I tried installing it onto my Intel NUC (x86), however same problem as above. I actually dont have a LAN Cable at hand to debug this issue using SSH… Any recommendationsor tips?

  • From a brief search the Broadcom chip on the Rock4C should have driver/firmware and most Intel hardware is well supported too. The best advice I can give is “go find an Ethernet cable” .. in the absence of any logs or proper technical info to hint at the problem we have nothing to go on.

  • Ok, today I grabbed an LAN Cable. So it seems like this issue is related to cold/warm boot. If I fully unplug the Rock pi, The wifi continue to work. However reboot from the UI/SSH seems to fully block the driver:

    Code
    LibreELEC:~ # dmesg | grep "brcmf" 
    [    9.170243] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43456-sdio for chip BCM4345/9 
    [    9.170725] usbcore: registered new interface driver brcmfmac 
    [    9.307848] brcmfmac mmc2:0001:1: Direct firmware load for brcm/brcmfmac43456-sdio.clm_blob failed with error -2 
    [    9.636637] ieee80211 phy0: brcmf_c_preinit_dcmds: Default MAC is used, replacing with random MAC to avoid conflicts 
    [    9.636896] ieee80211 phy0: brcmf_c_set_cur_etheraddr: Setting cur_etheraddr failed, -52 
    [    9.636907] ieee80211 phy0: brcmf_bus_started: failed: -52 
    [    9.636935] ieee80211 phy0: brcmf_attach: dongle is not responding: err=-52 
    [    9.654234] brcmfmac: brcmf_sdio_firmware_callback: brcmf_attach failed

    I tried installing the official firmware from https://github.com/radxa-pkg/radx…b/firmware/brcm, however that did not do the trick too. It removed the load for brcm/brcmfmac43456-sdio.clm_blob failed with error -2  error, however the core issue still persists:

    Code
    [   10.743886] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43456-sdio for chip BCM4345/9 
    [   10.744304] usbcore: registered new interface driver brcmfmac 
    [   11.200057] ieee80211 phy0: brcmf_c_preinit_dcmds: Default MAC is used, replacing with random MAC to avoid conflicts 
    [   11.200323] ieee80211 phy0: brcmf_c_set_cur_etheraddr: Setting cur_etheraddr failed, -52 
    [   11.200330] ieee80211 phy0: brcmf_bus_started: failed: -52 
    [   11.200345] ieee80211 phy0: brcmf_attach: dongle is not responding: err=-52 
    [   11.239731] brcmfmac: brcmf_sdio_firmware_callback: brcmf_attach failed

    iw dev and ifconfig is empty.

    Removing modprobe -r brcmfmac_wcc brcmfmac and loading the module again show the same error as above.

  • Ok, I have an hotfix for this issue. properly unloading the module by modprobe -r brcmfmac_wcc brcmfmac and then rebooting fixes the issue. So adding an shutdown hook to unload those modules works.

  • Please share the full system log, e.g. journalctl | paste after a clean boot with the images in https://chewitt.libreelec.tv/testing/

    Also, what spec is the PSU? .. under-spec PSU's and ARM SoC boards often result in instability on the SDIO bus and WiFi chips draw more power than you'd think sometimes. NB: The clm_blob 'error' is completely harmless and can be ignored.