Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: asi3brg on February 26, 2024, 09:10:03 AM

Title: TinyCore 14.0: error Building the pcan driver
Post by: asi3brg on February 26, 2024, 09:10:03 AM
I need to build the pcan driver in Tiny Core 14.0 but I'm having this error:
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.
In my previous setup, tiny Core 10.1, we installed the linux-kernel-sources-env.tcz and than run the script "linux-kernel-sources-env", but in Tiny Core 14.0 I can't find this package?
Title: Re: TinyCore 14.0: error Building the pcan driver
Post by: Juanito on February 26, 2024, 09:40:56 AM
Typically this kind of error is a result of not being able to find the prepared kernel source.

It is usually fixed with something like this:
Code: [Select]
cd /lib/modules/$KERNEL
sudo ln -s /usr/src/linux-x.y.z build
..where linux-x.y.z is the prepared tinycore kernel source.

You can also search the forum on prepare kernel source.
Title: Re: TinyCore 14.0: error Building the pcan driver
Post by: asi3brg on February 28, 2024, 07:26:24 AM
Thank you for the support.
Solved.