tizen: rpi4: Load uboot.env from slot_b when booting is a slot_b 68/315768/1
authorJaehoon Chung <jh80.chung@samsung.com>
Wed, 7 Aug 2024 08:30:27 +0000 (17:30 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Wed, 7 Aug 2024 08:30:27 +0000 (17:30 +0900)
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 <jh80.chung@samsung.com>
tizen/bootscript/tizen-boot-rpi4.scr

index c9f15843fdb740b30707206339193a1bb52fba00..f6bac09b665808b65e819ced21e1a573dd49ff93 100644 (file)
@@ -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