Tiny Core Linux
Tiny Core Base => Raspberry Pi => Topic started by: runningopenloop on October 14, 2021, 03:34:03 AM
-
Hi all,
I was going to compile a module. I installed the headers tcz.
I understand I need the /lib/modules/`uname -r`/build directory.
I have /lib/modules/5.4.51-piCore/ - no build.
I got some help from http://forum.tinycorelinux.net/index.php/topic,22343.0.html
But I'm missing something, or it's just that the http://tinycorelinux.net/12.x/armv6/releases/RPi/src/kernel/linux-5.4.51-piCore.tar.xz is in error. Only 73 bytes of a 404 message.
First I tried uncompressing, http://tinycorelinux.net/12.x/armv6/releases/RPi/src/kernel/modules-5.4.51-piCore.tar.xz
but that has a build directory which is just a link to some non-existing, /home/...../linux-git directory.
Then I was going to try the linux-5.4.51-piCore.tar.xz file in same directory (as above), but it is in error. Only 73 bytes of a 404 message.
> Is this the missing file I need or am I overlooking something else simple?
I'm thinking that this linux-5.4.51-piCore.tar.xz will contain a directory I can link my build/ directory to. And this is the base of the linux file that is in error?
> Do I just need to grab https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.4.51.tar.xz ?
73,
Timothy
-
To compile the kernel, you need the compiletc, perl5, bc, ncurses-dev and libelf-dev extensions.
The link to linux-5.4.51-piCore.tar.xz on the server was broken, it should be OK now.
To build an out of kernel module, you need to configure the kernel with the apropriate piCore config and create a build symlink to your prepare kernel source.