qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Weil <weil@mail.berlios.de>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Flash devices
Date: Fri, 30 Jun 2006 23:16:47 +0200	[thread overview]
Message-ID: <44A594BF.6040709@mail.berlios.de> (raw)
In-Reply-To: <4447FA66.8000505@bellard.org>

Fabrice Bellard schrieb:

> Schwarz, Konrad wrote:
>
>>> Date: Tue, 18 Apr 2006 21:54:42 +0200
>>> From: Stefan Weil <weil@mail.berlios.de>
>>> 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

      reply	other threads:[~2006-06-30 21:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-20 11:13 [Qemu-devel] RE: Qemu-devel Digest, Vol 37, Issue 54 Schwarz, Konrad
2006-04-20 21:17 ` [Qemu-devel] Flash devices Fabrice Bellard
2006-06-30 21:16   ` Stefan Weil [this message]

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=44A594BF.6040709@mail.berlios.de \
    --to=weil@mail.berlios.de \
    --cc=qemu-devel@nongnu.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;
as well as URLs for NNTP newsgroup(s).