habv4: tools: Avoid hardcoded CSF size for SPL targets
PATCH 2/4 habv4: tools: Avoid hardcoded CSF size for SPL targets
Quoted 15 lines
Currently it's not possible to authenticate the U-Boot proper of
mx6ul_14x14_evk_defconfigtarget:
Authenticate image from DDR location0x877fffc0...
bad magic magic=0x0 length=0x00 version=0x3
bad length magic=0x0 length=0x00 version=0x3
bad version magic=0x0 length=0x00 version=0x3
spl: ERROR: image authentication fail
Commit0633e134784a("imx: hab: IncreaseCSF_SIZEfor i.MX6 and i.MX7 devices") has increasedCSF_SIZEto avoid a possible issue when booting encrypted boot images.
Commitd21bd69b6e95("tools: mkimage: add firmware-ivt image type for HAB verification") is hardcoding the CSF and IVT sizes, the new CSF size is not being considered and u-boot-ivt.img fails to boot.
Avoid hardcoded CSF and IVT size to fix this issue.
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 =====================================================================