Gate the two-panel DT behind an opt-in build after live phone regression
This commit is contained in:
1 parent
31db372779
commit
a7b1a75465
15 files changed
+2757
-265
No files matched your search
+38
-17
@@ -369,8 +369,8 @@ fi
|
||||
echo "[check] Known-good flashable image set..."
|
||||
for pair in \
|
||||
"69a44f60eb123ebddf600be927155dc4a599ec35b7a0cf80060f4ba01f599f08 images/bananarchy-nokia-argon.img" \
|
||||
"185ae4fcd8aa4bb65ff03711e50c68a1af073ff13402ddd053e65b65f11b6460 images/bananarchy-nokia-beatles.img" \
|
||||
"9862c9f7c22988537737e5a1d0d07952200bc5aecc9577107fca775ef8c9514b images/boot-bananarchy-nokia-beatles.img" \
|
||||
"30c470600d1187f463cd76319e96ecf0ed0af55858b2ae8244e588340a641942 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
|
||||
@@ -634,14 +634,13 @@ for token in 'qcom,msm-id = <0x14b 0x00>;' \
|
||||
fail "the shipping beatles DTB lost a stock Qualcomm ID ($token)"
|
||||
fi
|
||||
done
|
||||
if ! grep -qF 'compatible = "spi-mux"' "$COVER_DTS" || \
|
||||
! grep -qF 'compatible = "gpio-mux"' "$COVER_DTS" || \
|
||||
! grep -qF 'nokia,beatles-gc9305-ext-panel' "$COVER_DTS" || \
|
||||
! grep -qF 'display@1 {' "$COVER_DTS"; then
|
||||
fail "the shipping beatles DTB lost the external panel (/dev/fb1) wiring"
|
||||
if grep -qF 'compatible = "spi-mux"' "$COVER_DTS" || \
|
||||
grep -qF 'compatible = "gpio-mux"' "$COVER_DTS" || \
|
||||
grep -qF 'display@1 {' "$COVER_DTS"; then
|
||||
fail "the shipping beatles DTB applies the hardware-gated cover overlay"
|
||||
fi
|
||||
if ! grep -A6 'spidev@1 {' "$COVER_DTS" | grep -qF 'status = "disabled"'; then
|
||||
fail "spidev@1 must stay disabled while spi-mux owns chip select 1"
|
||||
if ! grep -A4 'spidev@1 {' "$COVER_DTS" | grep -qF 'status = "okay"'; then
|
||||
fail "the shipping beatles DTB lost the spidev@1 diagnostic fallback"
|
||||
fi
|
||||
for f in "$BASE_DIR/overlay/rootfs/usr/share/mkinitfs/files/00-nokia-argon-display.files" \
|
||||
"$BASE_DIR/devices/nokia-beatles/00-nokia-beatles-display.files"; do
|
||||
@@ -1320,12 +1319,19 @@ if command -v gcc >/dev/null 2>&1 && \
|
||||
fail "host cover display behaviour test failed"
|
||||
fi
|
||||
|
||||
echo "[check] 2720 Flip external panel (/dev/fb1)..."
|
||||
if [ ! -x "$BASE_DIR/scripts/test-cover-dt.py" ]; then
|
||||
fail "missing host DT validation scripts/test-cover-dt.py"
|
||||
elif command -v dtc >/dev/null 2>&1 && \
|
||||
! "$BASE_DIR/scripts/test-cover-dt.py" >/dev/null 2>&1; then
|
||||
fail "host 2720 Flip /dev/fb1 DT validation failed"
|
||||
echo "[check] 2720 Flip external panel (opt-in DT)..."
|
||||
if [ ! -f "$BASE_DIR/devices/nokia-beatles/qcom-msm8905-nokia-beatles-cover.dts" ] || \
|
||||
[ ! -x "$BASE_DIR/scripts/build-beatles-cover-panel.py" ] || \
|
||||
[ ! -x "$BASE_DIR/scripts/test-cover-dt.py" ]; then
|
||||
fail "missing the opt-in cover DT source or its host validation tools"
|
||||
fi
|
||||
if command -v dtc >/dev/null 2>&1; then
|
||||
if ! "$BASE_DIR/scripts/build-beatles-cover-panel.py" --check >/dev/null 2>&1; then
|
||||
fail "opt-in two-panel DTB validation failed"
|
||||
fi
|
||||
if ! "$BASE_DIR/scripts/test-cover-dt.py" >/dev/null 2>&1; then
|
||||
fail "host 2720 Flip DT wiring validation failed"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "[check] Cover panel diagnostics..."
|
||||
@@ -1343,12 +1349,27 @@ if ! grep -qF 'bananarchy-cover-diagnose.sh' \
|
||||
fail "apply-bananarchy-overlay.sh no longer installs the cover diagnostics"
|
||||
fi
|
||||
|
||||
echo "[check] 2720 Flip cover rollback..."
|
||||
echo "[check] 2720 Flip initramfs mux modules..."
|
||||
MODULES_INITFS="$BASE_DIR/devices/nokia-beatles/modules-initfs"
|
||||
for mod in mux-core mux-gpio spi-mux panel-mipi-dbi; do
|
||||
if ! grep -qxF "$mod" "$MODULES_INITFS"; then
|
||||
fail "devices/nokia-beatles/modules-initfs no longer loads $mod in the initramfs"
|
||||
fi
|
||||
done
|
||||
for ko in "$BASE_DIR/overlay/rootfs/lib/modules/6.12.1-msm8916/kernel/drivers/mux/mux-core.ko.zst" \
|
||||
"$BASE_DIR/overlay/rootfs/lib/modules/6.12.1-msm8916/kernel/drivers/mux/mux-gpio.ko.zst" \
|
||||
"$BASE_DIR/overlay/rootfs/lib/modules/6.12.1-msm8916/kernel/drivers/spi/spi-mux.ko.zst"; do
|
||||
if [ ! -f "$ko" ]; then
|
||||
fail "${ko#"$BASE_DIR/"} is missing from the overlay module tree"
|
||||
fi
|
||||
done
|
||||
|
||||
echo "[check] 2720 Flip single-panel rollback..."
|
||||
if [ ! -x "$BASE_DIR/scripts/build-beatles-no-cover-dtb.py" ]; then
|
||||
fail "missing rollback builder scripts/build-beatles-no-cover-dtb.py"
|
||||
elif command -v dtc >/dev/null 2>&1 && \
|
||||
! "$BASE_DIR/scripts/build-beatles-no-cover-dtb.py" --check >/dev/null 2>&1; then
|
||||
fail "the no-cover DTB rollback transformation failed validation"
|
||||
fail "the single-panel rollback DTB failed validation"
|
||||
fi
|
||||
if ! grep -qF 'parser.add_argument("--dtb"' \
|
||||
"$BASE_DIR/scripts/sync-beatles-bootfs.py" || \
|
||||
|
||||
Reference in new issue
Block a user