Enable the 2720 Flip external panel and rebuild its DTB
This commit is contained in:
1 parent
ec55fb1457
commit
7c52d616e7
13 files changed
+348
-65
No files matched your search
@@ -369,8 +369,8 @@ fi
|
||||
echo "[check] Known-good flashable image set..."
|
||||
for pair in \
|
||||
"69a44f60eb123ebddf600be927155dc4a599ec35b7a0cf80060f4ba01f599f08 images/bananarchy-nokia-argon.img" \
|
||||
"cc22a0d99972866e205bb76af37498a327e87a10d81e8341300ca3547ca4890a images/bananarchy-nokia-beatles.img" \
|
||||
"2b5c61aba307dbbda61f3b19a2ad5770f9854f41cba4e2c97e24efb7e20879f3 images/boot-bananarchy-nokia-beatles.img" \
|
||||
"185ae4fcd8aa4bb65ff03711e50c68a1af073ff13402ddd053e65b65f11b6460 images/bananarchy-nokia-beatles.img" \
|
||||
"9862c9f7c22988537737e5a1d0d07952200bc5aecc9577107fca775ef8c9514b images/boot-bananarchy-nokia-beatles.img" \
|
||||
"b5549698c20f4de7603fc746d32bb5baa96ec377e41e74407823c98506fc185d images/boot-lk2nd-nokia-beatles-display.img"; do
|
||||
set -- $pair
|
||||
want=$1
|
||||
@@ -379,7 +379,7 @@ for pair in \
|
||||
echo "[skip] local build output $2 is absent; prepare-release.sh will rebuild it"
|
||||
continue
|
||||
elif [ "$(sha256sum "$path" | cut -d' ' -f1)" != "$want" ]; then
|
||||
fail "$2 no longer matches the physically verified known-good image"
|
||||
fail "$2 no longer matches the pinned release image"
|
||||
fi
|
||||
done
|
||||
|
||||
@@ -634,12 +634,24 @@ 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"; then
|
||||
fail "the shipping beatles DTB still applies the hardware-gated cover overlay"
|
||||
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"
|
||||
fi
|
||||
if ! grep -A4 'spidev@1 {' "$COVER_DTS" | grep -qF 'status = "okay"'; then
|
||||
fail "the shipping beatles DTB lost the spidev@1 diagnostic fallback"
|
||||
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"
|
||||
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
|
||||
if ! grep -qxF '/lib/firmware/nokia,beatles-gc9305-ext-panel.bin' "$f"; then
|
||||
fail "${f#"$BASE_DIR/"} no longer ships the cover firmware in the initramfs"
|
||||
fi
|
||||
done
|
||||
if ! grep -qF 'Option "kmsdev" "/dev/dri/card0"' \
|
||||
"$BASE_DIR/overlay/rootfs/etc/X11/xorg.conf.d/10-bananarchy-msm8909.conf"; then
|
||||
fail "Xorg no longer pins the main DRM card"
|
||||
fi
|
||||
rm -f "$COVER_DTBO" "$COVER_DTS" "$COVER_DTS_BUILD"
|
||||
for opt in CONFIG_MULTIPLEXER=m CONFIG_MUX_GPIO=m CONFIG_SPI_MUX=m; do
|
||||
@@ -1307,6 +1319,14 @@ 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"
|
||||
fi
|
||||
|
||||
if [ "$FAILURES" -ne 0 ]; then
|
||||
echo "[check] $FAILURES check(s) failed."
|
||||
exit 1
|
||||
|
||||
Reference in new issue
Block a user