CFI physmap - how to create partitions
Ralph Siemsen
ralphs at netwinder.org
Fri May 20 08:58:59 EDT 2005
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?
Also check in /proc/devices that major 90 is in fact registered.
> # 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