[hsflinux] Re: In Debian "Woody"-bf2.4
azajac at vif.com
azajac at vif.com
Thu Jun 12 11:43:45 EDT 2003
> *I've installed kernel-source-2.4.18 and changed definition of KERNELSRC to:
> KERNELSRC= /usr/src/
> (The "PackageManager" put in this directory:
> kernel-source-2.4.18.tar.bz2 after
> installation, but I wonder if it installed it OK)
It sounds as though you installed the kernel-source package, but have not
recompiled your kernel.
The nuance is that the stock Debian 2.4.18-bf kernel is not the same as the
plain kernel source. It contains two or three patches and a few bugfixes.
You cannot compile things for your kernel with a different kernel source.
Don`t panic.
You can either use the stock kernel or recompile your own kernel.
To use the stock kernel:
apt-get install kernel-headers-2.4.18-bf2.4
(use /usr/src/kernel-headers-2.4.18-bf2.4 as your source directory for
KERNELSRC and hsfconfig.) The kernel source would take up over 100 Megs of
space. The headers are the bare minimum needed for many applications to compile
things against the kernel source. It takes up much less disk space than the
whole kernel source.
make install
hsfconfig
Or you can recompile your kernel:
tar -xvjf kernel-source-2.4.18.tar.bz2
ln -s /usr/src/kernel-source-2.4.18 linux
cd linux
make config (or make menuconfig, or make xconfig <- the most friendly...)
configure every single variable you want to change to optimize your computer.
then, compile the kernel (you can do make dep, then make, and make install or
you can use the kernel-package too which compiles the kernel and packages it
into a deb package which you then install with dpkg-i kernel-image-custom....)
Read the debian installation manual for more detailed instructions at:
http://www.debian.org/releases/stable/i386/ch-post-install.en.html#s-kernel-
baking
Using the stock kernel is much easier if you do not have the time or the desire
to recompile your kernel.
More information about the hsflinux
mailing list