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 _______________________________________________ Xenomai mailing list [email protected] http://www.xenomai.org/mailman/listinfo/xenomai
