PCAN driver crash without any change in system

This forum covers PCAN-Linux and Linux development issues concerning our products
Post Reply
szhuo
Posts: 3
Joined: Tue 21. Aug 2018, 21:00

PCAN driver crash without any change in system

Post by szhuo » Tue 21. Aug 2018, 21:07

Hi I am a master student working on a project with PCAN USB. I managed to make everything working. and with out any change in driver section the PCAN driver just stopped working and it's really urgent for my project submission. I really wish anyone who can help me with this driver.


this is the error i received from the terminal

Code: Select all

$ sudo modprobe pcan
modprobe: ERROR: ../libkmod/libkmod-module.c:832 kmod_module_insert_module() could not find module by name='pcan'
modprobe: ERROR: could not insert 'pcan': Unknown symbol in module, or unknown parameter (see dmesg)
modprobe: ERROR: ../libkmod/libkmod-module.c:977 command_do() Error running install command for pcan
modprobe: ERROR: could not insert 'pcan': Operation not permitted
it's been working for a long time. and today it just keep send error message after 5 seconds of running to my ROS system. and it is stopped working completely once i restarted my computer.
Last edited by M.Gerber on Wed 22. Aug 2018, 10:43, edited 1 time in total.
Reason: Inserted [code] tags for improved readability

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

Re: PCAN driver crash without any change in system

Post by M.Maidhof » Wed 22. Aug 2018, 10:24

Hi,

please tell us which driver version and kernel version you are using. Please note that you have to rebuild the driver with each kernel update. What I see is no driver crash, it is just not loadable due to wrong configuration (kernel change etc.).

regards

Michael

PS: please move this topic to the Linux section. [Thread moved - M.Gerber 2018-08-22]

szhuo
Posts: 3
Joined: Tue 21. Aug 2018, 21:00

Re: PCAN driver crash without any change in system

Post by szhuo » Wed 22. Aug 2018, 15:18

Hi Michael.

My driver version should be 7.15. It’s the one works with Barrett Hand Ros Package.
my kernel verison as displayed
@T430:~$ uname -a
Linux T430 4.15.0-32-generic #35~16.04.1-Ubuntu SMP Fri Aug 10 21:54:34 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

I am pretty new to Linux.
Could you please teach me how to rebuild driver again? I am on a pretty urgent project and due submition is tomorrow.

Thanks so much for your help. Really appreciate that.

szhuo
Posts: 3
Joined: Tue 21. Aug 2018, 21:00

Re: PCAN driver crash without any change in system

Post by szhuo » Wed 22. Aug 2018, 16:54

Hey Michael:

I was checking on the usr/src folder, it appears

Code: Select all

bbswitch-0.8                     linux-headers-4.15.0-32-generic
gmock                            linux-headers-4.4.0-133
gtest                            linux-headers-4.4.0-133-generic
linux-headers-4.13.0-39          nvidia-390-390.67
linux-headers-4.13.0-39-generic  
linux-headers-4.13.0-45          
linux-headers-4.13.0-45-generic  uvcvideo-1.1.1-3-realsense
linux-headers-4.15.0-32
i am not sure is that a kernel update from 4.4 to 4.15 which cause the configuration error. and I try to install the latest Peak-linux-driver-8.15 which appears

Code: Select all

@T430:/usr/src/peak-linux-driver-8.5.1$ sudo make install
make[1]: Entering directory '/usr/src/peak-linux-driver-8.5.1/driver'
Info: /lib/modules/4.15.0-32-generic/misc exists.
cp: can not get 'pcan.ko' file stat (stat): no such file or directory 
Makefile:514: recipe for target 'install_files' failed
make[1]: *** [install_files] Error 1
make[1]: Leaving directory '/usr/src/peak-linux-driver-8.5.1/driver'
make[1]: Entering directory '/usr/src/peak-linux-driver-8.5.1/lib'
mkdir -p /usr/lib
cp -d lib/* /usr/lib
if [ -d lib32 ]; then \
	mkdir -p /usr/lib32; \
	cp -d lib32/* /usr/lib32; \
fi
mkdir -p /usr/include
chmod 644 libpcan.h libpcanfd.h
cp libpcan.h libpcanfd.h /usr/include
/sbin/ldconfig
make[1]: Leaving directory '/usr/src/peak-linux-driver-8.5.1/lib'
make[1]: Entering directory '/usr/src/peak-linux-driver-8.5.1/test'
cp receivetest transmitest bitratetest filtertest pcanfdtst pcan-settings /usr/local/bin
make[1]: Leaving directory '/usr/src/peak-linux-driver-8.5.1/test'


and my kernel version is

Code: Select all

cat /proc/version
Linux version 4.15.0-32-generic (buildd@lgw01-amd64-038) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.10)) #35~16.04.1-Ubuntu SMP Fri Aug 10 21:54:34 UTC 2018

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

Re: PCAN driver crash without any change in system

Post by M.Maidhof » Thu 23. Aug 2018, 10:55

Hi,

yes, please make and install latest version 8.6 of our peak-linux-driver (8.15 is future.... :D )

BTW: when like to use SocketCAN, there is no need to install our peak-linux-driver. Your kernel version 4.15 already has a kernel driver for PCAN-USB included.

regards

Michael

Post Reply