LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-22-2003, 10:28 AM   #1
ahmed1915
LQ Newbie
 
Registered: Dec 2003
Posts: 6

Rep: Reputation: 0
Question I need help


Hi, everyone
I'm a very new to Linux. I'm using Red Hat 8.0 with Kernel 2.4.18.
Now I want to try new Kernel 2.6, But I don't know how to update or patch the Kernel. So is there some one who can guide me for patching new Kernel.
Also I want to know that new Kernel 2.6 has all bugs fixes and enhancement from 2.4.18 or should I go for increamental update?
Thanx in Advance
 
Old 12-22-2003, 10:46 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
In the future, please try to make better and more descriptive titles. Thanks.

If you want to go from 2.4.18 to 2.6.0, unfortunately it would probably be less hassle to just download the latest to compile, instead of patching as you would have to patch to 2.4.19, then 2.4.20 and so on up to 2.6.0.

There are many tutorials regarding compiling the kernel. ex. www.tldp.org has a howto on it.

The basic steps are if downloading the tarball, not sure about RPM, I don't use RPM's and never done a kernel compile/install using them, I'd stick to source:

Download the tarball and unpack it in your /usr/src directory.

Create the symlink to your newly created directory called linux-2.6.0 like this:

cd /usr/src
ln -s linux-2.6.0 linux

Now you can cd into linux and it will take you to /usr/src/linux-2.6.0

I never do this step but you can do a 'make mrproper' but I don't think its really necessary for the latest kernel.

Then you want to configure your kernel, if your in X you can do a 'make xconfig' for the GUI config. I prefer to use 'make menuconfig'.

After configuring the kernel how you see fit, save and it will exit.

Now do this to build the kernel:

make

And then to create the kernel image:

make bzImage

If you opted to have modules, you will want to do:

make modules
make modules_install

You can find your kernel in the /usr/src/linux/arch/i386 directory for you to move or copy to your /boot directory.

Regards.
 
Old 12-22-2003, 10:53 AM   #3
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
for redhat, i recommend that you use their custom-built kernels since they are designed to do special things within the redhat system

their custom kernels are available from the redhat security and errata section of their site, but i'm not sure if they have released a 2.6 kernel

however, i know that redhat has been backporting a few features and improvements from the 2.6 kernel down to their 2.4 kernels

since they are available in rpm's, they are simple to install
 
Old 12-23-2003, 09:22 AM   #4
ahmed1915
LQ Newbie
 
Registered: Dec 2003
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for your reply. I will remember in future for meaningfull title. But one thing you left in your reply that is it nececessary to update every version of patch or simply directly update to 2.6.0
Thanx
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:57 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration