Re: Netlink failure when attempting to add multiplexed link in MBIM modem

2024-02-13 Thread Bjørn Mork
Aleksander Morgado writes: > Hey Bjørn, > > I'm getting some strange reports of failures in the netlink > communication when adding new multiplexed links in a MBIM modem, using > cdc_mbim. I also have the kernel dmesg but it doesn't give any > reference to the error, the only valid thing I have

Re: IP (v4/v6) connectivity setup in LTE modems

2024-01-31 Thread Bjørn Mork
Aleksander Morgado writes: > Hey all, > > I wrote a doc explaining how IPv4/IPv6 connectivity in LTE networks is > setup (a very basic case scenario), including different possible > interactions between host, modem and network, and focusing on how all > these are exposed by ModemManager. > > It

Re: Can ModemManager connect to multiple PDUs networks?

2024-01-22 Thread Bjørn Mork
Radu C writes: > Hi, > > There are multiple tutorials online on how to connect a modem to a 5G core > with multiple PDUs using mbimcli (like > https://www.kernel.org/doc/html/latest/networking/cdc_mbim.html#mbim-data-channel-userspace-abi, > or >

Re: qmicli-firmware-update failure on a batch of EM7455

2023-11-15 Thread Bjørn Mork
Aleksander Morgado writes: > On Wed, Nov 8, 2023 at 9:49 AM Bjørn Mork wrote: >> >> Amol Lad writes: >> >> > It seems the failure is occurring at the last chunk (#61). The status >> > returned in "134". Please advise if any idea what this error

Re: qmicli-firmware-update failure on a batch of EM7455

2023-11-08 Thread Bjørn Mork
Amol Lad writes: > It seems the failure is occurring at the last chunk (#61). The status > returned in "134". Please advise if any idea what this error status means? > > Bjørn, I saw one of your post in the mailing list regarding > qmi-firmware-update failure? Any idea what is this error? No

Re: FM350-GL (installed in ThinkPad P1 Gen 5)

2023-09-12 Thread Bjørn Mork
Thilo-Alexander Ginkel writes: > Turns out the challenge needs to be requested via --set-fcc-lock=0,0. Right. Makes sense. > Still, I can't get a valid unlock. And those challenge input values are correct? The firware isn't expecting something other than 0,0? >> Is this problem the same

Re: FM350-GL (installed in ThinkPad P1 Gen 5)

2023-09-11 Thread Bjørn Mork
Thilo-Alexander Ginkel writes: > By coincidence I spotted [2]. Could that be related? Both modems are > manufactured by Fibocom. Not sure. You're not using the proxy, are you? But you could also try with the proxy. Some USB devices aren't expecting clients to come and go while the MBM

Re: FM350-GL (installed in ThinkPad P1 Gen 5)

2023-09-07 Thread Bjørn Mork
Thilo-Alexander Ginkel writes: > meanwhile I have an idea how the FCC unlock for the FM350-GL works: > > 1. Retrieve radio state (only continue iff locked [== 0]) > 2. Get challenge from modem > via mbim_message_intel_mutual_authentication_fcc_lock_set_new > 3. Compute a SHA256 hash > 4. Unlock

Re: Support Sequans LTE module

2023-06-13 Thread Bjørn Mork
Aleksander Morgado writes: > Interestingly, I believe some of us already have some very old Sequans > modem that was sent to us like in 2013 or 2014 to test MBIM DSS. Mine > is broken and doesn't read the SIM card, but I still have it > somewhere. I'm sure your new plugin additions would be

Re: EM7565 failing if host reboots whithout power cycling the modem

2023-03-21 Thread Bjørn Mork
Aleksander Morgado writes: > Are we sure this is not an issue in the xhci driver itself? Maybe the > specific combination of modem and xhci controller triggers some corner > case that is not fully implemented correctly in xhci? > Last time I found something similar it took me 2 weeks of reading

Re: EM7565 failing if host reboots whithout power cycling the modem

2023-03-20 Thread Bjørn Mork
Peter Naulls writes: > On my setup, we have to both power cycle the modem and also cycle the USB > hub to regain proper control. OK, thanks for the information. It should not be like that, but I'm not surprised. > This latter step might be the key here - you > can use uhubctl. uhubctl is

Re: EM7565 failing if host reboots whithout power cycling the modem

2023-03-20 Thread Bjørn Mork
John Marrett writes: >> But what can be done about that? From my point of view, fixing the >> issue in the modem firmware is out of the question. The modem is running >> SWI9X50C_01.14.13.00, which the latest available. >> > > You should either open a case with the modem manufacturer if you

EM7565 failing if host reboots whithout power cycling the modem

2023-03-19 Thread Bjørn Mork
This is not an issue caused by ModemManager or any of the host drivers. Nut I don't know where else to ask. And this documents the issue for my next Google search :-) I'm using a Sierra Wireless EM7565 connected to the USB3 port of a Linksys WRT1900ACv1 "Mamba" (Marvell Armada 370/XP SoC), which

Re: Host data interface IP configuration via DHCP vs via control channel.

2022-11-10 Thread Bjørn Mork
Arjen Smit writes: > This question actually does extend to IPv6, here also via the available > control protocol (QMI/AT/etc) the connection is initiated. It is the modem > firmware that runs a SLAAC client process to receive a /64 prefix. Then > the data interface on the host is able retrieve

Re: FM350-GL (installed in ThinkPad P1 Gen 5)

2022-10-17 Thread Bjørn Mork
Aleksander Morgado writes: > See also > https://gitlab.freedesktop.org/mobile-broadband/libmbim/-/merge_requests/157 Nice. That will make it much easier to experiment with this. I found that UUID in the Windows code earlier, but Google didn't turn up much. Only relevant hit was this:

Re: FM350-GL (installed in ThinkPad P1 Gen 5)

2022-10-11 Thread Bjørn Mork
Thilo-Alexander Ginkel writes: > Hi there, > > as Lenovo couldn't fix my ThinkPad X1E4 (featuring an SDX55) I got a P1G5 > as a replacement, that, however, comes with a FM350-GL as WWAN modem. I > guess we need to play the FCC unlock game again (as it does not work out of > the box), but first

Re: Current Debian unstable ModemManager package crashes on startup, probing EM7455

2022-09-07 Thread Bjørn Mork
Aleksander Morgado writes: >> (ModemManager:223904): GLib-CRITICAL **: 09:22:43.830: g_regex_match_full: >> assertion 'regex != NULL' failed >> corrupted double-linked list >> > > The issue is triggered by the pcre1->pcre2 upgrade in glib 2.73.2, see: >

Re: RM500Q slow with qmi_wwan, fast with proprietary

2022-08-11 Thread Bjørn Mork
Nick writes: > Hey, > > I am testing a Quectel RM500Q on OpenWrt master, and have noticed to > my surprise that the speed is much slower when using the qmi_wwan with > MM than it is when using qmi_wwan_q and quectel-CM (Quectel’s > proprietary driver and connection manager). This is sort of

Re: 3gpp-set-eps-ue-mode-operation fails to set some options

2022-07-09 Thread Bjørn Mork
Qualcomm used to publish parts of their QMI related docs, both through the Code Aurora Gobi project and as part of a separate open developer program they had. But they changed their policies in 2013 or thereabout. So we don't have access to anything newer. I assume the documents are still

DHCPv6-PD in mobile networks

2022-06-22 Thread Bjørn Mork
Still struggling with this. Would appreciate any hints. Anyone tried IPv6 on a mobile connection with a shorter prefix than /64? How do you do that? Assuming DHCPv6-PD, one basic problem is the selection of source and destination addresses for the solicit. I really don't understand how this

Re: request for using X55 with Carbon X1 Gen9 under debian bookworm

2022-06-15 Thread Bjørn Mork
"Becker, Jochen" writes: > Version T99W175 F0 1 0 0 9 DT 003 075 .. > Invalid transition This is a Thinkpad with original modem? If so, I believe that firmware version uses the "new" FCC unlock method. Which means that it requires a very recent unlock script:

Re: request for using X55 with Carbon X1 Gen9 under debian bookworm

2022-06-02 Thread Bjørn Mork
You said you were using Debian Bookworm, so then I assume you are missing the mhi_wwan_mbim.ko module Loic is referring to. It was included with the Debian sid kernel only a couple of days ago: https://bugs.debian.org/1011395 So upgrade your kernel to version 5.17.11-1 (or newer) as soon as it

Re: Lenovo T99W175 / Foxconn SDX55 update on LVFS breaks FCC unlock

2022-05-10 Thread Bjørn Mork
More interesting stuff from that binary. The resource section contains 3 zip-files among other stuff. Two of these contain DPR_Table.txt files per device-id(?) and some binary blobs I don't recognise. Names might indicate NV entries? bjorn@miraculix:/tmp$ unzip -l resources/101.bin Archive:

Re: Lenovo T99W175 / Foxconn SDX55 update on LVFS breaks FCC unlock

2022-05-09 Thread Bjørn Mork
Thilo-Alexander Ginkel writes: > Hello again, > > quick update if anyone wants to have a look before I find time to do so: > The unlock is most probably in SIMService.exe, which contains the magic > string "KHOIHGIUCCHHII" that is checked for in DMI and also used by the > unlocking Snap... I

Re: Lenovo T99W175 / Foxconn SDX55 update on LVFS breaks FCC unlock

2022-05-01 Thread Bjørn Mork
Bjørn Mork writes: > Wrt the implementation: Any protocol depending on closed binaries is > broken by design, without exception. It doesn't matter whether you use > a "secret" algorithm or just store keys inside the binary. Anything that > was compiled can be de

Re: Lenovo T99W175 / Foxconn SDX55 update on LVFS breaks FCC unlock

2022-05-01 Thread Bjørn Mork
Thilo-Alexander Ginkel writes: > IIRC the snap does not support the modem running in an X1E4 that I own > and Iam not sure wthere it implements the old or the new FCC unlock. I believe this proves the experiment failed. I am sure Mark and others in Lenovo have tried. I do not doubt their good

Re: openwrt netifd integration improvements with new dispatcher scripts

2022-03-30 Thread Bjørn Mork
Aleksander Morgado writes: > Yes yes, since yesterday morning we have all libqrtr-glib, libmbim and > libqmi already built using meson in openwrt-packages, so updating them > manually to point to git main is just about changing the > PKG_SOURCE_VERSION to point to the git main commit that you

Re: openwrt netifd integration improvements with new dispatcher scripts

2022-03-29 Thread Bjørn Mork
Aleksander Morgado writes: > Hey, > > The current openwrt integration suffered from a serious problem: > network initiated disconnections were properly detected by MM but > never reported to netifd. Due to this, the modem may end up in > registered state while netifd thinks it is still

Re: Supported 5G modems

2022-03-07 Thread Bjørn Mork
"Hugo Osvaldo Barrera" writes: > Thanks for the pointers. I figured out I can make M.2 work, but from what > I see, these have an eSIM, and I'm not sure they have a regular [nano]sim > slot. Doesn't this imply that I cannot simply put a SIM card that my ISP > gives me? The SIM slots are part of

Re: Supported 5G modems

2022-03-07 Thread Bjørn Mork
Aleksander Morgado writes: > Don't know of any 5G USB dongle, although I didn't really look for any > myself. Assuming the request for 5G is primarily for higher bandwidth, then I believe it's impossible in a USB dongle. Not space enough for the antennas (unless you cheat and make them

Re: H5321gw udev rule

2022-01-19 Thread Bjørn Mork
Anton Maier writes: > Many people who use H5321gw have to adjust the udev rule to: > https://forums.linuxmint.com/viewtopic.php?t=130708 > > maybe this should be done on default? > > Secondly i have very low connection speed and i tried all kinds of things. > Is there maybe anything else i can

FCC unlock surprises after upgrading (was: Re: ANN: ModemManager 1.18.4 released)

2021-12-31 Thread Bjørn Mork
Aleksander Morgado writes: > * A new FCC unlock operation management via external scripts is >introduced, which will avoid to automatically unlock FCC locked >devices unless the user has configured the operation manually, or >unless an official vendor-provided FCC unlock tool is

Re: Issues regarding multiple MBIM bearer support

2021-06-21 Thread Bjørn Mork
detailed logs if this wasn't fixed already. >> > > Please, provide detailed logs, we need to understand why this failed > in the kernel. @Bjørn Mork any idea why it may have failed like this? > does the kernel need any additional thi

Re: EG25 integration patches in plasma mobile

2021-06-18 Thread Bjørn Mork
Aleksander Morgado writes: > The people at KDE are working on some patches to better integrate the > EG25 under suspend/resume events; they're changing not only power > related sysfs attributes, but also patching certain parts of the > kernel drivers, including the cdc-wdm driver. > >

Re: EM120 not correctly booting up, unknown wwan control port exposed?

2021-05-24 Thread Bjørn Mork
Aleksander Morgado writes: >> > I wanted to test the EM120 setup I have with latest MM git master and >> > kernel 5.13.0-rc2, but unfortunately there is some issue, not sure if >> > in device or in kernel driver. These are the kernel logs I get as >> > output when the issue happens: >> > >> > [

Re: Snapdragon X55 (Thinkpad X1 Nano w/5G Modem)

2021-05-12 Thread Bjørn Mork
Oskar Stenman writes: > After that i could run: > $ sudo qmicli -p -d /dev/wwan0p2MBIM --device-open-mbim > --dms-dell-cuskit-unlock=00 > [11 maj 2021, 23:42:36] -Warning ** [/dev/wwan0p2MBIM] couldn't detect > transport type of port: couldn't detect device driver > [11 maj 2021, 23:42:36]

Re: Snapdragon X55 (Thinkpad X1 Nano w/5G Modem)

2021-05-11 Thread Bjørn Mork
Aleksander Morgado writes: > Hey, > >> >> The problem we have now is that we no longer have a simple solution to snoop >> the trafic from windows. It was simple with USB but I have no idea how to do >> that with PCIe. I've never worked with PCI-drivers. >> - > > There has

Re: Snapdragon X55 (Thinkpad X1 Nano w/5G Modem)

2021-05-11 Thread Bjørn Mork
Aleksander Morgado writes: > I have a draft setup to test the commands provided in the custkit > tool, but never made it work I'm afraid: > https://gitlab.freedesktop.org/aleksm/libqmi/-/tree/aleksander/dell-cuskit > > That branch introduces a new qmicli --dms-dell-cuskit-unlock=[XX] > command,

Re: problems with QMI dual stack connections from MM - works with qmicli

2021-05-01 Thread Bjørn Mork
Aleksander Morgado writes: >> So maybe you'll have better luck using profiles. > > Oh, how convenient, if only we had the ability to connect using > specific existing profile ids with ModemManager... :D (it's already in > git master!) Yes, I will find some time to retest the modem with that

Re: problems with QMI dual stack connections from MM - works with qmicli

2021-04-27 Thread Bjørn Mork
Reinhard Speyerer writes: > from the observed behaviour AT+QMBNCFG="AutoSel",1 seems to have a similar > semantics as the Sierra Wireless PRI "AUTO-SIM" feature discussed recently > without the need for a device reboot. Depending on the IMSI and/or other > properties of your SIM AT+CGDCONT

Re: problems with QMI dual stack connections from MM - works with qmicli

2021-04-27 Thread Bjørn Mork
Reinhard Speyerer writes: > On Mon, Apr 26, 2021 at 06:23:01PM +0200, Bjørn Mork wrote: >> Bjørn Mork writes: >> >> > Sorry, i do not think these issues are related to ModemManager at all. >> >> This is a test from freshly booted modem, MM not running: &g

Re: problems with QMI dual stack connections from MM - works with qmicli

2021-04-26 Thread Bjørn Mork
Bjørn Mork writes: > Sorry, i do not think these issues are related to ModemManager at all. This is a test from freshly booted modem, MM not running: root@finn:~# qmicli -p -d /dev/cdc-wdm0 --device-open-sync --wda-set-data-format=ep-type=hsusb,ep-iface-number=4,link-layer-protocol=raw-ip

Re: problems with QMI dual stack connections from MM - works with qmicli

2021-04-26 Thread Bjørn Mork
Aleksander Morgado writes: >> Some observations: >> >> - dual-stack fails if default bearer is connected as ipv4 only > > Oh, but this is expected, isn't it? or is it not expected? I have > always assumed that to be the case. Yes, I guess it is expected. It was mostly the APN change that

Re: problems with QMI dual stack connections from MM - works with qmicli

2021-04-26 Thread Bjørn Mork
Aleksander Morgado writes: > Hey, > >> > Well, the direct reason is clear from the log: We skip the >> > CONNECT_STEP_IP_FAMILY_IPV4 step for bearer2+. So we can connect >> > multiple IPv6 bearers after the first one. Just not any IPv4 or >> > dual-stack. >> >> OK, an extra debug line proves

Re: problems with QMI dual stack connections from MM - works with qmicli

2021-04-24 Thread Bjørn Mork
Bjørn Mork writes: > Well, the direct reason is clear from the log: We skip the > CONNECT_STEP_IP_FAMILY_IPV4 step for bearer2+. So we can connect > multiple IPv6 bearers after the first one. Just not any IPv4 or > dual-stack. OK, an extra debug line proves that this is because

Re: problems with QMI dual stack connections from MM - works with qmicli

2021-04-24 Thread Bjørn Mork
Well, the direct reason is clear from the log: We skip the CONNECT_STEP_IP_FAMILY_IPV4 step for bearer2+. So we can connect multiple IPv6 bearers after the first one. Just not any IPv4 or dual-stack. Still clueless wrt the underlying problem. Bjørn

Re: problems with QMI dual stack connections from MM - works with qmicli

2021-04-23 Thread Bjørn Mork
FYI, dual stack works after reordering the connection sequence a bit: root@finn:/# mmcli -b 1 General| path: /org/freedesktop/ModemManager1/Bearer/1 | type: default

Re: problems with QMI dual stack connections from MM - works with qmicli

2021-04-23 Thread Bjørn Mork
Bjørn Mork writes: > But this works: Except for the minor detail that qmapv5 won't work with the muxing in qmi_wwan. Which I believe is fine, as that muxing solution is deprecated anyway. But MM still needs to be aware, and change the protocol to qmap when using the qmi_wwan muxing. Verif

Re: SEGFAULT with MM HEAD when probing

2021-04-22 Thread Bjørn Mork
Aleksander Morgado writes: >> Pushed it to git master now, thanks for the patch! >> > > I still had to push an additional fix on top of yours to fix the > gitlab pipelines :D Ah, right. That was a sloppy fix. Should have tested WITH_QRTR too. But it fixed my problem :-) Bjørn

Re: SEGFAULT with MM HEAD when probing

2021-04-22 Thread Bjørn Mork
Bjørn Mork writes: > Or give me a few days and I might be able to bisect the problem. A few meetings helps a lot with time for robotic work like bisecting :-) The winner is: commit ec375bd959f071ce01533d50a2775e8a6f69607b Author: Andrew Lassalle Date: Wed Nov 25 13:14:35 2020 -0

Re: SEGFAULT with MM HEAD when probing

2021-04-21 Thread Bjørn Mork
Elias Rudberg writes: >> [6596]: [1619029470.853036] [ttyUSB0/qcdm] opening serial > port... >> [6596]: [1619029470.854109] [ttyUSB0/qcdm] device open count > is 1 (open) >> [6596]: [1619029470.854688] [cdc-wdm0/probe] probing QMI... >> >> Thread 1 "ModemManager" received signal SIGSEGV,

Re: SEGFAULT with MM HEAD when probing

2021-04-21 Thread Bjørn Mork
Aleksander Morgado writes: >> I guess this could point to the problem? Or just mean that only crazy >> people run valgrind on MIPS ;-) >> > > I think it's the latter... :D Yes. I get the feeling there are a few OpenWrt users left and not much more. > Could be an endianness issue? that setup

