LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   NO /usr/src/kernel directory & Kernel Compilation (https://www.linuxquestions.org/questions/linux-kernel-70/no-usr-src-kernel-directory-and-kernel-compilation-615880/)

PankajDS 01-23-2008 10:18 PM

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..........

budword 01-23-2008 10:45 PM

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

devkpict 01-24-2008 12:04 AM

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

sparc86 01-24-2008 12:10 AM

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.

PankajDS 01-24-2008 12:42 AM

Quote:

Originally Posted by sparc86 (Post 3033401)
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 ?

budword 01-24-2008 01:48 AM

You probably don't have lilo installed, as fedora uses grub.

David


All times are GMT -5. The time now is 03:17 AM.