# kernel & kernel source version kv=`uname -r` ksv=`uname -r | sed 's/-.*$//'` // svs kv ksv
debfoster kernel-source-$ksv kernel-headers-$kv
Ref:
% debfoster kernel-source-$kv E: Couldn't find package kernel-source-2.4.27-2-k7
cd /usr/src/ tar jfx kernel-source-$ksv.tar.bz2
rm linux ln -sf kernel-source-$ksv linux
cp -v /boot/config-$kv linux/.config
cd linux
# use all answers from ./.config file % make oldconfig *** End of Linux kernel configuration. *** Check the top-level Makefile for additional configuration. *** Next, you must run 'make dep'.
# Finally, do a "make dep" to set up all the dependencies correctly. % make dep
What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include]
The path "/usr/src/linux/include" is not an existing directory.
# install the kernel source as above
What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include]
The directory of kernel headers (version 2.4.27) does not match your running kernel (version 2.4.27-2-k7). Even if the module were to compile successfully, it would not load into the running kernel.
What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include]
documented on: 2005.04.20