[finnix] Compile a network kernel module
Ryan Finnie
ryan at finnie.org
Mon Jun 2 10:51:07 PDT 2008
On Tue, May 13, 2008 at 2:58 PM, Pierre Moreau <pierre.moreau at editag.eu> wrote:
> What I am doing wrong ? Is there a procedure to add a kernel module to
> finnix?
Sorry, kernel headers are not produced for Finnix, but a full kernel
source tree is available. It's a little more work and takes more
space, but here's how you'd do it:
VER=`uname -r` # 2.6.24-2-x86-finnix in this case
apt-get update
apt-get install linux-source-$VER
cd /usr/src
tar jxf linux-source-$VER.tar.bz2
ln -s linux-source-$VER linux
cd linux
cp /boot/config-$VER .config
vi Makefile # edit line 4, EXTRAVERSION = -2-x86-finnix
make oldconfig
make modules_prepare
At this point, the tree should be ready to compile modules against.
RF
More information about the finnix
mailing list