Skip to content

Instantly share code, notes, and snippets.

@mrlnc
Last active March 16, 2022 15:48
Show Gist options
  • Save mrlnc/856aa508d3498e3e3cc2e1836aeb0a28 to your computer and use it in GitHub Desktop.
Save mrlnc/856aa508d3498e3e3cc2e1836aeb0a28 to your computer and use it in GitHub Desktop.
Building qmicli and libqmi from source
Error in user YAML: (<unknown>): mapping values are not allowed in this context at line 1 column 49
---

:stop_sign: these notes are outdated. :stop_sign:

build tools were changed for `libqmi > 1.30`
check out the official docs: https://modemmanager.org/docs/libqmi/building/

---

qmicli (building on libqmi) as shipped with Ubuntu 20.04 can’t interface with 5G chipsets as the 5G-NR-related symbols are missing. Support begins with 1.26.4 in Ubuntu 20.10, but I think it doesn’t hurt to have the lastest release — new features are being added quite fast.

Remove the old libqmi, if any.

sudo systemctl stop ModemManager.service
sudo apt remove libqmi-glib5 libqmi-proxy libqmi-utils

libmbim:

git clone https://gitlab.freedesktop.org/mobile-broadband/libmbim.git
cd libmbim
./autogen.sh
./configure
make -j `nproc`
sudo make install

libqmi and qmicli:

sudo apt install autoconf autoconf-archive libtool libglib2.0-dev libgudev-1.0-dev 
git clone https://gitlab.freedesktop.org/mobile-broadband/libqmi.git
cd libqmi
./autogen.sh
./configure
make -j `nproc`
sudo make install

Now ModemManager:

sudo apt install autopoint xsltproc libsystemd-dev
git clone https://gitlab.freedesktop.org/mobile-broadband/ModemManager.git
cd ModemManager
./autogen.sh
./configure --with-systemd-journal --enable-plugin-qcom-soc
make -j `nproc`
sudo make install

TODO: proper configure parameters, consider switching back to archlinux, no systemd-unit now so manual ModemManager start required

@jonathan84clark
Copy link

As of 3/16/2022 these instructions are obsolete. 'autogen.sh' is no longer available in the git repo https://gitlab.freedesktop.org/mobile-broadband/libqmi.git

@mrlnc
Copy link
Author

mrlnc commented Mar 16, 2022

i marked the post as outdated. thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment