2010-10-08 08:01:43     CAN bus problem

Document created by Aaronwu Employee on Aug 23, 2013
Version 1Show Document
  • View in full screen mode

2010-10-08 08:01:43     CAN bus problem

Miquel Soler i Mir (SPAIN)

Message: 94335   




I'm working with TCM-BF537 + 2009R1-RC3.


I had some interesting things while CAN driver load.


In "/etc/rc" file I had:


echo "Load the bus CAN driver"

mknod -m 0666 /dev/can0 c 91 0    # Creem node del CAN

modprobe can                                    # Per carregar el driver de CAN


The result of this is: 95 % of kernel starts the driver is loaded OK, but in 5 % of kernel starts the driver is no loaded correctly.


The system answers this when failing:       


         ISA-BlackFin-CAN CAN Driver 3.4.6_AD_BLACKFIN (c) Sep 13 2010

         BlackFin port by H.J. Oertel (oe@port.de)

         CAN configuration mode not reached


I would like to catch this exception!


I'm looking for differents ways of checking


a) using popen: remove the "modprobe can" and use in start program with popen comand


b) Check the using the dmesg comand is the driver is load OK or KO.


There are more (elegant) ways to check this?




Miquel Soler i Mir




2010-10-08 14:18:36     Re: CAN bus problem

Mike Frysinger (UNITED STATES)

Message: 94341   


either that or try using the /dev/can0 device node