[U-Boot] handling of bad blocks in nand

Scott Wood scottwood at freescale.com
Wed Jun 23 21:08:39 CEST 2010


On Wed, Jun 23, 2010 at 02:40:51PM +0200, Arno Steffen wrote:
> A short question to handling of bad blocks:
> My nand shows a few bad blocks (example 100000)
> 
> What is happen when I write / read from that block via nand write / read.
> Is content than ok (by mapping good blocks do that address)?

Bad blocks are skipped, and all subsequent blocks are shifted out by one.

> Other way around - if I have commands like
> 
> "get_kn=nand read.i 0x80000000 c0000 200000"
> 
> do I have to care for bad blocks in that range ?
> Di I have to make the part bigger to have some extra blocks, if one is
> skipped while write/read as it is bad?

The partition must be at least as large as the number of real data blocks
you want to write, plus the number of bad blocks within that range.

-Scott


More information about the U-Boot mailing list