utilities for mtd

Niraj Maheshwari niraj.maheshwari at gmail.com
Mon Feb 28 02:57:01 EST 2005


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


On Thu, 24 Feb 2005 11:34:34 -0800, C. Michael Sundius
<msundius at sundius.com> wrote:
> 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
> msundius at sundius.com
> (415)608-0121
> 
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
>




More information about the linux-mtd mailing list