home-assistant / operating-system

:beginner: Home Assistant Operating System
Apache License 2.0
4.78k stars 957 forks source link

ieee80211 phy0: brcmf_fw_crashed: Firmware has halted or crashed #1227

Closed KrisRux closed 1 year ago

KrisRux commented 3 years ago

Hardware Environment

Home Assistant OS release:

agners commented 3 years ago

Hm, this seems to be similar to https://github.com/raspberrypi/linux/issues/3849, however that is about Raspberry Pi 4. But there are reports in that thread about that issue with Raspberry Pi 3 Model B. But from what I can tell, no solution so far :disappointed:

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 2 years ago

There hasn't been any activity on this issue recently. To keep our backlog manageable we have to clean old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant OS version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

mir-asp commented 2 years ago

Unfortunately, the problem still occurs in my case on RPi4. According to some users in bug reported on raspberrypi/linux it should be solved by latest firmware. HASSIO is using the same (latest) firmware: [ 3.881919] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Jan 4 2021 19:56:29 version 7.45.229 (617f1f5 CY) FWID 01-2dbd9d2e and the problem still occures. Any advices ???

agners commented 2 years ago

Any advices ???

How fast is that reproducible for you? Maybe testing with Raspberry Pi OS to see if it happens there too? If so, then reporting on the Raspberry Pi repositories might help to get it resolved.

KrisRux commented 2 years ago

Unfortunately, the problem still occurs again 274921528_10227771833471646_3002512341258527855_n .

KrisRux commented 2 years ago

This problem occurs with core-2022.5.4 - Home Assistant OS 8.0 - 32bit or 64bit OS

agners commented 2 years ago

In OS 8.0, we use the latest firmware version from https://github.com/LibreELEC/brcmfmac_sdio-firmware-rpi, which from what I understand is pretty much the latest version from what Raspberry Pi distributes.

Which Raspberry Pi 3 model are you using exactly?

Can you reproduce the problem on Raspberry Pi OS?

KrisRux commented 2 years ago

In OS 8.0, we use the latest firmware version from https://github.com/LibreELEC/brcmfmac_sdio-firmware-rpi, which from what I understand is pretty much the latest version from what Raspberry Pi distributes.

Which Raspberry Pi 3 model are you using exactly?

Can you reproduce the problem on Raspberry Pi OS?

Raspberry Pi 3 Model B ver 1.2

