Skip to contentSkip to conversation

utilities for mtd

DISCUSSION C. Michael Sundius 2 participants 2 messages Feb 24, 2005 – Feb 28, 2005 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hi,

I am using a the mtd code from the 2.4.20 kernel. how/where do I get the corresponding utilities such as flash_erase, flash_lock etc... I grabbed a random version of them somewhere and it didn't seem to work.. for one the flash_erase program calls an ioctl "MEMGETREGIONCOUNT" and my kernel returned:
in appropriate ioctl for this device....

any help is appreciated.

thanks

C Michael Sundius
Solico Group LLC
232 Nevada St
San Francisco, CA 94110
[email protected]
(415)608-0121

#1 lore raw

Hi,

I think you must have tried flash_erase on a block device (/dec/mtdblock0) but flash_erase will work only for Char Device. So you can create a char MTD device by giving below commands.

mknod /dev/mtd0 c 90 0

Now try the flash_erase command, it should work.

Regds
Niraj

Quoted 26 lines · C. Michael Sundius

Hi,

I am using a the mtd code from the 2.4.20 kernel. how/where do I get the corresponding utilities
such as flash_erase, flash_lock etc... I grabbed a random version of them somewhere and it
didn't seem to work.. for one the flash_erase program calls an ioctl "MEMGETREGIONCOUNT"
and my kernel returned:
in appropriate ioctl for this device....

any help is appreciated.

thanks

C Michael Sundius
Solico Group LLC
232 Nevada St
San Francisco, CA 94110
[email protected]
(415)608-0121

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/