summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Drozdov <denys.drozdov@toradex.com>2021-10-06 10:07:52 +0300
committerDenys Drozdov <denys.drozdov@toradex.com>2021-10-06 10:14:53 +0300
commitfd172be49e5936f6662b3cc3c90fcdfd8bd3e221 (patch)
treed6425b95b952acbc54e5b7a37de3571a67470241
parent81d4185cf830a3d601dddbb39c7170c43dc780a1 (diff)
board: toradex: verdin-imx8mm: 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-imx8mm.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/configs/verdin-imx8mm.h b/include/configs/verdin-imx8mm.h
index 72e758ec8a..30a992abd9 100644
--- a/include/configs/verdin-imx8mm.h
+++ b/include/configs/verdin-imx8mm.h
@@ -111,7 +111,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 0 1; mmc write ${loadaddr} 0x2 " \
+ "${blkcnt}; fi\0"
#define CONFIG_SYS_INIT_RAM_ADDR 0x40000000
#define CONFIG_SYS_INIT_RAM_SIZE 0x80000