aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot/uboot-layerscape/patches
diff options
context:
space:
mode:
authorYangbo Lu <yangbo.lu@nxp.com>2017-10-24 18:07:38 +0800
committerJohn Crispin <john@phrozen.org>2017-11-10 23:00:49 +0100
commit2b1ec44dbd3cd3419231bb88bf9881333ae445c5 (patch)
treef156c44c0374d34d6778448416abe13799b75f27 /package/boot/uboot-layerscape/patches
parent9e7b1667046201b2d52108d6c8769bebd4f6736c (diff)
downloadupstream-2b1ec44dbd3cd3419231bb88bf9881333ae445c5.tar.gz
upstream-2b1ec44dbd3cd3419231bb88bf9881333ae445c5.tar.bz2
upstream-2b1ec44dbd3cd3419231bb88bf9881333ae445c5.zip
layerscape: add ls1012afrdm device support
The QorIQ FRDM-LS1012A Board is an ultra-low-cost development platform for QorIQ LS1012A Series Network Processors built on ARM Cortex-A53 processor. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Diffstat (limited to 'package/boot/uboot-layerscape/patches')
-rw-r--r--package/boot/uboot-layerscape/patches/0006-armv8-ls1012afrdm-add-LEDE-boot-support-in-environme.patch49
1 files changed, 49 insertions, 0 deletions
diff --git a/package/boot/uboot-layerscape/patches/0006-armv8-ls1012afrdm-add-LEDE-boot-support-in-environme.patch b/package/boot/uboot-layerscape/patches/0006-armv8-ls1012afrdm-add-LEDE-boot-support-in-environme.patch
new file mode 100644
index 0000000000..45010a2108
--- /dev/null
+++ b/package/boot/uboot-layerscape/patches/0006-armv8-ls1012afrdm-add-LEDE-boot-support-in-environme.patch
@@ -0,0 +1,49 @@
+From a5e454a3bb33a456655f08592606e4df34e40110 Mon Sep 17 00:00:00 2001
+From: Yangbo Lu <yangbo.lu@nxp.com>
+Date: Tue, 24 Oct 2017 17:48:08 +0800
+Subject: [PATCH] armv8: ls1012afrdm: add LEDE boot support in environment
+
+Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
+---
+ include/configs/ls1012afrdm.h | 19 +++++++++++++++++++
+ 1 file changed, 19 insertions(+)
+
+diff --git a/include/configs/ls1012afrdm.h b/include/configs/ls1012afrdm.h
+index a3f8824d27..36dff19bdd 100644
+--- a/include/configs/ls1012afrdm.h
++++ b/include/configs/ls1012afrdm.h
+@@ -73,12 +73,31 @@
+ "qspi_bootcmd=echo Trying load from qspi..;" \
+ "sf probe && sf read $load_addr " \
+ "$kernel_addr $kernel_size && bootm $load_addr#$board\0" \
++ "lede_setenv=setenv loadaddr 82000000 && " \
++ "setenv fdtaddr 8f000000 && " \
++ "setenv bootargs root=/dev/mtdblock8 " \
++ "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),30M(ext4rfs),2M(user)\0" \
++ "lede_run=pfe stop && 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) || defined(CONFIG_SD_BOOT_QSPI)
+ #define CONFIG_BOOTCOMMAND "run distro_bootcmd;run qspi_bootcmd"
+ #endif
+
++#undef CONFIG_BOOTCOMMAND
++#define CONFIG_BOOTCOMMAND "run lede_boot"
++
++#undef CONFIG_BOOTDELAY
++#define CONFIG_BOOTDELAY 3
++
+ /*
+ * USB
+ */
+--
+2.14.1
+