aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot/uboot-layerscape/patches/0080-ls1012ardb-PPA-Enable-PPA-validation-in-case-of-secu.patch
diff options
context:
space:
mode:
authorYutang Jiang <yutang.jiang@nxp.com>2016-10-29 00:18:23 +0800
committerJohn Crispin <john@phrozen.org>2016-10-31 17:00:10 +0100
commit15a14cf1665ef3d8b5c77cce69b52d131340e3b3 (patch)
treebd544b24bd3e7fc7efc61f80e1755274971c5582 /package/boot/uboot-layerscape/patches/0080-ls1012ardb-PPA-Enable-PPA-validation-in-case-of-secu.patch
parentc6c731fe311f7da42777ffd31804a4f6aa3f8e19 (diff)
downloadupstream-15a14cf1665ef3d8b5c77cce69b52d131340e3b3.tar.gz
upstream-15a14cf1665ef3d8b5c77cce69b52d131340e3b3.tar.bz2
upstream-15a14cf1665ef3d8b5c77cce69b52d131340e3b3.zip
layerscape: add 64b/32b target for ls1012ardb device
The QorIQ LS1012A processor, optimized for battery-backed or USB-powered, integrates a single ARM Cortex-A53 core with a hardware packet forwarding engine and high-speed interfaces to deliver line-rate networking performance. QorIQ LS1012A Reference Design System (LS1012ARDB) is a high-performance development platform, with a complete debugging environment. The LS1012ARDB board supports the QorIQ LS1012A processor and is optimized to support the high-bandwidth DDR3L memory and a full complement of high-speed SerDes ports. LEDE/OPENWRT will auto strip executable program file while make. So we need select CONFIG_NO_STRIP=y while make menuconfig to avoid the ppfe network fiemware be destroyed, then run make to build ls1012ardb firmware. The fsl-quadspi flash with jffs2 fs is unstable and arise some failed message. This issue have noticed the IP owner for investigate, hope he can solve it earlier. So the ls1012ardb now also provide a xx-firmware.ext4.bin as default firmware, and the uboot bootcmd will run wrtboot_ext4rfs for "rootfstype=ext4" bootargs. Signed-off-by: Yutang Jiang <yutang.jiang@nxp.com>
Diffstat (limited to 'package/boot/uboot-layerscape/patches/0080-ls1012ardb-PPA-Enable-PPA-validation-in-case-of-secu.patch')
-rw-r--r--package/boot/uboot-layerscape/patches/0080-ls1012ardb-PPA-Enable-PPA-validation-in-case-of-secu.patch54
1 files changed, 54 insertions, 0 deletions
diff --git a/package/boot/uboot-layerscape/patches/0080-ls1012ardb-PPA-Enable-PPA-validation-in-case-of-secu.patch b/package/boot/uboot-layerscape/patches/0080-ls1012ardb-PPA-Enable-PPA-validation-in-case-of-secu.patch
new file mode 100644
index 0000000000..9c072f0f1a
--- /dev/null
+++ b/package/boot/uboot-layerscape/patches/0080-ls1012ardb-PPA-Enable-PPA-validation-in-case-of-secu.patch
@@ -0,0 +1,54 @@
+From b43d6d42d734e78bd9b805a62f2a64933c144a41 Mon Sep 17 00:00:00 2001
+From: Sumit Garg <sumit.garg@nxp.com>
+Date: Thu, 14 Jul 2016 07:20:02 -0400
+Subject: [PATCH 80/93] ls1012ardb: PPA: Enable PPA validation in case of
+ secure boot
+
+As part of Secure Boot Chain of trust, enable validation of PPA image
+before the image is started.
+
+Signed-off-by: Sumit Garg <sumit.garg@nxp.com>
+---
+ arch/arm/include/asm/fsl_secure_boot.h | 2 ++
+ include/configs/ls1012a_common.h | 2 --
+ include/configs/ls1012ardb.h | 2 ++
+ 3 files changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/arch/arm/include/asm/fsl_secure_boot.h b/arch/arm/include/asm/fsl_secure_boot.h
+index b2e9105..0580fcd 100644
+--- a/arch/arm/include/asm/fsl_secure_boot.h
++++ b/arch/arm/include/asm/fsl_secure_boot.h
+@@ -107,6 +107,8 @@
+ #ifdef CONFIG_SYS_LS_PPA_FW_IN_XIP
+ #ifdef CONFIG_LS1043A
+ #define CONFIG_SYS_LS_PPA_ESBC_ADDR 0x600c0000
++#else
++#define CONFIG_SYS_LS_PPA_ESBC_ADDR 0x40480000
+ #endif
+ #else
+ #error "No CONFIG_SYS_LS_PPA_FW_IN_xxx defined"
+diff --git a/include/configs/ls1012a_common.h b/include/configs/ls1012a_common.h
+index 0d64889..7e935ad 100644
+--- a/include/configs/ls1012a_common.h
++++ b/include/configs/ls1012a_common.h
+@@ -191,6 +191,4 @@
+ #define CONFIG_DOS_PARTITION
+ #define CONFIG_CMD_EXT2
+
+-#include <asm/fsl_secure_boot.h>
+-
+ #endif /* __LS1012A_COMMON_H */
+diff --git a/include/configs/ls1012ardb.h b/include/configs/ls1012ardb.h
+index e97c1f9..d78edd2 100644
+--- a/include/configs/ls1012ardb.h
++++ b/include/configs/ls1012ardb.h
+@@ -149,4 +149,6 @@
+
+ #define CONFIG_FSL_CAAM /* Enable CAAM */
+
++#include <asm/fsl_secure_boot.h>
++
+ #endif /* __LS1012ARDB_H__ */
+--
+1.7.9.5
+