From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=38376 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pn5hB-0001jI-DI for qemu-devel@nongnu.org; Wed, 09 Feb 2011 03:46:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pn5h9-0008Uq-2R for qemu-devel@nongnu.org; Wed, 09 Feb 2011 03:46:41 -0500 Received: from fmmailgate03.web.de ([217.72.192.234]:47210) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pn5h8-0008Uh-OP for qemu-devel@nongnu.org; Wed, 09 Feb 2011 03:46:39 -0500 Message-ID: <4D52546C.1090908@web.de> Date: Wed, 09 Feb 2011 09:46:36 +0100 From: Jan Kiszka MIME-Version: 1.0 References: <2F734DBCC05CAB4DAA198E581D746C1A05AB063B@exh1.main.inorg.chem.msu.ru> In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig3FE014945960CE7EF498FD49" Sender: jan.kiszka@web.de Subject: [Qemu-devel] Re: /dev/mtd emulation List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: "Anton L. Vinokurov" , "qemu-devel@nongnu.org" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig3FE014945960CE7EF498FD49 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 2011-02-09 09:13, Stefan Hajnoczi wrote: > On Wed, Feb 9, 2011 at 7:18 AM, Anton L. Vinokurov w= rote: >> ~ # dmesg | grep mtd >> >> ~ # >=20 > Have you tried qemu -drive if=3Dmtd,file=3D/path/to/firmware? >=20 > QEMU has some flash emulation code in > hw/{nand.c,onenand.c,pflash_cfi01.c,pflash_cfi02.c}. I've never used > them but perhaps someone else can help if you provide more details > about the hardware you are trying to emulate. You also need to wire up that flash device on board init, i.e. add some pflash_*_register to pc_init1. Check some embedded board for the precise pattern. Jan --------------enig3FE014945960CE7EF498FD49 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAk1SVGwACgkQitSsb3rl5xRTmACfT9LVIwKS07RHuoWLZybhc/fl IysAniDd0A9gWZ1LbTKkxROEdju2O6uO =3ZLz -----END PGP SIGNATURE----- --------------enig3FE014945960CE7EF498FD49--