GithubHelp home page GithubHelp logo

Comments (9)

pswiatki avatar pswiatki commented on August 18, 2024

Will do! Tomorrow will be a good time for testing.

from xmm7360-pci.

d-hancharou avatar d-hancharou commented on August 18, 2024

Can you explain how to test it ? Ubuntu 24.04 LTS

from xmm7360-pci.

tuxor1337 avatar tuxor1337 commented on August 18, 2024

I don't have Ubuntu. But here is how I test it under Fedora 40, and it should be the same under Ubuntu:

  1. Install the build dependencies:
$ # for Fedora
$ sudo dnf builddep ModemManager libmbim
$ 
$ # for Ubuntu
$ sudo apt build-dep modemmanager libmbim
  1. 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
  1. 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"
  1. 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
  1. Stop and Disable ModemManager with the following commands:
$ sudo systemctl stop ModemManager.service
$ sudo systemctl disable ModemManager.service
  1. 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
  1. Run ModemManager in debug mode:
$ sudo ./build/src/ModemManager --debug
  1. 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.
  2. 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.

pswiatki avatar pswiatki commented on August 18, 2024

Will do! Tomorrow will be a good time for testing.

Done, works nicely!

from xmm7360-pci.

pswiatki avatar pswiatki commented on August 18, 2024

$ 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.

pswiatki avatar pswiatki commented on August 18, 2024

image
image

from xmm7360-pci.

kenti714 avatar kenti714 commented on August 18, 2024

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

Screenshot from 2024-07-16 16-48-48

from xmm7360-pci.

stefzg avatar stefzg commented on August 18, 2024

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.

tuxor1337 avatar tuxor1337 commented on August 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.