[RFC PATCH v1] dts: imx8mp-u-boot.dtsi align flash.bin

Heiko Schocher hs at denx.de
Mon Oct 14 13:00:56 CEST 2024


Hello Rasmus,

On 14.10.24 12:21, Rasmus Villemoes wrote:
> On man, okt 14 2024, Heiko Schocher <hs at denx.de> wrote:
> 
>>
>> Board boots fine from emmc, sd card. Booting blank board with
>> uuu works with posted RFC patch, as it seems to me code in
>>
>> spl_romapi_load_image_stream()
>>
>> waits for more bytes than flash.bin currently has... appending some
>> zero bytes at the end, and U_Boot begins to boot and works fine, uuu
>> tool ends with errorcode 0.
> 
> Sounds like exactly the symptoms I fixed with commit 89f19f45d650.
> 
> So yes, you really do need to ensure that flash.bin (or rather the
> embedded u-boot FIT image) has a large enough size for what the rom api
> expects, and that number changes when HAB is enabled.

Yep, sounds exactly like this... and my change in the RFC patch
should behind the line:

  #ifdef CONFIG_IMX_HAB

or maybe we need to look into binman how the "nxp-imx8mcst at 0" stuff
is created...

bye,
Heiko
-- 
DENX Software Engineering GmbH,      Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: hs at denx.de


More information about the U-Boot mailing list