All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] Peak PCI CAN card RTCAN problem
@ 2012-06-23 14:24 Kronander Klas
  2012-06-23 17:49 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 17+ messages in thread
From: Kronander Klas @ 2012-06-23 14:24 UTC (permalink / raw)
  To: xenomai@xenomai.org

Hi,

I have an installation of ubuntu 12.04 with xenomai 2.5.5.2. This PC is used to communicate with a robot over CAN bus. The CAN card installed on the PC is a dual channel PCI card from PEAK Systems.

I have not been able to use the CAN port at all so far. The device is detected by the systems and the interfaces show up:

cat /proc/rtcan/devices
Name___________ _Baudrate State___ TX_Counter RX_Counter ____Errors
rtcan0          undefined stopped           0          0          0
rtcan1          undefined stopped           0          0          0

but I am unable to change the state from "stopped" to something useful. When I try to reinitialize it tells me that the driver is not loaded:
/usr/xenomai/sbin/rtcanconfig rtcan0 -b 1000000 -c none start
Cannot open RTDM CAN socket. Maybe driver not loaded?

This is confirmed when looking at the loaded modules with lsmod | grep xeno_can_peak_pci, which does not find the relevant module. When I try to load the module with modprobe xeno_can_peak_pci I do not get any error messages, but the module still does not show up when doing lsmod | grep xeno_can_peak_pci.

Looking in the syslog, I can find some information regarding the CAN device, which seemed to have initialized during system startup:

Jun 23 16:20:37 wam-desktop kernel: [    2.105390] RT-Socket-CAN 0.90.2 - (C) 2006 RT-Socket-CAN Development Team
Jun 23 16:20:37 wam-desktop kernel: [    2.105397] RTCAN SJA1000 driver initialized
Jun 23 16:20:37 wam-desktop kernel: [    2.105405] PEAK-PCI-CAN: initializing device 001c:0001
Jun 23 16:20:37 wam-desktop kernel: [    2.105411] PEAK-PCI-CAN 0000:05:05.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
Jun 23 16:20:37 wam-desktop kernel: [    2.110385] PEAK-PCI-CAN: base_addr=f8272000 conf_addr=f826e000 irq=17
Jun 23 16:20:37 wam-desktop kernel: [    2.110398] rtcan: registered rtcan0
Jun 23 16:20:37 wam-desktop kernel: [    2.110403] PEAK-PCI-CAN: base_addr=f8276400 conf_addr=f826e000 irq=17
Jun 23 16:20:37 wam-desktop kernel: [    2.110413] rtcan: registered rtcan1

This looks fine right? Yet no driver related to any CAN device is loaded. I am stuck and would greatly appreciate some help for fixing this problem.

Thanks in advance,

Best Regards,
Klas Kronander



^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2012-07-04 11:01 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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.