From: "Jörn Engel" <joern@logfs.org>
To: falls huang <falls.huang@gmail.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: mtd support for large NAND
Date: Tue, 16 Oct 2007 12:47:27 +0200 [thread overview]
Message-ID: <20071016104727.GH583@lazybastard.org> (raw)
In-Reply-To: <49eab5c80710120136m557b0df1ye3bd4e04d345d222@mail.gmail.com>
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
Jörn
--
When you close your hand, you own nothing. When you open it up, you
own the whole world.
-- Li Mu Bai in Tiger & Dragon
next prev parent reply other threads:[~2007-10-16 10:55 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-10 20:11 mtd support for large NAND Charles Manning
2007-10-11 7:22 ` Artem Bityutskiy
2007-10-12 8:36 ` falls huang
2007-10-16 0:27 ` Charles Manning
2007-10-16 7:27 ` Artem Bityutskiy
2007-10-16 10:47 ` Jörn Engel [this message]
2007-10-16 19:47 ` Charles Manning
2007-10-16 19:55 ` Jörn Engel
2007-10-16 20:12 ` Charles Manning
2007-10-16 20:42 ` Jörn Engel
2007-10-16 21:16 ` Charles Manning
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071016104727.GH583@lazybastard.org \
--to=joern@logfs.org \
--cc=falls.huang@gmail.com \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox