SoMLabs / meta-somlabs

MIT License
1 stars 5 forks source link

Can buses not working #8

Open roumy opened 4 years ago

roumy commented 4 years ago

I there, i had problems with can bus in yocto

when i try to set up the can device, i received a error message

ip link set can0 up type can bitrate 500000
Cannot find device "can0"

i have setup a specific defconfig file including can driver as well as added socket-can package in my conf packages.

 zcat /proc/config.gz | grep -i can
CONFIG_CAN=y
CONFIG_CAN_RAW=y
CONFIG_CAN_BCM=y
CONFIG_CAN_GW=y
# CAN Device Drivers
CONFIG_CAN_VCAN=y
# CONFIG_CAN_VXCAN is not set
# CONFIG_CAN_SLCAN is not set
# CONFIG_CAN_DEV is not set
# CONFIG_CAN_DEBUG_DEVICES is not set
CONFIG_SCSI_SCAN_ASYNC=y

when i use the vcan, it works normally. So drivers are OK

the problem is really with can0 devices.

when i do a dmesg | grep can

in Debian i have

[    1.921844] flexcan 2090000.can: device registered (reg_base=a0a08000, irq=25)

whereas this line is not present in yocto Poky

i tried to patch file imx6ul.dtsi to match with ones in debian version. But it did not works so far.

Do you have any idea how to solve this , or where to inspect to make it works? Thanks in advance