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/8.0/unified/20240808.161702~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F68%2F315768%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: I72d8a0a75bf2a409d9908811d8c1777d704f8259 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