Hi,
We have setup Yocto project 4.9.11_1.0.0 for imx6qpsabresd and need to test CAN interface.
We have enabled flexcan in the device tree for can0 & can1.
We are trying to test using the below commands, But we are not seeing any data in at CAN1_TX (probed with oscilloscope)
> cansend can0 1F334455#1122334455667788
> cansend can1 1F334455#1122334455667788
> canfdtest -v -g can0
CAN ports are getting registered as below. Below are the messages related to CAN interface when it gets booted.
[ 1.644655] 2090000.flexcan supply xceiver not found, using dummy regulator
[ 1.654151] flexcan 2090000.flexcan: gpr /soc/aips-bus@02000000/iomuxc-gpr@020e0000 req_gpr 0x34 req_bit 28 ack_gpr 0x10 ack_bit 17
[ 1.654213] flexcan 2090000.flexcan: device registered (reg_base=c0b1c000, irq=34)
[ 1.663828] 2094000.flexcan supply xceiver not found, using dummy regulator
[ 1.673309] flexcan 2094000.flexcan: gpr /soc/aips-bus@02000000/iomuxc-gpr@020e0000 req_gpr 0x34 req_bit 29 ack_gpr 0x10 ack_bit 18
[ 1.673368] flexcan 2094000.flexcan: device registered (reg_base=c0b24000, irq=35)
[ 4.744549] can: controller area network core (rev 20120528 abi 9)
[ 4.757293] can: raw protocol (rev 20120528)
[ 4.762501] can: broadcast manager protocol (rev 20161123 t)
[ 4.769161] can: netlink gateway (rev 20130117) max_hops=1
Has anybody tried this and succeeded?
Please let us know how we can validate this with some basic tests.
Regards,
Devika R
IMAGE_INSTALL_append += "libcap iproute2 can-utils "
for test on imx6q in yocto, you can refer to the link as below:
Regarding can interface in imx6q sabresd
for the package you need, you can find them from :
can-utils/README.md at master · linux-can/can-utils · GitHub
Hi Joan,
Yes, we have already configured the kernel as per the Linux Reference manual.
Hi ,
The document you have shared is referring to ltib, but we are using yocto.
In the Yocto project we have setup has only below CAN utilities.
can-calc-bit-timing
cangen
cansend
canbusload
cangw
cansniffer
candump
canlogserver
canfdtest
canplayer
Please let us know how to add other can utilities like cantest,canecho and canconfig in unit test instructions.
Thanks
Devika