WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: TinyCore 14.0: error Building the pcan driver  (Read 695 times)

Offline asi3brg

  • Newbie
  • *
  • Posts: 9
TinyCore 14.0: error Building the pcan driver
« 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?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14613
Re: TinyCore 14.0: error Building the pcan driver
« Reply #1 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.

Offline asi3brg

  • Newbie
  • *
  • Posts: 9
Re: TinyCore 14.0: error Building the pcan driver
« Reply #2 on: February 28, 2024, 07:26:24 AM »
Thank you for the support.
Solved.