
Part of this can be referenced by the linux commit where ECC errors are handled as common place for MLC nand parts, and a bitflip threshold is setup to return EUCLEAN out of the mtdcore.c. So, the work above avoids the UBI side effect of doing the PEB relocation on getting the bit error indication. However, the bit error is valid on these MLC parts - so, is the idea to port the work from Linux or just make UBI read-only in U-boot and not allow it to relocation PEBs on bit errors?
For reference the Linux commits
commit 3f91e94f7f511de74c0d2abe08672ccdbdd1961c Author: Mike Dunn mikedunn@newsguy.com Date: Wed Apr 25 12:06:09 2012 -0700
mtd: nand: read_page() returns max_bitflips
... snip so web post works ...
commit edbc4540e02c201bdd4f4d498ebb6ed517fd36e2 Author: Mike Dunn mikedunn@newsguy.com Date: Wed Apr 25 12:06:11 2012 -0700
mtd: driver _read() returns max_bitflips; mtd_read() returns -EUCLEAN
... snip so web post works ...
Regards, Charles