Skip to contentSkip to conversation

How to use MTD

DISCUSSION Michael Thompson 1 participant 1 message Mar 1, 2000 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

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
[email protected]

To unsubscribe, send "unsubscribe mtd" to [email protected]