[U-Boot-Users] [PATCH] Fix NAND erase progress error

Scott Wood scottwood at freescale.com
Fri May 16 21:40:54 CEST 2008


On Fri, May 16, 2008 at 02:39:17PM -0400, Hugo Villeneuve wrote:
> This patch fixes an error when reporting the NAND erase
> progress as in this example:
>   U-Boot > nand erase 0000 800
>   NAND erase: device 0 offset 0x0, size 0x800
>   Erasing at 0x0 -- 6400% complete.

So the problem is when trying to erase less than an erase block boundary? 
That should be an error.

The mtd-2.6.22.1 branch emits a warning and increases the length to be
erased if it's less than one block, but that's still wrong as it won't deal
with unaligned lengths that are greater than one blocksize, and more
importantly because it's rather dangerous to erase more than was asked for
without the user having the ability to stop it after the warning is printed.

-Scott




More information about the U-Boot mailing list