http://www.stlinux.com/howto/NAND/cleanThey use nand scrub to mark all marked bad sectors as good one.
To discover which sector is good and which one is bad is simple, just try write something and if you get error that sector should be marked as bad sector.Thats how it works.
Like on sti website they use nand bad to display all the bad sectors.Now you can use nand scrub to erase them all.Fill up nand with random data to detect which sectors cannot be writen.
Make a list of not possible to write bad blocks.From script mark all bad sectors. Sti uboot use mark bad command.
Message body
Tianjin Weilei Technology Ltd.