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 <jh80.chung@samsung.com>
# 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