From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <52A4ED6C.9060601@optusnet.com.au> Date: Mon, 09 Dec 2013 09:06:36 +1100 From: Tom Evans MIME-Version: 1.0 References: <006201cef44d$e4967d90$adc378b0$@hs-augsburg.de> In-Reply-To: <006201cef44d$e4967d90$adc378b0$@hs-augsburg.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai] rtdm can on mpc5121e - no rtcan devices detected Reply-To: tom_usenet@optusnet.com.au List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas Gareis , xenomai@xenomai.org On 09/12/13 06:44, Andreas Gareis wrote: > Hi Wolfgang, > > Thanks for your answer. > ... >> RTCAN devices are not visible in /dev. It's not a character device. >> You can find more informations in /proc/rtnet. > > The files "devices" and "sockets" which are located in /proc/rtcan don't > have any entries. (/proc/rtnet doesn't exist on my system) Did the CAN devices work before you installed Xenomai? Get them working there first. On the device I'm using (Freescale i.MX53), the CAN drivers are connected via NETWORKING. So they don't show up in /dev, just as Ethernet doesn't show there either (/dev is so 1980's :-). root@triton1:~# ls /proc/net/can rcvlist_all rcvlist_err rcvlist_inv reset_stats version rcvlist_eff rcvlist_fil rcvlist_sff stats root@triton1:~# ifconfig can0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 UP RUNNING NOARP MTU:16 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:256 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:82 can1 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 UP RUNNING NOARP MTU:16 Metric:1 RX packets:2527 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:256 RX bytes:19583 (19.1 KiB) TX bytes:0 (0.0 B) Interrupt:83 eth0 Link encap:Ethernet HWaddr 00:0C:C6:79:6C:6E ... And so on. Check for interrupts: root@triton1:~# cat /proc/interrupts CPU0 6: 0 tzic sdma ... 64: 0 tzic imx-i2c.2 82: 0 tzic can0 83: 5832 tzic can1 87: 124900 tzic imx25-fec.0 Tom