1 From 8d6efca7eb2de012b98493206c87f31ee9b9e967 Mon Sep 17 00:00:00 2001
2 From: Yangbo Lu <yangbo.lu@nxp.com>
3 Date: Thu, 28 Sep 2017 11:25:58 +0800
4 Subject: [PATCH 3/3] armv8: ls1012ardb: add LEDE boot support in environment
6 Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
8 include/configs/ls1012ardb.h | 21 ++++++++++++++++++++-
9 1 file changed, 20 insertions(+), 1 deletion(-)
11 diff --git a/include/configs/ls1012ardb.h b/include/configs/ls1012ardb.h
12 index 5fe3218..242cdf0 100644
13 --- a/include/configs/ls1012ardb.h
14 +++ b/include/configs/ls1012ardb.h
16 "$kernel_addr $kernel_size; env exists secureboot " \
17 "&& sf read $kernelheader_addr_r $kernelheader_addr " \
18 "$kernelheader_size && esbc_validate ${kernelheader_addr_r}; " \
19 - "bootm $load_addr#$board\0"
20 + "bootm $load_addr#$board\0" \
21 + "lede_setenv=setenv loadaddr 82000000 && " \
22 + "setenv fdtaddr 8f000000 && " \
23 + "setenv bootargs root=/dev/mtdblock8 " \
24 + "rootfstype=ext4 noinitrd " \
25 + "earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200 " \
26 + "mtdparts=1550000.quadspi:1M(rcw),2M(u-boot),1M(u-boot-env)," \
27 + "5M(reserved-1),256k(fman),5888k(reserved-2),1M(dtb)," \
28 + "16M(kernel),23M(ext4rfs),9M(user)\0" \
29 + "lede_run=sf probe 0:0 && " \
30 + "sf read $fdtaddr f00000 100000 && " \
31 + "sf read $loadaddr 1000000 1000000 && " \
32 + "bootm $loadaddr - $fdtaddr\0" \
33 + "lede_boot=run lede_setenv;run lede_run\0"
35 #undef CONFIG_BOOTCOMMAND
36 #if defined(CONFIG_QSPI_BOOT) || defined(CONFIG_SD_BOOT_QSPI)
37 #define CONFIG_BOOTCOMMAND "run distro_bootcmd; run qspi_bootcmd; " \
38 "env exists secureboot && esbc_halt;"
40 +#undef CONFIG_BOOTCOMMAND
41 +#define CONFIG_BOOTCOMMAND "run lede_boot"
43 +#undef CONFIG_BOOTDELAY
44 +#define CONFIG_BOOTDELAY 3
47 #include <asm/fsl_secure_boot.h>