From 6beea72eb66bb0a43c8926499339e597f0f00dd8 Mon Sep 17 00:00:00 2001 From: Denys Drozdov Date: Wed, 6 Oct 2021 10:13:33 +0300 Subject: 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 --- include/configs/verdin-imx8mp.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3