Ubuntu 20.04 LTS (kernel 5.13.0-30-generic): "Unable to automatically find the Kernel headers"
Posted: Wed 24. Jan 2024, 06:55
We have project in Japan and we use PCAN-USB on our hardware
OS: Ubuntu 20.04 LTS, Kernel 5.13.0-30-generic
We try to install PCAN-USB driver for two hardware
- Tiger Lake (i5-1145G7E) - OK
- Alder Lake (i7-1255U) - Fail
The SOP we did is below:
[1] download peak-linux-driver-8.15.2.tar.gz, and unzip it
[2] install g++ and libpopt-dev
$ sudo apt-get install build-essential g++
$ sudo apt-get install libpopt-dev
[3] Regarding the directory of peak-linux-driver-8.15.2
$ make clean
$ make
$ [sudo] make -C driver install
$ [sudo] make -C lib install
$ [sudo] make -C test install
$ [sudo] make -C libpcanbasic install
[4] After installation
$ wget -q https://urldefense.com/v3/__http://www. ... Uz0L5CshEA$ -O- | sudo tee /etc/apt/sources.list.d/peak-system.list
$ wget -q https://urldefense.com/v3/__http://www. ... Uz1I9QS3eA$ -O- | sudo apt-key add -
$ sudo apt-get update
$ sudo apt-get install pcanview-ncurses
[5] We disable secure boot and restart the system
$ sudo modprobe pcan
We install the PCAN-USB into our PC and type pcanview, and start the system
We are unable to install driver in i7-1255U and the error message shown below:
make [1]: directory '/hom/ubuntu/peak-linux-driver-8.15.2/driver' に入ります
Makefile:131: *** "Unable to automatically find the Kernel headers. There are mandatory to build the pcan dirver. Please set the KERNEL_LOCATION variable to the root directory of your own built Kernel.". Stop
make [1]: directory '/hom/ubuntu/peak-linux-driver-8.15.2/driver' から出ます
make: *** [Makefile:84: all] Error 2
We try to install new driver 8.16.0 and the one you released on 2024/1/18 v8.17, but we failed to install on the new intel platform Alder Lake i7-1255U
the error message always show after we type SOP [3] $ make clean
is there anything we can do for SOP? we are able to install drivers on intel old platform tiger lake but failed to install drivers on intel i7-1255U, we hope you can give us some advices, thanks and regards,
Stephen
OS: Ubuntu 20.04 LTS, Kernel 5.13.0-30-generic
We try to install PCAN-USB driver for two hardware
- Tiger Lake (i5-1145G7E) - OK
- Alder Lake (i7-1255U) - Fail
The SOP we did is below:
[1] download peak-linux-driver-8.15.2.tar.gz, and unzip it
[2] install g++ and libpopt-dev
$ sudo apt-get install build-essential g++
$ sudo apt-get install libpopt-dev
[3] Regarding the directory of peak-linux-driver-8.15.2
$ make clean
$ make
$ [sudo] make -C driver install
$ [sudo] make -C lib install
$ [sudo] make -C test install
$ [sudo] make -C libpcanbasic install
[4] After installation
$ wget -q https://urldefense.com/v3/__http://www. ... Uz0L5CshEA$ -O- | sudo tee /etc/apt/sources.list.d/peak-system.list
$ wget -q https://urldefense.com/v3/__http://www. ... Uz1I9QS3eA$ -O- | sudo apt-key add -
$ sudo apt-get update
$ sudo apt-get install pcanview-ncurses
[5] We disable secure boot and restart the system
$ sudo modprobe pcan
We install the PCAN-USB into our PC and type pcanview, and start the system
We are unable to install driver in i7-1255U and the error message shown below:
make [1]: directory '/hom/ubuntu/peak-linux-driver-8.15.2/driver' に入ります
Makefile:131: *** "Unable to automatically find the Kernel headers. There are mandatory to build the pcan dirver. Please set the KERNEL_LOCATION variable to the root directory of your own built Kernel.". Stop
make [1]: directory '/hom/ubuntu/peak-linux-driver-8.15.2/driver' から出ます
make: *** [Makefile:84: all] Error 2
We try to install new driver 8.16.0 and the one you released on 2024/1/18 v8.17, but we failed to install on the new intel platform Alder Lake i7-1255U
the error message always show after we type SOP [3] $ make clean
is there anything we can do for SOP? we are able to install drivers on intel old platform tiger lake but failed to install drivers on intel i7-1255U, we hope you can give us some advices, thanks and regards,
Stephen