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 <ma...@denx.de>

Thanks !

Reply via email to