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

Scott Wood scottwood at freescale.com
Fri May 16 22:43:59 CEST 2008


Hugo Villeneuve wrote:
> Scott Wood wrote:
>> Hugo Villeneuve wrote:
>>> I would be perfectly happy if the mtd driver reported a warning when
>>> the requested erase size is not an exact multiple of the block size,
>>> and allow the whole block erase to proceed. Then my patch would make
>>> sense. 
>> That's what the mtd-2.6.22.1 branch in the NAND repository does.  I
>> think it should reject such requests, though.
> 
> I don´t like that behavior. Let´s say that I want to program a new
> binary application of 2.8MB. I want to be able to simply erase 2.8MB,
> without having to do fancy math computations on my calculator based
> on the block size :)

Hmm... maybe a flag to request round-up?  Or at the very least, have 
"help nand" mention the rounding-up behavior.

-Scott




More information about the U-Boot mailing list