Linux 2.6.37 RC4 is successfully compiled in Ubuntu 10.10.

Source: Internet
Author: User

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 ......

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.