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) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013aHKWzT5EF86RFKRMtAv9n
This commit is contained in:
Noah
2026-09-07 14:48:43 -06:00
co-authored by Claude Opus 5
parent f0204f2b53
commit 3ea6c837e3
+8 -2
View File
@@ -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; }