ccmp1: boot script: add support for booting from microSD
When booting from a microSD, the variable 'boot_device' is set to "mmc". Check this to fall back to booting Linux from the microSD partitions. Signed-off-by: Hector Palacios <hector.palacios@digi.com>
This commit is contained in:
parent
386a97590f
commit
dbf1db98cf
|
|
@ -37,9 +37,6 @@ else
|
|||
# We are booting from the NAND using 'recovery'.
|
||||
setenv boot_initrd true
|
||||
setenv initrd_file uramdisk-recovery.img
|
||||
else
|
||||
# We are booting from the SD card.
|
||||
setenv mmcroot /dev/mmcblk${mmcbootdev}p2
|
||||
fi
|
||||
setenv rootfsvol rootfs
|
||||
fi
|
||||
|
|
@ -64,7 +61,11 @@ if test "${module_has_wifi}" = "1" && test -z "${disable_wifi}"; then
|
|||
setenv overlays _ov_som_wifi_ccmp13.dtbo,${overlays}
|
||||
fi
|
||||
|
||||
dboot linux nand ${mtdbootpart}
|
||||
if test "${boot_device}" = "mmc"; then
|
||||
dboot linux mmc
|
||||
else
|
||||
dboot linux nand ${mtdbootpart}
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -37,9 +37,6 @@ else
|
|||
# We are booting from the NAND using 'recovery'.
|
||||
setenv boot_initrd true
|
||||
setenv initrd_file uramdisk-recovery.img
|
||||
else
|
||||
# We are booting from the SD card.
|
||||
setenv mmcroot /dev/mmcblk${mmcbootdev}p2
|
||||
fi
|
||||
setenv rootfsvol rootfs
|
||||
fi
|
||||
|
|
@ -75,7 +72,11 @@ if test -z "${board_version}" || test "${board_version}" -eq "1"; then
|
|||
setenv overlays _ov_board_v1_ccmp15-dvk.dtbo,${overlays}
|
||||
fi
|
||||
|
||||
dboot linux nand ${mtdbootpart}
|
||||
if test "${boot_device}" = "mmc"; then
|
||||
dboot linux mmc
|
||||
else
|
||||
dboot linux nand ${mtdbootpart}
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue