I have an issue with multi-container setups on a Raspberry Pi CM4 and an LTE module.
Setup details:
Host OS version: balenaOS 5.1.20+rev1
Supervisor version: 16.0.3
LTE module: Huawei ME906s
Problem description:
Note: this only happens in multi-container setups
When rebooting the device through the Balena dashboard → Actions → Reboot, it doesn’t always come back online.
When it doesn’t come back online, even connecting an ethernet cable doesn’t fix the issue, it seems the device is stuck in a mode where nothing but a power cycle can bring it back online.
Steps to repeat
- Create 2 fleets, one running a single container, the other multiple (tested with 2 and 3)
- Download the image of the single container fleet
- Modify image by adding a cellular configuration file
- flash CM4 with modified image
- Power up, wait for Balena connection
- Reboot device through Balena dashboard, it should reconnect automatically (repeat until satisfied)
- Move device to multi-container fleet
- Reboot device through Balena dashboard, it might reconnect but probably won’t (repeat until it doesn’t)
Troubleshooting so far
Moving the device to a single container fleet fixes the issue. Which in my opinion eliminates cellular or ethernet configuration issues.
Moving the device to a different multi-container fleet doesn’t fix the issue.
Note: the LTE module and SIM cards are detected no matter the fleet the device is on. This was checked using the following commands: (hostname and IMEI blocked out)
For the LTE module:
root@xxxxxx:~# lsusb
Bus 001 Device 003: ID 12d1:15c1 Huawei Technologies Co., Ltd. HUAWEI Mobile
Bus 001 Device 002: ID 0424:2514
Bus 001 Device 001: ID 1d6b:0002 Linux 5.15.92-v8 dwc2_hsotg DWC OTG Controller
For the SIM card:
root@xxxxxx:~# mmcli -L
/org/freedesktop/ModemManager1/Modem/0 [Huawei Technologies Co., Ltd.] HUAWEI Mobile
root@xxxxxx:~# mmcli -m 0
--------------------------------
General | path: /org/freedesktop/ModemManager1/Modem/0
| device id: 4fe19f9208ad42ac94b4c75e9e0f1343c1b5caaa
--------------------------------
Hardware | manufacturer: Huawei Technologies Co., Ltd.
| model: HUAWEI Mobile
| firmware revision: 11.617.00.00.00
| h/w revision: ML1ME906SM
| supported: gsm-umts, lte
| current: gsm-umts, lte
| equipment id: 867160022708402
--------------------------------
System | device: /sys/devices/platform/soc/fe980000.usb/usb1/1-1/1-1.1
| drivers: option, cdc_mbim
| plugin: huawei
| primary port: cdc-wdm0
| ports: cdc-wdm0 (mbim), ttyUSB0 (gps), wwan0 (net)
--------------------------------
Status | unlock retries: unknown (3)
| state: connected
| power state: on
| access tech: lte
| signal quality: 67% (cached)
--------------------------------
Modes | supported: allowed: 2g, 3g, 4g; preferred: none
| current: allowed: 2g, 3g, 4g; preferred: none
--------------------------------
IP | supported: ipv4, ipv6, ipv4v6
--------------------------------
3GPP | imei: xxxxxxxxxxxxxxx
| operator id: 22802
| operator name: Sunrise
| registration: roaming
| packet service state: attached
--------------------------------
SIM | primary sim path: /org/freedesktop/ModemManager1/SIM/0
--------------------------------
Bearer | paths: /org/freedesktop/ModemManager1/Bearer/0
I have tried swapping CM4, LTE module, carrier board to no avail, single-container works, multi-container doesn’t, this eliminates HW issues.
Has anyone else noticed a similar behaviour ?
Can you suggest further troubleshooting steps ?