<div dir="ltr"><div>Hello Dan,</div><div><br></div><div>First of all Happy new year and thanks for the reply.</div><div>On further debugging it looks like we need a "rmnet" driver for Netlink creation as slice interfaces.</div><div><a class="gmail-Hyperlink gmail-SCXO158234188 gmail-BCX0" href="https://dri.freedesktop.org/docs/drm/networking/device_drivers/cellular/qualcomm/rmnet.html" target="_blank" rel="noreferrer noopener" style="margin:0px;padding:0px;font-family:"Segoe UI","Segoe UI Web",Arial,Verdana,sans-serif;font-size:12px"><span class="gmail-TextRun gmail-SCXO158234188 gmail-BCX0" lang="EN-US" style="margin:0px;padding:0px;font-size:11pt;font-family:Calibri,sans-serif;line-height:19.55px;font-variant-ligatures:none"><span class="gmail-NormalTextRun gmail-SCXO158234188 gmail-BCX0" style="margin:0px;padding:0px;background-color:inherit">https://dri.freedesktop.org/docs/drm/networking/device_drivers/cellular/qualcomm/rmnet.html</span></span></a><span class="gmail-TextRun gmail-SCXO158234188 gmail-BCX0" lang="EN-US" style="margin:0px;padding:0px;color:windowtext;font-size:11pt;font-family:Calibri,sans-serif;line-height:19.55px;font-variant-ligatures:none"><span class="gmail-NormalTextRun gmail-SCXO158234188 gmail-BCX0" style="margin:0px;padding:0px;background-color:inherit"> </span></span><span class="gmail-EOP gmail-SCXO158234188 gmail-BCX0" style="margin:0px;padding:0px;color:windowtext;font-size:11pt;line-height:19.55px;font-family:Calibri,sans-serif"> </span></div><div>However Native Opernwrt -23.05 didn't had this module as part of packages, so i had to compile it as a module</div><div>Kernel : 5.15.168</div><div><br></div><div><span class="gmail-EOP gmail-SCXO158234188 gmail-BCX0" style="margin:0px;padding:0px;color:windowtext;font-size:11pt;line-height:19.55px;font-family:Calibri,sans-serif"><br></span></div><div><span class="gmail-EOP gmail-SCXO158234188 gmail-BCX0" style="margin:0px;padding:0px;color:windowtext;font-size:11pt;line-height:19.55px;font-family:Calibri,sans-serif">I followed these steps </span></div><div><span class="gmail-EOP gmail-SCXO158234188 gmail-BCX0" style="margin:0px;padding:0px;color:windowtext;font-size:11pt;line-height:19.55px;font-family:Calibri,sans-serif">-</span><span class="gmail-TextRun gmail-SCXO148205415 gmail-BCX0" lang="EN-US" style="background-color:transparent;color:windowtext;margin:0px;padding:0px;font-size:11pt;font-family:Calibri,sans-serif;line-height:19.55px;font-variant-ligatures:none"><span class="gmail-NormalTextRun gmail-SCXO148205415 gmail-BCX0" style="margin:0px;padding:0px;background-color:inherit">mmcli -m a --command='AT+WS46=36' </span></span><span class="gmail-TextRun gmail-SCXO148205415 gmail-BCX0" lang="EN-US" style="background-color:transparent;color:windowtext;margin:0px;padding:0px;font-size:11pt;font-family:Calibri,sans-serif;line-height:19.55px;font-variant-ligatures:none"><span class="gmail-NormalTextRun gmail-SCXO148205415 gmail-BCX0" style="margin:0px;padding:0px;background-color:inherit"> </span></span><span class="gmail-EOP gmail-SCXO148205415 gmail-BCX0" style="background-color:transparent;color:windowtext;margin:0px;padding:0px;font-size:11pt;line-height:19.55px;font-family:Calibri,sans-serif"> </span></div><div><font color="#000000" face="Calibri, sans-serif"><span style="font-size:14.6667px">insmod rmnet.ko</span></font></div><div class="gmail-OutlineElement gmail-Ltr gmail-BCX0 gmail-SCXO148205415" style="margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr;color:rgb(0,0,0)"><p class="gmail-Paragraph gmail-SCXO148205415 gmail-BCX0" lang="EN-US" style="margin:0px;padding:0px;vertical-align:baseline;font-kerning:none;background-color:transparent;color:windowtext"><font face="Calibri, sans-serif"><span style="font-size:14.6667px;font-variant-ligatures:none"><Delete all non-mux bearers></span></font></p></div><div class="gmail-OutlineElement gmail-Ltr gmail-BCX0 gmail-SCXO148205415" style="margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr;color:rgb(0,0,0);font-family:"Segoe UI","Segoe UI Web",Arial,Verdana,sans-serif;font-size:12px"><div class="gmail-OutlineElement gmail-Ltr gmail-BCX0 gmail-SCXO80237753" style="margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p class="gmail-Paragraph gmail-SCXO80237753 gmail-BCX0" lang="EN-US" style="margin:0px;padding:0px;vertical-align:baseline;font-kerning:none;background-color:transparent;color:windowtext"><span class="gmail-TextRun gmail-SCXO80237753 gmail-BCX0" lang="EN-US" style="margin:0px;padding:0px;color:windowtext;font-size:11pt;font-family:Calibri,sans-serif;line-height:19.55px;font-variant-ligatures:none"><span class="gmail-NormalTextRun gmail-SCXO80237753 gmail-BCX0" style="margin:0px;padding:0px;background-color:inherit">mmcli -m any --simple-connect="multiplex=</span><span class="gmail-SpellingError gmail-SCXO80237753 gmail-BCX0" style="margin:0px;padding:0px;background-repeat:repeat-x;background-position:0% 100%;background-image:url("data:image/gif;base64,R0lGODlhBQAEAJECAP////8AAAAAAAAAACH5BAEAAAIALAAAAAAFAAQAAAIIlGAXCCHrTCgAOw==");border-bottom:1px solid transparent;background-color:inherit">requested,profile</span><span class="gmail-NormalTextRun gmail-SCXO80237753 gmail-BCX0" style="margin:0px;padding:0px;background-color:inherit">-id=1,ip-type=ipv4v6"</span></span><span class="gmail-EOP gmail-SCXO80237753 gmail-BCX0" style="margin:0px;padding:0px;font-size:11pt;line-height:19.55px;font-family:Calibri,sans-serif;color:windowtext"> </span></p></div><div class="gmail-OutlineElement gmail-Ltr gmail-SCXO80237753 gmail-BCX0" style="margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p class="gmail-Paragraph gmail-SCXO80237753 gmail-BCX0" lang="EN-US" style="margin:0px;padding:0px;vertical-align:baseline;font-kerning:none;background-color:transparent;color:windowtext"><br></p></div><p class="gmail-Paragraph gmail-SCXO148205415 gmail-BCX0" lang="EN-US" style="margin:0px;padding:0px;vertical-align:baseline;font-kerning:none;background-color:transparent;color:windowtext"><span class="gmail-EOP gmail-SCXO148205415 gmail-BCX0" style="background-color:transparent;color:windowtext;margin:0px;padding:0px;font-size:11pt;line-height:19.55px;font-family:Calibri,sans-serif"></span></p><div class="gmail-OutlineElement gmail-Ltr gmail-SCXO80237753 gmail-BCX0" style="margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr"><p class="gmail-Paragraph gmail-SCXO80237753 gmail-BCX0" lang="EN-US" style="margin:0px;padding:0px;vertical-align:baseline;font-kerning:none;background-color:transparent;color:windowtext"><b>And qmapmux0.0 creation failed with "imed out waiting for link port 'net/qmapmux0.0'"</b></p><p class="gmail-Paragraph gmail-SCXO80237753 gmail-BCX0" lang="EN-US" style="margin:0px;padding:0px;vertical-align:baseline;font-kerning:none;background-color:transparent;color:windowtext"><br></p><p class="gmail-Paragraph gmail-SCXO80237753 gmail-BCX0" lang="EN-US" style="margin:0px;padding:0px;vertical-align:baseline;font-kerning:none;background-color:transparent;color:windowtext">>></p><p class="gmail-Paragraph gmail-SCXO80237753 gmail-BCX0" lang="EN-US" style="margin:0px;padding:0px;vertical-align:baseline;font-kerning:none;background-color:transparent;color:windowtext">= 1#012<<<<<< value = 03#012<<<<<< translated = ipv4-or-ipv6#012<<<<<< TLV:#012<<<<<< type = "Profile Name" (0x10)#012<<<<<< length = 8#012<<<<<< value = 70:72:6F:66:69:6C:65:31#012<<<<<< translated = profile1#012<br>2025-01-03T01:07:05.468 DEBUG daemon ModemManager[32225]: <dbg> [modem0/cdc-wdm0/qmi] multiplex support already available when setting up data format<br>2025-01-03T01:07:05.468 DEBUG daemon ModemManager[32225]: <dbg> [modem0/cdc-wdm0/qmi] Creating RMNET link with flags: ingress-map-cksumv5, egress-map-cksumv5<br>2025-01-03T01:07:05.486 DEBUG daemon ModemManager[32225]: <dbg> Using dynamic mux ID 1<br>2025-01-03T01:07:05.489 NOTICE daemon ModemManager[32225]: <msg> [modem0/bearer2] net link qmapmux0.0 created (mux id 1)<br>2025-01-03T01:07:05.489 DEBUG daemon ModemManager[32225]: <dbg> [modem0] waiting for port 'net/qmapmux0.0'...<br>2025-01-03T01:07:05.492 INFO daemon linkd[7283]: create None(qmapmux0.0): state=->down, oper=->down, carrier=->1<br>2025-01-03T01:06:47.253 WARNIN user kernel:[1451352.659164] ethtool: net: disabled offload features for qmapmux0.0<br>2025-01-03T01:07:05.614 INFO daemon ModemManager[50632]: hotplug: add network interface qmapmux0.0: event ignored: couldn't get physical device sysfs path<br>2025-01-03T01:07:07.991 WARNIN daemon ModemManager[32225]: <wrn> [modem0/bearer2] connection attempt #1 failed: Timed out waiting for link port 'net/qmapmux0.0'<br>2025-01-03T01:07:07.991 NOTICE daemon ModemManager[32225]: <msg> [modem0] state changed (connecting -> registered)<br>2025-01-03T01:07:07.992 NOTICE daemon ModemManager[32225]: <msg> [modem0/bearer2] connection #1 finished: duration 0s<br>2025-01-03T01:07:07.992 WARNIN daemon ModemManager[32225]: <wrn> [modem0] couldn't connect bearer: Timed out waiting for link port 'net/qmapmux0.0'<br>2025-01-03T01:07:07.997 INFO daemon linkd[7283]: change None(qmapmux0.0): state=down->down, oper=down->down, carrier=1->1<br>2025-01-03T01:07:08.004 INFO daemon ModemManager[50807]: hotplug: remove network interface qmapmux0.0: event processed<br>2025-01-03T01:07:08.015 DEBUG daemon ModemManager[32225]: <dbg> [base-manager] kernel event reported:<br>2025-01-03T01:07:08.015 DEBUG daemon ModemManager[32225]: <dbg> [base-manager] action: remove<br>2025-01-03T01:07:08.015 DEBUG daemon ModemManager[32225]: <dbg> [base-manager] subsystem: net<br>2025-01-03T01:07:08.015 DEBUG daemon ModemManager[32225]: <dbg> [base-manager] name: qmapmux0.0<br>2025-01-03T01:07:08.015 DEBUG daemon ModemManager[32225]: <dbg> [base-manager] uid: n/a</p></div></div><div class="gmail-OutlineElement gmail-Ltr gmail-BCX0 gmail-SCXO148205415" style="margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr;color:rgb(0,0,0);font-family:"Segoe UI","Segoe UI Web",Arial,Verdana,sans-serif;font-size:12px"><p class="gmail-Paragraph gmail-SCXO148205415 gmail-BCX0" lang="EN-US" style="margin:0px;padding:0px;vertical-align:baseline;font-kerning:none;background-color:transparent;color:windowtext"><br></p></div><div class="gmail-OutlineElement gmail-Ltr gmail-BCX0 gmail-SCXO148205415" style="margin:0px;padding:0px;overflow:visible;clear:both;direction:ltr;color:rgb(0,0,0);font-family:"Segoe UI","Segoe UI Web",Arial,Verdana,sans-serif;font-size:12px"><p class="gmail-Paragraph gmail-SCXO148205415 gmail-BCX0" lang="EN-US" style="margin:0px;padding:0px;vertical-align:baseline;font-kerning:none;background-color:transparent;color:windowtext"><span class="gmail-TextRun gmail-SCXO148205415 gmail-BCX0" lang="EN-US" style="margin:0px;padding:0px;color:windowtext;font-size:11pt;font-family:Calibri,sans-serif;line-height:19.55px;font-variant-ligatures:none"><span class="gmail-NormalTextRun gmail-SCXO148205415 gmail-BCX0" style="margin:0px;padding:0px;background-color:inherit"></span></span><span class="gmail-EOP gmail-SCXO148205415 gmail-BCX0" style="margin:0px;padding:0px;font-size:11pt;line-height:19.55px;font-family:Calibri,sans-serif;color:windowtext"> Thanks,</span></p><p class="gmail-Paragraph gmail-SCXO148205415 gmail-BCX0" lang="EN-US" style="margin:0px;padding:0px;vertical-align:baseline;font-kerning:none;background-color:transparent;color:windowtext"><span class="gmail-EOP gmail-SCXO148205415 gmail-BCX0" style="margin:0px;padding:0px;font-size:11pt;line-height:19.55px;font-family:Calibri,sans-serif;color:windowtext">Pradeep G</span></p></div><div><br></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Tue, Dec 31, 2024 at 10:44 AM Dan Williams <<a href="mailto:dan@ioncontrol.co">dan@ioncontrol.co</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 Sun, 2024-12-29 at 19:08 -0800, Pradeep Gopanapalli wrote:<br>
> Hello,<br>
> I am trying to establish multiple 5G multiplex slices on a Telit<br>
> FN990 modem running in QMI mode. These 5G slices represent multiple<br>
> PDNs managed by ModemManager (via mmcli).<br>
> <br>
> When using the "--test-multiplex-requested" option, the bearer setup<br>
> fails with the following Netlink error:<br>
> GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._g_2dio_2derror_2dquar<br>
> k.Code0: failed to create net link for device: failed to add link for<br>
> device: Could not allocate link: Failed to add link with mux id 1:<br>
> Netlink message with transaction 9 failed<br>
<br>
Unfortunately libqmi-glib doesn't print out the actual error we get<br>
from netlink, which I've fixed here:<br>
<br>
<a href="https://gitlab.freedesktop.org/mobile-broadband/libqmi/-/merge_requests/389" rel="noreferrer" target="_blank">https://gitlab.freedesktop.org/mobile-broadband/libqmi/-/merge_requests/389</a><br>
<br>
would you be able to apply that patch locally and reproduce the issue,<br>
so that we can figure out the actual error code netlink is returning?<br>
<br>
Thanks,<br>
Dan<br>
<br>
> <br>
> Environment:<br>
> * Modem: Telit FN990A28 in QMI mode<br>
> * ModemManager: 1.22.0<br>
> * libqmi: 1.34.0-2<br>
> * libmbim: 1.30.0-2<br>
> * Kernel: 5.15.150<br>
> * OpenWrt: Based on 22.03 using netifd<br>
> Debug Logs During Bearer Connection:<br>
> (PFA message_modem_debug)<br>
> 2024-12-28T00:38:03.709 DEBUG daemon ModemManager[9676]: <br>
> [1735346283.709521] [modem0/bearer1] connecting...<br>
> 2024-12-28T00:38:03.709 NOTICE daemon ModemManager[9676]: <br>
> [1735346283.709796] [modem0] state changed (registered -> connecting)<br>
> 2024-12-28T00:38:03.709 DEBUG daemon ModemManager[9676]: <br>
> [1735346283.709904] [modem0/bearer1] launching connection with QMI<br>
> port (cdc-wdm0) and data port (wwan0) (multiplex requested)<br>
> 2024-12-28T00:38:03.709 DEBUG daemon ModemManager[9676]: <br>
> [1735346283.709916] [cdc-wdm0/qmi] bringing down data interface<br>
> 'wwan0'<br>
> 2024-12-28T00:38:03.710 DEBUG daemon ModemManager[9676]: <br>
> [1735346283.710309] [cdc-wdm0/qmi] resetting expected kernel data<br>
> format to 802.3 in data interface 'wwan0'<br>
> 2024-12-28T00:38:03.897 WARN daemon ModemManager[9676]: <br>
> [1735346283.897197] [modem0/bearer1] connection attempt #1 failed:<br>
> failed to create net link for device: failed to add link for device:<br>
> Could not allocate link: Failed to add link with mux id 1: Netlink<br>
> message with transaction 1 failed<br>
> 2024-12-28T00:38:03.898 NOTICE daemon netifd: CELL1 (19170): error:<br>
> couldn't connect the modem:<br>
> 'GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._g_2dio_2derror_2dqua<br>
> rk.Code0: failed to create net link for device: failed to add link<br>
> for device: Could not allocate link: Failed to add link with mux id<br>
> 1: Netlink message with transaction 1 failed'<br>
> Similar Issue Reported:<br>
> This issue has been reported in the following GitLab issue:<br>
> GitLab ModemManager Issue #533, but I have not seen a resolution for<br>
> it.<br>
> Reference Links:<br>
> * ModemManager Mailing List - March 2022<br>
> Any assistance or suggestions on resolving this issue would be<br>
> greatly appreciated.<br>
> Thanks,<br>
> Pradeep G<br>
> <br>
> <br>
> This electronic communication and the information and any files<br>
> transmitted with it, or attached to it, are confidential and are<br>
> intended solely for the use of the individual or entity to whom it is<br>
> addressed and may contain information that is confidential, legally<br>
> privileged, protected by privacy laws, or otherwise restricted from<br>
> disclosure to anyone else. If you are not the intended recipient or<br>
> the person responsible for delivering the e-mail to the intended<br>
> recipient, you are hereby notified that any use, copying,<br>
> distributing, dissemination, forwarding, printing, or copying of this<br>
> e-mail is strictly prohibited. If you received this e-mail in error,<br>
> please return the e-mail to the sender, delete it from your computer,<br>
> and destroy any printed copy of it.<br>
<br>
</blockquote></div></div>
<br>
<span style="background-color:rgb(255,255,255)"><font size="2">This electronic communication and the information and any files transmitted with it, or attached to it, are confidential and are intended solely for the use of the individual or entity to whom it is addressed and may contain information that is confidential, legally privileged, protected by privacy laws, or otherwise restricted from disclosure to anyone else. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient, you are hereby notified that any use, copying, distributing, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited. If you received this e-mail in error, please return the e-mail to the sender, delete it from your computer, and destroy any printed copy of it.</font></span>