Next Previous Contents

4. Configuring the kernel

You need to generate a working .config file for your kernel. Hopefully your hardware is not too different from mine and my .config works for you. Clean up the source tree before copying the .config across.

$ wget http://www.users.on.net/~jani/config-2.6.9
# cd /usr/src/linux-2.6.9
# make mrproper
# cp /home/mythtv/config-2.6.9 /usr/src/linux-2.6.9/.config

If you patch your kernel source or need to modify the config do the following:

# cd /usr/src/linux-2.6.9
# make oldconfig
# make menuconfig

4.1 Compile and install

Once that is done, you can build the kernel and install it.

# make all
# make modules_install
# make install
# nano -w /boot/grub/grub.conf

At the last step edit grub.conf. The new kernel has already been added, but the default=1 points to your previous kernel. Set default=0. Also add 3 to the end of the kernel line to temporarily disable the X server. Here is my grub.conf file:

grub.conf

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#        all kernel and initrd paths are relative to /boot/, eg.
#        root (hd0,0)
#        kernel /vmlinuz-version ro root=/dev/hda2
#        initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.9)
root (hd0,0)
kernel /vmlinuz-2.6.9 ro root=LABEL=/1 rhgb quiet 3
initrd /initrd-2.6.9.img
title Fedora Core (2.6.9-1.667)
root (hd0,0)
kernel /vmlinuz-2.6.9-1.667 ro root=LABEL=/1 rhgb quiet
initrd /initrd-2.6.9-1.667.img


Next Previous Contents