RHEL4 compile the kernel

Source: Internet
Author: User
RHEL4 compiles the kernel-general Linux technology-Linux programming and kernel information. The following is a detailed description. I. Preparation
Download the kernel source code package from www.kernel.org and decompress it to the/usr/src directory.
Note: When installing the RHEL4 system, You must select the development kit to install gcc and other tools correctly.

Ii. Compilation
The root permission is required to compile the kernel. It is best to log on to the system as root.

# Cd/usr/src/linux-2.6.26 to enter the unzipped kernel source code directory
# Make mrproper clear Historical Compilation traces
# Make gconfig open the graphical configuration interface. You can also select make menuconfig.
# Make
# Make modules_install installation module (/lib/modules/2.6.26)

Iii. Installation
# Cp./linux-2.6.26/arch/i386/boot/bzImage/boot/vmlinuz-2.6.26
# Cp System. map/boot/System. map-2.6.26
#/Sbin/new-kernel-pkg -- mkinitrd -- depmod -- install 2.6.26 modify grub configuration (/boot/grub. conf)
# Vim/etc/selinux/config disable SELinux (disable)

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