We are using IMX8QXP with Android Automotive 12.1.0_1.1.0 .
We are attaching CAN analyzer to the board but there is no CAN0 or CAN1 visible.
We checked with ip link show -a, but no CAN interface detected.
We see SW1 and SW2 near CAN ports with name CAN wake up. Do they have any purpose?
Please support.
can0 is not available in ifconfig list. So when we try to run "ip link set can0 type can help", it shows Cannot find device "can0"
Hi @kumarijyoti9994,
It seems there CAN modules are not built, please check ls /lib/modules that whether can modules are present or not. ,
because if it presents then it should be loaded.
Are you using prebuilt image or builded image , if builded image what is the configuration you have set for can module while you were building the android?
One should also enable the status for flexcan in the device tree file, what is the status you have set?
are they showing "okay" or "disabled", it is recommended that they should be okay.
->Please refer to the below link and share your observations.
https://community.nxp.com/t5/
Thanks & Regards,
Dhruvit Vasavada
As suggested, we checked the lib/modules folder. No CAN related files found. We checked in vendor folder.
We have used both pre built as well as builded image. In both case no can device is found.
Also, there is no CAN related logs in kernel.
Then we updated the dts files as attached.(open using text viewer)
Now we are getting following logs in boot(attached logs):
can-stby : disabling
can-en : disabling
How can we add the CAN modules and where to find the related files?
Also, if there is any android automotive pre-built that supports CAN, please share the link. We have tried in 12.1.0_1.1.0.
We also tried running Linux 5.4.70_2.3.0(just to check if CAN is working) , the board is not starting with the files available.
Hi @kumarijyoti9994,
->Have you checked if the FlexCAN driver is enabled in the current Linux Kernel?
zcat /proc/config.gz | grep VCAN
if it is enabled then it will give output like below
CONFIG_CAN_VCAN=m
If it is not, please enable it by setting the value "m".
and then after by giving the command "ifconfig -a", one can check whether the interface is available or not.
Please share your observation on the above queries.
Thanks & Regards,
Dhruvit Vasavada
Hi @kumarijyoti9994,
I hope you are doing well.
Please confirm if the CAN driver is loaded.
Please provide me with dmesg logs for further debugging
Please follow below mentioned commands to load the driver
modprobe vcan
-bring up the interface up if not
ip link set can0 type can help
ip link set can0 up
ip -details link show can0
Thanks & Regards,
Dhruvit Vasavada.
Hi @Dhruvit
Im' facing a similar problem here, but we are using Android Automotive 13
I've tried to follow your commands but when I run "modprobe vcan", appeared the following message
"modprobe: No module configuration directories given." Could you help us?