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?

But the driver IS loaded, so there is another problem. I looked in the syslog 
and could found this line:

Jun 28 11:58:14 wam-desktop kernel: [   13.017820] Xenomai: 
xnintr_shirq_handler: IRQ17 not handled. Disabling IRQ line.

I don't know exactly what happens there or why, but it seems that IRQ 17 is 
disabled? Why and when does this happen?

On IRQ 17 there is the CAN card and two usb controllers. In the rc.local we try 
to disable the conflicting devices using:

echo -n "0000:00:1a.1" > /sys/bus/pci/drivers/uhci_hcd/unbind
echo -n "0000:00:1d.1" > /sys/bus/pci/drivers/uhci_hcd/unbind

But that does not make any difference. Thankful for any ideas or suggestions on 
how to proceed!

Thanks in advance,
Klas Kronander






________________________________________
From: Gilles Chanteperdrix [[email protected]]
Sent: 23 June 2012 19:49
To: Kronander Klas
Cc: [email protected]
Subject: Re: [Xenomai] Peak PCI CAN card RTCAN problem

On 06/23/2012 04:24 PM, Kronander Klas wrote:
> Hi,
>
> I have an installation of ubuntu 12.04 with xenomai 2.5.5.2.

Do you have the same issues with xenomai 2.5.6, or even better, xenomai
2.6.0 ?

--
                                                                Gilles.

_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai

Reply via email to