Skip to contentSkip to conversation

mtd erase

DISCUSSION yogesh shivabasappa 2 participants 2 messages Nov 21, 2005 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

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

Rgds,

Yogesh Shivabasappa

________________________________________________
Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag

#1 lore raw
Quoted 12 lines · yogesh shivabasappa

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 .

Quoted 4 lines

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