LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-21-2004, 09:27 PM   #1
Bassam
Member
 
Registered: Mar 2003
Location: Malaysia
Posts: 63

Rep: Reputation: 15
How to install Kernel 2.6.7 in my machine


Hello Guys,
I have a Redhat machin that running under Kernel 2.4.20-8 and I want to upgrade to Kernel 2.6.7

I am new to Redhat, so is there any detailed steps explaining how to install the latest kernel version.


Thanks for your support
Bassam
 
Old 06-21-2004, 09:42 PM   #2
young1024
Member
 
Registered: Apr 2004
Distribution: Slackware 9.1, Fedora Core 2
Posts: 40

Rep: Reputation: 15
First, ask yourself: Do you want to do this? If nothing's broken, you shouldn't try to fix it. I really advise against upgrading to the 2.6 kernel, as it's still being developed. If you're gonna compile a kernel, at least use the stable 2.4 series. If you do decide to take the risk of screwing up your entire system by compiling a new kernel(don't hold me responsible!), proceed.

First, make sure you are doing this as root. Download the full kernel sources (via ftp) from www.kernel.org. Use "tar -x[z/j]f [directory][filename.tar.[gz/bz2]" (without the quotes) within /usr/src/ to decompress the sources. Remove the symlink named "linux", and make a new one with "ln -s /usr/src/[dirname] linux" in /usr/src to make one pointing to your new kernel directory. Cd to the kernel directory, and clean things up with a "make mrproper" command.

Now, choose your kernel configuration options. You can do this in many ways. Here are the options:

make config
-Select kernel options with a [y/n/q] prompt. You really shouldn't do this. It's a pain.

make oldconfig
-Uses your old kernel's configuration file. Only prompts for new ones. Newer people should use this.

make menuconfig
-Uses a ncurses terminal "GUI" for a menu-selection interface. Pretty good.

make xconfig
-Uses QT libraries for a menu-selection interface.

Once you're done, finish up any modifications to the source, and use "make dep". Go do something else while all dependencies are resolved. Then, use a "make bzImage" command. This'll be a long wait, too. (I clean out my /boot directory [except for the old kernel] and rename the kernel vmlinuz.old, just in case before doing this) Then, use "make" and "make install" commands to install your kernel. When you're done with this, make sure your GRUB/LILO configurations are set correctly. Finally, reboot.

Last edited by young1024; 06-21-2004 at 09:44 PM.
 
Old 06-21-2004, 10:03 PM   #3
Bassam
Member
 
Registered: Mar 2003
Location: Malaysia
Posts: 63

Original Poster
Rep: Reputation: 15
Thanks for responding,
In fact I done all the steps successfully except the GRUB. The instructions that I have explain only hpw to change the LILO configuration file. and my system support GRUB. So can you direct me on what changes should I make in my GRUB file so I can boot from the kernel 2.6.7?

Thanks
Bassam
 
  


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
building kernel for another machine dannyk1 Linux - General 1 06-02-2005 06:44 AM
built kernel locally...need to install to a remote machine. how? ARCHIGAMER Linux - General 1 04-10-2005 02:52 PM
Compiling a new kernel for an old machine digitalwiz Slackware 5 08-04-2004 03:24 PM
Virtual Machine kernel stack fault in kernel mode virtical Linux - Software 0 07-14-2003 08:30 PM
Compiling kernel on another machine? davebarnes Linux - Newbie 3 09-20-2002 01:21 AM

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

All times are GMT -5. The time now is 09:53 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
Open Source Consulting | Domain Registration