Compile Debian 2.6.15.6 kernel

1. Resource preparation:
(1) Download the kernel http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.16.tar.bz2 from www.kernel.org
and decompress it to / Directory tar under usr/src
--bzip2 -xvf linux-2.6.16.tar.bz2
(2) Install tools used during compilation: apt-get install debhelper modutils kernel-package
(3) Copy the original kernel configuration file to the storage folder of the new kernel and rename it to .config
cp /boot/config-2.6.15.6 /usr/src/linux-2.6.15.6/.config
2. Start configuring the kernel and compiling Kernel
(1) make menuconfig or make xconfig (under X environment)
(2) make-kpkg clean to prepare for compilation
(3) make-kpkg --initrd kernel_image to compile the kernel installation package
(4) dpkg -i kernel-image-2.6 .15.6_10.00.Custom_i386.deb
3. Modify /boot/grub/menu.lst according to the actual situation and reboot. Generally, it will be successful.
4. Continuously modify the configuration and repeat the above steps. Generally, I directly back up the kernel configuration file that has been compiled and can be used normally, and then performs a new kernel compilation.

おすすめ

転載: blog.csdn.net/shaken/article/details/631486