Upgrade RedHatas4 kernel to 2.6.33.3

Source: Internet
Author: User
The original installed RedHatas4 hard disk to the new configuration of the machine can not start (motherboard Asus P5QPL-AM), do not want to reinstall the system, had to upgrade the kernel first from the kernel.

The original RedHat as4 hard disk to the new configuration of the machine can not start (motherboard Asus P5QPL-AM), do not want to reinstall the system, had to upgrade the kernel

First, put the file in the/root/directory from the directory.
# Tar jxvf linux-2.6.33.3.tar.gz
Generate a directory linux-2.6.33.3

# Cd linux-2.6.33.3

# Make mrproper
The purpose of this command is to clean up the traces of the previous kernel compilation. In fact, if it is a new decompression, it should be fine without this command. You can compare
Let's take a look at the changes in the files in the Directories Before and After make menuconfig.
The current version is redhat as4 update8, and the kernel version is 2.6.9-x. EL, I am not very clear about my hardware configuration, so I still keep the original configuration. All I want is to allow inner nuclear energy to support the new netfilter module function. (You can use the uname-a command to view the current kernel version .)
# Ls-al/boot
We can see that there is a file below, similar to the config-2.6.9-x.EL, this is the current kernel corresponding to the. config file, it is tested to the new kernel
Directory
# Cp/boot/config-2.6.9-x.EL/root/linux-2.6.33.3/. config
If the directory already contains the. config file ...... Of course, it is overwritten. Then start compiling
# Make menuconfig
Make menuconfig requires libcurses5-dev support to be installed, and if it is a newer version of redhat such as as4 or fc4, it may need both ncurses-5.4-13.i386.rpm and ncurses-devel-5.4-13.i386.rpm files, check that you have installed these two software packages (it is best to select the development tool when installing the system)

After entering, select the option "Load an Alternate Configuration File" which is very dependent on the menu, and then select, you will be asked whether to extract. config, of course.
Then your basic configuration information has been saved. If there is nothing unsatisfactory, you don't need to change it unless you know exactly how to change it.
After the configuration is complete, select exit to exit and you will be asked if you want to save it. Of course, it is saved. At this time, a new. config file is generated. You can start to compile the kernel !!! It is best to use GCC4.5.0 to compile the 2.6.33.3 kernel. Otherwise, compilation will fail.
# Make
This compilation process is quite long. Let's take a look at the latest movie. If you want to test your level, you can also read the directory carefully.
To give yourself a deeper understanding of linux.
After make is complete, we need to install all modules into the system!
# Make modules_install
This time is quite long, but it is not as good as the one above. The new modules will be placed in the corresponding kernel version directory under the/lib/modules directory. If you use this newly compiled kernel boot system, then the kernel modules used by the system are in the corresponding directory of the kernel version, including your driver or something.
Oh? Is the module installed? OK. Do you want to start using this kernel? If you don't want to, put it here first, and then take it slowly.
If you want to use it immediately, enter
# Make install
At this time, the newly compiled kernel will be copied to the/boot directory (this directory stores kernel images and related files, therefore, when installing the system, it is best to separate this Directory into a single partition, so that other programs do not occupy the space of this partition ...... At least redhat as4). At the same time, it will modify your grub. conf file so that the boot menu will have an extra option. I will not talk about grub. conf any more.
Have all the commands been successfully completed?
# Reboot
After restarting, you will find that there is an option in the boot menu (or in the grub boot Interface), I am the linux-2.6.33.3 option, select this option, you start to enter the new kernel system.

To use the new kernel by default, modify grub.

# Vi/boot/grub/menu. lst
If the compilation is successful, the redhat (2.6.33.3) will be automatically added. This is my new kernel. If you want to use the first kernel, change default = 0, and the second kernel is 1, and so on...
Default = 0
Timeout = 0
Splashimage = (hd0, 0)/grub/splash.xpm.gz
Hiddenmenu
Title Fedora (2.6.33.3)
Root (hd0, 0)
Kernel/vmlinuz-2.6.31 ro root = UUID = b75809ed-8353-4679-bfe4-e5686f3d6b18 rhgb quiet
Initrd/initrd-2.6.33.3.img

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.