armv8: ls1043ardb: Add the nand_bootcmd definition
authorWen He <wen.he_1@nxp.com>
Tue, 20 Nov 2018 08:55:25 +0000 (16:55 +0800)
committerPrabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Tue, 19 Feb 2019 04:56:44 +0000 (10:26 +0530)
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>
include/configs/ls1043a_common.h

index 49b014181e7302a0928b10fd6e16aef0341d14a3..a5bd360abfdc82539632d2e1ea6e073b3d68945e 100644 (file)
        "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"        \
                "&& 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 && "     \