u-boot/doc/imx/habv4
Rasmus Villemoes 89f19f45d6 mx8m: csf.sh: pad csf blob for u-boot.itb to CSF_SIZE minus IVT header
When built with CONFIG_IMX_HAB, the full FIT image, including stuff
tacked on beyond the end of the fdt structure, is expected to be (fdt
size rounded up to 0x1000 boundary)+CONFIG_CSF_SIZE.

Now, when the FIT image is loaded from a storage device, it doesn't
really matter that the flash.bin that gets written to target isn't
quite that big - we will just load some garbage bytes that are never
read or used for anything. But when flash.bin is uploaded via uuu,
it's important that we actually serve at least as many bytes as the
target expects, or we will hang in rom_api_download_image().

Extend the logic in the csf.sh script so that the csf blob is padded
to CONFIG_CSF_SIZE minus the size of the IVT header.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Reviewed-by: Fabio Estevam <festevam@denx.de>
Reviewed-by: Marek Vasut <marex@denx.de>
2023-10-16 08:46:01 +02:00
..
csf_examples mx8m: csf.sh: pad csf blob for u-boot.itb to CSF_SIZE minus IVT header 2023-10-16 08:46:01 +02:00
guides mx8m: csf.sh: use vars for keys to avoid file edits when signing 2023-07-13 11:29:40 +02:00
script_examples doc: imx: habv4: Add Secure Boot guide for i.MX6 and i.MX7 non-SPL targets 2019-02-15 12:46:45 +01:00
introduction_habv4.txt