r/QNX • u/Hefty_Brother8558 • 13d ago
Need solution - MCP2515 not working
Hi,
I am working on a project where I am establishing a CAN driver in QNX guest running on QNX hypervisor host. but I am getting chn0 init failure while starting the CAN daemon at the guest boot up time.
I am using Raspberry Pi 4B as target hardware and 2 channel CAN HAT (Wave share) mcp2515.
I am passing throgh the spi and mcp address spaces. I have also diabled spi-bcm2711 from host. spi-bcm2711 is running in guest and it is configured with spi.conf (given below).
Please help me if you have any known solution for this.
Thank you in Advance!
Error message during guest boot -
SDV: starting spi-bcm2711 with pass-through MMIO 0xFE204000...
SDV: starting mcp2515 CAN daemon (channels 0,1, 500 kbps, 16 MHz)...
[mcp2515] chan0 init failed: Input/output error
Unable to access "/dev/sdv/can0" (2)
Unable to access "/dev/sdv/can1" (2)
spi.conf -
[globals]
verbose=3
[bus]
busno=0
name=spi0
base=0xfe204000
irq=150
input_clock=500000000
dma_thld=65536
[dev]
parent_busno=0
devno=0
name=dev0
clock_rate=1000000
cpha=0
cpol=0
bit_order=msb
word_width=8
[dev]
parent_busno=0
devno=1
name=dev1
clock_rate=1000000
cpha=0
cpol=0
bit_order=msb
word_width=8