Re: SEGFAULT with MM HEAD when probing

2021-04-21 Thread Bjørn Mork
Bjørn Mork writes: > Aleksander Morgado writes: > >>> Bu can't I just run valgrind on the MIPS CPU? Any hints on how to use >>> valgrind? It's one of those tools I've been thing that I should >>> explore, but never have.. >>> >> >> I ha

Re: SEGFAULT with MM HEAD when probing

2021-04-21 Thread Bjørn Mork
Aleksander Morgado writes: >> > Guess I have to figure out how to build this with a few more symbols and >> > running gdb. >> >> OK, so now I have: >> >> [6596]: [1619029470.853036] [ttyUSB0/qcdm] opening serial port... >> [6596]: [1619029470.854109] [ttyUSB0/qcdm] device open count is 1 >>

Dual SIM slots and "--set-primary-sim-slot" UI

2021-04-21 Thread Bjørn Mork
Hello! I got myself a new toy in the form of a board with dual SIM slots and a Quectel RG502Q-EA modem. Which are hardware features I haven't had access to before. So I wanted to play with the dual SIM slot support in MM. The short version is: It works like a charm! The UI confused me at

Re: SEGFAULT with MM HEAD when probing

2021-04-21 Thread Bjørn Mork
Bjørn Mork writes: > Guess I have to figure out how to build this with a few more symbols and > running gdb. OK, so now I have: [6596]: [1619029470.853036] [ttyUSB0/qcdm] opening serial port... [6596]: [1619029470.854109] [ttyUSB0/qcdm] device open count is 1 (open)

