layerscape: update restool to LSDK-18.06
[openwrt/openwrt.git] / package / boot / uboot-layerscape / patches / 0001-armv8-ls1043a-add-LEDE-boot-support-in-environment.patch
1 From d1b42455f62baefe7fb782d0d7100715b0fdb41f Mon Sep 17 00:00:00 2001
2 From: Yangbo Lu <yangbo.lu@nxp.com>
3 Date: Fri, 19 Jan 2018 10:16:57 +0800
4 Subject: [PATCH] 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 files changed, 19 insertions(+), 1 deletions(-)
10
11 diff --git a/include/configs/ls1043a_common.h b/include/configs/ls1043a_common.h
12 index c437ce5..48ecff5 100644
13 --- a/include/configs/ls1043a_common.h
14 +++ b/include/configs/ls1043a_common.h
15 @@ -341,7 +341,19 @@
16 "env exists secureboot && mmc read $kernelheader_addr_r " \
17 "$kernelhdr_addr_sd $kernelhdr_size_sd " \
18 " && 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=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 @@ -356,6 +368,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 1.7.1
51