Open sub0ne opened 4 years ago
The message "mailbox indicates firmware halted" said that the Wifi firmware has crashed.
Please provide more information:
Raspberry Pi model 3b+
Wifi firmware version (dmesg) will post later
Model version of your Fritzbox Fritzbox 7490, latest OS Version 7.12
Raspberry Pi Wifi configuration (without password ;-) ) just supplied the passwort, nothing special here
network={ ssid="XXX" psk=### }
Are you able to trigger this issue by moving the Raspberry Pi out of reach and back again? didn't try this yet. Maybe I can also try to turn my routers wifi off and back on.
Are there any additional network services on the Raspberry Pi which could trigger the crash? it's running iobroker, ha-bridge and deconz but the error already occured before setting up my home automation.
@sub0ne Any answers to the remaining questions? Or has the problem fixed itself?
I now did an apt-get update/full-upgrade and some brcmf files were updated. Hoping the problem would be fixed but it is not. After 2 weeks of flawless connection wifi connection dropped again and I am not able to reach the pi. This think is indeed pretty instable...
I now did an apt-get update/full-upgrade and some brcmf files were updated. Hoping the problem would be fixed but it is not. After 2 weeks of flawless connection wifi connection dropped again and I am not able to reach the pi. This think is indeed pretty instable...
Once a day is unstable, once every two weeks is pretty good in my experience! Anyway, do you have any dmesg reports at the point of failure?
are you serious...once every two weeks is good? I'm using my pi as productive home automation gateway and I have to say it is really annoying when you wanna go to bed and the light is not turning off - I changed to wired connection now.
Regarding the log...is this different somehow from my first syslog post? it's always repeating the same line:
Sep 23 00:46:11 raspberrypi dhcpcd[475]: wlan0: DHCPv6 REPLY: in stateless mode
Sep 23 00:46:53 raspberrypi kernel: [190079.012984] brcmfmac: brcmf_sdio_hostmail: mailbox indicates firmware halted
Sep 23 00:47:00 raspberrypi kernel: [190086.579355] brcmfmac: brcmf_sdio_bus_rxctl: resumed on timeout
Sep 23 00:47:00 raspberrypi kernel: [190086.579566] brcmfmac: brcmf_sdio_checkdied: firmware trap in dongle
Sep 23 00:47:00 raspberrypi kernel: [190086.579575] brcmfmac: brcmf_cfg80211_get_channel: chanspec failed (-110)
and from then on and on and on...this obviously look like a f**k up in the wifi firmware, doesn't it? Minutes before it crashed it reconnected (00:45:50)
Not good overall, just in my experience with wireless adapters etc.
It is a problem with the wireless firmware. Which we don't have access to so will need to be reported to Cypress who provide the chip. They are not a fast responding company. Not the only issue IIRC that also involves the Fritzbox , so probably a combination that causes the problem. What that combo is is anyone's guess.
@sub0ne - I have a similar issue. RPi 3B+ running 2020-05-27-raspios-buster-lite-armhf.zip
Aug 21 23:41:30 storage01 dhcpcd[355]: wlan0: carrier lost
Aug 21 23:41:30 storage01 dhcpcd[355]: wlan0: deleting address fe80::d4b9:f8d0:b202:ae0e
Aug 21 23:41:30 storage01 avahi-daemon[324]: Withdrawing address record for fe80::d4b9:f8d0:b202:ae0e on wlan0.
Aug 21 23:41:30 storage01 avahi-daemon[324]: Leaving mDNS multicast group on interface wlan0.IPv6 with address fe80::d4b9:f8d0:b202:ae0e.
Aug 21 23:41:30 storage01 avahi-daemon[324]: Interface wlan0.IPv6 no longer relevant for mDNS.
Aug 21 23:41:30 storage01 avahi-daemon[324]: Withdrawing address record for 10.10.1.24 on wlan0.
Aug 21 23:41:30 storage01 avahi-daemon[324]: Leaving mDNS multicast group on interface wlan0.IPv4 with address 10.10.1.24.
Aug 21 23:41:30 storage01 avahi-daemon[324]: Interface wlan0.IPv4 no longer relevant for mDNS.
Aug 21 23:41:30 storage01 dhcpcd[355]: wlan0: deleting route to 10.10.1.0/24
Aug 21 23:41:30 storage01 dhcpcd[355]: wlan0: deleting default route via 10.10.1.1
Aug 21 23:41:36 storage01 dhcpcd[355]: wlan0: carrier acquired
Aug 21 23:41:36 storage01 dhcpcd[355]: wlan0: IAID eb:62:87:a3
Aug 21 23:41:36 storage01 dhcpcd[355]: wlan0: adding address fe80::d4b9:f8d0:b202:ae0e
Aug 21 23:41:36 storage01 avahi-daemon[324]: Joining mDNS multicast group on interface wlan0.IPv6 with address fe80::d4b9:f8d0:b202:ae0e.
Aug 21 23:41:36 storage01 avahi-daemon[324]: New relevant interface wlan0.IPv6 for mDNS.
Aug 21 23:41:36 storage01 avahi-daemon[324]: Registering new address record for fe80::d4b9:f8d0:b202:ae0e on wlan0.*.
Aug 21 23:41:36 storage01 dhcpcd[355]: wlan0: soliciting an IPv6 router
Aug 21 23:41:36 storage01 dhcpcd[355]: wlan0: rebinding lease of 10.10.1.24
Aug 21 23:41:36 storage01 dhcpcd[355]: wlan0: probing address 10.10.1.24/24
Aug 21 23:41:41 storage01 dhcpcd[355]: wlan0: leased 10.10.1.24 for 7200 seconds
Aug 21 23:41:41 storage01 avahi-daemon[324]: Joining mDNS multicast group on interface wlan0.IPv4 with address 10.10.1.24.
Aug 21 23:41:41 storage01 avahi-daemon[324]: New relevant interface wlan0.IPv4 for mDNS.
Aug 21 23:41:41 storage01 avahi-daemon[324]: Registering new address record for 10.10.1.24 on wlan0.IPv4.
Aug 21 23:41:41 storage01 dhcpcd[355]: wlan0: adding route to 10.10.1.0/24
Aug 21 23:41:41 storage01 dhcpcd[355]: wlan0: adding default route via 10.10.1.1
Aug 21 23:41:49 storage01 dhcpcd[355]: wlan0: no IPv6 Routers available
I am using raspberry pi 4b+ 4gb model. I am facing same issues. The dhcp service keeps on deleting the assigned ip and avahi-daemon restarting the network service again and again. I tried turning off the power_save mode using:
sudo iw wlan0 set power_save off
But still facing the issues with connection to wifi. Unable to connect to wifi. I also tried to update the timezone, but timezone is not in sync with my local time. I tried adjusting the timezone manually also, still timezone is not in sync and may be because of this the wifi does not work. I then tried on different raspberry pi 4b+ devices. I have 4 raspberry pi 4b+, and all have same issue of wifi connection. Need assistance and help to resolve this issue.
I am still facing this issue with a raspi 5 8GB model.
If you think you have wifi firmware issues and you want to help debug them, you could add the following to the end of the kernel command line brcmfmac.debug=0x100400
You do this by by adding that to the end of the first line in /boot/firmware/cmdline.txt or /boot/cmdline.txt. Then reboot, reproduce the problem and attach the output of dmesg as a file. Thanks.
Hi @peterharperuk
Sure, I enabled the debug and this is the outcome:
Mar 15 16:09:07 raspberrypi kernel: brcmfmac: F1 signature read @0x18000000=0x15264345
Mar 15 16:09:07 raspberrypi kernel: brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
Mar 15 16:09:07 raspberrypi kernel: usbcore: registered new interface driver brcmfmac
Mar 15 16:09:07 raspberrypi kernel: brcmfmac_wcc: brcmf_wcc_attach: executing
Mar 15 16:09:07 raspberrypi kernel: brcmfmac: brcmf_c_process_txcap_blob: no txcap_blob available (err=-2)
Mar 15 16:09:07 raspberrypi kernel: brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Apr 15 2021 03:03:20 version 7.45.234 (4ca95bb CY) FWID 01-996384e2
Apr 26 14:08:15 raspberrypi NetworkManager[748]: <info> [1714133295.2259] rfkill1: found Wi-Fi radio killswitch (at /sys/devices/platform/axi/1001100000.mmc/mmc_host/mmc1/mmc1:0001/mmc1:0001:1/ieee80211/phy0/rfkill1) (driver brcmfmac)
Apr 26 14:08:15 raspberrypi kernel: brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
Apr 26 14:08:22 raspberrypi kernel: brcmfmac: F1 signature read @0x18000000=0x15264345
Apr 26 14:08:22 raspberrypi kernel: brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
Apr 26 14:08:22 raspberrypi kernel: usbcore: registered new interface driver brcmfmac
Apr 26 14:08:23 raspberrypi kernel: brcmfmac_wcc: brcmf_wcc_attach: executing
Apr 26 14:08:23 raspberrypi kernel: brcmfmac: brcmf_c_process_txcap_blob: no txcap_blob available (err=-2)
Apr 26 14:08:23 raspberrypi kernel: brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Apr 15 2021 03:03:20 version 7.45.234 (4ca95bb CY) FWID 01-996384e2
Apr 26 14:08:23 raspberrypi NetworkManager[771]: <info> [1714133303.6859] rfkill1: found Wi-Fi radio killswitch (at /sys/devices/platform/axi/1001100000.mmc/mmc_host/mmc1/mmc1:0001/mmc1:0001:1/ieee80211/phy0/rfkill1) (driver brcmfmac)
Apr 26 14:08:23 raspberrypi kernel: brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
Apr 26 14:13:03 raspberrypi kernel: brcmfmac: F1 signature read @0x18000000=0x15264345
Apr 26 14:13:03 raspberrypi kernel: brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
Apr 26 14:13:04 raspberrypi kernel: usbcore: registered new interface driver brcmfmac
Apr 26 14:13:04 raspberrypi kernel: brcmfmac_wcc: brcmf_wcc_attach: executing
Apr 26 14:13:04 raspberrypi kernel: brcmfmac: brcmf_c_process_txcap_blob: no txcap_blob available (err=-2)
Apr 26 14:13:04 raspberrypi kernel: brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Apr 15 2021 03:03:20 version 7.45.234 (4ca95bb CY) FWID 01-996384e2
Apr 26 14:13:05 raspberrypi NetworkManager[748]: <info> [1714133585.4291] rfkill1: found Wi-Fi radio killswitch (at /sys/devices/platform/axi/1001100000.mmc/mmc_host/mmc1/mmc1:0001/mmc1:0001:1/ieee80211/phy0/rfkill1) (driver brcmfmac)
Apr 26 14:13:05 raspberrypi kernel: brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
Apr 26 14:12:46 raspberrypi kernel: brcmfmac: F1 signature read @0x18000000=0x15264345
Apr 26 14:12:46 raspberrypi kernel: brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
Apr 26 14:12:46 raspberrypi kernel: usbcore: registered new interface driver brcmfmac
Apr 26 14:12:47 raspberrypi kernel: brcmfmac_wcc: brcmf_wcc_attach: executing
Apr 26 14:12:47 raspberrypi kernel: brcmfmac: brcmf_c_process_txcap_blob: no txcap_blob available (err=-2)
Apr 26 14:12:47 raspberrypi kernel: brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Apr 15 2021 03:03:20 version 7.45.234 (4ca95bb CY) FWID 01-996384e2
Apr 26 14:14:07 raspberrypi NetworkManager[743]: <info> [1714133647.3445] rfkill1: found Wi-Fi radio killswitch (at /sys/devices/platform/axi/1001100000.mmc/mmc_host/mmc1/mmc1:0001/mmc1:0001:1/ieee80211/phy0/rfkill1) (driver brcmfmac)
Apr 26 14:14:07 raspberrypi kernel: brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
Apr 26 15:13:14 raspberrypi kernel: brcmfmac: F1 signature read @0x18000000=0x15264345
Apr 26 15:13:14 raspberrypi kernel: brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
Apr 26 15:13:14 raspberrypi kernel: usbcore: registered new interface driver brcmfmac
Apr 26 15:13:15 raspberrypi kernel: brcmfmac_wcc: brcmf_wcc_attach: executing
Apr 26 15:13:15 raspberrypi kernel: brcmfmac: brcmf_c_process_txcap_blob: no txcap_blob available (err=-2)
Apr 26 15:13:15 raspberrypi kernel: brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Apr 15 2021 03:03:20 version 7.45.234 (4ca95bb CY) FWID 01-996384e2
Apr 26 15:13:15 raspberrypi NetworkManager[733]: <info> [1714137195.8032] rfkill1: found Wi-Fi radio killswitch (at /sys/devices/platform/axi/1001100000.mmc/mmc_host/mmc1/mmc1:0001/mmc1:0001:1/ieee80211/phy0/rfkill1) (driver brcmfmac)
Apr 26 15:13:15 raspberrypi kernel: brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
Apr 27 18:16:41 raspberrypi kernel: brcmfmac: brcmf_set_channel: set chanspec 0xd022 fail, reason -52
Apr 27 18:16:42 raspberrypi kernel: brcmfmac: brcmf_set_channel: set chanspec 0xd026 fail, reason -52
Apr 27 18:16:42 raspberrypi kernel: brcmfmac: brcmf_set_channel: set chanspec 0xd02a fail, reason -52
Apr 27 18:16:42 raspberrypi kernel: brcmfmac: brcmf_set_channel: set chanspec 0xd02e fail, reason -52
Apr 27 18:16:43 raspberrypi kernel: brcmfmac: brcmf_set_channel: set chanspec 0xd090 fail, reason -52
Apr 27 18:16:43 raspberrypi kernel: brcmfmac: brcmf_set_channel: set chanspec 0xd095 fail, reason -52
Apr 27 18:16:43 raspberrypi kernel: brcmfmac: brcmf_set_channel: set chanspec 0xd099 fail, reason -52
Apr 27 18:16:43 raspberrypi kernel: brcmfmac: brcmf_set_channel: set chanspec 0xd09d fail, reason -52
The last line is repeated for like a thousand times. Does this help? I'll also attach the full log.
@loomsen I don't see any firmware crashes in there. You might want to raise a new issue if you think you have a problem. Are you having trouble using 5G Wifi? What is the history of this device with the version of software installed?
@peterharperuk The issue is, that the device loses its connection after some time, and doesn't reconnect to the wifi. Only a restart helps, I restarted wpa_supplicant multiple times, I tried configuring the wifi info in the wpa_supplicant.conf, I re-installed Raspberry Pi OS lite multiple times, all with the same outcome. After a while, WiFi connection is lost and only a reboot helps to re-establish it. I went on and connected the PI with a cable, as I need it to be reliable. Don't know what causes it, but it seems to be a known issue for some raspi releases, judging by my google searches.
I think that this is an issue with NetworkManager
and its interaction with wpa_supplicant
. The reason I believe this to be the case is that when I switch to systemd-networkd
and wpa_supplicant
for wlan0 configuration, the WiFi connection is robust. (Of interest, I had a very similar issue, using Arch Linux and netctl
, alongside this issue with Raspberry Pi OS Lite (bookworm)).
My system is running Debian GNU/Linux 12 (bookworm) on kernel 6.6.28+rpt-rpi-v8.
The fix:
/etc/systemd/network/wlan0.network
file with the below configuration, uncommenting the appropriate block in the [Network]
section.
[Match]
Name=wlan0
[Network]
[DHCP] ClientIdentifier=mac RouteMetric=50
2. Create a `/etc/wpa_supplicant/wpa_supplicant-wlan0.conf`, populating this with:
ctrl_interface=/run/wpa_supplicant update_config=1
3. Start `wpa_supplicant` with `wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant-wlan0.conf`.
4. Enter the `wpa_supplicant` interactive prompt with `wpa_cli`.
5. Use the `scan` and `scan_results` commands to see the available networks.
scan OK
<3>CTRL-EVENT-SCAN-RESULTS scan_results bssid / frequency / signal level / flags / ssid 00:00:00:00:00:00 2462 -49 [WPA2-PSK-CCMP][ESS] MYSSID 11:11:11:11:11:11 2437 -64 [WPA2-PSK-CCMP][ESS] ANOTHERSSID ``` 6. To associate with _**MYSSID**_, add the network, and set the credentials and enable it. ``` add_network 0 set_network 0 ssid "MYSSID" set_network 0 psk "passphrase" enable_network 0 <2>CTRL-EVENT-CONNECTED - Connection to 00:00:00:00:00:00 completed (reauth) [id=0 id_str=] ``` 7. Finally save this network in the configuration file and quit `wpa_cli`: ``` save_config OK quit ``` a complete `etc/wpa_supplicant/wpa_supplicant-wlan0.conf` file should look similar to this: ``` ctrl_interface=/var/run/wpa_supplicant update_config=1 country=US
network={ ssid="MYSSID" psk=02f939c889a892c21ccebbca6d6b29b6754c16bf9533ea096bd17fa2d105 mesh_fwding=1 }
8. Install `systemd-resolved` with `sudo apt install libnss-resolve`.
9. Disable `NetworkManager` with `sudo systemctl disable NetworkManager.service`.
10. Enable `systemd-networkd` and `systemd-resolved` with `sudo systemctl enable systemd-networkd.service systemd-resolved.service`.
11. Enable the WPA-supplicant service with `sudo systemctl enable wpa_supplicant@wlan0.service`.
12. Reboot with `sudo reboot`.
**Sources:**
1. https://wiki.archlinux.org/title/systemd-networkd
2. https://wiki.archlinux.org/title/wpa_supplicant
3. https://wiki.archlinux.org/title/Network_configuration#Network_managers
4. https://docs.pikvm.org/wifi/#setting-up-wi-fi-manually
5. https://raspberrypi.stackexchange.com/a/108593
I'm on Linux raspberrypi 4.19.69-v7+ #1256 and after running few hours without problems I got the following entries in my syslog. Interesting stuff begins at 00:46:53 where brcmfmac starts to fail and never returns. The problem occurs when wifi signal is lost and should be reestablished. In my case triggered by a channel change of my router (AVM Fritz Box).
The wlan0 carrier gets lost, is reaquired and then brcmfmac starts to mess up.
No hostapd installed, just simple wifi connection to my router.