Archive for December, 2011

mount yaffs2 image with nandsim

Tuesday, December 27th, 2011

# download yaffs2 kernel module from

git clone git://

# compile & install yaffs kernel module

# load yaffs kernel module

modprobe yaffs.ko

# create 512M NAND with nandsim. more info:

modprobe nandsim first_id_byte=0×20 second_id_byte=0xac third_id_byte=0×00 fourth_id_byte=0×15

# write image to mtd

nandwrite -o /dev/mtd0 partition-readed-by-nandread.img

mount -o tags-ecc-off -t yaffs2 /dev/mtdblock0 /mnt/tmp