-
Install kernel-package, kernel-source-2.0.36, and bin86
by (assuming apt is used)
apt-get install kernel-package kernel-source-2.0.36 bin86
- Unpack the kernel-source by
cd /usr/src
tar xzf kernel-source-2.0.36.tar.gz
rm linux
ln -s kernel-source-2.0.36 linux
- Configure the kernel (optimally by re-using an existing .config
file that reflects the hardware correctly) by
cd /usr/src/linux
make xconfig
(Hint: Logging in as root through ssh root@... obviates exporting the
DISPLAY variable and such things.)
- Compile and build the custom kernel package by
make-kpkg clean
make-kpkg --revision=`hostname`.1.0 kernel_image
where 1.0 is a revision number that should be increased if all this is
repeated for whatever reason.
- Install by
dpkg -i /usr/src/kernel-image-2.0.36_`hostname`.1.0_i386.deb
This installs the new kernel and the System map in the /boot directory,
any modules in
/lib/modules, and reruns lilo. If there is already a kernel 2.0.36
installed, its modules should be saved by e.g. mv /lib/modules/2.0.36
/lib/modules/2.0.36.bak before installing the new one.
- Reboot, preferably after verifying that /etc/lilo.conf makes sense.
(Hint: If in doubt, the old working kernel can be used for a boot floppy
by simply copying cp /vmlinuz.old /dev/fd0 .)