From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FwQMM-0007wy-7B for qemu-devel@nongnu.org; Fri, 30 Jun 2006 17:17:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FwQMK-0007te-NB for qemu-devel@nongnu.org; Fri, 30 Jun 2006 17:17:05 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FwQMK-0007tH-GR for qemu-devel@nongnu.org; Fri, 30 Jun 2006 17:17:04 -0400 Received: from [212.227.126.183] (helo=moutng.kundenserver.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FwQZB-0000Gt-En for qemu-devel@nongnu.org; Fri, 30 Jun 2006 17:30:21 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) by flubber.weilnetz.de (Postfix) with ESMTP id 0BF5BF2C46 for ; Fri, 30 Jun 2006 23:16:48 +0200 (CEST) Message-ID: <44A594BF.6040709@mail.berlios.de> Date: Fri, 30 Jun 2006 23:16:47 +0200 From: Stefan Weil MIME-Version: 1.0 Subject: Re: [Qemu-devel] Flash devices References: <4447FA66.8000505@bellard.org> In-Reply-To: <4447FA66.8000505@bellard.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 Fabrice Bellard schrieb: > 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 >>> >>> 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. > Hello Fabrice, I noticed the new code in QEMU HEAD and tried to use it, but my flash memory still behaves like ordinary RAM even on write access. Do you have a working example which uses the new flash driver or some hints which might help? Thank you Stefan