9.2 What tools does Debian provide to build custom kernels?
Users who wish to (or must) build a custom kernel are encouraged to download
kernel-package. This package contains the script to
build the kernel package, and provides the capability to create a Debian
kernel-image-version package just by running the
in the top-level kernel source directory. Help is available by executing the
and through the manual page
Users must separately download the source code for the most recent kernel (or
the kernel of their choice) from their favorite Linux archive site, unless a
kernel-source-version package is available (where
version stands for the kernel version).
Detailed instructions for using the
kernel-package package are
given in the file
Briefly, one should:
Unpack the kernel sources, and cd to the newly created directory.
Execute the command: make-kpkg -rev Custom.N
kernel_image, where N is a revision number assigned by the
user. The new Debian archive thus formed would have revision
for the Linux kernel 2.2.14 on i386.
Install the package created.
Run dpkg --install
../kernel-image-VVV_Custom.N_i386.deb to install
the kernel itself. The installation script will:
run the boot loader (grub, LILO or some other) if needed,
install the custom kernel in
/boot/vmlinuz_VVV-Custom.N, and set up
appropriate symbolic links to the most recent kernel version.
To employ secondary boot loaders such as
loadlin, copy this image
to other locations (e.g. to an MS-DOS partition).