Has anyone done DHCPv6-PD over a mobile link?

2021-01-17 Thread Bjørn Mork
How did you do that? Is there any best practice? Say I have a dual stack PDN link up and running using a USB connected modem. But I am going to use this in a CPE and need more addresses than that single /64. So I want to send a DHCPv6 solicit over the mobile link requesting an IA_PD. But a

Re: Quectel EG21 modem QMI connection works but MM fallbacks to ttyUSB2 as primary port

2020-11-26 Thread Bjørn Mork
"Carl Yin(殷张成)" writes: > Maybe Rafal is same as me, newbie to the open source world, not clear > the rules of open source. > Limited by our technical ability and time, in the past , we never work > together with customers to solve issues related to ModemManager > In fact, If

Re: Instantiating rmnet devices for data ports on QRTR-based modems

2020-10-16 Thread Bjørn Mork
Aleksander Morgado writes: > And an additional question I have; what if we start using QMAP also > for qmi_wwan based modems that support it? I think it would be very > similar to your current needs with QRTR/IPA, right? See >

Re: 5G support in MBIM

2020-09-23 Thread Bjørn Mork
"Hagstrom, Walter" writes: > I have an EM9190 Sierra Wireless 5G modem, this modem only supports > MBIM and not QMI; when I make a 5G connection (I can see via !gstatus > the modem is connected on 5G), MBIM does not advertise any 5G > capabilities nor does it show the access technology is 5G. I

