diff options
author | Shyam Saini <shyam.saini@amarulasolutions.com> | 2019-02-06 13:23:37 +0530 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2019-03-13 09:14:35 +0100 |
commit | 3f77c933eeb222d44787d625cbc68539708af14f (patch) | |
tree | fda862563f3828fc58a6546dde670034b798005b /include/configs | |
parent | 4eb9aa39350eac95d4c17107527f4e6c663e7074 (diff) | |
download | u-boot-3f77c933eeb222d44787d625cbc68539708af14f.zip u-boot-3f77c933eeb222d44787d625cbc68539708af14f.tar.gz u-boot-3f77c933eeb222d44787d625cbc68539708af14f.tar.bz2 |
include: configs: imx6-engicam: Add recovery boot option
Combined with watchdog board reset mechanism, this can be used as recovery
boot option after bootlimit exceeds the configured value.
Signed-off-by: Shyam Saini <shyam.saini@amarulasolutions.com>
Diffstat (limited to 'include/configs')
-rw-r--r-- | include/configs/imx6-engicam.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/configs/imx6-engicam.h b/include/configs/imx6-engicam.h index 7baa265..571852d 100644 --- a/include/configs/imx6-engicam.h +++ b/include/configs/imx6-engicam.h @@ -43,19 +43,30 @@ "fdt_addr=" FDT_ADDR "\0" \ "boot_fdt=try\0" \ "mmcpart=1\0" \ + "recovery_device=0\0" \ + "recovery_part=2\0" \ + "recovery_root=/dev/mmcblk0p2 rootwait rw\0" \ "nandroot=ubi0:rootfs rootfstype=ubifs\0" \ "mmcautodetect=yes\0" \ "mmcargs=setenv bootargs console=${console},${baudrate} " \ "root=${mmcroot}\0" \ + "recovery_mmcargs= setenv bootargs console=${console},${baudrate} "\ + "root=${recovery_root}\0" \ "ubiargs=setenv bootargs console=${console},${baudrate} " \ "ubi.mtd=5 root=${nandroot} ${mtdparts}\0" \ "loadbootscript=" \ "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \ "bootscript=echo Running bootscript from mmc ...; " \ "source\0" \ + "recovery_loadimage=ext2load mmc ${recovery_device}:${recovery_part} ${loadaddr} ${image}\0" \ + "recovery_loadfdt=ext2load mmc ${recovery_device}:${recovery_part} ${fdt_addr} ${fdt_file}\0" \ "loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \ "loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \ "loadfit=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${fit_image}\0" \ + "altbootcmd=run recovery_boot\0"\ + "recovery_boot=echo Recovery Boot from mmc ...; " \ + "run recovery_loadimage ; run recovery_loadfdt; run recovery_mmcargs; "\ + "bootm ${loadaddr} - ${fdt_addr}\0" \ "fitboot=echo Booting FIT image from mmc ...; " \ "run mmcargs; " \ "bootm ${loadaddr}\0" \ |