Fix 2720 hardware support and streamline changelog

This commit is contained in:
Luxferre committed 2026-11-10 08:38:40 +02:00
1 parent 3b96b8f242
commit a4f2051d50
20 files changed
+115 -391

No files matched your search

+35 -5
View File
@@ -88,7 +88,8 @@ else
fi
for pkg in alpine-base postmarketos-ui-sxmo-de-dwm webkit2gtk-4.1 libwpe \
sudo imv-x11 fcitx5-gtk3 mesa-utils sfeed yabasic yabasic-doc \
curl bc ed rlwrap mandoc nano less frotz tcl; do
curl bc ed rlwrap mandoc nano less frotz tcl \
msm-firmware-loader msm-firmware-loader-openrc msm-firmware-loader-wcnss; do
if ! grep -Fxq "$pkg" "$PKGS_FILE"; then
fail "missing critical package: $pkg"
fi
@@ -105,6 +106,21 @@ else
done
fi
echo "[check] WCNSS firmware loader services..."
for service in \
"$BASE_DIR/overlay/rootfs/etc/runlevels/sysinit/msm-firmware-loader" \
"$BASE_DIR/overlay/rootfs/etc/runlevels/boot/msm-firmware-loader-unpack"; do
if [ ! -L "$service" ]; then
fail "WCNSS firmware loader runlevel link is missing: ${service#"$BASE_DIR/"}"
fi
done
if [ "$(readlink "$BASE_DIR/overlay/rootfs/etc/runlevels/sysinit/msm-firmware-loader" 2>/dev/null)" != \
"/etc/init.d/msm-firmware-loader" ] || \
[ "$(readlink "$BASE_DIR/overlay/rootfs/etc/runlevels/boot/msm-firmware-loader-unpack" 2>/dev/null)" != \
"/etc/init.d/msm-firmware-loader-unpack" ]; then
fail "WCNSS firmware loader services are wired to the wrong init scripts"
fi
echo "[check] Rootfs prune list..."
if [ ! -f "$PRUNE_FILE" ]; then
fail "missing $PRUNE_FILE"
@@ -353,8 +369,8 @@ fi
echo "[check] Known-good flashable image set..."
for pair in \
"69a44f60eb123ebddf600be927155dc4a599ec35b7a0cf80060f4ba01f599f08 images/bananarchy-nokia-argon.img" \
"f4e9b8b2b36d4ffa9ba4f74de293b14f16b5ed45bbd5ab1d62bc2023242b73b2 images/bananarchy-nokia-beatles.img" \
"6715abd414fd02fd21ca8c2cd621a8a21e78f46d079b2d185b38a1f7a4a3e659 images/boot-bananarchy-nokia-beatles.img" \
"cc22a0d99972866e205bb76af37498a327e87a10d81e8341300ca3547ca4890a images/bananarchy-nokia-beatles.img" \
"2b5c61aba307dbbda61f3b19a2ad5770f9854f41cba4e2c97e24efb7e20879f3 images/boot-bananarchy-nokia-beatles.img" \
"b5549698c20f4de7603fc746d32bb5baa96ec377e41e74407823c98506fc185d images/boot-lk2nd-nokia-beatles-display.img"; do
set -- $pair
want=$1
@@ -464,6 +480,13 @@ fi
if ! grep -q 'msm8905-cam' "$BASE_DIR/overlay/rootfs/etc/local.d/10-bananarchy-hardware.start"; then
fail "the local.d hardware fallback no longer loads the camera driver"
fi
CAM_DRIVER="$BASE_DIR/src/msm8905-cam/msm8905-cam.c"
if ! grep -qF 'cam->rotate_180 = of_machine_is_compatible("nokia,beatles");' \
"$CAM_DRIVER" || \
! grep -qF 'msm8905_cam_demosaic(cam->raw_dma_buf, dst_rgb, cam->rotate_180);' \
"$CAM_DRIVER"; then
fail "the beatles-only 180-degree camera orientation correction is missing"
fi
if [ ! -f "$BASE_DIR/scripts/busybox-sbin-applets.txt" ] || \
! grep -qxF 'reboot' "$BASE_DIR/scripts/busybox-sbin-applets.txt"; then
fail "the /sbin BusyBox applet list is missing reboot (Sxmo power menu)"
@@ -501,6 +524,11 @@ if ! grep -q 'spidev@1' "$BASE_DIR/devices/nokia-beatles/qcom-msm8905-nokia-beat
grep -q 'spidev@1'; then
fail "the cover panel spidev@1 node is missing from the shipping DTS/DTB"
fi
if ! dtc -I dtb -O dts "$BASE_DIR/devices/nokia-beatles/qcom-msm8905-nokia-beatles.dtb" 2>/dev/null | \
sed -n '/display@0 {/,/^ };/p' | \
grep -q 'spi-max-frequency = <0x17d7840>'; then
fail "the beatles main panel lost its 25 MHz high-backlight-safe SPI timing"
fi
if ! grep -q '^dc_gpio = -1' "$BASE_DIR/overlay/rootfs/etc/bananarchy/cover-display.conf"; then
fail "the cover daemon config would collide with the internal panel DC GPIO"
fi
@@ -839,8 +867,8 @@ fi
echo "[check] Flip lid responsiveness..."
LID_SRC="$BASE_DIR/src/bananarchy-daemons/bananarchy-lid.c"
for token in '#define LID_STABLE_MS 80' 'BA_EVIOCGSW' 'LID_STATE_FILE' \
'LOCKER_FIFO' 'unlink(LOCK_FLAG)'; do
for token in '#define LID_STABLE_MS 80' '#define HALL_POLL_MS 200' 'BA_EVIOCGSW' 'LID_STATE_FILE' \
'LOCKER_FIFO' 'unlink(LOCK_FLAG)' 'now - last_hall_poll >= HALL_POLL_MS'; do
if ! grep -qF "$token" "$LID_SRC"; then
fail "the compiled lid daemon lost the low-latency EV_SW/unlock path ($token)"
fi
@@ -883,6 +911,8 @@ for f in etc/rc.conf etc/conf.d/udev-settle \
usr/bin/bananarchy-x11-session.sh etc/init.d/bananarchy-lid \
etc/init.d/bananarchy-sshd-debug etc/init.d/local \
etc/local.d/20-bananarchy-sshd-debug.start; do
# A clean clone has no rootfs yet; rebuild-image.sh bootstraps it next.
[ -e "$BASE_DIR/rootfs/$f" ] || continue
if ! cmp -s "$BASE_DIR/overlay/rootfs/$f" "$BASE_DIR/rootfs/$f"; then
fail "live rootfs copy drifted from overlay: $f"
fi
+3
View File
@@ -52,6 +52,9 @@ linux-postmarketos-qcom-msm8916
mandoc
mesa-utils
modemmanager
msm-firmware-loader
msm-firmware-loader-openrc
msm-firmware-loader-wcnss
nano
openssh
openssh-server-pam