Install depends on the packages
$ sudo apt install libudev-dev libpolkit-gobject-1-dev libmbim-glib-dev libqrtr-glib-dev xsltproc help2man gettext gperf libcap-dev libgirepository1.0-dev libdbus-1-dev
ARM64
$ sudo apt install libudev-dev libpolkit-gobject-1-dev libmbim-glib-dev xsltproc help2man gettext gperf libcap-dev\
libgirepository1.0-dev libdbus-1-dev bash-completion libgudev-1.0-dev libudev-dev libsystemd-dev
elogind
$ pip3 install jinja2
$ git clone https://github.com/elogind/elogind.git
$ cd elogind
$ meson setup build
$ ninja -C build
$ cd build; ninja install
libqrtr
$ git clone https://gitlab.freedesktop.org/mobile-broadband/libqrtr-glib.git
$ cd libqrtr-glib
$ meson setup builddir --prefix=/usr -Dintrospection=true //for all project
$ ninja -C build
$ cd build; ninja install
$ cp /usr/local/share/gir-1.0/Qrtr-1.0.gir /usr/share/gir-1.0/
libqmi
$ git clone https://gitlab.freedesktop.org/mobile-broadband/libqmi.git
$ cd libqmi
$ meson setup build
$ ninja -C build
if encounter the issue...go back previous step, libqrtr
..
..
Couldn't find include 'Qrtr-1.0.gir' (search path: '['/usr/share/gir-1.0', '/usr/share', 'gir-1.0', '/usr/share/gir-1.0', '/usr/share/gir-1.0']')
..
..
ModemManager
$ git clone https://github.com/linux-mobile-broadband/ModemManager
$ cd ModemManager
$ meson setup build_x86 --prefix=/usr --sysconfdir=/etc
$ cd build_x86
$ ninja
RSSI
...
...
ModemManager[27171]: <debug> [1736232436.167606] [modem0] lte_rssi: -48
ModemManager[27171]: <debug> [1736232436.167632] [modem0] RSSI (LTE): -48 dBm
ModemManager[27171]: <debug> [1736232436.167647] [modem0] RSSI: -48 dBm --> 100%
ModemManager[27171]: <debug> [1736232436.167749] [modem0] signal quality updated (100)
ModemManager[27171]: <debug> [1736232436.167771] [modem0] periodic signal quality and access technology checks scheduled
ModemManager[27171]: <debug> [1736232436.199497] [/dev/cdc-wdm1] received message...
......
elogind Troubleshoot:
only show on Ubuntu 20.04, not 22.04
In file included from ../src/basic/socket-util.c:16:
../src/basic/linux/if.h:216:3: error: unknown type name ‘x25_hdlc_proto’
216 | x25_hdlc_proto *x25;
| ^~~~~~~~~~~~~~
[172/543] Compiling C object src/basic/libbasic.a.p/terminal-util.c.o
ninja: build stopped: subcommand failed.
src/basic/linux/if.h
...
...
#include <linux/hdlc/ioctl.h>
...
...
struct if_settings {
unsigned int type; /* Type of physical device or protocol */
unsigned int size; /* Size of the data allocated by the caller */
union {
/* {atm/eth/dsl}_settings anyone ? */
raw_hdlc_proto *raw_hdlc;
cisco_proto *cisco;
fr_proto *fr;
fr_proto_pvc *fr_pvc;
fr_proto_pvc_info *fr_pvc_info;
x25_hdlc_proto *x25;
/* interface settings */
sync_serial_settings *sync;
te1_settings *te1;
} ifs_ifsu;
};
only ubuntu 22.04 has it, not 20.04
/usr/include/linux/hdlc/ioctl.h
typedef struct {
unsigned short dce; /* 1 for DCE (network side) operation */
unsigned int modulo; /* modulo (8 = basic / 128 = extended) */
unsigned int window; /* frame window size */
unsigned int t1; /* timeout t1 */
unsigned int t2; /* timeout t2 */
unsigned int n2; /* frame retry counter */
} x25_hdlc_proto;
沒有留言:
張貼留言