Tiny Core Linux
Tiny Core Base => TCB Bugs => Topic started by: emmi on January 10, 2015, 09:10:39 AM
-
[I'm new to this forum, so please forgive me if this is not the right place for reporting these problems and point me to the right one, thanks.]
... need to be adjusted. On http://tinycorelinux.net/ports.html they point to 4.x and 5.x.
The same old 5.x is the 6.x's linux-kernel-sources-env.sh (tcz). Also, this script looks for mod_core=Module.symvers-${kerver}-tinycore in the 6.x tree, but there is only a file with extension .gz. On the other hand, there is no corresponding kernel subdirectory in 6.x/x86_64/release/src/ which - as far as I understand - is needed. (Anyway, isn't there a simpler way to compile kernel modules rather than copying and patching the kernel sources?)
-
Thanks - the ports page was adjusted a couple of days back and looks OK to me?
There's no corresponding kernel subdirectory in 6.x/x86_64/release/src/, but the 64-bit stuff is in 6.x/x86/release/src/kernel.
The patched kernel source is available (linux-3.16.6-patched.txz) or is that not what was meant?
-
On http://distro.ibiblio.org/tinycorelinux/ports.html the links are still wrong.
To compile a kernel module I don't think one needs the full and patched kernel sources, but I can't find anything in the TCZ directory related to compiling kernel modules.
-
Mirrors may take a day or few to refresh.
-
Ah, you mean the equivalent of the linux-headers-3.0.21-tinycore extension - you'll need to pm the maintainer for that...
-
--- /tmp/tcloop/linux-kernel-sources-env/usr/local/bin/linux-kernel-sources-env.sh
+++ ./linux-kernel-sources-env.sh
@@ -7,7 +7,7 @@
##############################################
##############################################
## script to prepare kernel sources for
-## tc-5; (full sources in lieu of headers)
+## tc-6; (full sources in lieu of headers)
## (kernel 3.x.xx)
## required src/deps will be loaded
## locally or downloaded as needed
@@ -40,12 +40,12 @@
## Module.symvers-3.x.xx-tinycore(64)
## linux-3.x.xx-patched.txz
-src_http="http://www.tinycorelinux.net/5.x/x86/release/src/kernel"
+src_http="http://www.tinycorelinux.net/6.x/x86/release/src/kernel"
echo -e "\nScript will download (if required) then \
\nprepare kernel sources and deps in lieu \
\nof headers in preparation of a compile \
-\nenvironment for TinyCore-5.x x86 & x86_64"
+\nenvironment for TinyCore-6.x x86 & x86_64"
f_div
echo "Continuing shortly..."
sleep 10
@@ -133,11 +133,11 @@
case $kerarch in
tinycore)
k_config=config-${kerver}-tinycore
- k_symbols=Module.symvers-${kerver}-tinycore
+ k_symbols=Module.symvers-${kerver}-tinycore.gz
;;
tinycore64)
k_config=config-${kerver}-tinycore64
- k_symbols=Module.symvers-${kerver}-tinycore64
+ k_symbols=Module.symvers-${kerver}-tinycore64.gz
;;
esac
@@ -188,7 +188,7 @@
echo "${GREEN}$k ready${NORMAL}"
fi
done
-
+gunzip -d /tmp/Module.symvers-${kerver}-tinycore.gz
##############################################
## prepare kernel src files
-
linux-kernel-sources-env.tcz has been updated to support tc6