From 4d84bd7fc9b4f2a6d606e205648c962e9bf02650 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Mon, 10 Feb 2025 12:02:25 -0500 Subject: [PATCH] hvk: support boot_prefix U-Boot variable --- scripts/hvk-compile.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/hvk-compile.sh b/scripts/hvk-compile.sh index f16c8dc..8031630 100755 --- a/scripts/hvk-compile.sh +++ b/scripts/hvk-compile.sh @@ -168,6 +168,14 @@ if [ "${EVK_IP}" != "" ]; then if [ "${EXTLINUX}" = "1" ]; then # Switch to test kernel and DTB: ssh root@${EVK_IP} "sed -i -e 's@^DEFAULT.*@DEFAULT test@' /boot/extlinux/extlinux.conf" + + # Determine if using boot_prefix variable U-Boot on target: + ssh -q root@${EVK_IP} "fw_printenv boot_prefix | grep -q boot_prefix" && BOOT_PREFIX=1 || BOOT_PREFIX=0; + + if [ "${BOOT_PREFIX}" = "1" ]; then + # Optionally set boot_prefix variable: + ssh root@${EVK_IP} "fw_setenv boot_prefix /boot/test" + fi fi fi -- 2.20.1