How to Enable PCAN-PCI Express FD card ??

CAN FD Interface for PCI Express
Post Reply
vamsi
Posts: 4
Joined: Mon 4. Dec 2017, 16:06

How to Enable PCAN-PCI Express FD card ??

Post by vamsi » Mon 4. Dec 2017, 16:36

Hello I have placed PCAN-PCI express FD card in my Linux pc and i am trying to enable the card by following below procedure but i was unable to do it. Can any 1 please help me with this error ???

Code: Select all

modprobe can
modprobe can-raw
modprobe can-dev
modprobe can-bcm
modprobe peak_pci
by entering : lsmod i got below output with this i assume socketCAN and pci driver modules are installed properly.

Code: Select all

peak_pci               16384  0 
sja1000                 16384  1 peak_pci
can_bcm               24576  0 
can_dev                24576  1 sja1000
can_raw                20480  0 
can                       45056  2 can_bcm,can_raw
when i enter:- dmesg |grep can i see below output but i didn't find any can0 and can1 interfaces
So can any1 please help me with this issue...

Code: Select all

[    0.000000] efi: EFI v2.31 by American Megatrends
[    0.000000] Scanning 1 areas for low memory corruption
[    1.128205] Scanning for low memory corruption every 60 seconds
[    1.206147] rtc_cmos 00:02: RTC can wake from S4
[  361.309772] BTRFS info (device sda3): qgroup scan completed (inconsistency flag cleared)
[11939.975282] can: controller area network core (rev 20120528 abi 9)
[11944.823728] can: raw protocol (rev 20120528)
[11954.281333] can: broadcast manager protocol (rev 20120528 t)
but even when i enter command: lspci
i can see pci card is intsalled properly on my system.

Code: Select all

05:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03)
06:00.0 Network controller: PEAK-System Technik GmbH Device 0013 (rev 01)
Thankyou.,
Last edited by M.Gerber on Mon 4. Dec 2017, 18:21, edited 1 time in total.
Reason: Inserted [code] tags for better readability.

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

Re: How to Enable PCAN-PCI Express FD card ??

Post by M.Maidhof » Mon 4. Dec 2017, 16:48

Hi,

which kernel version do you use? Please post output of uname -a. Those PCAN-PCIe FD cards will be supported by the kernel since 4.12. If you use an older kernel, please install our peak-linux-driver-8.x with Netdev support.

regards

Michael

vamsi
Posts: 4
Joined: Mon 4. Dec 2017, 16:06

Re: How to Enable PCAN-PCI Express FD card ??

Post by vamsi » Mon 4. Dec 2017, 18:12

Hello Michael,
my kernel version is : 4.4.92-18.36-default

Here i have 2 questions?

1) is it possible to compile single kernel module (peak_pci) of 4.12+. and replace it in present existing kernel (4.4.92) because i don't want to change my existing kernel (4.4.92) ??

2) I have downloaded Peak-linux-driver-8.4.0 from your site and compiled and installed it:-

driver is enabled and working fine :
I have verified with this command: cat /proc/pcan

Code: Select all

*------------- PEAK-System CAN interfaces (http://www.peak-system.com) -------------
*------------- Release_20170613_n (8.4.0) Dec  4 2017 19:05:42 --------------
*------------- [mod] [isa] [pci] [pec] [dng] [par] [usb] [pcc] --------------
*--------------------- 2 interfaces @ major 246 found -----------------------
*n -type- -ndev- --base-- irq --btr- --read-- --write- --irqs-- -errors- status
 0  pcifd   -NA-   b41000 019 0x001c 00000000 00000000 00000000 00000000 0x0000
 1  pcifd   -NA-   b42000 019 0x001c 00000000 00000000 00000000 00000000 0x0000
So could you please let me know how to enable "pcan" Netdev support to get can0 and can1 interfaces???

Regards,
vamsi.,
Last edited by M.Gerber on Tue 5. Dec 2017, 09:54, edited 1 time in total.
Reason: Corrected [code] tag positioning

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

Re: How to Enable PCAN-PCI Express FD card ??

Post by M.Maidhof » Tue 5. Dec 2017, 10:11

Hi,

here the answers to your questions:

1. yes, this should be possible. We could generate an out-of-tree driver for you, which you can install on your system with kernel 4.4. Please contact us by email, use our linux email address.

2. please rebuild and reload the driver again for socketcan (make NET=NETDEV_SUPPORT), see driver manual for more details. Please use latest driver version 8.5.1.

regards

Michael

vamsi
Posts: 4
Joined: Mon 4. Dec 2017, 16:06

Re: How to Enable PCAN-PCI Express FD card ??

Post by vamsi » Tue 5. Dec 2017, 11:04

Dear Michael,

As per your guidance i have downloaded latest driver [Driver Download Version 8.5.1 (27.10.2017)] when i try to build it with netdev support as per your manual.

I get below error ???

Code: Select all

linux-qfs6:/home/exxpert/Desktop/peak_driver/peak-linux-driver-8.5.1 # ls
Documentation       Makefile     driver        lib          test
linux-qfs6:/home/exxpert/Desktop/peak_driver/peak-linux-driver-8.5.1 # make –C driver NET=NETDEV_SUPPORT
make: *** No rule to make target '–C'.  Stop.
linux-qfs6:/home/exxpert/Desktop/peak_driver/peak-linux-driver-8.5.1 # 
Could you please help me how to solve this error??

Regards,
Vamsi.,

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

Re: How to Enable PCAN-PCI Express FD card ??

Post by M.Maidhof » Tue 5. Dec 2017, 11:18

Hi,

please try again, and follow my steps:

goto the peak-linux-driver-8.5.1 directory and type:

sudo rmmod pcan
make clean
make NET=NETDEV_SUPPORT
sudo make install
sudo modprobe pcan

vamsi
Posts: 4
Joined: Mon 4. Dec 2017, 16:06

Re: How to Enable PCAN-PCI Express FD card ??

Post by vamsi » Tue 5. Dec 2017, 11:30

Dear Michael,

Thankyou so much its working here below is the output:- :)

Code: Select all

cat /proc/pcan 
*------------- PEAK-System CAN interfaces (http://www.peak-system.com) -------------
*------------- Release_20171027_n (8.5.1) Dec  5 2017 11:25:34 --------------
*---------- [mod] [isa] [pci] [pec] [dng] [par] [usb] [pcc] [net] -----------
*--------------------- 2 interfaces @ major 246 found -----------------------
*n -type- -ndev- --base-- irq --btr- --read-- --write- --irqs-- -errors- status
 0  pcifd   can0   b41000 019 0x001c 00000000 00000000 00000000 00000000 0x0000
 1  pcifd   can1   b42000 019 0x001c 00000000 00000000 00000000 00000000 0x0000

Post Reply