Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have installed RedHat Linux Enterprise WS 4 on my notebook. However, I want to upgrade my kernel.
Can anyone give me link to download 2.6.13 or higher and how to upgrade them step by step.
Keeping in mind some minor differences with the building steps which are in order;
make mrproper
make gconfig (or xconfig or menuconfig here)
make
make modules_install
make install
The make [g][x][menu]config is the important one and will take time to accomplish. The Red Hat supplied /boot/config-<version#> file can be used as a start but you will need to go through the configuration options and make sure everything related to your system is configured. Watch out for the netfilter sections as they have changed.
A little "trial and error" may be experienced before you get a good working kernel, but it can be done. If your kernel fails then try again as your older kernel is still available for booting. It took me 8 attempts before I build my first good working kernel (back when RHL 7.3 first came out), now I build them fairly quickly and easily.
$ uname -a
Linux Aspire5000 2.6.17 #2 Sun Jun 18 19:46:37 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux
Pay attention when doing this. RHEL probably uses a modified kernel, and replacing that with a vanilla kernel from kernel.org might very well break things.
Maybe the guys at CentOS have a testing kernel for you. I can't tell as their site appears to be offline.
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
Nope, CentOS does not have a 2.6.13 based test kernel (that I'm aware of) and is not down (just checked). Yes, Red Hat kernels are modifed from the kernel source with backports from the upstream vanilla kernel development along with a few additional "in-house" tweaks.
A vanilla kernel will not break things if built correctly, but do not expect support from Red Hat by building or using any kernel Red Hat has not released for RHEL. I normally build and use my own vanilla kernel instead of using a Red Hat (or clone) supplied kernel without any problems,see;
$ cat /etc/*release
CentOS release 4.3 (Final)
$ uname -a
Linux Aspire5000 2.6.17 #2 Sun Jun 18 19:46:37 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux
pro_chandan could try installing (via rpm -ivh kernel*.rpm) the latest released kernel from FC3 (RHEL4 is built partly with the work done for FC3) or FC4 instead of building a vanilla kernel but no guaranties.
I download 2.6.13.1 kernel and I followed your procedure.
However, when I do make install I got the following error message"
CHK include/linux/version.h
make[1]: `arch/x86_64/kernel/asm-offsets.s' is up to date.
CHK include/linux/compile.h
CHK usr/initramfs_list
Kernel: arch/x86_64/boot/bzImage is ready
sh /root/Desktop/new/linux-2.6.13.1/arch/x86_64/boot/install.sh 2.6.13.1 arch/x86_64/boot/bzImage System.map "/boot"
WARNING: Couldn't open directory /lib/modules/2.6.13.1: No such file or directory
FATAL: Could not open /lib/modules/2.6.13.1/modules.dep.temp for writing: No such file or directory
/lib/modules/2.6.13.1 is not a directory.
mkinitrd failed
make[1]: *** [install] Error 1
make: *** [install] Error 2
"
I have performed "
make mrproper
make gconfig (or xconfig or menuconfig here)
make
make modules_install"
successfully. however, when I do make install I received
"WARNING: Couldn't open directory /lib/modules/2.6.13.1: No such file or directory
FATAL: Could not open /lib/modules/2.6.13.1/modules.dep.temp for writing: No such file or directory
/lib/modules/2.6.13.1 is not a directory.
mkinitrd failed
make[1]: *** [install] Error 1
make: *** [install] Error 2"
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
Hmmm.......... try again
Check, do you have the /lib/modules/2.6.13.1 directory???? If not then perhaps you forgot something like configuring the hardware and other modules for your system during the make [something]config step. Which make [menu][g][x]config step did you use? Remember the Red Hat config-2.6.9XXXX file does not match up one to one with a vanilla kernel>2.6.12, for example you may have seen something like;
(gconf:29138): Gtk-WARNING **: Mixing deprecated and non-deprecated GtkToolbar API is not allowed
(gconf:29138): Gtk-WARNING **: Mixing deprecated and non-deprecated GtkToolbar API is not allowed
#
# using defaults found in .config
#
.config:58:warning: trying to assign nonexistent symbol CC_ALIGN_FUNCTIONS
.config:59:warning: trying to assign nonexistent symbol CC_ALIGN_LABELS
.config:60:warning: trying to assign nonexistent symbol CC_ALIGN_LOOPS
.config:61:warning: trying to assign nonexistent symbol CC_ALIGN_JUMPS
.config:74:warning: trying to assign nonexistent symbol OBSOLETE_MODPARM
.config:214:warning: trying to assign nonexistent symbol UNORDERED_IO
.config:217:warning: trying to assign nonexistent symbol PCI_LEGACY_PROC
.config:360:warning: trying to assign nonexistent symbol IP_NF_MATCH_MULTIPORT
.config:365:warning: trying to assign nonexistent symbol IP_NF_MATCH_AH_ESP
.config:370:warning: trying to assign nonexistent symbol IP_NF_MATCH_POLICY
Review your current /usr/src/linux-2.6.13.1/.config file and compare to your /boot/config-<kernel-version-number> file, do they roughly have the same modules set??
Yes, I have /lib/modules/2.6.13.1 directory
I followed your all insturctions and installed successfully without error...
HOwever, when I start in 2.6.13.1 kernel it's getting hang...
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
Take a careful look at your /boot/grub/grub.conf file and instead of using the partition label for your new kernel use the actual drive/partition for example;
Sample grub.conf file section;
Code:
# 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,2)
# kernel /vmlinuz-version ro root=/dev/hda5
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.