aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot/uboot-layerscape/patches/0002-armv8-ls1046ardb-add-LEDE-boot-support-in-environmen.patch
diff options
context:
space:
mode:
authorYangbo Lu <yangbo.lu@nxp.com>2017-07-03 10:48:27 +0800
committerJohn Crispin <john@phrozen.org>2017-10-07 23:13:22 +0200
commit2e2203ff72fd1556bab2c32e808ce7bb79a9858c (patch)
tree607f010eaac6a2830d92ac07e7ae8ab566b5e049 /package/boot/uboot-layerscape/patches/0002-armv8-ls1046ardb-add-LEDE-boot-support-in-environmen.patch
parent806624add541bd828516a58aab20ae19ae9e431f (diff)
downloadupstream-2e2203ff72fd1556bab2c32e808ce7bb79a9858c.tar.gz
upstream-2e2203ff72fd1556bab2c32e808ce7bb79a9858c.tar.bz2
upstream-2e2203ff72fd1556bab2c32e808ce7bb79a9858c.zip
layerscape: update packages with LSDK git trees
NXP Layerscape LSDK had set up its own open source web site and github for release. https://lsdk.github.io https://github.com/qoriq-open-source This patch is to update rcw/fman_ucode/u-boot packages with LSDK git trees. Also add some patches of packages to support LEDE. Since ARMv8 32-bit u-boot images are same with ARMv8 64-bit images but 64-bit toolchain couldn't be used for 32-bit targets, we still use a private tree for ARMv8 32-bit u-boot images. This is in plan to move this private tree to NXP Layerscape github. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Diffstat (limited to 'package/boot/uboot-layerscape/patches/0002-armv8-ls1046ardb-add-LEDE-boot-support-in-environmen.patch')
-rw-r--r--package/boot/uboot-layerscape/patches/0002-armv8-ls1046ardb-add-LEDE-boot-support-in-environmen.patch57
1 files changed, 57 insertions, 0 deletions
diff --git a/package/boot/uboot-layerscape/patches/0002-armv8-ls1046ardb-add-LEDE-boot-support-in-environmen.patch b/package/boot/uboot-layerscape/patches/0002-armv8-ls1046ardb-add-LEDE-boot-support-in-environmen.patch
new file mode 100644
index 0000000000..715d7869a1
--- /dev/null
+++ b/package/boot/uboot-layerscape/patches/0002-armv8-ls1046ardb-add-LEDE-boot-support-in-environmen.patch
@@ -0,0 +1,57 @@
+From dc0e8734ea1c679738377d13bdd9bf3fa644e6b3 Mon Sep 17 00:00:00 2001
+From: Yangbo Lu <yangbo.lu@nxp.com>
+Date: Fri, 22 Sep 2017 11:36:43 +0800
+Subject: [PATCH 2/3] armv8: ls1046ardb: add LEDE boot support in environment
+
+Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
+---
+ include/configs/ls1046a_common.h | 15 ++++++++++++++-
+ include/configs/ls1046ardb.h | 6 ++++++
+ 2 files changed, 20 insertions(+), 1 deletion(-)
+
+diff --git a/include/configs/ls1046a_common.h b/include/configs/ls1046a_common.h
+index 4fc2f94..53bd41b 100644
+--- a/include/configs/ls1046a_common.h
++++ b/include/configs/ls1046a_common.h
+@@ -276,7 +276,20 @@
+ "sd_bootcmd=echo Trying load from SD ..;" \
+ "mmcinfo; mmc read $load_addr " \
+ "$kernel_addr_sd $kernel_size_sd ;" \
+- " bootm $load_addr#$board\0"
++ " bootm $load_addr#$board\0" \
++ "lede_setenv=setenv loadaddr 82000000 && " \
++ "setenv fdtaddr 8f000000 && " \
++ "setenv bootargs root=/dev/mtdblock9 " \
++ "rootfstype=ext4 noinitrd " \
++ "earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200 " \
++ "mtdparts=1550000.quadspi:1M(rcw),2M(u-boot),1M(u-boot-env)," \
++ "5M(reserved-1),256k(fman),5888k(reserved-2),1M(dtb)," \
++ "16M(kernel),22M(ext4rfs),10M(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"
+
+
+ #define CONFIG_BOOTARGS "console=ttyS0,115200 root=/dev/ram0 " \
+diff --git a/include/configs/ls1046ardb.h b/include/configs/ls1046ardb.h
+index f8c15a6..c3b50b1 100644
+--- a/include/configs/ls1046ardb.h
++++ b/include/configs/ls1046ardb.h
+@@ -251,6 +251,12 @@
+ "env exists secureboot && esbc_halt;"
+ #endif
+
++#undef CONFIG_BOOTCOMMAND
++#define CONFIG_BOOTCOMMAND "run lede_boot"
++
++#undef CONFIG_BOOTDELAY
++#define CONFIG_BOOTDELAY 3
++
+ #define MTDPARTS_DEFAULT "mtdparts=1550000.quadspi:1m(rcw)," \
+ "15m(u-boot),48m(kernel.itb);" \
+ "7e800000.flash:16m(nand_uboot)," \
+--
+2.7.4
+