PCAN-USB driver installation issue
Posted: Wed 5. Jun 2024, 10:18
Hi,
I am facing an error while installing PCAN-USB driver on KALI Linux.
(root㉿kali)-[~]# uname -a
Linux kali 6.6.9-amd64 #1 SMP PREEMPT_DYNAMIC Kali 6.6.9-1kali1 (2024-01-08) x86_64 GNU/Linux
(root㉿kali)-[~]# grep PEAK_ /boot/config-`uname -r`
CONFIG_CAN_PEAK_PCIEFD=m
CONFIG_CAN_PEAK_PCI=m
CONFIG_CAN_PEAK_PCIEC=y
CONFIG_CAN_PEAK_PCMCIA=m
CONFIG_CAN_PEAK_USB=m
Since the driver is a separate module, I am installing it as mentioned in documentation
https://www.peak-system.com/fileadmin/m ... an_eng.pdf
System Requirements are satisfied and on installing the binaries, downloaded driver version 8.18.0, extracted and on make clean command it throws error,
──(root㉿kali)-[~]
└─# cd Downloads/peak-linux-driver-8.18.0
┌──(root㉿kali)-[~/Downloads/peak-linux-driver-8.18.0]
└─# make clean
make[1]: Entering directory '/root/Downloads/peak-linux-driver-8.18.0/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 '/root/Downloads/peak-linux-driver-8.18.0/driver'
make: *** [Makefile:95: clean] Error 2
Kindly help me to resolve this issue.
Note: I am a beginner in LINUX environment, tried PCAN-USB over windows and it works flawlessly.
Thank you in advance!
I am facing an error while installing PCAN-USB driver on KALI Linux.
(root㉿kali)-[~]# uname -a
Linux kali 6.6.9-amd64 #1 SMP PREEMPT_DYNAMIC Kali 6.6.9-1kali1 (2024-01-08) x86_64 GNU/Linux
(root㉿kali)-[~]# grep PEAK_ /boot/config-`uname -r`
CONFIG_CAN_PEAK_PCIEFD=m
CONFIG_CAN_PEAK_PCI=m
CONFIG_CAN_PEAK_PCIEC=y
CONFIG_CAN_PEAK_PCMCIA=m
CONFIG_CAN_PEAK_USB=m
Since the driver is a separate module, I am installing it as mentioned in documentation
https://www.peak-system.com/fileadmin/m ... an_eng.pdf
System Requirements are satisfied and on installing the binaries, downloaded driver version 8.18.0, extracted and on make clean command it throws error,
──(root㉿kali)-[~]
└─# cd Downloads/peak-linux-driver-8.18.0
┌──(root㉿kali)-[~/Downloads/peak-linux-driver-8.18.0]
└─# make clean
make[1]: Entering directory '/root/Downloads/peak-linux-driver-8.18.0/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 '/root/Downloads/peak-linux-driver-8.18.0/driver'
make: *** [Makefile:95: clean] Error 2
Kindly help me to resolve this issue.
Note: I am a beginner in LINUX environment, tried PCAN-USB over windows and it works flawlessly.

Thank you in advance!