Successfully compiled the kernel linux-2.6.37-rc4 in Ubuntu 10.10:
The procedure is as follows;
1. Download linux-2.6.37-rc4 here,
You can select a stable version or a new test version, but you must download the full source version.
2. Install the relevant Compilation Program. Install make, GCC, make-kpkg, run xconfig, and other kernel-related tools.
Execution;
Sudo apt-Get install build-essential kernel-package libncurses5-dev fakeroot
3. Extract the source code
Execution;
Tar jfx linux-2.6.37-rc4.tar.bz2-C ~ /Linux
If you cannot find the Linux directory, create one ,~ /Linux can be any directory, but note that you need to reserve more than 2 GB Space
4. Go to the directory where the source code is located.
Execution;
Cd ~ /Linux/linux-2.6.37-rc4/
5. Clear the temporary files left by the previous compilation. If the source code package is just unlocked, skip this step.
Execution;
Make mrproper
6. Use make localmodconfig to automatically streamline the kernel
Execution;
Make localmodconfig
7. Start to compile the kernel.
Execution;
Sudo make-kpkg clean
Fakeroot make-kpkg -- initrd -- append-to-version =-lostubuntu kernel_image
Note: The "-lostubuntu" can be changed to your favorite content, according to my compiled kernel name is "linux-image-2.6.37-rc4-lostubuntu"
8. Install the kernel
You can double-click to install the compiled kernel in the previous directory.
Or
Execution;
CD ..
Sudo dpkg-I linux-image-2.6.37-rc4-lostUbuntu001_2.6.37-rc4-lostubuntu001-10.00.Custom_i386.deb
9. After the installation is complete, compare the size with the old kernel:
Execution;
Ls-L/boot/
10. Restart to verify the kernel.
Sudo reboot
If the kernel verification fails, select the old kernel in grub and try again ......