組み込み開発フォーラム - MONOist(モノイスト)実験

CentOS5.4で
# mknod /dev/mtd0 c 90 0
# lsmod | grep nand
なし
# modprobe nandsim
# lsmod | grep nand
nandsim                24929  0
nand                   30405  1 nandsim
nand_ids                8257  2 nandsim,nand
nand_ecc                6593  1 nand
mtdpart                12097  2 nandsim,nand
mtdcore                 9989  3 nand,mtdpart
# dmesg
Creating 1 MTD partitions on "NAND 8MiB 1,8V 8-bit":
0x00000000-0x00800000 : "NAND simulator partition"

# grep NANDSIM /boot/config-2.6.18-164.el5
CONFIG_MTD_NAND_NANDSIM=m

# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00800000 00002000 "NAND simulator partition"

Memory Technology Device (MTD) Subsystem for Linux.
How to use NAND simulator? 参照
August Twenty First: mtdblock
mtdblockとは? 玄箱Pro、直します。
mtdblockとは?(2) 玄箱Pro、直します。