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

Heiko Schocher hs at denx.de
Mon Oct 14 08:09:56 CEST 2024


Hi Francesco,

On 13.10.24 14:42, Francesco Dolcini wrote:
> On Thu, Oct 10, 2024 at 10:28:31AM +0200, 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.
> 
> Are you sure that the issue is on this? Can you check
> https://github.com/nxp-imx/mfgtools/issues/416 ?  Just sharing something
> related when using UUU on OE generated binaries to confirm you are
> not chasing the wrong issue here.

Thanks for the tip, but I do not use meta-freescale... but yes,
I build with oe... the issue is, because

Okay, I tried the following (flash.bin created without this patch):

$ cp flash.bin flash.bin-tagged
$ stat -L -cUUUBURNXXOEUZX7+A-XY5601QQWWZ%sEND flash.bin-tagged >> flash.bin-tagged

and loading flash.bin-tagged... which leads in uuu reaches 100%
but U-Boot does not boot, as rom_api_download_image() still waits
for some bytes ... simply sending more bytes by starting uuu again
leads in starting U-Boot!

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