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.
- If you have downloaded the sources from www.kernel.org, decompress the file in /usr/src. This will create a new
directory called linux.
- If you have downloaded the kernel source as an rpm from your distro, install the rpm as directed.
- Change directories to your new kernel sources: cd /usr/src/linux
- Run your desired config: make xconfig, make menuconfig, make config, make oldconfig
- make clean
- make dep
- make bzImage or make zImage
- make modules
- make modules_install
- cp arch/i386/boot/bzImage /boot (NOTE: i386 presupposes this is your architecture)
- cp /boot/System.map /boot/System.map.old
- cp arch/i386/boot/System.map /boot (NOTE: i386 presupposes this is your architecture)
- cp .config /boot/config
- cd /lib/modules/newmodulesdir The modules directory will be named after your kernel version
- depmod -a
- Edit /etc/lilo.conf and ADD your new kernel to the images section, do not replace your old, working image
- run /sbin/lilo
- reboot
<-Back (Warning)   TOC   
(Why) Next->