Tiny Core Linux

Tiny Core Base => CorePlus => Topic started by: t18 on September 08, 2024, 03:09:39 PM

Title: Kernel headers for kernel 6.6.8?
Post by: t18 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?
Title: Re: Kernel headers for kernel 6.6.8?
Post by: Juanito 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.
Title: Re: Kernel headers for kernel 6.6.8?
Post by: t18 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.
Title: Re: Kernel headers for kernel 6.6.8?
Post by: Juanito 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
Title: Re: Kernel headers for kernel 6.6.8?
Post by: t18 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.
Title: Re: Kernel headers for kernel 6.6.8?
Post by: Juanito on September 09, 2024, 03:52:43 PM
You need to prepare the kernel source as per the link above.
Title: Re: Kernel headers for kernel 6.6.8?
Post by: t18 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.
Title: Re: Kernel headers for kernel 6.6.8?
Post by: Juanito 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.
Title: Re: Kernel headers for kernel 6.6.8?
Post by: t18 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?
Title: Re: Kernel headers for kernel 6.6.8?
Post by: t18 on September 11, 2024, 03:29:58 AM
"make headers_install" supposedly install them but the Vbox script doesn't find them.
Title: Re: Kernel headers for kernel 6.6.8?
Post by: Juanito 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
Title: Re: Kernel headers for kernel 6.6.8?
Post by: t18 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)
Title: Re: Kernel headers for kernel 6.6.8?
Post by: t18 on September 12, 2024, 06:13:26 AM
Done.

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