From a4d2576463e2c973ce9c6797877949f1366444d9 Mon Sep 17 00:00:00 2001 From: Rouven Czerwinski Date: Tue, 6 Aug 2019 07:10:54 +0200 Subject: arm: lib: add CSF section between PBL and piggy Signing on i.MX8MQ is done by signing only the PBL, since the DRAM is not available on early start and the SRAM is not big enough to contain the whole image. Reserve a CSF area between PBL and the piggydata, to ensure that the CSF area can be loaded into SRAM. Signed-off-by: Rouven Czerwinski Signed-off-by: Sascha Hauer --- arch/arm/lib/pbl.lds.S | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'arch/arm/lib/pbl.lds.S') diff --git a/arch/arm/lib/pbl.lds.S b/arch/arm/lib/pbl.lds.S index 300671bb51..d2f5ab23bd 100644 --- a/arch/arm/lib/pbl.lds.S +++ b/arch/arm/lib/pbl.lds.S @@ -90,6 +90,16 @@ SECTIONS pbl_memory_size = . - BASE; +#if defined(CONFIG_CPU_64) && defined(CONFIG_HABV4) + . = ALIGN(0x1000); + __csf_start = .; + .hab_csf : { + BYTE(0x5a); + . += + 0x1fff; + } = 0x5a + __csf_end = .; +#endif /* CONFIG_CPU_64 && CONFIG_HABV4 */ + . = ALIGN(4); __piggydata_start = .; .piggydata : { -- cgit v1.2.3