[U-Boot] [PATCH] armv8: ls1028a: Add environment variables to facilitate the boot
Yuantian Tang
andy.tang at nxp.com
Tue Jun 18 06:37:30 UTC 2019
Add some environment variables to facilitate the auto boot.
Signed-off-by: Yuantian Tang <andy.tang at nxp.com>
---
include/configs/ls1028a_common.h | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/include/configs/ls1028a_common.h b/include/configs/ls1028a_common.h
index aeb2c7251a..4f64c9fdb7 100644
--- a/include/configs/ls1028a_common.h
+++ b/include/configs/ls1028a_common.h
@@ -67,6 +67,7 @@
#define BOOT_TARGET_DEVICES(func) \
func(MMC, mmc, 0) \
+ func(MMC, mmc, 1) \
func(USB, usb, 0)
#include <config_distro_bootcmd.h>
@@ -127,12 +128,14 @@
"${scripthdraddr} ${prefix}${boot_script_hdr} " \
"&& esbc_validate ${scripthdraddr};" \
"source ${scriptaddr}\0" \
- "xspi_bootcmd=echo Trying load from FlexSPI flash ...;" \
+ "qspi_bootcmd=echo Trying load from FlexSPI flash ...;" \
"sf probe 0:0 && sf read $load_addr " \
"$kernel_start $kernel_size ; env exists secureboot &&" \
"sf read $kernelheader_addr_r $kernelheader_start " \
"$kernelheader_size && esbc_validate ${kernelheader_addr_r}; "\
" bootm $load_addr#$board\0" \
+ "qspi_hdploadcmd=echo Trying load HDP firmware from flexspi..;" \
+ "hdp load 0x20900000 0x2000\0" \
"sd_bootcmd=echo Trying load from SD ...;" \
"mmcinfo; mmc read $load_addr " \
"$kernel_addr_sd $kernel_size_sd && " \
@@ -165,6 +168,9 @@
#define SD_BOOTCOMMAND \
"run sd_hdploadcmd; run distro_bootcmd;run sd_bootcmd; " \
"env exists secureboot && esbc_halt;"
+#define SD2_BOOTCOMMAND \
+ "run emmc_hdploadcmd; run distro_bootcmd;run emmc_bootcmd; " \
+ "env exists secureboot && esbc_halt;"
/* Monitor Command Prompt */
#define CONFIG_SYS_CBSIZE 512 /* Console I/O Buffer Size */
--
2.17.1
More information about the U-Boot
mailing list