[RFC PATCH v1] dts: imx8mp-u-boot.dtsi align flash.bin
Marek Vasut
marex at denx.de
Sat Oct 12 23:24:23 CEST 2024
On 10/10/24 10:28 AM, Heiko Schocher wrote:
> trying to load current flash.bin with uuu tool
> leads in not booting U-Boot as missing some bytes.
>
> Align flash.bin in this case to 0x800 bytes, to
> make uuu and ROM api happy.
>
> Signed-off-by: Heiko Schocher <hs at denx.de>
> ---
> I am unsure about the value of 0x800 which is twice the
> value the code in spl_romapi_load_image_stream(), requests
> from romapi which in my case on imx8mp is 0x400...
>
> May I oversee something?
Was the flash.bin aligned differently before the binman conversion , or
did it work with UUU by sheer chance ? I don't see any alignment changes
during the binman conversion.
tools/imx8mimage.c does contain
33 #define ALIGN_SIZE 0x1000
But that should be called internally by binman anyway.
Is the flash.bin correct or is it already corrupted when generated by
this binman stuff ? You should be able to extract the u-boot.itb from
flash.bin and run mkimage -l on it to validate it.
More information about the U-Boot
mailing list