From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.firstline.co.nz ([203.167.210.162] helo=firstline.co.nz) by pentafluge.infradead.org with smtp (Exim 4.63 #1 (Red Hat Linux)) id 1IhsmH-0002Hm-Iy for linux-mtd@lists.infradead.org; Tue, 16 Oct 2007 21:12:36 +0100 From: Charles Manning To: linux-mtd@lists.infradead.org Subject: Re: mtd support for large NAND Date: Wed, 17 Oct 2007 09:12:09 +1300 References: <200710110911.58596.manningc2@actrix.gen.nz> <200710170847.46250.manningc2@actrix.gen.nz> <20071016195521.GN583@lazybastard.org> In-Reply-To: <20071016195521.GN583@lazybastard.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200710170912.09567.manningc2@actrix.gen.nz> List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wednesday 17 October 2007 08:55:22 J=C3=B6rn Engel wrote: > On Wed, 17 October 2007 08:47:46 +1300, Charles Manning wrote: > > On Tuesday 16 October 2007 23:47:27 J=C3=B6rn 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/bzIma= ge > > > \ -append "ro root=3D/dev/hda block2mtd.block2mtd=3D/dev/hdb" > > > > > > Instead of truncate you can also use dd: > > > $ dd if=3D/dev/zero of=3Dfoo bs=3D1 seek=3D5368709119 > > > > 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 tes= ted=20 that might or might not be important. =2D- Charles