Tiny Core Linux

General TC => General TC Talk => Topic started by: HoerMirAuf on June 08, 2022, 01:09:38 PM

Title: linux-kernel-sources-env in 13??
Post by: HoerMirAuf on June 08, 2022, 01:09:38 PM
Hi Volks ...

i can't find any linux-kernel-sources-env package in TC13 ... is there no one?
How to compile a Kernel Module without that?
Title: Re: linux-kernel-sources-env in 13??
Post by: Juanito on June 08, 2022, 03:23:52 PM
You can prepare the kernel source manually.

Search the forum on “prepare kernel source”
Title: Re: linux-kernel-sources-env in 13??
Post by: Rich on June 08, 2022, 04:03:50 PM
Hi HoerMirAuf
Based on this answer by Juanito:
http://forum.tinycorelinux.net/index.php/topic,24946.msg158828.html#msg158828

Download:
http://tinycorelinux.net/13.x/x86_64/release/src/kernel/linux-5.15.10-patched.txz
http://tinycorelinux.net/13.x/x86_64/release/src/kernel/config-5.15.10-tinycore64

Then:
Code: [Select]
$ tar -xf linux-5.15.10-patched.txz
$ cd linux-5.15.10
$ make mrproper
$ cp ../config-5.15.10-tinycore64 .config
$ make oldconfig
$ make prepare
$ make modules_prepare