From: Jaehoon Chung Date: Wed, 7 Aug 2024 08:30:27 +0000 (+0900) Subject: tizen: rpi4: Load uboot.env from slot_b when booting is a slot_b X-Git-Tag: accepted/tizen/unified/20240808.160409~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F71%2F315771%2F1;p=platform%2Fkernel%2Fu-boot.git 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: I8c98b4ce7cf9948feb0582c39f733783562ffc54 Signed-off-by: Jaehoon Chung --- 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