RPi Zero W hangs for some minutes or is completely unavailable, dmesg errors

Creating a bug report/issue

I have searched the existing open and closed issues

Required Information

  • DietPi version | 9.8.0
  • Distro version | Bullseye 1
  • Kernel version | Linux RaspiZ 5.10.103+ #1529 Tue Mar 8 12:19:18 GMT 2022 armv6l GNU/Linux
  • Architecture | armhf
  • SBC model | RPi Zero W (armv6l)
  • Power supply used | Short USB-cable from Fritzbox to RPi Zero
  • SD card used | SanDisk ultra 32 GB

Additional Information (if applicable)

  • Software title | AdGuardHome as DNS-Proxy, OpenSSH, Samba client, DietPi-Ramlog
  • Was the software title installed freshly or updated/migrated? migrated
  • Can this issue be replicated on a fresh installation of DietPi? unknown
    ← If you sent a “dietpi-bugreport”, please paste the ID here →
  • Bug report ID | 39f4e3a7-fd6f-41b5-8803-df4b4f34e583

Steps to reproduce

  1. …Boot RPi Zero W
  2. …Execute dmesg | grep brcmfmac

Expected behaviour

  • No brcfmac errors

Actual behaviour

  • My headless RPi Zero was running on Buster for 3 years and updated to newest versions, nearly without problems
  • After migration to Bullseye with the scripts 6 month ago, I detected more and more situations where the RPi hangs for some minutes - not resolving the DNS traffic from my network or in some cases was completely unavailable per SSH or in some cases had 100% load (htop)
  • I supposed the SDcard to be damaged and tested it, seems to be ok
  • I set sudo iw wlan0 set power_save off
  • I found errors via dmesg | grep brcmfmac which I do not understand and may be involved in above issue, brcmf_xx lines are marked “red” (on my RPi3B+ with same version , they aren’t)

Extra details

[   12.757884] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[   12.758965] usbcore: registered new interface driver brcmfmac
[   13.018207] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[   13.031472] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Jul 19 2021 03:24:18 version 7.45.98 (TOB) (56df937 CY) FWID 01-8e14b897`

I doubt these messages are related because they are generate 12-13 seconds after reboot.

Better to check whole dmesg and journalctl around the time your issue happen.