Re: Will modem inhibition truly release MBIM port ?

2020-09-21 Thread Bjørn Mork
Bjørn Mork writes: > Aleksander Morgado writes: > >> I've opened a new issue in gitlab for your problem: >> https://gitlab.freedesktop.org/mobile-broadband/libmbim/-/issues/9 >> Will take a look at the problem sometime this week. > > Something is incrementing t

Re: Will modem inhibition truly release MBIM port ?

2020-09-21 Thread Bjørn Mork
Aleksander Morgado writes: > I've opened a new issue in gitlab for your problem: > https://gitlab.freedesktop.org/mobile-broadband/libmbim/-/issues/9 > Will take a look at the problem sometime this week. Something is incrementing the transaction id between each fragment: [21 九 2020,

Re: Will modem inhibition truly release MBIM port ?

2020-09-17 Thread Bjørn Mork
Edward Chang writes: > [17 ¹ 2020, 08:22:51] -Warning ** [/dev/cdc-wdm_pcie] Couldn't read > descriptors file: Failed to open file > €œ/sys/devices/pci:00/:00:1d.0/:3a:00.0/descriptors€: No such > file or directory Now you made me curious. Hope you'll share this driver when

Re: Dealing with 'pdp-type-ipv4-only-allowed' errors on MBIM

