WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Kernel headers for kernel 6.6.8?  (Read 592 times)

Offline t18

  • Newbie
  • *
  • Posts: 36
Kernel headers for kernel 6.6.8?
« on: September 08, 2024, 03:09:39 PM »
I'm unable to find the kernel headers package for kernel 6.6.8.

They are requested from some applications to build. How can I do?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14785
Re: Kernel headers for kernel 6.6.8?
« Reply #1 on: September 08, 2024, 04:10:31 PM »
You need the linux-6.6_api_headers extension.

Note that you may also need the prepared kernel source.

Offline t18

  • Newbie
  • *
  • Posts: 36
Re: Kernel headers for kernel 6.6.8?
« Reply #2 on: September 09, 2024, 03:28:41 AM »
It is already installed but neither Lilo nor Virtualbox recognize it.

It also says contains the 6.6.5 package, not the 6.6.8.

Please kindly explain me.
« Last Edit: September 09, 2024, 03:32:40 AM by t18 »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14785
Re: Kernel headers for kernel 6.6.8?
« Reply #3 on: September 09, 2024, 03:43:29 AM »
The linux kernel headers don’t change with minor kernel updates, so the headers from 6.6.5 can be used with any version of 6.6.

It sounds like you need the prepared kernel source (providing the error message would help) - if you search these forums, you’ll find how to do that.

https://forum.tinycorelinux.net/index.php/topic,24946.msg158828.html#msg158828
« Last Edit: September 09, 2024, 03:45:35 AM by Juanito »

Offline t18

  • Newbie
  • *
  • Posts: 36
Re: Kernel headers for kernel 6.6.8?
« Reply #4 on: September 09, 2024, 01:56:35 PM »
Please find attached the image of the error message.

At present I can't pull any file out from VBox.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14785
Re: Kernel headers for kernel 6.6.8?
« Reply #5 on: September 09, 2024, 03:52:43 PM »
You need to prepare the kernel source as per the link above.

Offline t18

  • Newbie
  • *
  • Posts: 36
Re: Kernel headers for kernel 6.6.8?
« Reply #6 on: September 10, 2024, 03:30:31 AM »
If I've well understood I've to download the kernel source from kernel.org, right?

But it's not clear to me where to find the "config-6.6.8-tinycore(32)" file.

Neither the source nor that file are available on Apps.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14785
Re: Kernel headers for kernel 6.6.8?
« Reply #7 on: September 10, 2024, 03:48:43 AM »
You need the tinycore patched kernel source from here:

http://www.tinycorelinux.net/15.x/x86/release/src/kernel/

The kernel config is also there.

Offline t18

  • Newbie
  • *
  • Posts: 36
Re: Kernel headers for kernel 6.6.8?
« Reply #8 on: September 11, 2024, 02:50:05 AM »
Prepared.

As it's my first module preparing I have to ask: how to install them or how to make the Vbox script finding them?

Offline t18

  • Newbie
  • *
  • Posts: 36
Re: Kernel headers for kernel 6.6.8?
« Reply #9 on: September 11, 2024, 03:29:58 AM »
"make headers_install" supposedly install them but the Vbox script doesn't find them.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14785
Re: Kernel headers for kernel 6.6.8?
« Reply #10 on: September 11, 2024, 04:04:55 AM »
You usually need a symlink to point to the prepared source, for example:

/lib/modules/$KERNEL/build -> /usr/src/linux-6.6.8

Offline t18

  • Newbie
  • *
  • Posts: 36
Re: Kernel headers for kernel 6.6.8?
« Reply #11 on: September 11, 2024, 07:06:19 AM »
I'm missing something.

Is launching "make headers_install" the correct step? If yes, it sends everything in /usr/include and supposedly there everything should be found.

Linking /lib/modules/linux-6.6.8/headersbuild to the source_build dir has no effect.

What am I missing?

(Edit: for a newbie it's easy to get confused. Thank you for your understanding)
« Last Edit: September 11, 2024, 07:08:25 AM by t18 »

Offline t18

  • Newbie
  • *
  • Posts: 36
Re: Kernel headers for kernel 6.6.8?
« Reply #12 on: September 12, 2024, 06:13:26 AM »
Done.

Many thanks for the time you have devoted to me. :)