From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from magratgarlick.emantor.de ([78.46.208.201]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hurkk-0007QD-0B for barebox@lists.infradead.org; Tue, 06 Aug 2019 05:11:19 +0000 From: Rouven Czerwinski Date: Tue, 6 Aug 2019 07:10:54 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH v3 04/16] arm: lib: add CSF section between PBL and piggy To: barebox@lists.infradead.org Cc: Rouven Czerwinski 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 --- arch/arm/lib/pbl.lds.S | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/lib/pbl.lds.S b/arch/arm/lib/pbl.lds.S index 300671b..d2f5ab2 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 : { -- git-series 0.9.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox