Using MTD
Using mtdram w/ JFFS2
- Setup
modprobe mtdram total_size=24576 erase_size=128
- Verify
cat /proc/mtd
You'll see something like
dev: size erasesize name
mtd0: 01800000 00020000 "mtdram test device"
- Mount
modprobe mtdblock
mount -t jffs2 /dev/mtdblock0 /mnt/mtdram
Using nandsim w/ YAFFS
- Setup1
modprobe mtdblock
modprobe mtdchar
modprobe nandsim first_id_byte=0x20 second_id_byte=0x36 (64MiB, 512 bytes page)
- Verify
cat /proc/mtd
You'll see something like
dev: size erasesize name
mtd0: 00800000 00002000 "NAND simulator partition"
- Mount
mount -t yaffs /dev/mtdblock0 /mnt/nand
page revision: 1, last edited: 18 Feb 2008 22:47