Page 1 of 1

PCAN-miniPCIe Xenomai problem

Posted: Mon 29. Jul 2013, 12:20
by hanfucius
I installed xenomai 2.6.2.1+kernel 2.6.32.20 along with self-contained, non-RT kernel (2.6.32.38) in Ubuntu 10.04.4.
First I install and test the CAN card in non-RT kernel, It transmits and receives perfect.

In Xenomai, I compile the driver as follows:
make KERNEL_LOCATION=‾/linux-2.6.32.20 RT=XENOMAI NET=NO PCI=PCI_SUPPORT PAR=NO USB=NO DNG=NO ISA=NO PCC=NO
And then :
make install
modprobe pcan
I can see pcan in directory /proc:
viewfile.png
viewfile.png (49.87 KiB) Viewed 7947 times
And of course I can see pcan0 and pcan1 in directory /proc/xenomai/rtdm:
viewfile1.png
viewfile1.png (17.95 KiB) Viewed 7946 times
I compiled minimal_xenomai examples:
make RT=XENOMAI
The question is , xenomai_transmit and xenomai_receive do not work.
xenomai_transmit_test runs runs well, but my CAN test module cannot receive any frame.
viewfile2.png
viewfile2.png (53.33 KiB) Viewed 7946 times
Also when I runs xenomai_receive_test, the card cannot receive any frame, and cannot block.
So what's the problem?Thanks for your answering.

Re: PCAN-miniPCIe Xenomai problem

Posted: Mon 29. Jul 2013, 17:03
by M.Maidhof
Hi,

unfortunately I must tell you that we do not support the RTAI and XENOMAI extension of our linux driver anymore. The developers of that RT branch are not available anymore. You can use the code as it is at the moment, when there are bugs or problems in newer kernels or RT extensions, you have to modify the code for yourself. We are planning to support that RT extension again in one of the next releases of our driver. For the moment we only support the standard Chardev an Netdev interface in our driver.

best regards

Michael

Re: PCAN-miniPCIe Xenomai problem

Posted: Tue 30. Jul 2013, 09:29
by hanfucius
I know that xenomai's support is over because I sended a email.
But I have seen another xenomai problem that you have replied and I want to try to seek your help~

Re: PCAN-miniPCIe Xenomai problem

Posted: Mon 31. Jul 2017, 14:38
by pedroluis5
Hello, i'm trying to make PCAN pci to work on xenomai 2.6.5. A have the same problem report at started of this post, so, my question is on version 8.4.0 of peak linux driver, this will work, I mean can I send a message via PCANPCI0 over RT xenomai? I'm using the same test of minimal_xenomai.

tks

Re: PCAN-miniPCIe Xenomai problem

Posted: Tue 8. Aug 2017, 18:23
by S.Grosjean
Hello,

Can you give us the result of "cat /proc/pcan" when pcan.ko RT driver is loaded, please?

Generally speaking, the two common issues we might encounter with Xenomai are:

1/ the RT Xenomai Kernel originally includes a RT driver that is able to handle our PCI adapters. First of all (and before loading the pcan.ko RTDM driver), you must be sure sure that the RT Xenomai driver "xeno_can_peak_pci" is not loaded.

Code: Select all

$ lspci -d 1c: -v
If it is, please remove it with:

Code: Select all

$ sudo rmmod xeno_can_peak_pci
2/ you need to enable CONFIG_XENO_OPT_SHIRQ in your RT Kernel config if you want the RTDM drivers to share IRQs.

Regards,

Stéphane