diff mbox

[U-Boot,v4,05/14] armv8: fsl-lsch3: Add bootscript header address for Secure Boot

Message ID 1454995422-31731-6-git-send-email-saksham.jain@nxp.com
State Changes Requested
Delegated to: York Sun
Headers show

Commit Message

Saksham Jain Feb. 9, 2016, 5:23 a.m. UTC
During secure boot, Linux image along with other images are validated
using bootscript. This bootscript also needs to be validated before
it is executed. This requires a header for bootscript.

When secure boot is enabled, default bootcmd is changed to first validate
bootscript using the header and then execute the script.

For ls2080/5, NOR memory map is different from earlier arm SoCs.
So a new address on NOR is used for this bootscript header.
(0x583920000). The Bootscript address is mentioned in this header along
with addresses of other images.

Signed-off-by: Aneesh Bansal <aneesh.bansal@nxp.com>
Signed-off-by: Saksham Jain <saksham.jain@nxp.com>
---
Changes for v2:
	- No changes
Changes for v3:
	- No changes
Changes for v4:
	-Cleaned up commit message

 arch/arm/include/asm/fsl_secure_boot.h | 4 ++++
 1 file changed, 4 insertions(+)

Comments

York Sun March 18, 2016, 3:52 p.m. UTC | #1
On 02/08/2016 09:27 PM, Saksham Jain wrote:
> During secure boot, Linux image along with other images are validated
> using bootscript. This bootscript also needs to be validated before
> it is executed. This requires a header for bootscript.
> 
> When secure boot is enabled, default bootcmd is changed to first validate
> bootscript using the header and then execute the script.
> 
> For ls2080/5, NOR memory map is different from earlier arm SoCs.
> So a new address on NOR is used for this bootscript header.
> (0x583920000). The Bootscript address is mentioned in this header along
> with addresses of other images.
> 

Please keep the line wrap consistent. Some lines are much longer than others.

York
diff mbox

Patch

diff --git a/arch/arm/include/asm/fsl_secure_boot.h b/arch/arm/include/asm/fsl_secure_boot.h
index e65caed..7c55ea1 100644
--- a/arch/arm/include/asm/fsl_secure_boot.h
+++ b/arch/arm/include/asm/fsl_secure_boot.h
@@ -63,7 +63,11 @@ 
 	"setenv hwconfig \'fsl_ddr:ctlr_intlv=null,bank_intlv=null\';"
 
 /* The address needs to be modified according to NOR memory map */
+#if defined(CONFIG_LS2080A) || defined(CONFIG_LS2085A)
+#define CONFIG_BOOTSCRIPT_HDR_ADDR	0x583920000
+#else
 #define CONFIG_BOOTSCRIPT_HDR_ADDR	0x600a0000
+#endif
 
 #include <config_fsl_chain_trust.h>
 #endif /* #ifdef CONFIG_CHAIN_OF_TRUST */