Title: kernel compiling Subject: more notes on kernel compiling The best explanation of how to make a kernel was from Maximum Linux, sept/oct 2000, pg 41. (www.maximumlinux.com). ------------------------------------------------------------------ download from http://kernel.stuph.org/pub/linux/kernel/ rpm -K --nopgp *rpm <- test the download for corruption. cd /usr/src/linux ######################################################### # Summery: This is better than all the stuff below this # summery section. # 1. type `make menuconfig` # 2. type `make dep bzImage modules modules_install` # 3. type `make kernel && lilo -v -v -v` ######################################################### make oldconfig <- build config like the default. make xconfig <- GUI for setting kernel options. I picked moduels for most stuff. I realy don't understand what most options are here. make dep <- Build dependencies between objects make clean <- Clean out old compiled objects from the old kernel build. make bzImage <- This builds the compressed kernenl image (a boot image) . cd arch/i386/boot mv /boot/vmlinuz /boot/vmlinuz.old <- Save old boot kernel image. cp bzImage /boot/vmlinuz <- install the new boot image. /sbin/lilo <- set boot loader for new image. make modules make install-modules -------------------------------------------------------------------- This is probably the best advice out of the Maximum Linux magazine: Use "make bzdisk" insted of "make bzimage" if you are worreid about correupting your system with the new kernel. -------------------------------------------------------------------- Side note: making a boot disk /sbin/mkbootdisk 2x2.14-5.0 Determin what is installed in your system # rpm -q kernel kernel-headers kernel-ibcs kernel-pcmcia-cs kernel-sourcekernel-2.2.14-5.0 kernel-headers-2.2.14-5.0 kernel-ibcs-2.2.14-5.0 kernel-pcmcia-cs-2.2.14-5.0 kernel-source-2.2.14-5.0 # rpm -q mkinitrd SysVinit initscripts mkinitrd-2.4.1-2 SysVinit-2.78-5 initscripts-5.00-1 Get the updates # ncftp -L updates.redhat.com # cd 6.2 or Updates or whatever they call it. # mget kernel-*rpm (stay connected after the download. From another terminal test to download for corruption. # rpm -K --nopgp *rpm directions on http://www.redhat.com/support/docs/howto/kernel-upgrade/kernel-upgrade.html