LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 01-23-2008, 10:18 PM   #1
PankajDS
Member
 
Registered: Oct 2007
Posts: 38

Rep: Reputation: 15
NO /usr/src/kernel directory & Kernel Compilation


Hi Sir,
I want to compile the kernel.

[root@localhost ~]# cd /usr/src
[root@localhost src]# ls
redhat
[root@localhost src]#

Here , there is no 'kernel' direcory
Also plz tell me the steps of linux compilation
of own kernel, new kernel & adding new patches to our
kernel & then compile it.
I am using Fedora-7 & version is 2.6.20-2925.9.fc7xen.
I have gone through google, but I cant understand.
Once I used steps mentioned in the webpage, then
I needed to reinstall the Fedora-7.

Plz help me..........
 
Old 01-23-2008, 10:45 PM   #2
budword
Member
 
Registered: Apr 2003
Location: Wisconsin
Distribution: Switched to regualr Ubuntu, because I don't like KDE4, at all. Looks like vista on crack.....
Posts: 675

Rep: Reputation: 31
Do you have the kernel source installed ? If you don't, the /usr/src/kernel will not be there. Do you use yum ? That would be the easiest way to install the kernel source, so those web howto's and tutorials will work. Also, there are several gui's that will help you compile the kernel. Google out to help you there, I avoid recompiling the kernel myself, because although it's gotten easier, it's still a PITA.

Good luck with that...

David
 
Old 01-24-2008, 12:04 AM   #3
devkpict
Member
 
Registered: Oct 2007
Posts: 31

Rep: Reputation: 15
Lightbulb Installing kernel source

Installing Kernel
1. You have to download the new fresh kernel from kernel.org , or any other site(i.e google -Download linux kernel)

2. Its always in a zip format extract it in /usr/src/ directory ,
tar -xvf linux-2.6.xx
3. Directory will get created with this new kernel name

4. Go to this directory & vi README, It has steps for compiling
the kernel
5. Compile and reboot from the new kernel

Installing the patch

download the patch

1. unzip this patch

2. patch -pl< patch name
 
Old 01-24-2008, 12:10 AM   #4
sparc86
Member
 
Registered: Jul 2006
Location: Joinville, Southern Brazil
Distribution: Debian, CentOS
Posts: 296

Rep: Reputation: 31
And don't forget to create a new image and new lines in your lilo.conf or grub config file, if you use grub. So you can test your new recompiled kernel and, if you get troubles, you can still boot into your old Linux kernel image and then try it again with the new kernel until it actually works.
 
Old 01-24-2008, 12:42 AM   #5
PankajDS
Member
 
Registered: Oct 2007
Posts: 38

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by sparc86 View Post
And don't forget to create a new image and new lines in your lilo.conf or grub config file, if you use grub. So you can test your new recompiled kernel and, if you get troubles, you can still boot into your old Linux kernel image and then try it again with the new kernel until it actually works.
But there is no file
/etc/lilo.conf

Where lilo.conf present.....
What modification I have to do in it ?
 
Old 01-24-2008, 01:48 AM   #6
budword
Member
 
Registered: Apr 2003
Location: Wisconsin
Distribution: Switched to regualr Ubuntu, because I don't like KDE4, at all. Looks like vista on crack.....
Posts: 675

Rep: Reputation: 31
You probably don't have lilo installed, as fedora uses grub.

David
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
What does "Directory "/usr/src/linux" doesn't appear to contain kernel source." mean? jtp51 Linux - General 4 06-11-2007 12:22 AM
kernel includes at /usr/src/linux/include do not match current kernel. blanny Red Hat 1 03-09-2006 07:53 AM
updating kernel, no '/usr/src/linux' directory? rubbercash Suse/Novell 2 04-30-2005 01:00 PM
Kernel Compiling not possible, Directory /usr/src/linux-2.4 isn't there rover Linux - Software 4 09-24-2003 08:05 AM
Creating /usr/src/linux-<xx> from kernel.<xx>.src.rpm jmourik Linux - Newbie 2 02-19-2003 03:24 PM


All times are GMT -5. The time now is 10:49 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration