Compile the 2.6.22.9 kernel under CentOS4.5

Source: Internet
Author: User
Compile the 2.6.22.9 kernel under CentOS4.5-general Linux technology-Linux programming and kernel information. For details, refer to the following section. Machine configuration: 865 motherboard, integrated video card, sound card, 256 memory, 8139 Nic
Original System: CentOS 4.5 minimal installation (2.6.9 kernel)

Preparations before Compilation:
1. Install GCC (I did not install it when I minimized it). It is very convenient to install it through yum;

2. Install the ncurses-devel package. If this package is not installed, you can only use make config when making menuconfig reports an error. (It is quite depressing. You can only choose once. If it is wrong, you cannot change it, ); yum install ncurses-devel.

Download linux-2.6.22.9.tar.gz to www.kernel.org.

Installation Process:
Copy the new kernel to/usr/src
Tar xzvf linux-2.6.22.9.tar.gz
Ln-s linux-2.6.22.9 linux (establish a symbolic connection, do not do this, should also be OK)
Cd linux (execute the following commands in sequence)
Make mrproper
Make menuconfig (here is the configuration to be compiled into a module or whether to be compiled into the kernel or not)
Make bzImage
Make modules
Make modules_install
Mkinitrd/boot/initrd-2.6.22.9.img 2.6.22.9

Replace the kernel:
Cd/boot
Cp/usr/src/linux/System. map System. map-2.6.22.9
Cp/usr/src/linux/arch/i386/boot/bzImage vmlinuz-2.6.22.9

Edit/boot/grub/menu. lst (edit Startup menu), and add the 2.6.22.9 Startup menu option following the existing entries.

Restart. If one step fails to be started (an error related to enforcing), you can pull selinux by turning it off.

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.