u-boot-dey: ccimx93: fix boot from sdcard image
When booting from recovery sdcard, in the imx93 the dualboot is yes by default, so the mmcroot variable was not set correctly for the uSD. If we boot from uSD, just assume all the system is in the uSD card, whether it is a recovery system or a prepared uSD card for demo. https://onedigi.atlassian.net/browse/DEL-8461 Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
This commit is contained in:
parent
5a8132067b
commit
e369f71019
|
|
@ -7,8 +7,12 @@
|
||||||
# and save them, while the rest of the script changes variables only temporarily
|
# and save them, while the rest of the script changes variables only temporarily
|
||||||
# without saving them.
|
# without saving them.
|
||||||
|
|
||||||
# Dual boot update verification
|
# Pre step: check if we boot from uSD.
|
||||||
if test "${dualboot}" = "yes"; then
|
if test "${mmcbootdev}" = "1"; then
|
||||||
|
# We are booting from the SD card.
|
||||||
|
setenv mmcroot /dev/mmcblk${mmcbootdev}p2
|
||||||
|
elif test "${dualboot}" = "yes"; then
|
||||||
|
# Dual boot update verification
|
||||||
if test "${upgrade_available}" = "1"; then
|
if test "${upgrade_available}" = "1"; then
|
||||||
echo "Update detected; Booting new system in ${active_system} (try ${bootcount})"
|
echo "Update detected; Booting new system in ${active_system} (try ${bootcount})"
|
||||||
else
|
else
|
||||||
|
|
@ -43,9 +47,6 @@ else
|
||||||
# We are booting from the eMMC using 'recovery'.
|
# We are booting from the eMMC using 'recovery'.
|
||||||
setenv boot_initrd true
|
setenv boot_initrd true
|
||||||
setenv initrd_file uramdisk-recovery.img
|
setenv initrd_file uramdisk-recovery.img
|
||||||
else
|
|
||||||
# We are booting from the SD card.
|
|
||||||
setenv mmcroot /dev/mmcblk${mmcbootdev}p2
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue