How to use MTD

Michael Thompson mickey at berkeley.innomedia.com
Wed Mar 1 02:54:31 EST 2000



I'd really like to start experimenting with MTD, but I'm afraid I've only
got half a clue about how to use it.

Here's what I'd like to do:

	1) Create an ext2 filesystem on an mtd block device and mount
	   it read-write from linux. This is to experiment with MTD
	   without the flash.
	2) Create an ext2 filesystem on a set of flash devices from an
	   embedded system running linux. The underlying flash devices
	   are Intel's StrataFlash; they support CFI and JEDEC.

To accomplish (1), I thought I should:

	# insmod mtd
	# insmod slram
	# insmod mtdblock
	# mkfs -t ext2 /dev/mtdblock0
but mkfs says:
        mke2fs 1.15.6, 13-Aug-1999 for EXT2 FS 0.5b, 95/08/09
        /dev/mtdblock0: Invalid argument passed to ext2 library while setting up        superblock

Can someone please explain the fundamentals?

Thanks!

-Michael Thompson
mickey at berkeley.innomedia.com


To unsubscribe, send "unsubscribe mtd" to majordomo at infradead.org



More information about the linux-mtd mailing list