LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 01-23-2007, 09:07 AM   #1
s0n|k
Member
 
Registered: Feb 2006
Distribution: RHEL4
Posts: 80

Rep: Reputation: 15
Error updating kernel


RHEL4 OS. I'm updating 2.6.9-5 to 2.6.19.2. When doing this, do I need to update network tools or anything else?
I followed these steps:

cd /usr/local/src
tar xvjf /path-to-source/linux-<version>.tar.bz2
cd linux-<version>
make menuconfig
make modules
make modules_install
make
make install

At the make install step I get 2 warnings: "No module mptbase found for kernel 2.6.19.2, continuing anyway." The other message was the same except it was for mptscsih. I rebooted and my old 2.6.9-5 kernel is still being booted, so I'm assuming my steps didn't work. I retried the steps in the following order:

make menuconfig
make bzimage
make modules
make modules_install
make install

After this the same error was thrown and the old kernel booted. What am I doing wrong?

Last edited by s0n|k; 01-23-2007 at 09:09 AM.
 
Old 01-23-2007, 04:32 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
It takes a lot more then what you have done to build a working 2.6.19.2 kernel on RHEL-4.

First you forgot to configure your kernel correctly, second you really need to update some things like dbus, hal, udev and such (not en easy task). You should read in kernel source directory tree the ~/Documentation/Changes file before you try again, because udev 081 or better is needed and with the Red Hat family udev, hal and dbus are all inter-related.

FYI: the correct (in order) steps to build a kernel for the Red Hat family are;

make mrproper
make menuconfig
make
make modules_install
make install

Now before the 'make menuconfig' step you might want to run; make oldconfig

The 'make oldconfig' should get you a lot closer then you were, but you still have to check and verify with 'make menuconfig' that all the settings for your hardware are set. You also need to review the networking section and make sure they are set. You see the kernel configurations by Red Hat are not 100% compatible with the vanilla kernel sources.

Why do you think you need to build a new kernel?? If you have a properly licensed copy of RHEL 4 the update the system via RHN and up2date. If not then used the latest version of CentOS or Scientific Linux. Both are freely available 100% binary compatible clones of RHEL 4 update 4 (latest versions of all; CentOS, RHEL-4 and SL-4).

BTW: the latest RHEL-4 family kernel is something like kernel-2.6.9-42.0.3, which has many backports and tweaks from the vanilla kernel sources.

.

Last edited by Lenard; 01-23-2007 at 04:34 PM.
 
Old 01-24-2007, 07:17 AM   #3
s0n|k
Member
 
Registered: Feb 2006
Distribution: RHEL4
Posts: 80

Original Poster
Rep: Reputation: 15
Thanks for the info. I didn't realize there was so much to it. I'm trying to get IPSec to work therefore I had to set some Crypto and Networking options in the kernel. I was under the impression that I had to update the kernel in order to update changes. Is this true? If not, how can I simply do a menuconfig to my existing kernel and boot the changes?
 
Old 01-24-2007, 08:01 AM   #4
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
You really should review the Red Hat Security Guide (Section 6)before attempting to update or re-configure the kernel;

http://www.redhat.com/docs/manuals/e...ecurity-guide/

Please update RHEL-4 first, as I said if you have a current legally purchased version then you are entitled to free updates via the RHN and up2date;

https://www.redhat.com/rhn/

If you need to make changes to your running kernel then download the RHEL kernel source and prep the source;

Dowload:
Code:
wget ftp://ftp.redhat.com/pub/redhat/linux/enterprise/4/en/os/i386/SRPMS/kernel-2.6.9-5.EL.src.rpm
Install:
rpm -ivh kernel-2.6.9-5.EL.src.rpm

Prep:
cd /usr/src/redhat/SPECS
rpmbuild -bp --target $(arch) kernel.spec
cd /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9

You need to edit the Makefile found in the directory above a bit to fix the EXTRAVERSION line to match your current kernel version, use the typed command 'uname -r' minus the single quotemarks to know what change to make. Then you can do;

make mrproper
make oldconfig
make menuconfig
make
make modules_install
make install

And yes, while using 'make menuconfig' is where and when you make the changes to the kernel configuration.
 
Old 01-24-2007, 08:46 AM   #5
s0n|k
Member
 
Registered: Feb 2006
Distribution: RHEL4
Posts: 80

Original Poster
Rep: Reputation: 15
Again, thanks for this info. You are really helping me out here at work. I'm on the EXTRAVERSION step. Now the line currently has ' EXTRAVERSION = -prep ' . How do I implement 2.6.9-5.EL into that line like you said?
 
Old 01-24-2007, 09:35 AM   #6
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Quote:
Originally Posted by s0n|k
Again, thanks for this info. You are really helping me out here at work. I'm on the EXTRAVERSION step. Now the line currently has ' EXTRAVERSION = -prep ' . How do I implement 2.6.9-5.EL into that line like you said?
Duh!!! Change the -prep to -5.EL
 
Old 01-24-2007, 12:30 PM   #7
s0n|k
Member
 
Registered: Feb 2006
Distribution: RHEL4
Posts: 80

Original Poster
Rep: Reputation: 15
Thanks for the help. I believe that did it! One more thing, while in the kernel config, what does the --- indicate? I have a list of algorithms that I have to use and some of them don't have a < > to put y in, they simply have a --- mark. such as SHA1, DES+Triple DES, etc...
 
Old 01-24-2007, 01:27 PM   #8
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
It means that this is not set or no or will not be built or applied.

You might want to download and read; http://www.kernel.org/pub/linux/kern...kn_pdf.tar.bz2

Which after expanding the file is the book Linux Kernel in a Nutshell by Greg Kroah-Hartman and VERY good reading.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Updated Kernel... mcgodx Linux - Software 9 07-08-2006 03:46 PM
urpmi updated kernel source but not the kernel itself(??) tredegar Mandriva 5 02-15-2005 02:27 AM
Can't get updated kernel Groller Linux - Newbie 2 08-02-2004 12:14 PM
just updated kde 3.2.2 Now. make error!! spaceagedevice Linux - Software 4 06-01-2004 12:22 PM
kernel-update, a success... BUT... couldn't boot from the updated-kernel Pisces107 Red Hat 7 12-17-2003 02:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 09:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration