Comments (9)
Will do! Tomorrow will be a good time for testing.
from xmm7360-pci.
Can you explain how to test it ? Ubuntu 24.04 LTS
from xmm7360-pci.
I don't have Ubuntu. But here is how I test it under Fedora 40, and it should be the same under Ubuntu:
- Install the build dependencies:
$ # for Fedora
$ sudo dnf builddep ModemManager libmbim
$
$ # for Ubuntu
$ sudo apt build-dep modemmanager libmbim
- Clone the ModemManager and libmbim git repositories and check out my branch:
$ git clone https://gitlab.freedesktop.org/mobile-broadband/ModemManager.git/
$ git clone https://gitlab.freedesktop.org/mobile-broadband/libmbim.git/
$ cd ModemManager
$ git fetch https://gitlab.freedesktop.org/tuxor1337/ModemManager.git/ port-xmm7360
$ git checkout -b 'ModemManager-port-xmm7360' FETCH_HEAD
- Configure and compile libmbim:
$ cd ../libmbim
$ meson setup build --buildtype=debug --prefix=$PWD/dist/
$ ninja -C build install
$ export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$PWD/dist/lib64/pkgconfig"
$ export CFLAGS="-I$PWD/dist/include/libmbim-glib"
$ export LDFLAGS="-L$PWD/dist/lib64"
- Configure and compile ModemManager:
$ cd ../ModemManager
$ meson setup build --buildtype=debug --prefix=$PWD/dist/ --sysconfdir=$PWD/dist/etc -Dudevdir=$PWD/dist/lib/udev
$ ninja -C build install
- Stop and Disable ModemManager with the following commands:
$ sudo systemctl stop ModemManager.service
$ sudo systemctl disable ModemManager.service
- Make sure the
iosm
kernel module is loaded. NOTE: You do not need any of the stuff from this GitHub repository. You don't need the xmm7360-pci kernel module, or the Python scripts.
$ sudo modprobe iosm
- Run ModemManager in debug mode:
$ sudo ./build/src/ModemManager --debug
- Set up a broadband connection with NetworkManager. Disable Wifi (and LAN) check whether you are connected to the internet with your broadband modem, e.g. by opening some websites.
- If it doesn't work for you, make sure to give it another try after a fresh reboot of your computer because your previous setup might have screwed up your modem device.
Go to https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/merge_requests/1200 and report about your experiences. Note that some things are known not to work. See the first post of the merge request for more information about what is and is not expected to work.
from xmm7360-pci.
Will do! Tomorrow will be a good time for testing.
Done, works nicely!
from xmm7360-pci.
$ export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$PWD/dist/lib64/pkgconfig"
Note (to testers): check the path - it may be slightly different. My build (of libmbim
) created ./dist/lib/
(not ./dist/lib64/
)
from xmm7360-pci.
from xmm7360-pci.
Super!
It's Wroks!
$ uname -a
Linux x280 6.8.0-38-generic #38-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 7 15:25:01 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
$ sudo dmidecode | grep -A 3 "System Information"
System Information
Manufacturer: LENOVO
Product Name: 20KES0PC00
Version: ThinkPad X280
from xmm7360-pci.
I would like to share my situation, unfortunately I can't get it to work though.
I'm working on a X1 Carbon Gen 6, Ubuntu 24.04, all firmware / Bios updated. The Fibocom L850-GL works under Windows 11 without issue.
After a clean reboot the Modem is in a 'failed' state with failed-reason "sim-missing".
After installing the patched ModemManager (which appears to work well) I'm no longer getting any Modem in ModemManager. The debug output is this:
ModemManager[6306]: <msg> [1721982321.580557] [device /sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0] creating modem with plugin 'Intel' and '4' ports
ModemManager[6306]: <dbg> [1721982321.580622] [plugin/intel] (intel) Intel XMM7360 in RPC mode found...
ModemManager[6306]: <dbg> [1721982321.584788] [modem0] port 'wwan/wwan0xmmrpc0' grabbed
ModemManager[6306]: <wrn> [1721982321.584879] [plugin/intel] could not grab port wwan0at1: Cannot add port 'wwan/wwan0at1', unhandled port type
ModemManager[6306]: <wrn> [1721982321.584986] [plugin/intel] could not grab port wwan0at0: Cannot add port 'wwan/wwan0at0', unhandled port type
ModemManager[6306]: <dbg> [1721982321.585149] [modem0] port 'net/wwan0' grabbed
ModemManager[6306]: <dbg> [1721982321.585249] [modem0] cleaning up port 'wwan/wwan0xmmrpc0'...
ModemManager[6306]: <dbg> [1721982321.585294] [modem0] cleaning up port 'net/wwan0'...
ModemManager[6306]: <dbg> [1721982321.585362] [modem0] completely disposed
ModemManager[6306]: <wrn> [1721982321.585407] [base-manager] couldn't create modem for device '/sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0': Failed to find primary AT port
ModemManager[6306]: <dbg> [1721982321.585443] [device /sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0] port probe list reset...
ModemManager[6306]: <dbg> [1721982321.585509] [wwan0at0/at] device open count is 0 (close)
ModemManager[6306]: <dbg> [1721982321.585542] [wwan0at0/at] closing serial port...
ModemManager[6306]: <dbg> [1721982321.591878] [wwan0at0/at] serial port closed
ModemManager[6306]: <dbg> [1721982321.592116] [wwan0at0/at] forced to close port
I'm happy to take any pointers / or to try additional steps if I can help this effort.
Kind regards,
Stefan
from xmm7360-pci.
Most likely, your modem device is in a frozen state. Make sure to completely disable any older version of ModemManager that you might have on your system. For example systemctl disable ModemManager.service
. An older version of ModemManager will try to interact with the modem device and might put it into a dead frozen state. Make sure to not only reboot the computer, but really shut down and boot again (cold boot), before trying to use the new version of ModemManager.
from xmm7360-pci.
Related Issues (20)
- ThinkPad X390 Fedora 38 An error is reported when executing sudo python3 rpc/open_xdatachannel.py HOT 1
- Fedora Silverblue works! HOT 1
- Some Serbian ISPs do not work.
- Ubuntu 23.04 - T480 HOT 1
- L850GL in a Lenovo ThinkPad X1 Yoga 20LD... with Manjaro Linux
- How-to: Vanilla Linux Kernel 6.2 HOT 5
- L850-GL only works once on Lenovo T480 Linux Debian, have to restart PC if disconnected HOT 1
- Stuck on "unsolicited: UtaMsSmsMsgCacheFinishedIndCb: 0x0, 0x0"
- Current main branch does no longer compile on Arch, kernel 6.6.1 HOT 8
- kernel panic when connecting WWAN (Linux-6.1.69 by Debian-12)
- Sim not found in Ubuntu 22.04 LTS enevo ThinkPad T490s HOT 3
- Compilation Failure on Kernel 6.8.5-zen1-1-zen for xmm7360-pci on TP X1 Yoga Carbon Gen 4 running Garuda HOT 2
- Compile failure on `if (xmm->td_ring)`
- Current status on Fedora 40 (kernel version 6.8.8) HOT 6
- Compilation fails on proxmox HOT 1
- debian 12 on a levovo t490 : XMM RPC interface does not exists
- Ubuntu 24.04 LTS kernel 6.8.0-36 compilation ERROR HOT 4
- failed state on startup and failed to connect after restart service HOT 1
- Works on Dell Latitude 5540 i7-1355U (late 2023) Ubuntu 22.04.4 LTS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xmm7360-pci.