Ubuntu11.04 compile the latest Linux-3.0-rc7 Kernel

Source: Internet
Author: User
Before compiling the Linux kernel, I had to give up on various issues. Just recently, the Linux kernel was released, so I decided to re-compile the kernel. In 1991, the first version of the Linux kernel was released in 0.00. In 1996, the Linux kernel entered the 2.0 era and remained at 2. + after more than 10 years of release, the Linux kernel was named 2.6 and ushered in the Linux3.0 era. For more information about release history, see http://www.linuxidc.com/Linux/20.

Before compiling the Linux kernel, I had to give up on various issues. Just recently, the Linux 3.0 kernel was released, so I decided to re-compile the kernel.

In 1991, the first version of the Linux kernel was released in 0.00. In 1996, the Linux kernel entered the 2.0 era and remained at 2. + after more than 10 years of release, the Linux kernel has finally left the 2.6 naming convention and ushered in the Linux 3.0 era. For details about the release history, see http://www.linuxidc.com/linux/2011-08/40049.htm.

However, Linus, the father of Linux, said that Linux3.0 is only a digital change. In addition to updating a large number of drivers, it does not update any exciting functions.

Anyway, as a Linux enthusiast, is necessary to experience the new kernel. Various online tutorials, but I still encountered various problems. Below I will record my compilation process.

1. First, check the current kernel version, for example, uname-r,

Download the latest Linux-3.0-rc7 kernel source code, Kernel.

2. Place the downloaded source code in your favorite path. Many tutorials on the Internet must be stored in the/usr/src/directory. In fact, this is not necessary, but may cause many permission problems, I put it under/home/water/and decompress it... Tar-zxvf linux-3.0-rc7.tar.gz.

Three, enter the decompressed directory, cd linux-3.0-rc7. If you have compiled this code before, you must clear the source code sudo make clean and sudo make mrproper.

4. It is said that the configuration file of the old kernel can be copied directly, cp/boot/config-'uname-R '. /. config, but it is generally re-configured according to your own needs ~~ Enable the Kernel configuration sudo make menuconfig... The result is wrong .. Prompt what also forgot, Baidu, sudo apt-get install build-essential kernel-package libncurses5-dev fakeroot, in fact, is to install the necessary software ..

5. the most troublesome thing is to configure the kernel... The following is what I copied from the Internet. For more information, see (the author forgot to mention that there is an option of kernel hacking, which protects the system when the system crashes, generally, you don't need to use it. Otherwise, the compiled kernel will have several hundred megabytes, And the Compilation Time will take several hours. All the options can be removed ).

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.