275485936763fa73da3bd5d320e1c99f90881583
[openwrt/staging/noltari.git] /
1 From 3c22f3fcbdb9f919ebdfa87a2ec237ac2abb7e03 Mon Sep 17 00:00:00 2001
2 From: Yutang Jiang <yutang.jiang@nxp.com>
3 Date: Thu, 27 Oct 2016 23:45:45 +0800
4 Subject: [PATCH 05/93] armv8: set openwrt/lede default boot env for
5 ls1043ardb
6
7 Signed-off-by: Yutang Jiang <yutang.jiang@nxp.com>
8 ---
9 include/configs/ls1043a_common.h | 28 +++++++++++++++++++++++++---
10 1 file changed, 25 insertions(+), 3 deletions(-)
11
12 diff --git a/include/configs/ls1043a_common.h b/include/configs/ls1043a_common.h
13 index 68678f3..1db05bb 100644
14 --- a/include/configs/ls1043a_common.h
15 +++ b/include/configs/ls1043a_common.h
16 @@ -273,6 +273,16 @@
17 "5m(kernel),1m(dtb),9m(file_system)"
18 #endif
19
20 +#define WRTBOOT_DEFAULT "setenv bootargs root=/dev/mtdblock6 " \
21 + "rootfstype=squashfs,jffs2 noinitrd earlycon=uart8250,mmio,0x21c0500 " \
22 + "console=ttyS0,115200 mtdparts=60000000.nor:1M(rcw),1M(u-boot)," \
23 + "1M(u-boot-env),1M(fman),1M(dtb),5M(kernel),54M(rootfs),64M(otherbank)" \
24 + " && cp.b 60400000 $fdtaddr 100000 && cp.b 60500000 $loadaddr 500000" \
25 + " && bootm $loadaddr - $fdtaddr"
26 +#define WRTUPDATE_DEFAULT "tftp a0000000 <tftp_folder>/" \
27 + "lede-layerscape-64b-ls1043ardb-squashfs-firmware.bin && protect off all" \
28 + " && erase 60000000 +4000000 && cp.b a0000000 60000000 $filesize && reset"
29 +
30 /* Initial environment variables */
31 #define CONFIG_EXTRA_ENV_SETTINGS \
32 "hwconfig=fsl_ddr:bank_intlv=auto\0" \
33 @@ -286,6 +296,19 @@
34 "kernel_load=0xa0000000\0" \
35 "kernel_size=0x2800000\0" \
36 "console=ttyAMA0,38400n8\0" \
37 + "ethaddr=00:e0:0c:00:77:00\0" \
38 + "eth1addr=00:e0:0c:00:77:01\0" \
39 + "eth2addr=00:e0:0c:00:77:02\0" \
40 + "eth3addr=00:e0:0c:00:77:03\0" \
41 + "eth4addr=00:e0:0c:00:77:04\0" \
42 + "eth5addr=00:e0:0c:00:77:05\0" \
43 + "eth6addr=00:e0:0c:00:77:06\0" \
44 + "ethact=FM1@DTSEC2\0" \
45 + "loadaddr=82000000\0" \
46 + "ramdiskaddr=88000000\0" \
47 + "fdtaddr=8f000000\0" \
48 + "wrtboot=" WRTBOOT_DEFAULT "\0" \
49 + "wrtupdate=" WRTUPDATE_DEFAULT "\0" \
50 "mtdparts=" MTDPARTS_DEFAULT "\0"
51
52 #define CONFIG_BOOTARGS "console=ttyS0,115200 root=/dev/ram0 " \
53 @@ -296,10 +319,9 @@
54 #define CONFIG_BOOTCOMMAND "sf probe && sf read $kernel_load " \
55 "e0000 f00000 && bootm $kernel_load"
56 #else
57 -#define CONFIG_BOOTCOMMAND "cp.b $kernel_start $kernel_load " \
58 - "$kernel_size && bootm $kernel_load"
59 +#define CONFIG_BOOTCOMMAND "run wrtboot"
60 #endif
61 -#define CONFIG_BOOTDELAY 10
62 +#define CONFIG_BOOTDELAY 3
63
64 /* Monitor Command Prompt */
65 #define CONFIG_SYS_CBSIZE 512 /* Console I/O Buffer Size */
66 --
67 1.7.9.5
68