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:
And of course I can see pcan0 and pcan1 in directory /proc/xenomai/rtdm:
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.
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.
PCAN-miniPCIe Xenomai problem
Re: PCAN-miniPCIe Xenomai problem
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
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
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~
But I have seen another xenomai problem that you have replied and I want to try to seek your help~
-
- Posts: 1
- Joined: Mon 31. Jul 2017, 14:31
Re: PCAN-miniPCIe Xenomai problem
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
tks
- S.Grosjean
- Software Development
- Posts: 357
- Joined: Wed 4. Jul 2012, 17:02
Re: PCAN-miniPCIe Xenomai problem
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.
If it is, please remove it with:
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
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
Code: Select all
$ sudo rmmod xeno_can_peak_pci
Regards,
Stéphane
— Stéphane