RedHatAS4U3 kernel upgrade-general Linux technology-Linux programming and kernel information. For details, refer to the following section. My system is RedHat AS 4 U3 and the kernel is 2.6.9-34. I downloaded the linux-2.6.20.tar.gzpackage at http://kernel.org/pub/linux/kernel/v2.6/
My general operations are:
1. Copy the downloaded package to the/usr/src directory, decompress the package, and create a link file.
Ln-s linux-2.6.20 linux (under the/usr/src directory)
2. Configure and compile the kernel
Make menuconfig
My options are:
Device Drivers --->; Network device support ---> Ethernet (10 or 100 Mbit) ---> <*> AMD PCnet32 PCI support
File system ---> (the following nine options are about ext2 and ext3 File system configuration, all selected)
Second extended fs support
Ext2 extended attributes
Ext2 POSIX Access Control Lists
Ext2 Security Labels
Ext3 journalling file system support
Ext3 extended attributes
Ext3 POSIX Access Control Lists
Ext3 Security Labels
JBB (ext3) debugging support
File system ---> DOS/FAT/NT Filesystems ---> select "NTFS file system support
Others are all default options, not changed
3. make bzImage, make modules, make modules_install, make install
No error is reported for the preceding operations.
4. # cp/usr/src/linux-2.6.20/arch/i386/boot/bzImage/boot/vmlinuz-2.6.120
# Cp/usr/src/linux-2.6.20/System. map/boot/System. map-2.6.20
# Cd/boot (enter the boot directory)
# Rm? Rf System. map (delete the original connection)
# Ln? S System. map-2.6.18 System. map (reconnect)
5. Modify the grub. conf file
My configuration is:
# Grub. conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a/boot partition. This means that
# All kernel and initrd paths are relative to/boot/, eg.
# Root (hd0, 0)
# Kernel/vmlinuz-version ro root =/dev/cciss/c0d0p2
# Initrd-version.img/initrd
# Boot =/dev/cciss/c0d0
Default = 1
Timeout = 10
Splashimage = (hd0, 0)/grub/splash.xpm.gz
Hiddenmenu
Title Red Hat Enterprise Linux AS (2.6.20)
Root (hd0, 0)
Kernel/vmlinuz-2.6.20 ro root = LABEL =/dev/cciss/c0d0p2 rhgb quiet
Initrd/initrd-2.6.20.img
Title Red Hat Enterprise Linux AS (2.6.9-34. ELsmp)
Root (hd0, 0)
Kernel/vmlinuz-2.6.9-34.ELsmp ro root = LABEL =/rhgb quiet
Initrd/initrd-2.6.9-34.ELsmp.img
Title Red Hat Enterprise Linux AS-up (2.6.9-34.EL)
Root (hd0, 0)
Kernel/vmlinuz-2.6.9-34.EL ro root = LABEL =/rhgb quiet
Initrd/initrd-2.6.9-34.EL.img
(/Dev/cciss/c0d0p2 is my/partition)
6. restart the system and select kernel 2.6.20.
I used the wheel method yesterday to disable SElinux before compiling the kernel. Now I can use the new kernel to access the system normally.
Configure the 2.6.20 kernel in the grub. conf file as follows:
Title Red Hat Enterprise Linux AS (2.6.20)
Root (hd0, 0)
Kernel/vmlinuz-2.6.20 ro root = LABEL =/rhgb quiet
Initrd/initrd-2.6.20.img
In fact, there is no need to modify it. After compilation and installation, the grub. conf file contains a new kernel, which can be modified without modification.
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.