New bad blocks handling
Daniil Stas
daniil.stas at posteo.net
Thu May 9 03:12:39 PDT 2024
Hi,
I have a question about handling of new bad blocks on a NAND flash that
may occur during it's lifetime.
As I understand, when writing new data to the flash I have to check for
erase or write operation errors and mark the blocks bad accordingly.
I see that nandwrite utility has -m option that does the marking of bad
blocks on write errors.
But on the spinand devices with bad blocks that I've seen personally,
the write operation doesn't return any errors when trying to write to
the bad block, only the erase operation does.
And flash_erase utility doesn't have an option similar to -m option of
nandwrite to automatically mark the bad blocks.
I also see that ubiformat utility does automatic bad block marking on
erase errors.
Shouldn't flash_erase utility has an option like this?
Or is there other way to make safe nand writes using mtd utils without
using UBI?
Thanks
More information about the linux-mtd
mailing list