From e442e2a0ca01ba7af37bcd040c5a9c5a21f3292a Mon Sep 17 00:00:00 2001 From: Jaehoon Chung Date: Wed, 7 Aug 2024 17:30:27 +0900 Subject: [PATCH] tizen: rpi4: Load uboot.env from slot_b when booting is a slot_b Load uboot.env from slot_b when booting is a slot_b. Otherwise, it should be using the environment of slot_a. Change-Id: I72d8a0a75bf2a409d9908811d8c1777d704f8259 Signed-off-by: Jaehoon Chung --- tizen/bootscript/tizen-boot-rpi4.scr | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tizen/bootscript/tizen-boot-rpi4.scr b/tizen/bootscript/tizen-boot-rpi4.scr index c9f15843fd..f6bac09b66 100644 --- a/tizen/bootscript/tizen-boot-rpi4.scr +++ b/tizen/bootscript/tizen-boot-rpi4.scr @@ -42,6 +42,10 @@ fi # check if we need to let distro_boot to switch to boot_b if test "0x${distro_bootpart}" -ne "${bootpart}"; then + # Load the environmet from partition_b + echo "Loading uboot.env from boot_${partition_ab}" + load $devtype $devnum:$bootpart 0x02400000 uboot.env + env import -b 0x02400000 0x4000 exit fi -- 2.34.1