mtd erase

Thomas Gleixner tglx at linutronix.de
Mon Nov 21 01:38:26 EST 2005


On Sun, 2005-11-20 at 23:59 -0500, yogesh shivabasappa wrote:
> Hi,
> 
> Im using intelP30 nor flash(CFI)  in our custom board , im
> registering the flash as mtd  character device. We dont have
> partitions on  it ,  Now i'm writting a util program to perform
> read,write and erase.
> 
> beform performing ioctl ERASE we need to call ioctl MEMGETINFO
> or MEMGETREGIONINFO. Here im confusing between these two ioctls.
> my understaing is, for region erase we need to call
> MEMGETREIONINFO and MEMGETINFO is for non-region-erase .
> 
> can anyone tell me how these two ioctls are differ and which one
> can be used for perfect erase.
> 
> I will appreciate any tips

MTDsource/utils/flash_erase and MTDsource/utils/flash_eraseall are the
utilities you are looking for.

	tglx






More information about the linux-mtd mailing list