PeakCAN linux driver version 7.15.2

This forum covers PCAN-Linux and Linux development issues concerning our products
gmlim
Posts: 9
Joined: Wed 9. Dec 2015, 00:56

Re: PeakCAN linux driver version 7.15.2

Post by gmlim » Sun 20. Mar 2016, 01:34

Hi

Below is the result for dpkg --get-selections "linux*"

Code: Select all

lohyh@lohyh:~$ dpkg --get-selections "linux*"
linux-firmware					install
linux-generic					install
linux-headers-2.6.32-33				install
linux-headers-2.6.32-33-386			install
linux-headers-2.6.32-33-generic			install
linux-headers-generic				install
linux-image-2.6.32-33-generic			install
linux-image-generic				install
linux-libc-dev					install
linux-sound-base				install
linux-source-2.6.32				install
I have also added in the result I get from linux-headers-2.6.32-33-386 (which has more content)

Code: Select all

lohyh@lohyh:~$ ls -l /lib/modules/2.6.32-33-386/build/
total 656
drwxr-xr-x 3 root root   4096 2015-03-31 09:55 arch
lrwxrwxrwx 1 root root     32 2015-03-31 09:55 block -> ../linux-headers-2.6.32-33/block
lrwxrwxrwx 1 root root     33 2015-03-31 09:55 crypto -> ../linux-headers-2.6.32-33/crypto
lrwxrwxrwx 1 root root     40 2015-03-31 09:55 Documentation -> ../linux-headers-2.6.32-33/Documentation
lrwxrwxrwx 1 root root     34 2015-03-31 09:55 drivers -> ../linux-headers-2.6.32-33/drivers
lrwxrwxrwx 1 root root     35 2015-03-31 09:55 firmware -> ../linux-headers-2.6.32-33/firmware
lrwxrwxrwx 1 root root     29 2015-03-31 09:55 fs -> ../linux-headers-2.6.32-33/fs
drwxr-xr-x 5 root root   4096 2016-03-08 08:27 include
lrwxrwxrwx 1 root root     31 2015-03-31 09:55 init -> ../linux-headers-2.6.32-33/init
lrwxrwxrwx 1 root root     30 2015-03-31 09:55 ipc -> ../linux-headers-2.6.32-33/ipc
lrwxrwxrwx 1 root root     33 2015-03-31 09:55 Kbuild -> ../linux-headers-2.6.32-33/Kbuild
drwxr-xr-x 2 root root   4096 2015-03-31 09:55 kernel
lrwxrwxrwx 1 root root     30 2015-03-31 09:55 lib -> ../linux-headers-2.6.32-33/lib
lrwxrwxrwx 1 root root     35 2015-03-31 09:55 Makefile -> ../linux-headers-2.6.32-33/Makefile
lrwxrwxrwx 1 root root     29 2015-03-31 09:55 mm -> ../linux-headers-2.6.32-33/mm
-rw-r--r-- 1 root root 651974 2011-07-30 08:58 Module.symvers
lrwxrwxrwx 1 root root     30 2015-03-31 09:55 net -> ../linux-headers-2.6.32-33/net
lrwxrwxrwx 1 root root     34 2015-03-31 09:55 samples -> ../linux-headers-2.6.32-33/samples
drwxr-xr-x 7 root root   4096 2015-03-31 09:55 scripts
lrwxrwxrwx 1 root root     35 2015-03-31 09:55 security -> ../linux-headers-2.6.32-33/security
lrwxrwxrwx 1 root root     32 2015-03-31 09:55 sound -> ../linux-headers-2.6.32-33/sound
lrwxrwxrwx 1 root root     26 2015-03-31 09:55 source -> /build/buildd/linux-2.6.32
lrwxrwxrwx 1 root root     32 2015-03-31 09:55 tools -> ../linux-headers-2.6.32-33/tools
lrwxrwxrwx 1 root root     33 2015-03-31 09:55 ubuntu -> ../linux-headers-2.6.32-33/ubuntu
lrwxrwxrwx 1 root root     30 2015-03-31 09:55 usr -> ../linux-headers-2.6.32-33/usr
lrwxrwxrwx 1 root root     31 2015-03-31 09:55 virt -> ../linux-headers-2.6.32-33/virt
Thank you for your help and time in understanding my issue on Linux Kernel

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

Re: PeakCAN linux driver version 7.15.2

Post by S.Grosjean » Tue 22. Mar 2016, 11:30

Hello,

If I re-read your previous posts, you are running:
2.6.32-33-generic
so, "/lib/modules/2.6.32-33-386/build/" is useless to build pcan while running 2.6.32-33-generic.

You should reinstall the correct linux-header package. To be sure of doing things right, first remove the linux-headers package like that:

Code: Select all

$ sudo arp-get remove linux-headers-`uname -r`
Then reinstall it:

Code: Select all

$ sudo arp-get install linux-headers-`uname -r`
Then, rebuild pcan (that is: make clean, then make).

Regards,

Stéphane
— Stéphane

Post Reply