Next Previous Contents

5. Standard RedHat 6.0 kernel build

Download the latest kernel from http://www.redhat.com/. Place the file in /usr/src. Break the "linux" link. Unzip and untar the file. Move the "linux" directory to "linux-release" then make a symbolic link to "linux". Perform the following steps:

  cd /usr/src/linux
  make mrproper
  make xconfig (pick the configuration)
  make dep
  make clean
  make bzImage
  make modules
  make modules_install
  cp /usr/src/linux/arch/i386/boot/zImage /boot/vmlinuz-release (2.2.14 for eg)
  ln -s /boot/vmlinuz-release /boot/vmlinuz
  mkinitrd /boot/initrd-release.img release (where release is 2.2.14 for eg)
  cp /usr/src/System.map /boot/System.map-release
  ln -s /boot/System.map-release /boot/System.map
  Edit /etc/lilo.conf to include the new boot image and initrd
  lilo  (makes the new boot image available)
  boot the new image

I used the word "release" above to mean the version number of the kernel. During the "make xconfig" stage you may find it useful to check to see if there is a kernel configuration already made for your release. Simple check ftp://ftp.wss.yale.edu/pub/POWER_TOOLS/KERNEL/. If there is a kernel configuration you may download and load it during the "make xconfig" stage. Make sure you have the proper Network and SCSI cards.


Next Previous Contents