All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Evans <tom_usenet@optusnet.com.au>
To: Andreas Gareis <andreas.gareis@hs-augsburg.de>, xenomai@xenomai.org
Subject: Re: [Xenomai] rtdm can on mpc5121e - no rtcan devices detected
Date: Mon, 09 Dec 2013 09:06:36 +1100	[thread overview]
Message-ID: <52A4ED6C.9060601@optusnet.com.au> (raw)
In-Reply-To: <006201cef44d$e4967d90$adc378b0$@hs-augsburg.de>

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





  reply	other threads:[~2013-12-08 22:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-08 19:44 [Xenomai] rtdm can on mpc5121e - no rtcan devices detected Andreas Gareis
2013-12-08 22:06 ` Tom Evans [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-12-09 18:17 Andreas Gareis
2013-12-09 19:09 ` Wolfgang Grandegger
2013-12-09 19:35 Andreas Gareis
2013-12-10  8:01 ` Wolfgang Grandegger
2013-12-30 16:00 Andreas Gareis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52A4ED6C.9060601@optusnet.com.au \
    --to=tom_usenet@optusnet.com.au \
    --cc=andreas.gareis@hs-augsburg.de \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.