Complete RHEL kernel upgrade in three steps

Source: Internet
Author: User
The current electronic products are often upgraded. Of course, we also need to upgrade the RHEL kernel. In the following article, the purpose and step 3 of this experiment describe the RHEL kernel upgrade process in detail. Let's take a look at the RHEL kernel upgrade process. The lab environment is installed with RHEL Enterprise Edition, with the kernel 2.5.

The current electronic products are often upgraded. Of course, we also need to upgrade the RHEL kernel. In the following article, the purpose and step 3 of this experiment describe the RHEL kernel upgrade process in detail. Let's take a look at the RHEL kernel upgrade process.

 

Lab Environment

The RHEL Enterprise Edition is installed, and the kernel version is. *.

 

Lab Purpose

Upgrade 2.5.* kernel to 2.6.6. * http://www.kernel.org/pub/linux/kernel // Linux Kernel

 

Tutorial steps:

1. The root permission is required to compile the kernel.
NcYou need to install this package before urses-dev compilation.

2. Copy the kernel to/usr/src /.
#CpLinux-2.6.10.tar.gz/usr/src

Solution 3CompressionDownloaded kernel source code
# Tar-xzvf linux-22.6.10.tar.gz

4. Create a symbolic link
#Cd/Usr/src
#Ln-S linux-22.6.10 linux

5. Delete all configuration files and *. o files.
# Cd linux
# Make mrproper
Configure the kernelCommand
# Make config is the most traditional text-based
# Make menuconfig based on the text menu
# Make xconfig Based on graphic interface
# Make oldconfig small modifications based on the original Kernel
Y-compile this function into the kernel
N-do not compile this function into the kernel
M-compile this function into a module dynamically inserted into the kernel as needed

6 The following is the first time to upgrade the kernel. Use the make menuconfig command to make different choices as needed.
Make menuconfig // The graphic configuration page appears. You can select different options as needed.

7. Set dependency
Cd/usr/src/linux
Make dep

8. Make sure the source code has no files.
Make clean

9. Compile the kernel. By default, no 1st kernels are selected.
1). make bzImage (avoid compilation of a large kernel)
2). make zImage (the kernel size generated during compilation)

10 compile the kernel module
Make moDuLes

11 install the compiled Module
Make modules_install

12. Create a module Link
Depmod-

13. Create a new connection
Cp System. map/boot/System. map-2.6.10
Cp arch/i386/boot/bzImage/boot/vmlinuxz

14. Create a New Image File
Cd/boot/
New-kernel-pkg -- mkiniTrD -- depmod -- install 2.6.10

15 modify grub or LILO
Vi/boot/grub/menu.LsT
Copy and modify the following four lines:
Title REdHat Enterprise Linux AS (2.6.10.EL) // you can modify the file according to the file name generated above.
Root (hd0.0) kernel/boot/vmlinuxz ro root = LABEL =/rhgb quiet // view the corresponding file name in the/boot directory vmlinuxz
Initrd/boot/initrd-2.6.10.img // initrd-2.6.10.img can view the corresponding file name initrd-2.6.10.img under the/boot directory

16 init6 restart
The 2.6.10 kernel option is added to the boot option.

 

Additional content:
If you only need to upgrade one version
Placement of patch files
Linux-2.6.9 upgrade to linux-2.6.10
# Cd/usr/src
# GZip-CdPatch-2.6.10.gz | path-p0
Recompile the kernel

 

Upgrade notes:
1. Read the online documentation and find out the correct meaning of each option before selecting
2. Try to delete unused drivers.
3. For "evelopment ""ExPerimental "" debugging "option generally selects" N "to generate a more stable kernel.
4. You can use "make oldconfig" to make local modifications to the Kernel configuration faster.
5. features added or changed during Kernel configuration of version 2.6
6 ALSA is a more improved sound system. For sound cards and sound-level users
7. In terms of using X-window, the new kernel is faster.

 

The above is the description of the RHEL kernel upgrade process from the experiment environment, experiment purpose, and experiment steps of the RHEL kernel upgrade, in addition, I also added some precautions and additional content during the RHEL kernel upgrade process. We hope to help you complete the RHEL kernel upgrade.

Related Article

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.