AnsweredAssumed Answered

Adding /dev/canX in filesystem (iMX28 - Linux 2.6.35)

Question asked by Emanuele Coli on Jan 22, 2013
Latest reply on Feb 26, 2013 by Emanuele Coli
Branched to a new discussion

I use iMX28 + BSP L2.6.35_10.12.01. I configured kernel for using FlexCAN with CAN0 interface. I also added cantest and can4linux packages. I can powe up can device via ip command:

 

echo 250000 >> /sys/devices/platform/FlexCAN.0/bitrate

ip link set can0 up


and I am able to send and receive messages using cantest command:


cantest can0 71E#DEADBEEF --> send

cantest can0 & --> wait for message


but I don't have can0 device under /dev. So I cannot use, for example, utilities like can_send:


root@freescale ~$ can_send -Dcan0

open error 2;/dev/can0: No such file or directory

 

How can I add can0 device under /dev?

 

Thanks.

Outcomes