From 3ea6c837e3b4167ab74b805a93b2353a9749c4da Mon Sep 17 00:00:00 2001 From: Noah Date: Mon, 7 Sep 2026 14:48:43 -0600 Subject: [PATCH] Pack the VERBOSE splash variant into resource.img U-Boot draws the boot splash from resource.img by name, and now draws a second image by name when the splash is tapped: the same logo with its bottom-right mark reading VERBOSE instead of GRAPHIC. Without --logo-verbose that image is absent from the FIT and a tap changes nothing on screen, even though the boot itself would still go verbose. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_013aHKWzT5EF86RFKRMtAv9n --- build/mk-bootimg.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/build/mk-bootimg.sh b/build/mk-bootimg.sh index facb8b5..36ef6d7 100755 --- a/build/mk-bootimg.sh +++ b/build/mk-bootimg.sh @@ -21,12 +21,13 @@ # Usage: # mk-bootimg.sh --kernel zImage --dtb rv1106-warden.dtb --out boot.img # [--logo FILE] [--logo-kernel FILE] [--logo-recovery FILE] +# [--logo-verbose FILE] # [--resource-tool PATH] set -euo pipefail HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" KERNEL=""; DTB=""; OUT=""; RTOOL="" -LOGO=""; LOGO_KERNEL=""; LOGO_RECOVERY="" +LOGO=""; LOGO_KERNEL=""; LOGO_RECOVERY=""; LOGO_VERBOSE="" while [ $# -gt 0 ]; do case "$1" in @@ -36,6 +37,10 @@ while [ $# -gt 0 ]; do --logo) LOGO="${2:?}"; shift 2 ;; --logo-kernel) LOGO_KERNEL="${2:?}"; shift 2 ;; --logo-recovery) LOGO_RECOVERY="${2:?}"; shift 2 ;; + # The same image as --logo but with a VERBOSE mark. U-Boot draws it by + # name when the splash is tapped, so it must be packed even though nothing + # displays it on an ordinary boot. + --logo-verbose) LOGO_VERBOSE="${2:?}"; shift 2 ;; --resource-tool) RTOOL="${2:?}"; shift 2 ;; -h|--help) sed -n '2,25p' "$0"; exit 0 ;; *) echo "FATAL: unknown argument '$1'" >&2; exit 1 ;; @@ -71,7 +76,8 @@ trap 'rm -rf "$WORKDIR"' EXIT # for the DTB under the fixed name rk-kernel.dtb. cp "$DTB" "$WORKDIR/rk-kernel.dtb" RES_FILES=(rk-kernel.dtb) -for pair in "$LOGO:logo.bmp" "$LOGO_KERNEL:logo_kernel.bmp" "$LOGO_RECOVERY:logo_recovery.bmp"; do +for pair in "$LOGO:logo.bmp" "$LOGO_KERNEL:logo_kernel.bmp" \ + "$LOGO_RECOVERY:logo_recovery.bmp" "$LOGO_VERBOSE:logo_verbose.bmp"; do src="${pair%%:*}"; dst="${pair##*:}" [ -n "$src" ] || continue [ -f "$src" ] || { echo "FATAL: logo '$src' not found" >&2; exit 1; }