* Requesting suggestions on how to access I2C Bus of the Guest OS
@ 2024-02-12 15:09 Harshit Aghera
2024-02-12 16:29 ` Peter Maydell
0 siblings, 1 reply; 2+ messages in thread
From: Harshit Aghera @ 2024-02-12 15:09 UTC (permalink / raw)
To: qemu-devel@nongnu.org; +Cc: Shakeeb Pasha, Arun D Patil, Raghul Rajakumar
[-- Attachment #1: Type: text/plain, Size: 797 bytes --]
We have a Linux image targeted for architecture Cortex A7, that we are running inside QEMU on x86 machine.
Our Linux image has I2C slave with EEPROM backend, instantiated from user-space. Reference - Linux I2C slave EEPROM backend - The Linux Kernel documentation<https://docs.kernel.org/i2c/slave-eeprom-backend.html>.
Commands used from user-space to instantiate these I2C slaves -
echo slave-24c512ro 0x1054 > /sys/bus/i2c/devices/i2c-0/new_device
echo slave-24c02 0x1054 > /sys/bus/i2c/devices/i2c-1/new_device
Is there a way to send I2C messages to these I2C buses (bus 0 and bus 1) on the Guest OS, as a I2C Master from the Host OS?
Is there a way to send I2C messages to these I2C buses from a separate QEMU Instance's Guest OS acting as a I2C Master?
Thanks,
Harshit.
[-- Attachment #2: Type: text/html, Size: 3340 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Requesting suggestions on how to access I2C Bus of the Guest OS
2024-02-12 15:09 Requesting suggestions on how to access I2C Bus of the Guest OS Harshit Aghera
@ 2024-02-12 16:29 ` Peter Maydell
0 siblings, 0 replies; 2+ messages in thread
From: Peter Maydell @ 2024-02-12 16:29 UTC (permalink / raw)
To: Harshit Aghera
Cc: qemu-devel@nongnu.org, Shakeeb Pasha, Arun D Patil,
Raghul Rajakumar
On Mon, 12 Feb 2024 at 16:01, Harshit Aghera <haghera@nvidia.com> wrote:
>
> We have a Linux image targeted for architecture Cortex A7, that we are running inside QEMU on x86 machine.
>
>
>
> Our Linux image has I2C slave with EEPROM backend, instantiated from user-space. Reference - Linux I2C slave EEPROM backend — The Linux Kernel documentation.
>
> Commands used from user-space to instantiate these I2C slaves –
>
> echo slave-24c512ro 0x1054 > /sys/bus/i2c/devices/i2c-0/new_device
>
> echo slave-24c02 0x1054 > /sys/bus/i2c/devices/i2c-1/new_device
>
>
>
> Is there a way to send I2C messages to these I2C buses (bus 0 and bus 1) on the Guest OS, as a I2C Master from the Host OS?
>
> Is there a way to send I2C messages to these I2C buses from a separate QEMU Instance’s Guest OS acting as a I2C Master?
No; our i2c bus framework does not currently support either of those
things.
thanks
-- PMM
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-02-12 16:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-12 15:09 Requesting suggestions on how to access I2C Bus of the Guest OS Harshit Aghera
2024-02-12 16:29 ` Peter Maydell
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).