mtd support for large NAND

Charles Manning manningc2 at actrix.gen.nz
Tue Oct 16 16:12:09 EDT 2007


On Wednesday 17 October 2007 08:55:22 Jörn Engel wrote:
> On Wed, 17 October 2007 08:47:46 +1300, Charles Manning wrote:
> > On Tuesday 16 October 2007 23:47:27 Jörn Engel wrote:
> > > 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
> >
> > Plus modifying mtd to handle partitions greater than the u32 size limit.
>
> I believe Falls Huang wanted to do just that and needed a test setup.
> But I may be wrong.

Does block2mtd simulate spare/oob areas too? Depending on what is being tested 
that might or might not be important.


-- Charles



More information about the linux-mtd mailing list