Endless data flow on i2c bus

2024-03-26 Thread Paz Offer
Hi, I am simulating an i2c slave device, listening on address 0x30. My intention is that in the hosted Linux OS, my driver will communicate with this (simulated) HW device. The problem I have is that ever since I start QEMU, and even before the hosted Linux OS was fully loaded, the device recei

How do I enumerate devices connected to i2c busses on running QEMU?

2024-03-06 Thread Paz Offer
Hi, I want to enumerate all devices connected to i2c busses in running QEMU hosting Linux. I understand I need to use 'qom-list' and 'qom-get' in monitor mode, but I did not find documentation on how to use them for specific information. Thanks for any tip, Paz

Re: What is the correct way to add linker dependency to QEMU build system?

2024-03-05 Thread Paz Offer
module_close' to unload the library? Thanks, Paz From: Peter Maydell Sent: Thursday, February 29, 2024 7:34 PM To: Paz Offer Cc: qemu-devel@nongnu.org Subject: Re: What is the correct way to add linker dependency to QEMU build system? External email: Use c

Re: What is the correct way to add linker dependency to QEMU build system?

2024-02-29 Thread Paz Offer
Thanks a lot Peter, This is working. Paz From: Peter Maydell Sent: Thursday, February 29, 2024 7:34 PM To: Paz Offer Cc: qemu-devel@nongnu.org Subject: Re: What is the correct way to add linker dependency to QEMU build system? External email: Use caution

What is the correct way to add linker dependency to QEMU build system?

2024-02-29 Thread Paz Offer
Hi, I want to add library 'libdl' to be linked with QEMU build for a particular target (e.g. - qemu-system-arm). Using meson I would typically do 'compiler.find_library(...)', and later add the returned dependency to the binary dependencies list. However, in QEMU I understand that these configur

ISO C90 compilation error

2024-02-28 Thread Paz Offer
Hi, I am trying to build my code with QEMU and getting compilation error according to the ISO C90 standard:   const size_t buf_size = 31;   char buffer[buf_size + 1];   error: ISO C90 forbids array ‘buffer’ whose size can’t be evaluated [-Werror=vla] I noticed that the code builds

Re: Trying to write data to i2c bus

2024-02-25 Thread Paz Offer
nt: Monday, February 19, 2024 7:14 PM To: Paz Offer Cc: qemu-devel@nongnu.org Subject: Re: Trying to write data to i2c bus External email: Use caution opening links or attachments On Mon, Feb 19, 2024 at 04:53:47PM +, Paz Offer wrote: > Thank you very much Corey, > > I am sim

Re: Trying to write data to i2c bus

2024-02-19 Thread Paz Offer
this? Sorry for my lacking knowledge on this, but I am quite new to QEMU... Thanks again, Paz From: Corey Minyard on behalf of Corey Minyard Sent: Monday, February 19, 2024 6:32 PM To: Paz Offer Cc: qemu-devel@nongnu.org Subject: Re: Trying to write data to i2c

Trying to write data to i2c bus

2024-02-19 Thread Paz Offer
Hi, I am new to QEMU development, so please excuse if I my direction here is wrong: I am trying to implement an i2c slave device. My device should be able to read/write data from its i2c bus. I defined my device-state object like so: typedef struct {   I2CSlave i2c;   void