u-boot/doc/imx
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
..
ahab doc: ahab: Add encrypted boot documentation for i.MX8/8x devices 2020-05-01 13:46:22 +02:00
clk dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
common global: Move remaining CONFIG_SYS_* to CFG_SYS_* 2022-12-05 16:06:08 -05:00
habv4 mx8m: csf.sh: pad csf blob for u-boot.itb to CSF_SIZE minus IVT header 2023-10-16 08:46:01 +02:00
misc doc: move i.MX7D/i.MX8MM A/B booting to board specific 2021-08-17 17:24:07 +02:00
mkimage global: Use proper project name U-Boot (next2) 2023-09-21 13:20:11 +02:00