Skip to content

Commit ff6df8d

Browse files
committed
install libqmi and modemmanager from sources
1 parent 1aed526 commit ff6df8d

File tree

4 files changed

+45
-4
lines changed

4 files changed

+45
-4
lines changed

base-armv7-rpi-bookworm.pifile

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,25 @@ RUN bash -c "echo 'deb http://deb.debian.org/debian/ bookworm-backports main' >/
2626
RUN apt-get update
2727
RUN apt-get upgrade -y
2828

29-
# Install modemmanager
30-
RUN apt-get install -y modemmanager # -t bullseye-backports
29+
# # Install libqmi for modemmanager
30+
# RUN apt-get install -y libqmi-glib5 libqmi-utils libqmi-proxy libqmi-glib-dev gir1.2-qmi-1.0
31+
#
32+
# # Install modemmanager
33+
# RUN apt-get install -y cmake bash-completion gnome-common gobject-introspection intltool \
34+
# libdbus-1-dev libgirepository1.0-dev libgudev-1.0-dev libmbim-glib-dev libpolkit-gobject-1-dev \
35+
# libsystemd-dev python3-dbus python3-gi
36+
# # Remove plugins that didn't build 'cause they depend on mbim
37+
# RUN bash -c "cd /usr/lib/arm-linux-gnueabihf/ModemManager/; rm *foxconn* *fibocom*"
38+
#
39+
# RUN cd /tmp
40+
# RUN git clone http://raspbian.raspberrypi.com/raspbian/pool/main/m/modemmanager/modemmanager_1.22.0.orig.tar.xz
41+
# RUN cd modemmanager-1.22.0
42+
# RUN meson setup build --prefix=/usr --buildtype=release --sysconfdir=/etc -Dmbim=false -Dgtk_doc=false
43+
# RUN ninja -C build install
44+
# RUN cd
45+
46+
# Install from backports
47+
#RUN apt-get install -y modemmanager # -t bullseye-backports
3148
RUN apt-get install -y dhcpcd -t bookworm-backports
3249

3350
# Install some apps, they should be pulled in via dependencies but doing it here causes the

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ BASE_IMG=base-$TYPE.img
4040
if [[ -f images/$BASE_ZIP ]]; then
4141
echo ""
4242
echo "*** Extracting base image: $BASE_IMG"
43-
(cd images; rm -f $BASE_IMG; 7z x -bd $BASE_ZIP $BASE_IMG)
43+
#(cd images; rm -f $BASE_IMG; 7z x -bd $BASE_ZIP $BASE_IMG)
4444
else
4545
echo images/$BASE_ZIP not found
4646
echo ""

manifest-armv7-rpi-bookworm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# dockerhub image for pimod
55
#PIMOD_IMAGE=tvoneicken/pimod:master
6-
PIMOD_IMAGE=nature40/pimod:v0.6.0
6+
PIMOD_IMAGE=nature40/pimod:v0.6.1
77

88
#DOCKCROSS_IMAGE=tvoneicken/sensorgnome-dockcross:armv7-rpi-bookworm-main
99

sg-armv7-rpi-bookworm.pifile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,30 @@ RUN gpg --no-default-keyring --keyring /usr/share/keyrings/sensorgnome.gpg --lis
2828
RUN bash -c "echo 'deb [signed-by=/usr/share/keyrings/sensorgnome.gpg] https://sensorgnome.s3.amazonaws.com/' $CODENAME main >/etc/apt/sources.list.d/sensorgnome.list"
2929
RUN apt update
3030

31+
# Install libqmi
32+
RUN apt-get install -y devscripts meson bash-completion gobject-introspection \
33+
libgirepository1.0-dev libglib2.0-dev libgudev-1.0-dev libmbim-glib-dev \
34+
libqrtr-glib-dev gtk-doc-tools help2man glib-2.0 libglib2.0 libglib2.0-doc
35+
WORKDIR /root
36+
RUN git clone https://gitlab.freedesktop.org/mobile-broadband/libqmi.git
37+
WORKDIR /root/libqmi
38+
RUN git checkout 1.35.6-dev
39+
RUN meson setup build --prefix=/usr -Dmbim_qmux=false -Dqrtr=false -Dbash_completion=false --buildtype=release
40+
RUN ninja -C build install
41+
42+
# Install modemmanager
43+
RUN apt-get install -y meson cmake bash-completion gnome-common gobject-introspection intltool \
44+
libdbus-1-dev libgirepository1.0-dev libgudev-1.0-dev libpolkit-gobject-1-dev \
45+
libsystemd-dev python3-dbus python3-gi
46+
# Remove plugins that didn't build 'cause they depend on mbim
47+
#RUN bash -c "cd /usr/lib/arm-linux-gnueabihf/ModemManager/; rm *foxconn* *fibocom*"
48+
WORKDIR /root
49+
RUN bash -c 'curl https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/archive/1.23.12-dev/ModemManager-1.23.12-dev.tar.gz | tar zxf -'
50+
WORKDIR /root/ModemManager-1.23.12-dev
51+
RUN meson setup build --prefix=/usr --buildtype=release --sysconfdir=/etc -Dmbim=false -Dqrtr=false -Dgtk_doc=false -Dbash_completion=false -Dsystemd_suspend_resume=false
52+
RUN ninja -C build install
53+
WORKDIR /root
54+
3155
# Install sensorgnome packages (the has-double line can be deleted when no pre 2023-080 SG exists)
3256
RUN dpkg --print-architecture
3357
RUN mkdir -p /opt/sensorgnome/upgrader

0 commit comments

Comments
 (0)