qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Interconnect two qemu (Stellaris LM3S6965EVB) instances via I2C
@ 2017-02-17 12:27 Richard Peters
  2017-02-17 12:42 ` Paolo Bonzini
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Peters @ 2017-02-17 12:27 UTC (permalink / raw)
  To: qemu-devel

Hi Community,

The Qemu target 'LM3S6965EVB' supports I2C.
I have two firmware versions for a LM3S6965EVB chip that i want to test
with qemu. One is the master and the other is slave.
They use I2C drivers for the LM3S6965EVB chip.

How can i connect these two instances?
I didn't found a simple solution for that in the docs or in google.
Is there a simple solution without virtio driver coding, etc?

Hope you can help me with that :-)

Thank you and regards,
Richard

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] Interconnect two qemu (Stellaris LM3S6965EVB) instances via I2C
  2017-02-17 12:27 [Qemu-devel] Interconnect two qemu (Stellaris LM3S6965EVB) instances via I2C Richard Peters
@ 2017-02-17 12:42 ` Paolo Bonzini
  0 siblings, 0 replies; 2+ messages in thread
From: Paolo Bonzini @ 2017-02-17 12:42 UTC (permalink / raw)
  To: Richard Peters, qemu-devel



On 17/02/2017 13:27, Richard Peters wrote:
> Hi Community,
> 
> The Qemu target 'LM3S6965EVB' supports I2C.
> I have two firmware versions for a LM3S6965EVB chip that i want to test
> with qemu. One is the master and the other is slave.
> They use I2C drivers for the LM3S6965EVB chip.

There is no solution for this and, in addition, QEMU's I2C controller
emulation only supports master mode.

I have long been thinking of adding support for I2C-to-chardev bridge,
where a QEMU device would connect to a character device backend
(typically a socket) and the data on the character device would
represent commands to/from an I2C slave.  Likewise, adding a character
device backend to an I2C controller, speaking the same protocol, would
make it possible to implement slave mode.  However, none of this is
available in QEMU.

The first step would be to implement some kind of asynchronous API in
I2CSlave, to be able to do clock stretching ("no data available on the
socket" would then stretch the clock).

Paolo

> How can i connect these two instances?
> I didn't found a simple solution for that in the docs or in google.
> Is there a simple solution without virtio driver coding, etc?
> 
> Hope you can help me with that :-)
> 
> Thank you and regards,
> Richard
> 
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-02-17 12:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-17 12:27 [Qemu-devel] Interconnect two qemu (Stellaris LM3S6965EVB) instances via I2C Richard Peters
2017-02-17 12:42 ` Paolo Bonzini

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).