mtd support for large NAND

Jörn Engel joern at
Tue Oct 16 06:47:27 EDT 2007

On Fri, 12 October 2007 16:36:09 +0800, falls huang wrote:
>   How can I simulate a large nandflash(>4G) in linux PC ? I want to
> take a look at it, but I don't have any develop-board that has 4G

Something like this would work:

$ truncate 5GiB foo
$ qemu -s -no-kqemu -hda rootfs -hdb foo -kernel arch/i386/boot/bzImage \
       -append "ro root=/dev/hda block2mtd.block2mtd=/dev/hdb"

Instead of truncate you can also use dd:
$ dd if=/dev/zero of=foo bs=1 seek=5368709119


When you close your hand, you own nothing. When you open it up, you
own the whole world.
-- Li Mu Bai in Tiger & Dragon

More information about the linux-mtd mailing list