[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Flash devices

From: Stefan Weil
Subject: Re: [Qemu-devel] Flash devices
Date: Fri, 30 Jun 2006 23:16:47 +0200
User-agent: Mozilla Thunderbird 1.0.6 (X11/20050716)

Fabrice Bellard schrieb:

Schwarz, Konrad wrote:

Date: Tue, 18 Apr 2006 21:54:42 +0200
From: Stefan Weil <address@hidden>
Subject: [Qemu-devel] Flash simulation
To: address@hidden

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

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

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.


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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]