summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWen He <wen.he_1@nxp.com>2018-11-20 16:55:25 +0800
committerPrabhakar Kushwaha <prabhakar.kushwaha@nxp.com>2019-02-19 10:26:44 +0530
commiteb967b96c26e9c725aa499d36237e0fdba142ee4 (patch)
tree5ca407eff6eecc58b60dfe8021246e28ffebc5ec
parent1eba723c724b974baffade4def1f7b14d38e6a7c (diff)
armv8: ls1043ardb: Add the nand_bootcmd definition
nand_bootcmd doest not exist, it should be support for nand auto boot up. Signed-off-by: Wen He <wen.he_1@nxp.com> Reviewed-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
-rw-r--r--include/configs/ls1043a_common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/configs/ls1043a_common.h b/include/configs/ls1043a_common.h
index 49b014181e..a5bd360abf 100644
--- a/include/configs/ls1043a_common.h
+++ b/include/configs/ls1043a_common.h
@@ -255,6 +255,8 @@
"fdtheader_addr_r=0x80100000\0" \
"kernelheader_addr_r=0x80200000\0" \
"kernel_addr_r=0x81000000\0" \
+ "kernel_start=0x1000000\0" \
+ "kernelheader_start=0x800000\0" \
"fdt_addr_r=0x90000000\0" \
"load_addr=0xa0000000\0" \
"kernelheader_addr=0x60800000\0" \
@@ -306,6 +308,12 @@
"&& cp.b $kernelheader_addr $kernelheader_addr_r " \
"$kernelheader_size && esbc_validate ${kernelheader_addr_r}; " \
"bootm $load_addr#$board\0" \
+ "nand_bootcmd=echo Trying load from NAND..;" \
+ "nand info; nand read $load_addr " \
+ "$kernel_start $kernel_size; env exists secureboot " \
+ "&& nand read $kernelheader_addr_r $kernelheader_start " \
+ "$kernelheader_size && esbc_validate ${kernelheader_addr_r}; " \
+ "bootm $load_addr#$board\0" \
"sd_bootcmd=echo Trying load from SD ..;" \
"mmcinfo; mmc read $load_addr " \
"$kernel_addr_sd $kernel_size_sd && " \