[PATCH] tools: mxsboot: pre-fill buffer with 0xff, not 0
Marek Vasut
marex at denx.de
Mon Dec 4 09:48:39 CET 2023
On 12/4/23 09:42, Alessandro Rubini wrote:
>> But what about the bad block markers , do they get erased when you write
>> this U-Boot image into the NAND ?
>
> The image includes OOB data, because the rom-mandated map is different
> from normal standards. If OOB is zeroed, blocks appear as bad (correctly!).
>
> By memsetting to 0xff, before filling data structures and checksums, we
> get a binary that written with "nand write.raw" works properly (the rom
> is happy with the format and boots) but doesn't mark blocks as bad.
Clearly my recollection of the MXS is not what it once was.
Reviewed-by: Marek Vasut <marex at denx.de>
Thanks !
More information about the U-Boot
mailing list