PCAN driver installation Linux 16.04

USB to CAN Interface
Post Reply
nishad-ovgu
Posts: 5
Joined: Wed 29. Sep 2021, 13:33

PCAN driver installation Linux 16.04

Post by nishad-ovgu » Thu 27. Jan 2022, 16:09

I am manually trying to install the PCAN driver on my linux system -- Linux version 4.15.0-142-generic (buildd@lgw01-amd64-039) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12).

I am getting the following error on running the commands -
make clean
make NET=NO_NETDEV_SUPPORT
sudo make install

make[1]: Entering directory '/home/summit/catkin_ws/src/peak-linux-driver-7.15.2/driver'
Info: /lib/modules/4.15.0-142-generic/misc exists.
cp: cannot stat 'pcan.ko': No such file or directory
Makefile:434: recipe for target 'install' failed
make[1]: *** [install] Error 1

Although the following commands give outputs as shown -
1. ifconfig can0 ->
can0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
NOARP MTU:16 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:10
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

2. cat /boot/config-4.15.0-142-generic | grep -i can ->
CONFIG_NET_EMATCH_CANID=m
CONFIG_CAN=m
CONFIG_CAN_RAW=m
CONFIG_CAN_BCM=m
CONFIG_CAN_GW=m
# CAN Device Drivers
CONFIG_CAN_VCAN=m
CONFIG_CAN_VXCAN=m
CONFIG_CAN_SLCAN=m
CONFIG_CAN_DEV=m
CONFIG_CAN_CALC_BITTIMING=y
CONFIG_CAN_LEDS=y
CONFIG_CAN_JANZ_ICAN3=m
CONFIG_CAN_C_CAN=m
CONFIG_CAN_C_CAN_PLATFORM=m
CONFIG_CAN_C_CAN_PCI=m
CONFIG_CAN_CC770=m
CONFIG_CAN_CC770_ISA=m
CONFIG_CAN_CC770_PLATFORM=m
CONFIG_CAN_IFI_CANFD=m
CONFIG_CAN_M_CAN=m
CONFIG_CAN_PEAK_PCIEFD=m
CONFIG_CAN_SJA1000=m
CONFIG_CAN_SJA1000_ISA=m
CONFIG_CAN_SJA1000_PLATFORM=m
CONFIG_CAN_EMS_PCMCIA=m
CONFIG_CAN_EMS_PCI=m
CONFIG_CAN_PEAK_PCMCIA=m
CONFIG_CAN_PEAK_PCI=m
CONFIG_CAN_PEAK_PCIEC=y
CONFIG_CAN_KVASER_PCI=m
CONFIG_CAN_PLX_PCI=m
CONFIG_CAN_SOFTING=m
CONFIG_CAN_SOFTING_CS=m
# CAN SPI interfaces
CONFIG_CAN_HI311X=m
CONFIG_CAN_MCP251X=m
# CAN USB interfaces
CONFIG_CAN_EMS_USB=m
CONFIG_CAN_ESD_USB2=m
CONFIG_CAN_GS_USB=m
CONFIG_CAN_KVASER_USB=m
CONFIG_CAN_PEAK_USB=m
CONFIG_CAN_8DEV_USB=m
CONFIG_CAN_MCBA_USB=m
# CONFIG_CAN_DEBUG_DEVICES is not set
CONFIG_SCSI_SCAN_ASYNC=y
CONFIG_PINCTRL_CANNONLAKE=y
# ATSC (North American/Korean Terrestrial/Cable DTV) frontends
CONFIG_DMI_SCAN_MACHINE_NON_EFI_FALLBACK=y

3. lsmod | grep peak ->
peak_usb 40960 0
can_dev 28672 1 peak_usb

modinfo and /proc/pcan give error ->
1. cat /proc/pcan
cat: /proc/pcan: No such file or directory

2. modinfo pcan.ko | grep -e "^depends:"
modinfo: ERROR: Module pcan.ko not found.

I think the problem is with the missing kernel module (pcan.ko). How can get the file?

M.Heidemann
Sales & Support
Sales & Support
Posts: 1083
Joined: Fri 20. Sep 2019, 13:31

Re: PCAN driver installation Linux 16.04

Post by M.Heidemann » Thu 27. Jan 2022, 16:14

peak-linux-driver-7.15.2
This driver is ancient, please use the current 8.14:

http://www.peak-system.com/fileadmin/me ... 4.0.tar.gz

Also you should consider updating your system as a whole, kernel 4.15 was released back in 2017,
the current major Ubuntu LTS release is 20.04.

Please update both, that should resolve your issue.

Best Regards

Marvin
---
Marvin Heidemann
PEAK-Support Team

nishad-ovgu
Posts: 5
Joined: Wed 29. Sep 2021, 13:33

Re: PCAN driver installation Linux 16.04

Post by nishad-ovgu » Thu 27. Jan 2022, 16:28

The system earlier had peak-linux-driver-7.5.
I had upgraded it to 8.13 but that did not solve my problem and was forced to downgrade to version 7 as I was told that the PCAN software version was perhaps wrong.
Even when I try to install 8.13 it gives the same error -> pcan.ko: No such file or directory
On the other hand, reason for using Ubuntu 16.04 is the compatibility of other firmwares.

PS. I am using a decade old hardware

M.Heidemann
Sales & Support
Sales & Support
Posts: 1083
Joined: Fri 20. Sep 2019, 13:31

Re: PCAN driver installation Linux 16.04

Post by M.Heidemann » Thu 27. Jan 2022, 16:39

Hello,

We do support our current drivers, however drivers
as old a 7.15 are out of support.

You should have no issues running ubuntu 20.04 on the average 10 year old system.

If you run a legacy system like that you'll need to make sure you maintain it properly
and make use of backups.

We cannot provide support for drivers that are 5+ years old.

Check back with the latest driver and we'll see how we can make it work.

Best Regards

Marvin
---
Marvin Heidemann
PEAK-Support Team

nishad-ovgu
Posts: 5
Joined: Wed 29. Sep 2021, 13:33

Re: PCAN driver installation Linux 16.04

Post by nishad-ovgu » Thu 27. Jan 2022, 16:46

I will try and see if that works.

Thank you.
Nishad

Post Reply