
On 12/4/23 09:09, Alessandro Rubini wrote:
Hello.
pre-filling with 0xff creates a proper boot loader image, but no bad-block marker is there when written to flash.
Isn't there some kobs-ng or whatever tool it was to properly initialize the NAND on MXS ?
I didn't know. I used what u-boot offers, which works for me without vendor tools -- and dare I say I trust u-boot tools more than vendor tools?.
The default environment even has the rule to reflash from any u-boot.nand you manage to put into RAM. The only issue is that u-boot.nand, as created, marks good blocks as bad by prefilling with zeores.
But what about the bad block markers , do they get erased when you write this U-Boot image into the NAND ?
I think the vendor tool somehow dealt with it (but it might have depended on some weird stuff in GPMI NAND), I don't think I ever used that tool myself.