I am using the following command to boot "xlnx-versal-virt" board with
"canbus" and connect it to host machine using "canbus"

$ qemu-system-aarch64 -M xlnx-versal-virt -m 4G -serial mon:stdio -display
none -kernel ~/linux_kernel/linux-5.15.157/arch/arm64/boot/Image \

-device virtio-rng-device,bus=virtio-mmio-bus.0 -drive
if=none,index=0,file=rootfs.img,format=raw,id=hd0 \

-device virtio-blk-device,drive=hd0 -append root=/dev/vda -nic user \

-object can-bus,id=canbus0 -machine canbus0=canbus0 -object
can-bus,id=canbus1 -machine canbus1=canbus1 \

-object can-host-socketcan,id=socketcan0,if=vcan0,canbus=canbus0



->I am using the cansend and candump application to test it.

->After sending certain packets the buffer is getting full. I am seeing
that while ":request_irq" from xilinc_can driver gets called it should
invoke "xcan_interrupt" function. I have added prints in those functions.
"xcan_interrupt" function is not getting called.

->If i check the interrupts on cpu for 'can' interface the count is 0.



Thank You in Advance!!

On Sat, Apr 20, 2024 at 11:43 PM abhijeet rajmane <[email protected]>
wrote:

> Hi,
> I have booted up the xlnx-versal-virt machine using qemu-system-aarch64. I
> wanted to work with can device that has been modelled with this device. I
> have used the xilinx_can.c driver for this device and can see two can
> controllers. The problem is I am not able to see any interrupts in
> /proc/interrupts for both can devices. I have set them up and running. I
> have also connected the canbus device to host to transmit and receive can
> packets. I am seeing qemu_set_irq() getting called. Am I missing something?
>
> Thanks ,
> Abhijeet, India
>

Reply via email to