PCAN-miniPCIe Xenomai problem

This forum covers PCAN-Linux and Linux development issues concerning our products
Post Reply
hanfucius
Posts: 2
Joined: Mon 29. Jul 2013, 12:15

PCAN-miniPCIe Xenomai problem

Post by hanfucius » Mon 29. Jul 2013, 12:20

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 7941 times
And of course I can see pcan0 and pcan1 in directory /proc/xenomai/rtdm:
viewfile1.png
viewfile1.png (17.95 KiB) Viewed 7940 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 7940 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.

M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: PCAN-miniPCIe Xenomai problem

Post by M.Maidhof » Mon 29. Jul 2013, 17:03

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

hanfucius
Posts: 2
Joined: Mon 29. Jul 2013, 12:15

Re: PCAN-miniPCIe Xenomai problem

Post by hanfucius » Tue 30. Jul 2013, 09:29

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~

pedroluis5
Posts: 1
Joined: Mon 31. Jul 2017, 14:31

Re: PCAN-miniPCIe Xenomai problem

Post by pedroluis5 » Mon 31. Jul 2017, 14:38

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

User avatar
S.Grosjean
Software Development
Software Development
Posts: 357
Joined: Wed 4. Jul 2012, 17:02

Re: PCAN-miniPCIe Xenomai problem

Post by S.Grosjean » Tue 8. Aug 2017, 18:23

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
— Stéphane

Post Reply