problem compiling usb driver for raspbian

This forum covers PCAN-Linux and Linux development issues concerning our products
Post Reply
l_ger
Posts: 2
Joined: Mon 16. Oct 2017, 11:14

problem compiling usb driver for raspbian

Post by l_ger » Mon 16. Oct 2017, 13:00

hi,

i tried to compile the linux driver (module) for the peak can usb device on my raspberry pi B+ on Raspbian 4.9.41+. I'm not sure if this is even necessary on kernel 4.9.41+, if not could you please tell me how to activate an existing driver?

anyway, following these instructions: http://www.peak-system.com/forum/viewto ... 3&start=10

since the link provided in the tutorial on the peak site to download the kernel headers is not working, i installed the kernel headers using

apt-get install raspberrypi-kernel-headers (following these instructions: https://www.raspberrypi.org/documentati ... headers.md)

and i even set up a full source tree following this tutorial: https://raspberrypi.stackexchange.com/a/37011

i downloaded the driver from http://www.peak-system.com/fileadmin/media/linux/files/ (the 7.8 version) and extracted the archive.

make clean

and when i try to

make NET=NO PCI=NO PAR=NO ISA=NO PCC=NO DNG=NO

it fails saying "linkage.h fatal error: asm/linkage.h: no such file or directory"


any help on this would be very much appreciated.

regards

Lukas

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

Re: problem compiling usb driver for raspbian

Post by M.Maidhof » Mon 16. Oct 2017, 14:05

Hi,

please use rpi-source to get the latest kernel source for your PI

see: http://www.peak-system.com/forum/viewto ... t=90#p5327

regards

Michael

l_ger
Posts: 2
Joined: Mon 16. Oct 2017, 11:14

Re: problem compiling usb driver for raspbian

Post by l_ger » Tue 17. Oct 2017, 09:54

Thank you very much, it's working!

Post Reply