[wellylug] Dumb questions 101 - How to compile a more modern Kernel for Debian
Andrej Ricnik
andrej at paradise.net.nz
Fri Jan 23 11:06:13 NZDT 2004
On Fri, 23 Jan 2004 10:53, Jamie Dobbs wrote:
> The default Debian3.0r1 Kernel is rather old and I need
> iptables support in the kernel for a task that I am working
> on.
> The only issue is that I have never been able to successfully
> compile and install an up-to-date kernel for Debian. Can
> someone either give me some very simple step by step
> instructions or point me at some easily understood
> documentation for a Debian newbie.
Haven't touched debian in ages, so I don't know how
many parts might be debian specific, but the basics
should be alright since debian also uses the stock
kernels ....
What you do is you
- untar your kernel source to /usr/src
- symlink the new directory (e.g. linux-2.4.24) to /usr/src/linux
- cd into the new directory
- cp ../<old_kernel>/.config .
- make oldconfig (answering the odd question re new/modified
drivers)
- make dep && make bzImage | tee kernel.out (the tee-bit is
optional, but I like to be able to go back and see what
happened ... :})
- make modules && make modules_install | tee modules.out
- cp .config /boot/config.2.4.24
- cp System.map /boot/System.map.2.4.24
- cp arch/i386/boot/bzImage /boot/vmlinuz.2.4.24
(names above are subject to personal taste, depending
on how deb handles boot (and which bootloader you use)
you may have to make/change a few symlinks in /boot - some
would use make install instead of my manual copying, and the
bootloader bits, but I'm a control freak when it comes to
my Linux ;})
- update your bootloaders configuration (add a section for
the newly compiled kernel)
- run/update your bootloader
- reboot, select new kernel, enjoy :}
> TIA
Cheers,
Tink
More information about the wellylug
mailing list