2020-09-07 Thread Bjørn Mork
Aleksander Morgado writes: > How about this? > https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/merge_requests/348 Tested now. Works fine. Ends up with an ipv4v6 bearer with only ipv4 data, but that is what we asked for so I believe that is the correct thing to do.

Re: Dealing with 'pdp-type-ipv4-only-allowed' errors on MBIM

2020-09-07 Thread Bjørn Mork
Aleksander Morgado writes: > How about this? > https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/merge_requests/348 Looks like that will work. My laptop modem is a bit busy at the moment, so I haven't tested yet. Too many APNs to reconnect, and too little support for multiplexed

Dealing with 'pdp-type-ipv4-only-allowed' errors on MBIM

2020-09-06 Thread Bjørn Mork
Hello! The current MM scheme where it will tries IPV4V6 by default, and falls back to IPV4 and then IPV6 works pretty well. But I've been looking at the other end of this the last few days. And been puzzled by the fact that we get a session established on the first IPv4V6 attempt, which is then

Re: Reloading stats failed: QMI operation failed: Transaction timed out

2020-07-15 Thread Bjørn Mork
Aleksander Morgado writes: >> >> WARNING: CPU: 1 PID: 0 at /linux-4.10.0/net/sched/sch_generic.c:316 >> dev_watchdog+0x22c/0x230 >> NETDEV WATCHDOG: wwp0s (qmi_wwan): transmit queue 0 timed out >> > > Oh well, the infamous "transmit queue 0 timed out" error... That is, > as far as I know, a

