Extend the CSF area to be able two store two CSF slots. The 2nd CSF slot is required in case of FlexSPI HAB boot support. The first slot is used for the MMC-IVT + barebox-pbl; the 2nd slot is used for the FlexSPI-IVT + barebox-pbl. This is necessary because of the fact that the HAB ROM code requires that the IVT is signed as well. Use the CONFIG_SPI_NXP_FLEXSPI Kconfig symbol to decide if we need to add the support for FlexSPI image signatures as well since early SRAM space is limited and 4K can make a difference here. Please check the documentation for a more detailed information about the i.MX8M image layout. Signed-off-by: Marco Felsch <m.felsch@xxxxxxxxxxxxxx> --- arch/arm/lib/pbl.lds.S | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/lib/pbl.lds.S b/arch/arm/lib/pbl.lds.S index 898d6be33b54..9ab6d22eb59d 100644 --- a/arch/arm/lib/pbl.lds.S +++ b/arch/arm/lib/pbl.lds.S @@ -12,7 +12,11 @@ #define BASE (TEXT_BASE - SZ_2M) #endif +#ifdef CONFIG_SPI_NXP_FLEXSPI +#define HAB_CSF_LEN 0x4000 +#else #define HAB_CSF_LEN 0x2000 +#endif OUTPUT_FORMAT(BAREBOX_OUTPUT_FORMAT) OUTPUT_ARCH(BAREBOX_OUTPUT_ARCH) -- 2.39.2