Tiny Core Linux
General TC => General TC Talk => Topic started by: gharig on April 17, 2021, 02:27:41 PM
-
Hello and thanks for such a great product.
I'm using TC 12.0 both 32 and 64 bit and went to go practice writing some simple kernel modules :) :). On previous versions 11 and 10 I would load linux-kernel-sources-env.tcz and then run linux-kernel-sources-env.sh. However I can not find the linux-kernel-sources-env in the list of tcz for 12.0 but they are listed in 11.xx. So is there a new process to prepare for kernel module development, or do I need to wait as you guys are really busy, and haven't loaded it yet.
Thanks
gharig
-
You can prepare the kernel source in the usual way:
http://tinycorelinux.net/12.x/x86/release/src/kernel/
http://tinycorelinux.net/12.x/x86_64/release/src/kernel/
-
Hi Juanito,
Thanks for getting back so quick.
So when you say that I can prepare the kernel source in the usual way, and give me a link to the source files, I get a bit confused.
in the past I would
step 1: install linux-kernel-sources-env.tcz (which I'm not finding in the available tcz downloads for 12.0)
step 2: run linux-kernel-sources-env.sh
which would basically go off and get three files. and unpacks them
and puts them in to the proper spot.
1)Module.symvers-5.10.3-tinycore64.gz
2)config-5.10.3-tinycore64
3)linux-5.10.3-patched.txz
step 3: go have fun trying to build a simple driver.
So are you telling me that I do not need to install linux-kernel-sources-env.tcz to build driver modules?
Thanks
gharig
-
No, you don't need linux-kernel-sources-env to compile kernel modules - it was a way of making things easier, but no longer works due to changes in linux-5.x
This will prepare the kernel source:
$ cd linux-5.10.3
$ make mrproper
$ cp ../config-5.10.3-tinycore64 .config
$ make oldconfig
$ make prepare
$ make modules_prepare
-
Hi Juanito,
Thanks for the info, you are the best....