Hi,
since I've updated from 8.0.2 to 8.1, I experience wifi-issues with the built-in Broadcom-chip on my Raspberry Pi 3. The wifi is either not connecting at startup or loses connection, usually after some time in idle state. This only happens sporadically, and in Version 8.1.0 I usually worked around it by disabling and enabling wifi again, or doing a reboot.
Meanwhile, on Version 8.1.1, it already happend several times that the system was also completely frozen after a while on that occasion. So I tried to investigate this a little:
I enabled debug-logging in kodi and I tried to put the brcmfmac-module in debug-mode, providing a file with options brcmfmac debug=0x0003FFFE in
/storage/.config/modprobe.d. I tried several values for debug, to increase verbosity (either decimal or hex), using the message levels I found here:
brcmfmac debugging and appropriate debug values | tech 4 research .
Unfortunately, I only ever got 3 lines of kernel-messages concerning brcmfmac:
[ 7.378648] usbcore: registered new interface driver brcmfmac
[ 7.524749] brcmfmac: Firmware version = wl0: Aug 7 2017 00:46:29 version 7.45.41.46 (r666254 CY) FWID 01-f8a78378
[ 8.186875] brcmfmac: power management disabled
I also installed the network-tools addon and tried to play with power-save mode and reg-domain on startup, although this seemed pretty pointless. But due to the sporadic occurences, I couldn't figure out if this had anything to do with it.
This morning, I experienced a system freeze again, and now the kernel-log contains the following lines, evidently repeating in a endless loop until the freeze:
Sep 05 09:19:30 LibreELEC kernel: net_ratelimit: 8 callbacks suppressed
Sep 05 09:19:30 LibreELEC kernel: brcmfmac: brcmf_sdio_bus_sleep: error while changing bus sleep state -110
Sep 05 09:19:30 LibreELEC kernel: brcmfmac: brcmf_sdio_txfail: sdio error, abort command and terminate frame
Sep 05 09:19:30 LibreELEC kernel: brcmfmac: brcmf_sdiod_regrw_helper: failed to write data F1@0x1000d, err: -110
Sep 05 09:19:30 LibreELEC kernel: brcmfmac: brcmf_sdiod_regrw_helper: failed to read data F1@0x1001a, err: -110
Sep 05 09:19:30 LibreELEC kernel: brcmfmac: brcmf_sdiod_regrw_helper: failed to read data F1@0x10019, err: -110
Sep 05 09:19:30 LibreELEC kernel: brcmfmac: brcmf_sdiod_regrw_helper: failed to read data F1@0x1001a, err: -110
Sep 05 09:19:30 LibreELEC kernel: brcmfmac: brcmf_sdiod_regrw_helper: failed to read data F1@0x10019, err: -110
Sep 05 09:19:30 LibreELEC kernel: brcmfmac: brcmf_sdiod_regrw_helper: failed to read data F1@0x1001a, err: -110
Sep 05 09:19:30 LibreELEC kernel: brcmfmac: brcmf_sdiod_regrw_helper: failed to read data F1@0x10019, err: -110
Sep 05 09:19:32 LibreELEC kernel: brcmfmac: brcmf_sdio_bus_sleep: error while changing bus sleep state -110
Display More
On first sight, the kodi log shows no difference to a normal bootup without the wifi issue. I also attached a full journal-log of the incident.
My System:
Raspberry Pi 3 Model B Rev 1.2
LibreELEC 8.1.1, Linux 4.9.43 #1 SMP Tue Aug 29 08:16:10 BST 2017
Wifi-firmware: 7.45.41.46 (r666254 CY), FWID 01-f8a78378
Since my wifi-environment hasn't changed over time, and the wifi has been absolutely stable in earlier versions (and other systems like recalbox on the same device), my guess is, this is related to the recent firmware-updates for bcm43438.
I hope I could already help someone who gets this error as well. Please write me, if can can do anything more to help.
Greetings