<div dir="ltr"><div>Hi Aleksander,</div><div>I followed-up on <a href="https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/874">https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/874</a> and the problem seems to be resolved in newer version.</div><div>Specifically, I backported these 2 patches: <a href="https://github.com/balena-os/meta-balena/pull/3478/commits/2d53d2cb60a155ece0563fbb39629056e2c959d0">https://github.com/balena-os/meta-balena/pull/3478/commits/2d53d2cb60a155ece0563fbb39629056e2c959d0</a></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 31, 2024 at 6:28 PM Aleksander Morgado <<a href="mailto:aleksandermj@chromium.org">aleksandermj@chromium.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, Jul 31, 2024 at 5:12 PM Florin <<a href="mailto:florin@balena.io" target="_blank">florin@balena.io</a>> wrote:<br>
><br>
> Hi all,<br>
> we updated MM and QMI to the above versions and now the Quectel EC25 modem won't work anymore.<br>
> Previously, with MM 1.20.6 and QMI 1.32.4 the modem functioned correctly.<br>
><br>
> At system start, the modem fails to get initialized, and MM reports the following:<br>
><br>
> root@786715a:~# journalctl --no-pager -u ModemManager<br>
> Jul 08 08:06:40 localhost ModemManager[1178]: ModemManager (version 1.22.0) starting in system bus...<br>
> Jul 08 08:06:44 786715a ModemManager[1178]: [device /sys/devices/platform/soc@0/32f10108.usb/38200000.usb/xhci-hcd.2.auto/usb3/3-1/3-1.3] creating modem with plugin 'quectel' and '6' ports<br>
> Jul 08 08:06:44 786715a ModemManager[1178]: [base-manager] modem for device '/sys/devices/platform/soc@0/32f10108.usb/38200000.usb/xhci-hcd.2.auto/usb3/3-1/3-1.3' successfully created<br>
> Jul 08 08:06:44 786715a ModemManager[1178]: [base-manager] couldn't check support for device '/sys/devices/platform/soc@0/30800000.bus/308c0000.can': not supported by any plugin<br>
> Jul 08 08:06:44 786715a ModemManager[1178]: [base-manager] couldn't check support for device '/sys/devices/platform/soc@0/30800000.bus/308d0000.can': not supported by any plugin<br>
> Jul 08 08:06:44 786715a ModemManager[1178]: [base-manager] couldn't check support for device '/sys/devices/platform/soc@0/30800000.bus/30be0000.ethernet': not supported by any plugin<br>
> Jul 08 08:06:44 786715a ModemManager[1178]: [base-manager] couldn't check support for device '/sys/devices/platform/soc@0/30800000.bus/30bf0000.ethernet': not supported by any plugin<br>
> Jul 08 08:06:44 786715a ModemManager[1178]: [base-manager] couldn't check support for device '/sys/devices/platform/soc@0/33800000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0': not supported by any plugin<br>
> Jul 08 08:06:45 786715a ModemManager[1178]: [modem0] unhandled QMI radio interface '9'<br>
> Jul 08 08:06:45 786715a ModemManager[1178]: [modem0] unhandled QMI radio interface '9'<br>
> Jul 08 08:06:46 786715a ModemManager[1178]: [modem0] state changed (unknown -> disabled)<br>
> Jul 08 08:06:46 786715a ModemManager[1178]: [modem0] state changed (disabled -> enabling)<br>
> Jul 08 08:06:46 786715a ModemManager[1178]: [modem0] simple connect started...<br>
> Jul 08 08:06:46 786715a ModemManager[1178]: [modem0] simple connect state (4/10): wait to get fully enabled<br>
> Jul 08 08:06:46 786715a ModemManager[1178]: [modem0] power state updated: on<br>
> Jul 08 08:06:50 786715a ModemManager[1178]: [modem0] (quectel) modem reset detected, triggering reprobe<br>
> Jul 08 08:06:50 786715a ModemManager[1178]: [modem0] (quectel) modem reset detected, triggering reprobe<br>
<br>
These lines above may be causing problems, but the "RDY" URC handling<br>
was already present in MM 1.20.4 (see fcd393a6c2a6fa).<br>
<br>
> Jul 08 08:06:50 786715a ModemManager[1178]: [modem0] (quectel) couldn't check SIM swap: could not acquire SIM object<br>
> Jul 08 08:06:53 786715a ModemManager[1178]: [device /sys/devices/platform/soc@0/32f10108.usb/38200000.usb/xhci-hcd.2.auto/usb3/3-1/3-1.3] creating modem with plugin 'quectel' and '6' ports<br>
> Jul 08 08:06:57 786715a ModemManager[1178]: [modem0] failed waiting for final state: Too much time waiting to get to a final state<br>
> Jul 08 08:06:57 786715a ModemManager[1178]: [modem0] failed enabling modem: Operation was cancelled<br>
> Jul 08 08:10:03 786715a ModemManager[1178]: [modem1] couldn't start initialization: Transaction timed out<br>
> Jul 08 08:10:03 786715a ModemManager[1178]: [modem1] fatal error initializing: Fatal error: modem is unusable<br>
><br>
<br>
Could you update the MM init file so that it starts with --debug and<br>
so we could see the full debug logs?<br>
<br>
> The initial timing out issue seems to have been present in the past, like this post suggest: <a href="https://www.mail-archive.com/modemmanager-devel@lists.freedesktop.org/msg06797.html" rel="noreferrer" target="_blank">https://www.mail-archive.com/modemmanager-devel@lists.freedesktop.org/msg06797.html</a><br>
> I have tried increasing the interval like suggested above but it does not seem to take it into account.<br>
><br>
> So upon restarting the MM systemd service, MM now makes some progress in detecting the modem:<br>
><br>
> Jul 08 08:10:03 786715a ModemManager[1178]: [modem1] fatal error initializing: Fatal error: modem is unusable<br>
> Jul 08 08:29:02 786715a ModemManager[1178]: caught signal, shutting down...<br>
> Jul 08 08:29:02 786715a ModemManager[1178]: ModemManager is shut down<br>
> Jul 08 08:29:02 786715a ModemManager[15542]: ModemManager (version 1.22.0) starting in system bus...<br>
> Jul 08 08:29:06 786715a ModemManager[15542]: [base-manager] couldn't check support for device '/sys/devices/platform/soc@0/30800000.bus/308c0000.can': not supported by any plugin<br>
> Jul 08 08:29:06 786715a ModemManager[15542]: [base-manager] couldn't check support for device '/sys/devices/platform/soc@0/30800000.bus/308d0000.can': not supported by any plugin<br>
> Jul 08 08:29:06 786715a ModemManager[15542]: [base-manager] couldn't check support for device '/sys/devices/platform/soc@0/30800000.bus/30be0000.ethernet': not supported by any plugin<br>
> Jul 08 08:29:06 786715a ModemManager[15542]: [base-manager] couldn't check support for device '/sys/devices/platform/soc@0/30800000.bus/30bf0000.ethernet': not supported by any plugin<br>
> Jul 08 08:29:06 786715a ModemManager[15542]: [base-manager] couldn't check support for device '/sys/devices/platform/soc@0/33800000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0': not supported by any plugin<br>
> Jul 08 08:30:40 786715a ModemManager[15542]: [device /sys/devices/platform/soc@0/32f10108.usb/38200000.usb/xhci-hcd.2.auto/usb3/3-1/3-1.3] creating modem with plugin 'quectel' and '6' ports<br>
> Jul 08 08:30:40 786715a ModemManager[15542]: [plugin/quectel] could not grab port cdc-wdm0: Cannot add port 'usbmisc/cdc-wdm0', unhandled port type<br>
<br>
This is bad, we're ignoring the cdc-wdm port altogether, so the wwan0<br>
netdev will also be ignored.<br>
<br>
> Jul 08 08:30:40 786715a ModemManager[15542]: [base-manager] modem for device '/sys/devices/platform/soc@0/32f10108.usb/38200000.usb/xhci-hcd.2.auto/usb3/3-1/3-1.3' successfully created<br>
> Jul 08 08:30:40 786715a ModemManager[15542]: [modem0] state changed (unknown -> disabled)<br>
> Jul 08 08:30:40 786715a ModemManager[15542]: [modem0] state changed (disabled -> enabling)<br>
> Jul 08 08:30:40 786715a ModemManager[15542]: [modem0] simple connect started...<br>
> Jul 08 08:30:40 786715a ModemManager[15542]: [modem0] simple connect state (4/10): wait to get fully enabled<br>
> Jul 08 08:30:41 786715a ModemManager[15542]: [modem0] power state updated: on<br>
> Jul 08 08:30:42 786715a ModemManager[15542]: [modem0] state changed (enabling -> enabled)<br>
> Jul 08 08:30:42 786715a ModemManager[15542]: [modem0] simple connect state (5/10): wait after enabled<br>
> Jul 08 08:30:42 786715a ModemManager[15542]: [modem0] 3GPP registration state changed (unknown -> registering)<br>
> Jul 08 08:30:42 786715a ModemManager[15542]: [modem0] 3GPP packet service state changed (unknown -> attached)<br>
> Jul 08 08:30:42 786715a ModemManager[15542]: [modem0] 3GPP registration state changed (registering -> roaming)<br>
> Jul 08 08:30:42 786715a ModemManager[15542]: [modem0] state changed (enabled -> registered)<br>
> Jul 08 08:30:42 786715a ModemManager[15542]: [modem0] simple connect state (6/10): register<br>
> Jul 08 08:30:42 786715a ModemManager[15542]: [modem0] simple connect state (7/10): wait to get packet service state attached<br>
> Jul 08 08:30:42 786715a ModemManager[15542]: [modem0] simple connect state (8/10): bearer<br>
> Jul 08 08:30:42 786715a ModemManager[15542]: [modem0] simple connect state (9/10): connect<br>
> Jul 08 08:30:42 786715a ModemManager[15542]: [modem0] state changed (registered -> connecting)<br>
> Jul 08 08:30:42 786715a ModemManager[15542]: [modem0] state changed (connecting -> connected)<br>
> Jul 08 08:30:42 786715a ModemManager[15542]: [modem0] simple connect state (10/10): all done<br>
><br>
> but as it can be seen above, it errors out at some point: Jul 08 08:30:40 786715a ModemManager[15542]: [plugin/quectel] could not grab port cdc-wdm0: Cannot add port 'usbmisc/cdc-wdm0', unhandled port type<br>
><br>
> This makes it ignore the wwan0 port:<br>
<br>
Yes, this is bad.<br>
<br>
><br>
> root@786715a:~# mmcli -m 0<br>
> --------------------------------<br>
> General | path: /org/freedesktop/ModemManager1/Modem/0<br>
> | device id: 21e80447381cd2cd9538ba5eea33a9356cefec6e<br>
> --------------------------------<br>
> Hardware | manufacturer: Quectel<br>
> | model: EC25<br>
> | firmware revision: EC25AFAR05A06M4G<br>
> | supported: gsm-umts, lte<br>
> | current: gsm-umts, lte<br>
> | equipment id: 860858061494670<br>
> --------------------------------<br>
> System | device: /sys/devices/platform/soc@0/32f10108.usb/38200000.usb/xhci-hcd.2.auto/usb3/3-1/3-1.3<br>
> | physdev: /sys/devices/platform/soc@0/32f10108.usb/38200000.usb/xhci-hcd.2.auto/usb3/3-1/3-1.3<br>
> | drivers: option, qmi_wwan<br>
> | plugin: quectel<br>
> | primary port: ttyUSB2<br>
> | ports: ttyUSB0 (ignored), ttyUSB1 (gps), ttyUSB2 (at),<br>
> | ttyUSB3 (at), wwan0 (ignored)<br>
> --------------------------------<br>
> Status | unlock retries: sim-pin (3), sim-puk (10), sim-pin2 (3), sim-puk2 (10)<br>
> | state: connected<br>
> | power state: on<br>
> | access tech: lte<br>
> | signal quality: 80% (recent)<br>
> --------------------------------<br>
> Modes | supported: allowed: 2g, 3g, 4g; preferred: none<br>
> | current: allowed: 2g, 3g, 4g; preferred: none<br>
> --------------------------------<br>
> IP | supported: ipv4, ipv6, ipv4v6<br>
> --------------------------------<br>
> 3GPP | imei: 860858061494670<br>
> | operator id: 310410<br>
> | operator name: AT&T Hologram<br>
> | registration: roaming<br>
> | packet service state: attached<br>
> --------------------------------<br>
> 3GPP EPS | ue mode of operation: ps-2<br>
> --------------------------------<br>
> SIM | primary sim path: /org/freedesktop/ModemManager1/SIM/0<br>
> --------------------------------<br>
> Bearer | paths: /org/freedesktop/ModemManager1/Bearer/0<br>
><br>
> Any advice on what to look for to determine the issue?<br>
><br>
<br>
As said above, please try to enable debug logs in the MM init file by<br>
adding --debug to the daemon start line, and then share the debug<br>
logs. We need to understand how all this is failing.<br>
<br>
-- <br>
Aleksander<br>
</blockquote></div>