Re: Fibocom L850-GL / Intel XMM7360

2020-06-22 Thread Bjørn Mork
"Wassenberg, Dennis" writes: > I tested the PCI approach. > > Unfortunately I had no luck. The kernel PCI driver at > https://github.com/xmm7360/xmm7360-pci can not initiale the modem > correctly. The modem stays at status=0xfeedb007. This seems to mean > that the modem is (still) booting. After

Re: Fibocom L850-GL / Intel XMM7360

2020-06-18 Thread Bjørn Mork
"Wassenberg, Dennis" writes: > After that dmesg shows this: > [ 930.843781] usb 1-7: new high-speed USB device number 16 using xhci_hcd > [ 930.996572] usb 1-7: New USB device found, idVendor=8087, idProduct=07f5, > bcdDevice= 0.00 > [ 930.996577] usb 1-7: New USB device strings: Mfr=0,

Re: OpenWrt: unexpected disconnect requiring manual restart of ModemManager

2020-04-26 Thread Bjørn Mork
Aleksander Morgado writes: > Anyway, as you also said, having lost the AT port may indicate other > kinds of internal problems, so attempting to trigger a reset ourselves > wouldn't be that bad in this case? I'm open to suggestions on how to > best handle this. Until now ModemManager hasn't done

OpenWrt: unexpected disconnect requiring manual restart of ModemManager

2020-04-25 Thread Bjørn Mork
Hello! I am currently using my EM7565 mostly as a backup link, connected to a Linksys WRT1900ACv1 running a recent OpenWrt build, using the current ModemManager package there. I find this setup very convenient for occasional testing of QMI or ModemManager stuff, whether it is OpenWrt related or

Re: How configure the modem PIN, when not using NM

2020-02-07 Thread Bjørn Mork
Martin writes: > On 2020-02-07 10:50, Bjørn Mork wrote: >> Maybe disabling the pin is an option? MM can do that. IMHO, there's >> not much security value in the pin anyway if you are storing it on the >> host system... > > It's more about the sec

Re: How configure the modem PIN, when not using NM

2020-02-07 Thread Bjørn Mork
Aleksander Morgado writes: >> I'm using a modem just for SMS, i.e. no mobile internet. >> Therefore, NM does not control my modem and maybe I will remove NM. >> I can set the pin using mmcli, but it should be automatic. >> How would I configure that? >> > > ModemManager doesn't keep any state or

Re: (Polkit issue) allowing anyone, or a specific user, to perform actions on Modems

2020-02-02 Thread Bjørn Mork
Enrico Mioso writes: > the subjct says it all! Thanks guys!! :) Don't know if this is sufficient, but I have this file which I believe allows any member of the 'netdev' group to manage NM and MM: root@miraculix:/tmp# cat /etc/polkit-1/localauthority/50-local.d/42-miraculix.pkla # $Id:

Re: Fibocom L850-GL / Intel XMM7360 support

2020-01-08 Thread Bjørn Mork
James Wah writes: > Hi gang, > > I've been working on a PCI driver for the Fibocom L850-GL, and while > it's very rough at this point, it sure does transfer data. > > If anyone is interested in developing support in MM, or in shaping > the kernel driver into something people might actually want

