fp6-mobian-support

Package: fp6-mobian-support, Architecture: all, version 0.1, a native source package in packaging/fp6-mobian-support/ (files grouped by component: boot/, firmware/, audio/, sensors/, modem/, system/). Depends: qcom-support-common, qcom-phone-utils, qbootctl, mkbootimg, initramfs-tools, modemmanager, libglib2.0-bin. Licence: our files GPL-3.0-or-later; Catcrafts’ files as listed below. Upstream target: split up; see the table. Most of it belongs in a milos-support binary package from Mobian’s qcom-support, the way other SoCs get <soc>-support.

The package collects all the device glue. Each file and the reason for it:

FilePurposeOriginNotes
/etc/kernel/postinst.d/zz-qcom-bootimg (+ divert)boot write guard: a symlink to /usr/lib/fp6-mobian-support/zz-qcom-bootimgoursBoot, AVB and the boot partition
/usr/lib/fp6-mobian-support/boot-is-mobiandoes the active slot hold Mobian?oursheuristic
/usr/lib/fp6-mobian-support/fp6-boot-avbAVB check, maxsize, relocateoursFP6-specific
/usr/lib/fp6-mobian-support/fp6-rebootdroid-juicer reboot → fastboot while RAM-boot testingourstest-path only
/usr/sbin/fp6-make-bootimgbuild a boot image without writing itours
/usr/share/initramfs/post-update.d/zz-fp6-bootimgrepack boot after any initramfs rebuildoursgeneric Mobian gap
/usr/share/initramfs-tools/hooks/fp6-firmwareFP6 firmware + touch modules into the initramfsoursFirmware
/usr/lib/systemd/system/droid-juicer.service.d/fp6.confmodprobe erofs; fp6-rebootoursthe erofs part is generic
/usr/lib/fp6-mobian-support/fp6-remoteproc-start + .servicestart the modem once the rootfs is upoursworkaround
/usr/lib/fp6-mobian-support/fp6-lte-pin + .service, /etc/default/fp6-lte-pinkeep the modem on LTEourscarrier workaround, Modem, SMS and VoLTE
/usr/lib/systemd/system/imsd.service.d/fp6-audio.confcall audio routing and level for imsdoursneeds imsd patch 0003
/etc/apt/preferences.d/fp6-no-distro-kernels.prefpin Debian/Mobian linux-image-* to −1oursuntil Mobian ships a milos kernel
/usr/lib/systemd/sleep.conf.d/50-fp6-no-suspend.confno suspend/hibernateourssee Overview
/usr/share/alsa/ucm2/conf.d/milos/MILOS-Fairphone-Gen6.conf, /usr/share/alsa/ucm2/Fairphone/fp6/HiFi.confUCMCatcrafts fp6-img 41f6fb4, verbatim, BSD-3-ClauseAudio
/usr/lib/firmware/qcom/milos/MILOS-Fairphone-Gen6-tplg.binAudioReach topologybuilt from Catcrafts’ audioreach-topology source, BSD-3-ClauseAudio
/usr/share/pipewire/pipewire.conf.d/50-fp6-echo-cancel.confWebRTC echo canceller for callsCatcrafts fp6-img 41f6fb4, modified, BSD-3-ClauseAudio
/usr/lib/udev/rules.d/81-fp6-accel-poll.rulesforce iio-sensor-proxy to poll the accelerometerCatcrafts fp6-img 41f6fb4 (fp6-device-tweaks), verbatim, GPL-3.0-onlySensors and cameras
/usr/lib/udev/rules.d/91-fp6-no-ssc-sensors.rulesdrop libssc tags (no SSC on this image)Catcrafts fp6-img 41f6fb4 (fp6-device-tweaks), verbatim, GPL-3.0-onlysame
/usr/lib/systemd/system/iio-sensor-proxy.service.d/fp6-restart.confrestart iio-sensor-proxy on failureCatcrafts fp6-img 41f6fb4 (fp6-device-tweaks), verbatim, GPL-3.0-onlysame
/usr/lib/modules-load.d/fp6-imu.confload inv-icm42600-spiCatcrafts fp6-img 41f6fb4 (fp6-device-tweaks), verbatim, GPL-3.0-onlysame

Catcrafts’ sources were read at fp6-img 41f6fb4 and pmaports 286d3b4.

Conffiles: /etc/default/fp6-lte-pin, /etc/apt/preferences.d/fp6-no-distro-kernels.pref. The guard is deliberately not one: dpkg keeps conffiles on remove, and a leftover file at the diverted path would stop postrm from renaming the original back. Hence the symlink.

Maintainer scripts: preinst adds the divert; postrm removes it. Everything else comes from debhelper: dh_installsystemd enables both units and starts fp6-lte-pin (fp6-remoteproc-start only runs at boot), and dh_installinitramfs triggers update-initramfs.

The topology binary isn’t in git: tools/build-topology.sh builds it from Catcrafts’ audioreach-topology at a pinned commit and checks its sha256; the package build stops if it’s missing.

Tested

Installed on the phone from first boot (test1) through test8; every version was installed and booted on hardware. Test history in short:

0.1 compared with test8: the same files and modes, three files differing only in comments, the guard now reached through the symlink. Installed over test8 on the phone: the divert was kept, the initramfs trigger ran the guard, which wrote and verified boot_a; a kernel-hook cycle (run-parts on /etc/kernel/postinst.d) ran the guard through the symlink; the phone rebooted to unl0kr, Phosh and a working modem.

Rework before anyone else would accept it