Install vanilla kernel

John Wendel john.wendel at metnet.navy.mil
Wed Aug 16 18:12:25 UTC 2006


Jay Cliburn wrote:
> On Tue, Aug 15, 2006 at 07:17:30PM -0800, Kam Leo wrote:
>> On 8/15/06, Jay Cliburn <jacliburn at bellsouth.net> wrote:
>>> Can someone point me to the FM/howto/tutorial that describes how to
>>> install a vanilla kernel in a Fedora system, preferably without using
>>> rpm?  I've built the kernel, but I'd like to learn where everything goes
>>> and how it's created, especially the compressed stuff in /boot, but the
>>> rest of it as well (such as what pieces go into /lib/modules,
>>> /usr/src/redhat, etc.).
>>>
>>> Thanks,
>>> Jay
>>>
>> Have you tried the FAQ at http://kernel.org?
> 
> Yes.  The FAQ points to kernelnewbies.org, which points to a dead link
> at UCSD, and another link at osnews.com circa 2001 that is not redhat-
> centric.
> 


Easy recipe follows

[1] make a directory (in your home directory) to hold the sources, I 
called mine "kernel".

 > mkdir kernel

[2] put the kernel tarfile, the latest patch file, and a kernel 
configuration file in the "kernel" directory. You can start with the 
configuration file in /boot.

[3] run this script (change the version to match your kernel source).

tar --bzip -xf linux-2.6.17.tar.bz2
cd linux-2.6.17
make mrproper
cp ../patch* .
bunzip2 patch*
patch -p1 < patch*
rm patch*
make clean

# skip this if you don't have an old config file

cp ../configuration .config
make oldconfig

[4] If you don't have a kernel configuration file, or you need to make 
some changes,

 > make menuconfig (or one of the other menu options)

[5] Build the new kernel

I use the following, but there are other options to make an rpm if 
you're into pain.

 > make
 > make modules_install
 > make install

[6] Your new kernel has been installed in /boot and /lib/modules, and 
grub has been updated.

[7] Edit /boot/grub/grub.conf if you want to make the new kernel the 
default.

[8] Say prayer to Linus and Reboot

Regards,

John








More information about the fedora-list mailing list