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 04-10-2006, 05:41 PM   #1
allomeen
Member
 
Registered: Dec 2005
Posts: 83

Rep: Reputation: 15
how to compiling/intalling a new kernel


Hello everyone,

I'm new to Linux Kernel and I was wondering how can I recompile/update the linux kernel from 2.6.15 to 2.6.16 FD5. Then How can I Install it to use kernel headers?

Thanks,
Alaa G
 
Old 04-10-2006, 05:51 PM   #2
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Allomeen,

I don't want to be rude, but installing the source files, compiling the kernel and install it afterward requires quite some explanation. Certainly if you don't have a specific question, but would like to have the whole story instead. If you ask someone to explain it in the detail you need as someone who is not very experienced, this could easily cover a few letter sized pages.

I don't think it is fair to ask this to the members here.

If you google around to find some documentation for your distribution, I am sure that you'll find more than enough.

It is a lot of explanation to write down, but it is not difficult once you have studied the appropriate documentation.

jlinkels
 
Old 04-10-2006, 05:53 PM   #3
vmlinuz.gz
Member
 
Registered: Nov 2005
Posts: 123

Rep: Reputation: 15
Install the kernel tarball into your home directory (that's available from www.kernel.org), and then:

Code:
$ tar -xjvf <filename_of_kernel>
$ sudo mv <unpacked_directory> /usr/src
$ cd /usr/src
$ sudo ln -s <unpacked_directory> linux
$ cd linux
$ make mrproper
$ make O=/home/<your_name>/build/kernel menuconfig
Configure it with the necessary options, and then

Code:
$ make O=/home/<your_name>/build/kernel
$ sudo make O=/home/<your_name>/build/kernel modules_install install
$ cd /boot
$ mkinitrd -o /boot/initrd.img-<version_of_kernel> <version_of_kernel>
$ vim /boot/grub/menu.lst
Now, point one of your menu listings in grub to the new kernel. Reboot, and you should be all set.

This assumes your are using grub.

Last edited by vmlinuz.gz; 04-10-2006 at 05:54 PM.
 
Old 04-10-2006, 07:08 PM   #4
allomeen
Member
 
Registered: Dec 2005
Posts: 83

Original Poster
Rep: Reputation: 15
This is exactly what I'm looking for, Thank you.
 
Old 04-10-2006, 07:16 PM   #5
vmlinuz.gz
Member
 
Registered: Nov 2005
Posts: 123

Rep: Reputation: 15
Quote:
Originally Posted by allomeen
This is exactly what I'm looking for, Thank you.
You're welcome, and I hope it helps.
 
  


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
Errors Compiling Kernel 2.6 on Slackware 10.2 - Old kernel headers required? Dave S. Slackware 8 03-04-2006 12:15 AM
Where Is Kernel Directory In Rh9(kernel 2.4.20-8), For Compiling HSP56 MR(pctel) Mode rudy3107 Linux - Software 1 07-25-2004 04:17 AM
Intalling RH 9 with beta kernel. Is this possible? Tavo23 Linux - Newbie 1 06-09-2003 01:20 PM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 05:31 PM
intalling RH 7.2 juanb Linux - General 1 05-19-2002 12:28 PM

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

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