Re: Modem kernel driver changes from cdc_mbim to qmi_wwan after suspend/resume?

2019-12-19 Thread Bjørn Mork
Aleksander Morgado writes: > The user reports the following: > > root@angelo-thinkpad-x1-carbon-4th:~# cat /sys/bus/usb/drivers/qmi_wwan/new_id > 1199 9079 > root@angelo-thinkpad-x1-carbon-4th:~# cat > /sys/bus/usb/drivers/qmi_wwan/remove_id > 1199 9079 > > Does this mean something is injecting

Re: Modem kernel driver changes from cdc_mbim to qmi_wwan after suspend/resume?

2019-12-19 Thread Bjørn Mork
Aleksander Morgado writes: > Hey Bjørn & all, > > I wonder if you have any idea why this issue is happening? > https://gitlab.freedesktop.org/mobile-broadband/ModemManager/issues/165#note_368404 > > We can see how the kernel driver reported as managing the device that > owns the cdc-wdm port

Re: --firmware-list crashes modemmanager?

2019-11-17 Thread Bjørn Mork
Amol Lad writes: > Surprising; I'm kind of sure there is a crash when running > --firmware-list command. I'm using Sierra EM7430 in MBIM mode. qmicli > output is below. What is your configuration? I'm using a Sierra EM7565 in QMI mode on OpenWrt. There's only one image installed. The qmicli

Re: OpenWrt package and udev rules

2019-11-15 Thread Bjørn Mork
Enrico Mioso writes: > Or the keep.d directory... ? Except that change won't survive sysupgrade. /etc/sysupgrade.conf will Bjørn ___ ModemManager-devel mailing list ModemManager-devel@lists.freedesktop.org

Re: --firmware-list crashes modemmanager?

2019-11-15 Thread Bjørn Mork
Amol Lad writes: > root@OpenWrt:/# mmcli -m 0 --firmware-list > error: couldn't list firmware images: > 'GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient > disconnected from message bus without replying' Odd. Works for me: root@wrt1900ac-1:/# mmcli -m 0 --firmware-list

Re: OpenWrt package and udev rules

2019-11-15 Thread Bjørn Mork
Bjørn Mork writes: > Aleksander Morgado writes: > >> Just add a ID_MM_DEVICE_IGNORE rule as you would have done with udev, >> and restart the daemon. > > I should obviously have tried that first. Worked perfectly. After a > reboot though. I believe the caching made

Re: Regression regarding ip_type when updating from 1.10.4 to 1.12.0

2019-11-15 Thread Bjørn Mork
Nick B writes: > Ah right, I see the problem now. I think Dan’s suggestions would help > tremendously. > > Nevertheless, I tried ipv4v6 on Optus and Telstra in Australia. On > Telstra I get both, on Optus I’ll only get IPv4. Specifying IPv6 on > Optus yields no connection. So maybe it’s

Re: Event ring full using qmi_wwan but not cdc_mbim

2019-11-13 Thread Bjørn Mork
Nick B writes: > I have noticed that when using qmi_wwan when I run a speed test I will > start to see a fair amount (more than ten per test) of these... > [ 643.225139] xhci-hcd xhci-hcd.0.auto: ERROR unknown event type 37 > > I have searched around and found that it is probably an "even ring

OpenWrt package and udev rules

