mtd-utils/flash_erase modifications

Ricard Wanderlof ricard.wanderlof at axis.com
Fri Oct 27 10:18:15 EDT 2006


On Fri, 27 Oct 2006, Artem Bityutskiy wrote:

>>> Err, are you talking about flash_erase?
> I just thought that it works only with one eraseblock.

By default it erases a single block, but you can specify more than one 
block in which case it erases them all in sequence. E.g. flash_erase 
/dev/mtd1 0 2048  erases a whole 32 MB flash (assuming there are no bad 
blocks).

>> 2. modify flash_eraseall to handle partial erases, change name to
>>     flash_erase (and throw out the old flash_erase).
> I would be happier with this.

Makes sense.

/Ricard
--
Ricard Wolf Wanderlöf                           ricardw(at)axis.com
Axis Communications AB, Lund, Sweden            www.axis.com
Phone +46 46 272 2016                           Fax +46 46 13 61 30




More information about the linux-mtd mailing list