unfortunately, the problem is random :( I'm not able to reproduce...

agners commented 2 years ago

Hm, -123 means ENOMEDIUM, basically it seems that the WiFi chip disappears from the SDIO bus. Yeah I am sorry, really no idea how/if that can be fixed. I'd guess that this will be reproducible on Raspberry Pi OS (since we use the exact same firmware and kernel), and if so you can report it in the Raspberry Pi bug tracker (raspberrypi/linux ). Maybe its really a hardware issue. Is your power supply powerful enough? WiFi can cause quite some power spikes.

KrisRux commented 2 years ago

Hi @agners, thanks for your reply. I have changed my power supply with a new original once, but the issue continues. About power spikes of wifi, how do check this?

Krautmaster commented 2 years ago

since I did a rpi-update, my Pi Z 2 Wifi also crashes. Mostly when switching within the mesh.

Jun 25 11:43:42 pi3a dhcpcd[570]: wlan0: deleting address fe80::9470:7258:3ba7:df8d Jun 25 11:43:42 pi3a avahi-daemon[300]: Withdrawing address record for fe80::9470:7258:3ba7:df8d on wlan0. Jun 25 11:43:42 pi3a avahi-daemon[300]: Leaving mDNS multicast group on interface wlan0.IPv6 with address fe80::9470:7258:3ba7:df8d. Jun 25 11:43:42 pi3a avahi-daemon[300]: Interface wlan0.IPv6 no longer relevant for mDNS. Jun 25 11:43:42 pi3a avahi-daemon[300]: Withdrawing address record for 192.168.2.150 on wlan0. Jun 25 11:43:42 pi3a avahi-daemon[300]: Leaving mDNS multicast group on interface wlan0.IPv4 with address 192.168.2.150. Jun 25 11:43:42 pi3a avahi-daemon[300]: Interface wlan0.IPv4 no longer relevant for mDNS. Jun 25 11:43:42 pi3a dhcpcd[570]: wlan0: deleting route to 192.168.2.0/24 Jun 25 11:43:42 pi3a dhcpcd[570]: wlan0: deleting default route via 192.168.2.10 Jun 25 11:43:42 pi3a avahi-daemon[300]: Got SIGHUP, reloading. Jun 25 11:43:42 pi3a avahi-daemon[300]: No service file found in /etc/avahi/services. Jun 25 11:43:42 pi3a dhcpcd[570]: wlan0: carrier acquired Jun 25 11:43:42 pi3a dhcpcd[570]: wlan0: IAID 01:58:07:f7 Jun 25 11:43:42 pi3a dhcpcd[570]: wlan0: adding address fe80::9470:7258:3ba7:df8d Jun 25 11:43:42 pi3a avahi-daemon[300]: Joining mDNS multicast group on interface wlan0.IPv6 with address fe80::9470:7258:3ba7:df8d. Jun 25 11:43:42 pi3a avahi-daemon[300]: New relevant interface wlan0.IPv6 for mDNS. Jun 25 11:43:42 pi3a avahi-daemon[300]: Registering new address record for fe80::9470:7258:3ba7:df8d on wlan0.*. Jun 25 11:43:43 pi3a dhcpcd[570]: wlan0: soliciting an IPv6 router Jun 25 11:43:43 pi3a dhcpcd[570]: wlan0: rebinding lease of 192.168.2.150 Jun 25 11:43:44 pi3a ntpd[811]: Deleting interface #3 wlan0, 192.168.2.150#123, interface stats: received=147, sent=147, dropped=0, active_time=195 secs Jun 25 11:43:44 pi3a ntpd[811]: 185.168.228.58 local addr 192.168.2.150 -> Jun 25 11:43:44 pi3a ntpd[811]: 141.82.25.201 local addr 192.168.2.150 -> Jun 25 11:43:44 pi3a ntpd[811]: 81.7.16.52 local addr 192.168.2.150 -> Jun 25 11:43:44 pi3a ntpd[811]: 167.86.115.96 local addr 192.168.2.150 -> Jun 25 11:43:44 pi3a ntpd[811]: 116.202.26.144 local addr 192.168.2.150 -> Jun 25 11:43:44 pi3a ntpd[811]: 3.64.117.201 local addr 192.168.2.150 -> Jun 25 11:43:44 pi3a ntpd[811]: 78.46.60.40 local addr 192.168.2.150 -> Jun 25 11:43:44 pi3a ntpd[811]: 217.91.44.17 local addr 192.168.2.150 -> Jun 25 11:43:44 pi3a ntpd[811]: 176.9.102.215 local addr 192.168.2.150 -> Jun 25 11:43:44 pi3a ntpd[811]: 141.95.116.43 local addr 192.168.2.150 -> Jun 25 11:43:44 pi3a ntpd[811]: 85.214.58.202 local addr 192.168.2.150 -> Jun 25 11:43:44 pi3a ntpd[811]: 162.159.200.123 local addr 192.168.2.150 -> Jun 25 11:43:44 pi3a ntpd[811]: 129.250.35.251 local addr 192.168.2.150 -> Jun 25 11:43:44 pi3a ntpd[811]: 212.18.3.18 local addr 192.168.2.150 -> Jun 25 11:43:44 pi3a ntpd[811]: 78.47.249.55 local addr 192.168.2.150 -> Jun 25 11:43:44 pi3a ntpd[811]: 131.188.3.221 local addr 192.168.2.150 -> Jun 25 11:43:44 pi3a ntpd[811]: 192.168.2.10 local addr 192.168.2.150 -> Jun 25 11:43:48 pi3a dhcpcd[570]: wlan0: probing for an IPv4LL address Jun 25 11:43:48 pi3a dhcpcd[570]: wlan0: DHCP lease expired Jun 25 11:43:48 pi3a dhcpcd[570]: wlan0: soliciting a DHCP lease Jun 25 11:43:53 pi3a dhcpcd[570]: wlan0: using IPv4LL address 169.254.47.171 Jun 25 11:43:53 pi3a avahi-daemon[300]: Joining mDNS multicast group on interface wlan0.IPv4 with address 169.254.47.171. Jun 25 11:43:53 pi3a dhcpcd[570]: wlan0: adding route to 169.254.0.0/16 Jun 25 11:43:53 pi3a dhcpcd[570]: wlan0: adding default route Jun 25 11:43:53 pi3a avahi-daemon[300]: New relevant interface wlan0.IPv4 for mDNS. Jun 25 11:43:53 pi3a avahi-daemon[300]: Registering new address record for 169.254.47.171 on wlan0.IPv4. Jun 25 11:43:55 pi3a ntpd[811]: Listen normally on 6 wlan0 169.254.47.171:123 Jun 25 11:43:55 pi3a ntpd[811]: new interface(s) found: waking up resolver Jun 25 11:43:56 pi3a dhcpcd[570]: wlan0: no IPv6 Routers available Jun 25 11:47:28 pi3a kernel: [ 544.751249] ieee80211 phy0: brcmf_fw_crashed: Firmware has halted or crashed Jun 25 11:47:28 pi3a kernel: [ 544.835372] ieee80211 phy0: brcmf_fil_cmd_data: bus is down. we have nothing to do. Jun 25 11:47:28 pi3a kernel: [ 544.835399] ieee80211 phy0: brcmf_cfg80211_get_tx_power: error (-5) Jun 25 11:47:28 pi3a kernel: [ 545.275350] ieee80211 phy0: brcmf_netdev_start_xmit: xmit rejected state=0 Jun 25 11:47:28 pi3a avahi-daemon[300]: Interface wlan0.IPv6 no longer relevant for mDNS. Jun 25 11:47:28 pi3a avahi-daemon[300]: Leaving mDNS multicast group on interface wlan0.IPv6 with address fe80::9470:7258:3ba7:df8d. Jun 25 11:47:28 pi3a dhcpcd[570]: wlan0: carrier lost Jun 25 11:47:28 pi3a avahi-daemon[300]: Interface wlan0.IPv4 no longer relevant for mDNS. Jun 25 11:47:28 pi3a avahi-daemon[300]: Leaving mDNS multicast group on interface wlan0.IPv4 with address 169.254.47.171. Jun 25 11:47:28 pi3a avahi-daemon[300]: Withdrawing address record for fe80::9470:7258:3ba7:df8d on wlan0. Jun 25 11:47:28 pi3a avahi-daemon[300]: Withdrawing address record for 169.254.47.171 on wlan0. Jun 25 11:47:28 pi3a dhcpcd[570]: wlan0: deleting address fe80::9470:7258:3ba7:df8d Jun 25 11:47:28 pi3a dhcpcd[570]: wlan0: deleting route to 169.254.0.0/16 Jun 25 11:47:28 pi3a dhcpcd[570]: wlan0: deleting default route Jun 25 11:47:28 pi3a systemd[1]: Starting Load/Save RF Kill Switch Status... Jun 25 11:47:28 pi3a systemd[1]: Started Load/Save RF Kill Switch Status. Jun 25 11:47:28 pi3a kernel: [ 545.516943] brcmfmac: brcmf_sdiod_probe: Failed to set F1 blocksize Jun 25 11:47:28 pi3a kernel: [ 545.516996] brcmfmac: brcmf_sdio_bus_reset: Failed to probe after sdio device reset: ret -123 Jun 25 11:47:28 pi3a kernel: [ 545.517486] mmc1: card 0001 removed Jun 25 11:47:28 pi3a dhcpcd[570]: wlan0: removing interface Jun 25 11:47:28 pi3a dhcpcd-run-hooks[1163]: wlan0: stopping wpa_supplicant Jun 25 11:47:28 pi3a kernel: [ 545.624142] mmc1: queuing unknown CIS tuple 0x2c [20 f7 99 83 97 09 0f 00 ff 4b 73 8a e4 00 00 00 00 20 ff 72 7c d0 44 22 f8 26 44 d5 18 d9 a8 e1 36 ff 0f 0e 1c ff 00 4a 11 9f 24 4d 07 8e c3 ff 26 60 08 ff 83 e6 9b c8 b3 ff 25 ff 2c af 08 1f] (207 bytes) Jun 25 11:47:28 pi3a kernel: [ 545.635506] mmc1: queuing unknown CIS tuple 0x29 [02 60 d6 4e 83 17 ff 8f 53 4b 7a 40 b7 48 bc 44 55 26 7c a6 ce 44 ff 02 08 26 94 14 c5 80 40] (31 bytes) Jun 25 11:47:28 pi3a kernel: [ 545.637229] mmc1: new high speed SDIO card at address 0001 Jun 25 11:47:30 pi3a ntpd[811]: Deleting interface #5 wlan0, fe80::9470:7258:3ba7:df8d%2#123, interface stats: received=0, sent=0, dropped=0, active_time=421 secs Jun 25 11:47:30 pi3a ntpd[811]: Deleting interface #6 wlan0, 169.254.47.171#123, interface stats: received=0, sent=68, dropped=0, active_time=215 secs Jun 25 11:47:30 pi3a ntpd[811]: 192.168.2.10 local addr 169.254.47.171 -> Jun 25 11:47:30 pi3a ntpd[811]: 131.188.3.221 local addr 169.254.47.171 -> Jun 25 11:47:30 pi3a ntpd[811]: 78.47.249.55 local addr 169.254.47.171 -> Jun 25 11:47:30 pi3a ntpd[811]: 212.18.3.18 local addr 169.254.47.171 -> Jun 25 11:47:30 pi3a ntpd[811]: 129.250.35.251 local addr 169.254.47.171 -> Jun 25 11:47:30 pi3a ntpd[811]: 162.159.200.123 local addr 169.254.47.171 -> Jun 25 11:47:30 pi3a ntpd[811]: 85.214.58.202 local addr 169.254.47.171 ->

github-actions[bot] commented 1 year ago

There hasn't been any activity on this issue recently. To keep our backlog manageable we have to clean old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant OS version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.