Compile the kernel Linux 2.6.3x in centos 5.5

Source: Internet
Author: User

Centos 5.5 kernel version:2.6.18-194. E15-X86_64.

Upgrade to Linux 2.6.32 first. Because 2.6.3x has similar kernel compilation steps, the title of this article is 2.6.32x.

 

(1) download the standard kernel 2.6.32 and decompress it to the directory, for example,/usr/src.

(2) Make menuconfig select the relevant kernel module

CD/usr/src/linux-2.6.32

CP/usr/src/kernels/2.6.18-194. el5-x86_64/. config. <copy the. config of the current kernel>

Make menuconfig

Be sure to selectGeneral setup-> enable deprecated sysfs features to support old...
(That is, in the generated new. config fileConfig_sysfs_deprecated_v2 = yIf this option is not selected, an error will be reported after the kernel is compiled and restarted.Mount: cocould not find filesystem '/dev/root'. This is a unique option for the new kernel version. The old kernel does not have the config_sysfs_deprecated_v2 option. config is also different from the new kernel, but it is generated using make menuconfig of the new kernel. config not only contains the copied. the related options in the Config File Include some new options.

Save. config

(3) Compile the kernel
Make;
Make modules;
Make modules_install;
Make install;

(4) Modify/etc/grub. conf, select a new kernel, and restart the system.

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.