On Sun, 9 Jul 2023 at 11:11, Shivam <shivamvijay...@gmail.com> wrote:
>
> Hi, I have added bcm2835_i2c.c inside the i2c folder and wired up it with 
> bcm2835_peripheral.c , I tried to launch qemu with "-device 
> pca9552,address=0x60" , and it launches without any error means it can able 
> to found the i2c-bus
>
>
> But in the emulated rpi terminal I cant able to detect this device
>
> I tried to enable i2c but it says *Unknown parameter i2c_arm

The problem will be a bug in your code, but it's not really
very easy to guess what without looking at your code.
I think at this point it would be a good idea for you to
make sure your code is in a well-arranged set of git
commits and then send an RFC patchset to the mailing list
(mentioning this bug in the cover letter). Then we can
see if the problem is anything obvious.

You may also find that there are clues in the guest
kernel's bootup log -- there is probably somewhere in
there which tries to detect the i2c controller and which
may be producing error messages at that point.

By the way, in the qtree output this line:

 mmio ffffffffffffffff/0000000000001000

looks a bit odd. Do the other working devices in the rpi
have that ffffffffffffffff, or do they have an actual
address there? If they have an actual address, you should
look at what they are doing that your device is not,
to get themselves put in the correct address in the
memory map.

thanks
-- PMM

Reply via email to