8.15.1 driver make errors on Debian 11

This forum covers PCAN-Linux and Linux development issues concerning our products
Locked
AnnaMariePea
Posts: 8
Joined: Thu 30. Jun 2022, 23:40

8.15.1 driver make errors on Debian 11

Post by AnnaMariePea » Thu 13. Oct 2022, 19:47

I easily installed 8.15.1 on my Vecow running Ubuntu 18.4, and have happily been executing my software since then. No problems moving CAN data about the system.

We are changing hardware to Kontron xeon D1559 processor running Debian 11. The kernel is 5.10.0-15-amd64. All our other software works well...but I can't make the PEAK 8.15.1 drivers. I verified that the path in $KERNEL_LOCATION is correct. I get this error message:

rtkuser@rtk-os-dev-amt:~/peak-linux-driver-8.15.1$ echo $KERNEL_LOCATION
/boot
rtkuser@rtk-os-dev-amt:~/peak-linux-driver-8.15.1$ sudo make
make[1]: Entering directory '/home/rtkuser/peak-linux-driver-8.15.1/driver'Makefile:131: *** "Unable to automatically find the Kernel headers. These are mandatory to build the pcan driver. Please set the KERNEL_LOCATION variable to the root directory of your own built Kernel.".  Stop.
make[1]: Leaving directory '/home/rtkuser/peak-linux-driver-8.15.1/driver'
make: *** [Makefile:84: all] Error 2
rtkuser@rtk-os-dev-amt:~/peak-linux-driver-8.15.1$


Can you please advise me how to proceed? Thank you.

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

Re: 8.15.1 driver make errors on Debian 11

Post by M.Maidhof » Fri 14. Oct 2022, 09:55

Hi,

please reboot your system once and install/reinstall the kernel headers again. Build the driver without sudo and see what will be displayed:

make clean
make
sudo make install
sudo modprobe pcan
cat /proc/pcan

regards

Michael

AnnaMariePea
Posts: 8
Joined: Thu 30. Jun 2022, 23:40

Re: 8.15.1 driver make errors on Debian 11

Post by AnnaMariePea » Mon 17. Oct 2022, 23:55

That worked!! Thank you!!

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: 8.15.1 driver make errors on Debian 11

Post by PEAK-Support » Tue 18. Oct 2022, 08:34

Problem solved - Topic closed
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

Locked