From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FWgaN-00009C-68 for qemu-devel@nongnu.org; Thu, 20 Apr 2006 17:21:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FWgaL-00008r-II for qemu-devel@nongnu.org; Thu, 20 Apr 2006 17:21:10 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FWgaL-00008o-Dq for qemu-devel@nongnu.org; Thu, 20 Apr 2006 17:21:09 -0400 Received: from [84.96.92.61] (helo=sMtp.neuf.fr) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FWgbk-0005oJ-Tp for qemu-devel@nongnu.org; Thu, 20 Apr 2006 17:22:37 -0400 Received: from [84.102.211.66] by sp604002mt.gpm.neuf.ld (Sun Java System Messaging Server 6.2-5.05 (built Feb 16 2006)) with ESMTP id <0IY1009G1HUGFC41@sp604002mt.gpm.neuf.ld> for qemu-devel@nongnu.org; Thu, 20 Apr 2006 23:18:16 +0200 (CEST) Date: Thu, 20 Apr 2006 23:17:26 +0200 From: Fabrice Bellard In-reply-to: Message-id: <4447FA66.8000505@bellard.org> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT References: Subject: [Qemu-devel] Flash devices Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Schwarz, Konrad wrote: >>Date: Tue, 18 Apr 2006 21:54:42 +0200 >>From: Stefan Weil >>Subject: [Qemu-devel] Flash simulation >>To: qemu-devel@nongnu.org >>Message-ID: <44454402.7030404@mail.berlios.de> >>Content-Type: text/plain; charset=ISO-8859-1; format=flowed >> >>A typical embedded system (and also most standard PCs) >>contains flash memory. Full system emulation should also >>emulate flash behaviour - not only read accesses but also >>flash type discovery and flash programming. >> >>Is there an easy way to realise flash memory emulation with >>Qemu? Must I write this emulation from scratch? >>Hints how this might be done are welcome. > > > The QEMU memory interface is capable of supporting Flash emulation. > As far as I know, no ready solutions exist, so you need to do this from > scratch. > > The data sheet of the Flash device you want to emulate documents the > commands the > device understands. You need to implement the finite state machine > which interprets those commands. > > A high-fidelity emulation will also simulate Flash erase and programming > times. There is already an implementation of a flash device made by Jocelyn Mayer but I have not merged it yet because it needs an architectural change in QEMU concerning memory mapped I/Os. I'll try to make this change ASAP. Fabrice.