Kernel Compiling

Quick Start


The Simple Steps

These steps assume that lilo is your boot manager. If you are using a boot manager other than lilo alter steps 14 and 15 appropriately.

  1. Change directories to your new kernel sources: cd /usr/src/linux
  2. Run your desired config: make xconfig, make menuconfig, make config, make oldconfig
  3. make clean
  4. make dep
  5. make bzImage or make zImage
  6. make modules
  7. make modules_install
  8. cp arch/i386/boot/bzImage /boot (NOTE: i386 presupposes this is your architecture)
  9. cp /boot/System.map /boot/System.map.old
  10. cp arch/i386/boot/System.map /boot (NOTE: i386 presupposes this is your architecture)
  11. cp .config /boot/config
  12. cd /lib/modules/newmodulesdir The modules directory will be named after your kernel version
  13. depmod -a
  14. Edit /etc/lilo.conf and ADD your new kernel to the images section, do not replace your old, working image
  15. run /sbin/lilo
  16. reboot




<-Back (Warning)   TOC    (Why) Next->