Closed fkelava closed 1 year ago
I've investigated further. The same exact board (with same exact HATs and power supply) does not exhibit any AP mode weirdness on Ubuntu Core 22. Once again, my methodology was the same; update the system to obtain the latest packages, set up NetworkManager and ModemManager, and enable the AP in the most straightforward way.
I'm happy to try and obtain further logs or traces for you to hopefully narrow this down, assuming you can reproduce it.
It worked for me this evening on an updated older image with the exact same kernel on a 4B (same wireless chip and firmware), but I can test a new Lite image on a 3B+ tomorrow.
You won't need to. I've pinpointed the defect to NetworkManager/ModemManager. I tried the latest RasPi OS 11 Lite again, using Quectel's own QMI-based connection tool for LTE and dhcpcd
, dnsmasq
and hostapd
for the AP. Lo and behold, no issue in sight. I also eventually got Ubuntu Core 22 to panic in the exact same way with NM/MM, it just took it a bit longer. Clearly there's something amiss in this specific combination- I leave it to more capable minds to discover what.
For posterity, these are my findings: if the LTE USB is attached after the system boots and the AP is already engaged, LTE will never connect and display a signal strength of 0% permanently. If the LTE USB is attached at boot, it will connect, but then any client connecting to the AP will instantly result in panic. Either works fine on its own, it's the combination that kills.
Feel free to reopen this issue if this is ever encountered in the wild again.
Describe the bug
With the latest release of Raspbian 11 Lite, when I set up the 3B+'s onboard WiFi to act as an AP and try to connect to it, I instantly experience a kernel panic. I am not sure what to ascribe it to, although at this point I have tried:
1) Replacing the power source. I have tried multiple 5V3A adapters and even a up-to-12V5A bench power supply. I do not see any undervoltage errors in my logs that would indicate insufficient power.
vcgencmd get_throttled
returns a firm0x0
. 2) Removing the add-ons I have bolted onto the Pi. I have a Sixfab 3G/4G Base HAT with Quectel EC25 modem and a Seeed dual-CAN FD hat. The addition or absence of either of these has no impact on the recurrence rate. Additionally, each has been tested to work fine standalone. 3) Scouring/var/log/kern.log
for some indication as to what has failed, applyingbrcmfmac.debug=0x100000
in/boot/cmdline.txt
. It reports errors, but I don't know what they mean nor how I can fix them. They are attached below.Steps to reproduce the behaviour
2023-02-21-raspios-bullseye-arm64-lite
.sudo raspi-config
, and swap the network stack to NetworkManager. Reboot when prompted.sudo apt update && sudo apt upgrade
to ensure latest packages. However, I can trigger the panic all the same without doing so.sudo mmcli -m 0 -e
,nmcli c add type gsm ifname 'cdc-wdm0' con-name <LTE_NAME> apn <LTE_APN>
, andnmcli r wwan on
. However, I can trigger the panic all the same without doing so.nmcli d wifi hotspot ifname wlan0 ssid <SSID> password <password>
nmcli c modify <HOTSPOT_CONN_NAME> connection.autoconnect yes
Device (s)
Raspberry Pi 3 Mod. B+
System
uname -a
:vcgencmd version
:cat /etc/rpi-issue
:Logs
The panic stack trace itself is:
dmesg | grep brcmf
yields a number of the following errors:at various intervals. The
nd_hostip_entry
line is the last to be recorded prior to panic.Additional context
No response