* [Qemu-devel] RE: Qemu-devel Digest, Vol 37, Issue 54
@ 2006-04-20 11:13 Schwarz, Konrad
2006-04-20 21:17 ` [Qemu-devel] Flash devices Fabrice Bellard
0 siblings, 1 reply; 3+ messages in thread
From: Schwarz, Konrad @ 2006-04-20 11:13 UTC (permalink / raw)
To: qemu-devel, weil
> 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
> 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.
Regards,
Konrad Schwarz
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Qemu-devel] Flash devices
2006-04-20 11:13 [Qemu-devel] RE: Qemu-devel Digest, Vol 37, Issue 54 Schwarz, Konrad
@ 2006-04-20 21:17 ` Fabrice Bellard
2006-06-30 21:16 ` Stefan Weil
0 siblings, 1 reply; 3+ messages in thread
From: Fabrice Bellard @ 2006-04-20 21:17 UTC (permalink / raw)
To: qemu-devel
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
>>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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] Flash devices
2006-04-20 21:17 ` [Qemu-devel] Flash devices Fabrice Bellard
@ 2006-06-30 21:16 ` Stefan Weil
0 siblings, 0 replies; 3+ messages in thread
From: Stefan Weil @ 2006-06-30 21:16 UTC (permalink / raw)
To: qemu-devel
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-06-30 21:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).