2019-11-13 Thread Bjørn Mork
Hello! I noticed that the package comes with the udev rules. Why is that? The are explicitly installed by the makefile install rule: define Package/modemmanager/install $(INSTALL_DIR) $(1)/lib/udev/rules.d $(INSTALL_DATA) $(PKG_INSTALL_DIR)/lib/udev/rules.d/*.rules

Re: Issues with IPv4v6 and IPv6 on openwrt with a Quectel EG06-E

2019-11-08 Thread Bjørn Mork
Aleksander Morgado writes: > Will have to continue investigating, but I believe the > IPv6/IPv4v6 support in the MM protocol handler is good enough now to > be sent to openwrt packages for review :D Definitely. Off Topic: OpenWrt has lots of hidden features I really like. I wanted to use

Re: Issues with IPv4v6 and IPv6 on openwrt with a Quectel EG06-E

2019-11-08 Thread Bjørn Mork
Aleksander Morgado writes: > Ok! we're close then. Looks like the IPv6 part may be overwriting the IPv4 > one. > Could you retry with the attached patch applied? Success! root@wrt1900ac-1:~# ifstatus mm { "up": true, "pending": false, "available": true,

Re: Issues with IPv4v6 and IPv6 on openwrt with a Quectel EG06-E

2019-11-08 Thread Bjørn Mork
Bjørn Mork writes: >> Lovely! Thanks for doing this test. If you could try to retest after >> rebooting the router to see if the settings are applied correctly, >> that would be fantastic. > > Will try. I guess I should figure out how to get some debugging out of

Re: Issues with IPv4v6 and IPv6 on openwrt with a Quectel EG06-E

2019-11-08 Thread Bjørn Mork
Aleksander Morgado writes: > Hey Bjørn, > >> > I'm trying to test IPv4v6 and IPv6 using a Quectel EG06-E, which runs >> > in QMI mode. This is in OpenWRT, using this branch that I'm working >> > on: >> >

Re: Issues with IPv4v6 and IPv6 on openwrt with a Quectel EG06-E

2019-11-07 Thread Bjørn Mork
Aleksander Morgado writes: > Hey Thomas, Bjørn and all, > > I'm trying to test IPv4v6 and IPv6 using a Quectel EG06-E, which runs > in QMI mode. This is in OpenWRT, using this branch that I'm working > on: >

Re: Strange Resume behaviour of N5321 since 4.19

2019-11-07 Thread Bjørn Mork
Torsten Hilbrich writes: > Versions: > > ModemManager: 1.10.4 > libmbim: 1.18.2 > libqmi: 1.22.4 > > After updating our kernel from kernel v4.14.65 to v4.19.65 we got strange > behaviour when performing S3. > > The WWAN modem often disappears from the USB bus and reappears with a > different

Re: Modemmanager significant startup delay

2019-08-22 Thread Bjørn Mork
Dan Williams writes: > On Wed, 2019-08-21 at 12:23 +, Amol Lad wrote: >> Please help with this. What could be the cause of significant MM >> startup delay? > > When started, or when a new modem is plugged attached, ModemManager > runs through a hardware detection sequence to figure out

Re: dhcpcd: raw-ip support

2019-08-19 Thread Bjørn Mork
Yegor Yefremov writes: > I have a project where I'm using dhcpcd client. It is working without > any problems with older modems like Quectel UC20 etc. But now we want > to switch to SIM7600G-H and it is working in raw-ip mode. So far only > udhcpc can handle such MAC address-less interfaces. > >

Re: Merge into OpenWrt?

2019-05-02 Thread Bjørn Mork
Nick writes: > Is there any interest in making ModemManager an official OpenWrt > package? Yes. Aleksander already requested help doing that: https://lists.freedesktop.org/archives/modemmanager-devel/2019-April/007201.html > It seems like they would accept it. Is there a TODO? >

Re: Where are you using ModemManager?

2019-03-29 Thread Bjørn Mork
Ulrich Mohr writes: > Hey, > > We at Semex-Engcon use ModemManager in our vibration monitoring > solution: https://www.semex-engcon.com/en/products/menhir. > > The device is used to monitor vibrations for civil engineering > (e.g. construction sites) or seismic applications. > > The device runs

Re: How other applications use the ports that occupied by MM

2019-03-21 Thread Bjørn Mork
"Bowden, Brendan" writes: > We're looking at using the AT port to get a few status values that > don't appear to be readily available from QMI. One we need in > particular is device temperature (there's a hardware failure condition > that manifests as a very high temperature value). Of course

Re: Planning to add a PCIe(not in USB protocol) device

2019-03-15 Thread Bjørn Mork
matthew stanger writes: >> >> Forgot to comment on this. They use a SIMCom SIM7100E or SIM7100A WWAN >> module according to >> https://developer.puri.sm/Librem5/Hardware_Reference.html > > Oh that's new, they where going to use the PLS8 with PCIe. That's what got > my attention. That's also a

Re: Planning to add a PCIe(not in USB protocol) device

2019-03-15 Thread Bjørn Mork
matthew stanger writes: > I thought > the (Librem 5 Linux Phone) ( https://puri.sm/products/librem-5/ ) was > already using MM with PCIe? I know that's their plan. Forgot to comment on this. They use a SIMCom SIM7100E or SIM7100A WWAN module according to

Re: Planning to add a PCIe(not in USB protocol) device

2019-03-15 Thread Bjørn Mork
matthew stanger writes: > Is this thread implying the MM doesn't support PCIe in general? No. Only that kernel drivers are required. The situation for USB devices is good because there are only a few host<->device protocols in use, and those protocols are well known by now. We even have a

Re: Planning to add a PCIe(not in USB protocol) device

2019-03-15 Thread Bjørn Mork
王道之 writes: > Intel have the plan to opensource the PCIe driver. I would put it here > once the Intel opensource it. Looking forward to that! Bjørn ___ ModemManager-devel mailing list ModemManager-devel@lists.freedesktop.org

Re: Planning to add a PCIe(not in USB protocol) device

2019-03-15 Thread Bjørn Mork
cture >now in use. And I add two UDEV flag to set the subsystem and port name >of >the virtual ports, flags named ID_MM_VIRTUAL_SUBSYSTEMS and >ID_MM_VIRTUAL_NAME, the way that the two new flags work just like the >already existing UDE flag D_MM_PHYSDEV_UID did. In this way, the MM &g

  1   2   3   >