LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-08-2002, 09:02 AM   #1
barDo
LQ Newbie
 
Registered: Jul 2001
Location: Nicaragua
Distribution: RH 7.1
Posts: 18

Rep: Reputation: 0
Question Upgrading to kernel-2.4.9-21


Hello friends!

I actually have kernel-2.4.2-2 in an RH 7.1 and I want to upgrade to kernel-2.4.9-21, these are my questions:

1. Am I forced to upgrade first to kernel versions between 2.4.2-2 and 2.4.9-21?

2. My linux box is running on i586, I downloaded from Red Hat Network all packages to upgrade my system (all newest RPMs for my RPMs installed), and I said to download for i586 architecture. I unzip the rhn-packages.tar file and all the RPMs are for i386, does it work for my architecture i586?

3. Exist any especific procedure to upgrade the kernel?

thanks,

Last edited by barDo; 02-08-2002 at 09:05 AM.
 
Old 02-09-2002, 01:06 AM   #2
ryanstrayer
Member
 
Registered: Jan 2002
Location: Kansas City
Distribution: RedHat 7.2 Kernel 2.4.17
Posts: 250

Rep: Reputation: 30
Okay - to answer your question in order:


1 - No. Only if you are applying patches as opposed to a whole new kernel would you have to do this.. and you don't want to add patches unless there is a good reason you need to. Just untar the new kernel to /usr/src/linux-2.4.9-21

2 - i386 will work on any machine 386 and above. So yes, it will work on your system. No worries.

3 - Yes - there are better procedures than others; and from my experience almost every system is slightly different. I'll give you what works best for my system:

Untar your new linux kernel into /usr/src/linux-2.4.9-21

cd /usr/src
ln -s linux-2.4.9-21 linux
cd kernel-2.4.2-2
cp .config /usr/src/linux
cd /usr/src/linux
make clean
make xconfig <--- or menuconfig instead of xconfig

*configure any special features you need, then select save and exit*

make dep
make bzImage
make modules
make modules_install
cp arch/i386/boot/bzImage /boot/vmlinux-2.4.9-21
cp System.map /boot/System.map-2.4.9-21

vi /etc/lilo.conf <-- only if you're using lilo

add something to it similiar to this:

image=/boot/vmlinuz-2.4.9-21
label = linux-2.4.9-21
read-only
root=/dev/hda1 <--- make this the same as the other entry


then save and exit. Your lilo config may vary, if you're using an initrd image, then yours will be a little different. Also make sure the root= like has the correct device.. just copy it from the other entry already existing.

then type

lilo

and reboot.. and select the new kernel. If it blows up somehow, you can still boot to your old config and try again.

If you've never compiled a kernel before, don't get frustrated if it doesn't work the first two dozen times.. LOL .. It takes a lot of practice to learn the proper things to do and config for your system. I've never talked to anyone who got it the first time without a hitch of some kind. Have fun and good luck!

Last edited by ryanstrayer; 02-09-2002 at 01:07 AM.
 
  


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
problems occured after upgrading kernel and kernel-utils parv Fedora 0 05-02-2005 06:21 PM
Upgrading kernel on Debian from 2.4 to 2.6.8, Kernel Panic omlette Linux - General 3 03-07-2005 07:00 AM
upgrading kernel from 2.4.20-8 to 2.6.4 mandelchan Linux - Laptop and Netbook 3 04-21-2004 12:00 AM
Upgrading the kernel TX_metalhead Linux - Software 3 05-06-2002 11:23 AM
Upgrading the kernel goochable Linux - General 1 04-11-2001 05:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:14 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