CFI physmap - how to create partitions

Thorsten Haas haas at deutaeit.de
Fri May 20 09:20:57 EDT 2005


Am Freitag, den 20.05.2005, 08:58 -0400 schrieb Ralph Siemsen:
> Thorsten Haas wrote:
> 
> > Yes, they are the same. Yes, they are consecutive in memory. Yes, I
> > tried that. Yes, it's now less undocumented, because my diff contains
> > this information :)
> 
> Excellent.
> 
> > Well, actually, when using physmap.c I am able to create partitions, but
> > there is still some trouble when using the mtd partitions: erasing and
> > mounting fails.
> > 
> > Does someone have an idea, what I am doing wrong?
> > 
> > # flash_erase /dev/mtd0
> > File open error
> 
> That's a bit worrysome... Not sure if it checks for this, but do you 
> have this partition mounted at the time?
Nope, not mounted.

> Also check in /proc/devices that major 90 is in fact registered.
It is registered. Device nodes are also present. 

> > # flash_erase /dev/mtd4 0x0 0x40
> > Erase Total 64 Units
> > Performing Flash Erase of length 131072 at offset 0x160000
> > MTD Erase failure: Invalid argument
> 
> Hmm, I always use "flash_eraseall" command myself, so I don't have to 
> worry about the block numbers and such.  But I doubt this makes any 
> difference, your problem seems to lie elsewhere.
> 
> -R





More information about the linux-mtd mailing list