imx6: spl: Reduce SPL limit size in case CONFIG_SECURE_BOOT is enabled
PATCH 3/4 imx6: spl: Reduce SPL limit size in case CONFIG_SECURE_BOOT is enabled
Quoted 18 lines
In case
CONFIG_SECURE_BOOTis enabled we need to limit the SPL size to avoid a possible HAB failure event:
--------- HAB Event 1 -----------------
event data:0xdb 0x00 0x14 0x42 0x33 0x22 0x33 0x00 0x00 0x00 0x00 0x0f 0x00 0x90 0x70 0x00 0x00 0x01 0x10 0x00STS =
HAB_FAILURE(0x33)
RSN =HAB_INV_ADDRESS(0x22)
CTX =HAB_CTX_TARGET(0x33)
ENG =HAB_ENG_ANY(0x00)
As explained in Commit23612534fe0f("spl: imx6: Provide aSPL_SIZE_LIMITdefault") the i.MX6 SPL size limit is 68KB.
The ROM code is copying the image size defined in boot data to its respective load address, in case we exceed the OCRAM free region a HAB invalid address failure event is generated.
The maximum CSF size is defined inCONFIG_CSF_SIZE, reduce SPL size limit based on this configuration.
Quoted 2 lines
Signed-off-by Breno Lima <[email protected]>Reviewed-by Fabio Estevam <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================