layerscape: update packages with LSDK git trees
[openwrt/openwrt.git] / package / boot / uboot-layerscape / patches / 0001-armv8-ls1043a-add-LEDE-boot-support-in-environment.patch
1 From 74be1b50f96b3ada0a4fc18f0283659739edbadf Mon Sep 17 00:00:00 2001
2 From: Yangbo Lu <yangbo.lu@nxp.com>
3 Date: Fri, 22 Sep 2017 11:00:12 +0800
4 Subject: [PATCH 1/3] armv8: ls1043a: add LEDE boot support in environment
5
6 Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
7 ---
8 include/configs/ls1043a_common.h | 20 +++++++++++++++++++-
9 1 file changed, 19 insertions(+), 1 deletion(-)
10
11 diff --git a/include/configs/ls1043a_common.h b/include/configs/ls1043a_common.h
12 index 0b3fb4e..5c01111 100644
13 --- a/include/configs/ls1043a_common.h
14 +++ b/include/configs/ls1043a_common.h
15 @@ -336,7 +336,19 @@
16 "sd_bootcmd=echo Trying load from SD ..;" \
17 "mmcinfo; mmc read $load_addr " \
18 "$kernel_addr_sd $kernel_size_sd ;" \
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=squashfs,jffs2 noinitrd " \
25 + "earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200 " \
26 + "mtdparts=60000000.nor:1M(rcw),2M(u-boot),1M(u-boot-env)," \
27 + "5M(reserved-1),256k(fman),5888k(reserved-2),1M(dtb)," \
28 + "16M(kernel),32M(rootfs),64M(otherbank)\0" \
29 + "lede_run=cp.b 60f00000 $fdtaddr 100000 && " \
30 + "cp.b 61000000 $loadaddr 1000000 && " \
31 + "bootm $loadaddr - $fdtaddr\0" \
32 + "lede_boot=run lede_setenv;run lede_run\0"
33
34
35 #undef CONFIG_BOOTCOMMAND
36 @@ -351,6 +363,12 @@
37 "env exists secureboot && esbc_halt;"
38 #endif
39
40 +#undef CONFIG_BOOTCOMMAND
41 +#define CONFIG_BOOTCOMMAND "run lede_boot"
42 +
43 +#undef CONFIG_BOOTDELAY
44 +#define CONFIG_BOOTDELAY 3
45 +
46 #define CONFIG_BOOTARGS "console=ttyS0,115200 root=/dev/ram0 " \
47 "earlycon=uart8250,mmio,0x21c0500 " \
48 MTDPARTS_DEFAULT
49 --
50 2.7.4
51