aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot/uboot-layerscape/patches
diff options
context:
space:
mode:
Diffstat (limited to 'package/boot/uboot-layerscape/patches')
-rw-r--r--package/boot/uboot-layerscape/patches/0004-armv8-ls1088ardb-add-LEDE-boot-support-in-environmen.patch58
-rw-r--r--package/boot/uboot-layerscape/patches/0005-armv8-ls2088ardb-add-LEDE-boot-support-in-environmen.patch54
2 files changed, 112 insertions, 0 deletions
diff --git a/package/boot/uboot-layerscape/patches/0004-armv8-ls1088ardb-add-LEDE-boot-support-in-environmen.patch b/package/boot/uboot-layerscape/patches/0004-armv8-ls1088ardb-add-LEDE-boot-support-in-environmen.patch
new file mode 100644
index 0000000000..72c43ebcd0
--- /dev/null
+++ b/package/boot/uboot-layerscape/patches/0004-armv8-ls1088ardb-add-LEDE-boot-support-in-environmen.patch
@@ -0,0 +1,58 @@
+From 479bf0c0bec2e99442214facf0f414c2c737ac7b Mon Sep 17 00:00:00 2001
+From: Yangbo Lu <yangbo.lu@nxp.com>
+Date: Mon, 16 Oct 2017 11:57:36 +0800
+Subject: [PATCH] armv8: ls1088ardb: add LEDE boot support in environment
+
+Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
+---
+ include/configs/ls1088ardb.h | 27 ++++++++++++++++++++++++++-
+ 1 file changed, 26 insertions(+), 1 deletion(-)
+
+diff --git a/include/configs/ls1088ardb.h b/include/configs/ls1088ardb.h
+index 7bd152d..4cefa40 100644
+--- a/include/configs/ls1088ardb.h
++++ b/include/configs/ls1088ardb.h
+@@ -404,7 +404,20 @@
+ "env exists secureboot && mmc read $kernelheader_addr_r " \
+ "$kernelhdr_addr_sd $kernelhdr_size_sd " \
+ " && esbc_validate ${kernelheader_addr_r};" \
+- "bootm $load_addr#$BOARD\0"
++ "bootm $load_addr#$BOARD\0" \
++ "lede_setenv=setenv loadaddr 82000000 && " \
++ "setenv fdtaddr 8f000000 && " \
++ "setenv bootargs root=/dev/mtdblock10 " \
++ "rootfstype=ext4 noinitrd " \
++ "earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200 " \
++ "mtdparts=20c0000.quadspi:1M(rcw),2M(u-boot),1M(u-boot-env)," \
++ "6M(reserved-1),3M(mc),1M(dpl),1M(dpc),1M(dtb)," \
++ "16M(kernel),17M(ext4rfs),15M(user)\0" \
++ "lede_run=sf probe 0:0 && " \
++ "sf read $fdtaddr f00000 100000 && " \
++ "sf read $loadaddr 1000000 1000000 && " \
++ "bootm $loadaddr - $fdtaddr\0" \
++ "lede_boot=run lede_setenv;run lede_run\0"
+
+ #undef CONFIG_BOOTCOMMAND
+ #if defined(CONFIG_QSPI_BOOT)
+@@ -429,6 +442,18 @@
+ "run distro_bootcmd;run sd_bootcmd;" \
+ "env exists secureboot && esbc_halt;"
+ #endif
++
++#undef CONFIG_BOOTCOMMAND
++#define CONFIG_BOOTCOMMAND \
++ "sf probe 0:0;sf read 0x80000000 0xA00000 0x300000;" \
++ "sf read 0x80300000 0xE00000 0x100000;" \
++ "fsl_mc start mc 0x80000000 0x80300000;" \
++ "sf read 0x80400000 0xd00000 0x100000;" \
++ "fsl_mc apply dpl 0x80400000;" \
++ "run lede_boot;"
++#undef CONFIG_BOOTDELAY
++#define CONFIG_BOOTDELAY 3
++
+ /* MAC/PHY configuration */
+ #ifdef CONFIG_FSL_MC_ENET
+ #define CONFIG_PHYLIB_10G
+--
+2.7.4
+
diff --git a/package/boot/uboot-layerscape/patches/0005-armv8-ls2088ardb-add-LEDE-boot-support-in-environmen.patch b/package/boot/uboot-layerscape/patches/0005-armv8-ls2088ardb-add-LEDE-boot-support-in-environmen.patch
new file mode 100644
index 0000000000..6da256ab06
--- /dev/null
+++ b/package/boot/uboot-layerscape/patches/0005-armv8-ls2088ardb-add-LEDE-boot-support-in-environmen.patch
@@ -0,0 +1,54 @@
+From 20f270670d1d5e14f3fd128f359535300a955ac8 Mon Sep 17 00:00:00 2001
+From: Yangbo Lu <yangbo.lu@nxp.com>
+Date: Mon, 16 Oct 2017 12:37:05 +0800
+Subject: [PATCH] armv8: ls2088ardb: add LEDE boot support in environment
+
+Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
+---
+ include/configs/ls2080ardb.h | 23 ++++++++++++++++++++++-
+ 1 file changed, 22 insertions(+), 1 deletion(-)
+
+diff --git a/include/configs/ls2080ardb.h b/include/configs/ls2080ardb.h
+index 8a34990..8ae3944 100644
+--- a/include/configs/ls2080ardb.h
++++ b/include/configs/ls2080ardb.h
+@@ -432,7 +432,19 @@ unsigned long get_board_sys_clk(void);
+ "env exists secureboot && mmc read $kernelheader_addr_r " \
+ "$kernelhdr_addr_sd $kernelhdr_size_sd " \
+ " && esbc_validate ${kernelheader_addr_r};" \
+- "bootm $load_addr#$board\0"
++ "bootm $load_addr#$board\0" \
++ "lede_setenv=setenv loadaddr 82000000 && " \
++ "setenv fdtaddr 8f000000 && " \
++ "setenv bootargs root=/dev/mtdblock9 " \
++ "rootfstype=squashfs,jffs2 noinitrd " \
++ "earlycon=uart8250,mmio,0x21c0500 console=ttyS1,115200 " \
++ "mtdparts=580000000.nor:1M(rcw),2M(u-boot),1M(u-boot-env)," \
++ "6M(reserved-1),3M(mc),1M(dpl),1M(dpc),1M(dtb)," \
++ "16M(kernel),32M(rootfs),64M(otherbank)\0" \
++ "lede_run=cp.b 580f00000 $fdtaddr 100000 && " \
++ "cp.b 581000000 $loadaddr 1000000 && " \
++ "bootm $loadaddr - $fdtaddr\0" \
++ "lede_boot=run lede_setenv;run lede_run\0"
+
+ #undef CONFIG_BOOTCOMMAND
+ #ifdef CONFIG_QSPI_BOOT
+@@ -463,6 +475,15 @@ unsigned long get_board_sys_clk(void);
+ "env exists secureboot && esbc_halt;"
+ #endif
+
++#undef CONFIG_BOOTCOMMAND
++#define CONFIG_BOOTCOMMAND \
++ "fsl_mc start mc 0x580a00000 0x580e00000;" \
++ "fsl_mc apply dpl 0x580d00000;" \
++ "run lede_boot;"
++
++#undef CONFIG_BOOTDELAY
++#define CONFIG_BOOTDELAY 3
++
+ #undef CONFIG_BOOTARGS
+ #define CONFIG_BOOTARGS "console=ttyS1,115200 root=/dev/ram0 " \
+ "earlycon=uart8250,mmio,0x21c0600 " \
+--
+2.7.4
+