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.

Reply via email to