All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfgang Grandegger <wg@grandegger.com>
To: Kronander Klas <klas.kronander@epfl.ch>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] Peak PCI CAN card RTCAN problem
Date: Thu, 28 Jun 2012 13:28:48 +0200	[thread overview]
Message-ID: <4FEC3FF0.1050307@grandegger.com> (raw)
In-Reply-To: <D1DC5191D5CF3A45A867CD95644B92392162B98F@REXMF.intranet.epfl.ch>

On 06/28/2012 01:11 PM, Kronander Klas wrote:
> Hi,
> 
> Thanks for the response. I now tried with xenomai version 2.6, I have some progress but it is still not working. 
> 
> CAN-problem:
> Looking at the syslog, the can card is detected and the rtcan interfaces are set up properly:
> 
> Jun 28 11:58:14 wam-desktop kernel: [   11.954476] RT-Socket-CAN 0.90.2 - (C) 2006 RT-Socket-CAN Development Team
> Jun 28 11:58:14 wam-desktop kernel: [   11.960228] RTCAN SJA1000 driver initialized
> Jun 28 11:58:14 wam-desktop kernel: [   11.967911] PEAK-PCI-CAN: initializing device 001c:0001
> Jun 28 11:58:14 wam-desktop kernel: [   11.967920] PEAK-PCI-CAN 0000:05:05.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
> Jun 28 11:58:14 wam-desktop kernel: [   11.972902] PEAK-PCI-CAN: base_addr=f8470000 conf_addr=f8466000 irq=17
> Jun 28 11:58:14 wam-desktop kernel: [   11.972914] rtcan: registered rtcan0
> Jun 28 11:58:14 wam-desktop kernel: [   11.972920] PEAK-PCI-CAN: base_addr=f849e400 conf_addr=f8466000 irq=17
> Jun 28 11:58:14 wam-desktop kernel: [   11.972928] rtcan: registered rtcan1
> 
> I now also see the loaded xeno_can_peak_pci driver with lsmod. The status of the can is STOPPED for both ports:
> cat /proc/rtcan/devices
> Name___________ _Baudrate State___ TX_Counter RX_Counter ____Errors
> rtcan0          undefined stopped           0          0          0
> rtcan1          undefined stopped           0          0          0
> 
> When trying to start rtcan0 I get an error:
> /usr/xenomai/sbin/rtcanconfig rtcan0 -b 1000000 -c none start -v 
> Cannot open RTDM CAN socket. Maybe driver not loaded?

Does the following command work?

/usr/xenomai/sbin/rtcanconfig -b 1000000 -c none start -v rtcan0




  reply	other threads:[~2012-06-28 11:28 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-23 14:24 [Xenomai] Peak PCI CAN card RTCAN problem Kronander Klas
2012-06-23 17:49 ` Gilles Chanteperdrix
2012-06-28 11:11   ` Kronander Klas
2012-06-28 11:28     ` Wolfgang Grandegger [this message]
2012-06-28 11:38       ` Wolfgang Grandegger
2012-06-28 11:45         ` Kronander Klas
2012-06-28 11:57           ` Wolfgang Grandegger
2012-06-28 12:52             ` Klas Kronander
2012-06-28 13:07               ` Wolfgang Grandegger
2012-06-28 13:27                 ` Wolfgang Grandegger
2012-06-28 16:09                   ` Klas Kronander
2012-06-28 16:12                     ` Gilles Chanteperdrix
2012-06-28 16:47                       ` Klas Kronander
2012-06-28 16:48                         ` Gilles Chanteperdrix
2012-07-04 10:59                           ` Kronander Klas
2012-07-04 11:01                             ` Gilles Chanteperdrix
2012-06-28 12:45     ` Gilles Chanteperdrix

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=4FEC3FF0.1050307@grandegger.com \
    --to=wg@grandegger.com \
    --cc=klas.kronander@epfl.ch \
    --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.