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