diff options
author | Denys Drozdov <denys.drozdov@toradex.com> | 2021-10-06 10:13:33 +0300 |
---|---|---|
committer | Denys Drozdov <denys.drozdov@toradex.com> | 2021-10-06 10:15:20 +0300 |
commit | 6beea72eb66bb0a43c8926499339e597f0f00dd8 (patch) | |
tree | 250ee17117f65eb834743590fe229f5579e9fead | |
parent | fd172be49e5936f6662b3cc3c90fcdfd8bd3e221 (diff) |
board: toradex: verdin-imx8mp: add update_boot command
update_boot command is more convenient to update u-boot.
User could download u-boot by tftp and type update_boot
Related-to: ELB-4149
Signed-off-by: Denys Drozdov <denys.drozdov@toradex.com>
-rw-r--r-- | include/configs/verdin-imx8mp.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/configs/verdin-imx8mp.h b/include/configs/verdin-imx8mp.h index 1d544e0b92..cbadc7487f 100644 --- a/include/configs/verdin-imx8mp.h +++ b/include/configs/verdin-imx8mp.h @@ -100,7 +100,12 @@ "boot_scripts=" BOOT_SCRIPT "\0" \ "boot_script_dhcp=" BOOT_SCRIPT "\0" \ "boot_file=Image\0" \ - "setup=setenv setupargs console=${console},${baudrate} console=tty1 consoleblank=0 earlycon\0" + "setup=setenv setupargs console=${console},${baudrate} console=tty1 consoleblank=0 earlycon\0" \ + "update_uboot=askenv confirm Did you load imx-boot (y/N)?; " \ + "if test \"$confirm\" = \"y\"; then " \ + "setexpr blkcnt ${filesize} + 0x1ff && setexpr blkcnt " \ + "${blkcnt} / 0x200; mmc dev 2 1; mmc write ${loadaddr} 0x0 " \ + "${blkcnt}; fi\0" #define CONFIG_SYS_INIT_RAM_ADDR 0x40000000 #define CONFIG_SYS_INIT_RAM_SIZE 0x80000 |