On 12/14/2011 02:41 AM, LiuShuo wrote:hi Scott,ä 2011å12æ13æ 10:46, LiuShuo åé:Any reason not to do it automatically on the first U-Boot bad blockä 2011å12æ13æ 05:30, Scott Wood åé:I found it's too complex to do the migration in Linux driver.On 12/12/2011 03:19 PM, Artem Bityutskiy wrote:OK, I try to do this. Wait for a couple of days.On Mon, 2011-12-12 at 15:15 -0600, Scott Wood wrote:That's the kind of answer I was hoping to get from Shuo. :-)NAND chips come from the factory with bad blocks marked at a certainAh, I see, thanks. Are you planning to implement in-kernel migration or
offset into each page. This offset is normally in the OOB area, but
since we change the layout from "4k data, 128 byte oob" to "2k
data, 64
byte oob, 2k data, 64 byte oob" the marker is no longer in the
oob. On
first use we need to migrate the markers so that they are still in
the oob.
use a user-space tool?
-LiuShuo
Maybe we can add a uboot command (e.g. nand bbmigrate) to do it, once is
enough.
scan, if the flash isn't marked as already migrated?
Further discussion on the details of how to do it in U-Boot should move
to the U-Boot list.
And let user ensure it been completed before linux use the Nand flash chip.I don't want to trust the user here. It's too easy to skip it, and
things will appear to work, but have subtle problems.
Even if we don't do the migration, the bad block also can be marked as badIt is not acceptable to ignore factory bad block markers just because
by wearing. So, do we really need to take much time to implement it ?
(code looks too complex.)
some methods of using the flash may eventually detect an error (possibly
after data is lost -- no guarantee that the badness is ECC-correctable)
and mark the block bad again.
If you don't feel up to the task, I can look at it, but won't have time
until January.
-Scott