45010a210834265fda58cb7d8a63179fe2790b97
[openwrt/staging/pepe2k.git] /
1 From a5e454a3bb33a456655f08592606e4df34e40110 Mon Sep 17 00:00:00 2001
2 From: Yangbo Lu <yangbo.lu@nxp.com>
3 Date: Tue, 24 Oct 2017 17:48:08 +0800
4 Subject: [PATCH] armv8: ls1012afrdm: add LEDE boot support in environment
5
6 Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
7 ---
8 include/configs/ls1012afrdm.h | 19 +++++++++++++++++++
9 1 file changed, 19 insertions(+)
10
11 diff --git a/include/configs/ls1012afrdm.h b/include/configs/ls1012afrdm.h
12 index a3f8824d27..36dff19bdd 100644
13 --- a/include/configs/ls1012afrdm.h
14 +++ b/include/configs/ls1012afrdm.h
15 @@ -73,12 +73,31 @@
16 "qspi_bootcmd=echo Trying load from qspi..;" \
17 "sf probe && sf read $load_addr " \
18 "$kernel_addr $kernel_size && bootm $load_addr#$board\0" \
19 + "lede_setenv=setenv loadaddr 82000000 && " \
20 + "setenv fdtaddr 8f000000 && " \
21 + "setenv bootargs root=/dev/mtdblock8 " \
22 + "rootfstype=ext4 noinitrd " \
23 + "earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200 " \
24 + "mtdparts=1550000.quadspi:1M(rcw),2M(u-boot),1M(u-boot-env)," \
25 + "5M(reserved-1),256k(fman),5888k(reserved-2),1M(dtb)," \
26 + "16M(kernel),30M(ext4rfs),2M(user)\0" \
27 + "lede_run=pfe stop && sf probe 0:0 && " \
28 + "sf read $fdtaddr f00000 100000 && " \
29 + "sf read $loadaddr 1000000 1000000 && " \
30 + "bootm $loadaddr - $fdtaddr\0" \
31 + "lede_boot=run lede_setenv;run lede_run\0"
32
33 #undef CONFIG_BOOTCOMMAND
34 #if defined(CONFIG_QSPI_BOOT) || defined(CONFIG_SD_BOOT_QSPI)
35 #define CONFIG_BOOTCOMMAND "run distro_bootcmd;run qspi_bootcmd"
36 #endif
37
38 +#undef CONFIG_BOOTCOMMAND
39 +#define CONFIG_BOOTCOMMAND "run lede_boot"
40 +
41 +#undef CONFIG_BOOTDELAY
42 +#define CONFIG_BOOTDELAY 3
43 +
44 /*
45 * USB
46 */
47 --
48 2.14.1
49