Page 1 of 1

8.15.1 driver make errors on Debian 11

Posted: Thu 13. Oct 2022, 19:47
by AnnaMariePea
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.

Re: 8.15.1 driver make errors on Debian 11

Posted: Fri 14. Oct 2022, 09:55
by M.Maidhof
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

Re: 8.15.1 driver make errors on Debian 11

Posted: Mon 17. Oct 2022, 23:55
by AnnaMariePea
That worked!! Thank you!!

Re: 8.15.1 driver make errors on Debian 11

Posted: Tue 18. Oct 2022, 08:34
by PEAK-Support
Problem solved - Topic closed