enzingerm / ModemManager

GNU General Public License v2.0
22 stars 2 forks source link

Upgrade to ModemManager 1.16.8 #7

Open flokli opened 3 years ago

flokli commented 3 years ago

I merged in 1.16.8, and updated all references to logging functions to use the allowed ones.

Otherwise, loading the plugin fails with

"libmm-plugin-xmm7360.so': libmm-plugin-xmm7360.so: undefined symbol: mm_err/mm_dbg"
enzingerm commented 3 years ago

Thanks for your PR. As you can see I haven't touched this project in a while, I just didn't have the need for working WWAN in the last months. Also I lost track of the current state of affairs regarding Linux support for XMM7360. There seems to be an official driver but only for 7560 and also ongoing efforts for improving the python version. At the moment I'm not sure whether it's worth following my approach (building a "native" ModemManager plugin).

flokli commented 3 years ago

Looking around a bit on the linux kernel mailing lists, there's a wwan iosm driver merged for 5.14, and ModemManager should support it in a generic fashion, according to https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/385#note_946551 - so that'd probably be more future-proof than maintaining this backend.

I didn't give any 5.14 rc a spin to see if it also exposes the 7360 modem, but will report back!

enzingerm commented 3 years ago

Thanks for the pointer. I fiddled around a bit with 5.14 but without modification it doesn't support 7360. I added the 7360 to the list of supported PCI devices, compiled the module and at least it doesn't crash. I can't communicate with the exposed AT ports, though. And the driver assumes that one of the shared memory queue pairs directly speaks MBIM, which then can be used by e.g. ModemManager. But according to the original author of xmm7360-pci, the 7360 device doesn't expose MBIM. So at the moment I'm stuck at this point.