L001: Recompiling the kernel

This relates to Debian linux.

Make a boot disk

mkboot /boot/vmlinuz-2.4.8 or whatever

Prerequisite packages

Expand the source

In /usr/src: tar -jxf kernel-source-2.4.8.tar.bz2

Create the symlink

Remove the old one with rm linux then add a new one with ln -s kernel-source-2.4.18 linux

Check minimum versions

Compare /usr/src/linux/scripts/ver_linux with /usr/src/linux/Documentation/Changes

Configure the kernel

/usr/src/linux$ make menuconfig

Absolute minimum for Marvin:

  • File systems
  • Cryptographic options

    Compiling the kernel

    /usr/src/linux$ fakeroot make-kpkg clean
    /usr/src/linux$ fakeroot make-kpkg --append-to-version c2 --revision clive01 kernel_image

    Installing the kernel

    You now should have /usr/src/kernel-image-2.4.8.c2_clive01_i386.deb
    dpkg -i kernel-image-2.4.8.c2_clive01_i386.deb

    References