Compiling a kernel


     cd /usr/src
     rm linux
     ln -s linux-2.2.7 linux                (change to match kernel version)
     cd linux
     cp /boot/bzImage /boot/bzImage.bak     (if present)
     
     make config                            (or make xconfig)
     make dep; make clean
     make
     make bzImage
     cp /usr/src/linux/arch/i386/boot/bzImage /boot
     /sbin/lilo          (It should say:  added linux *
                                          added linux-old )
                         (edit /etc/lilo.conf to include old kernel in case
                          of a problem, see below. No need to use rdev
                          if you run lilo.)        
New /etc/lilo.conf
     # LILO Konfigurations-Datei
     # Start LILO global Section
     append="sbpcd=0x250,SoundBlaster"
     boot=/dev/hda
     #compact       # faster, but won't work on all systems.
     read-only
     prompt
     timeout=200
     vga = 6    # force sane state
     # End LILO global section
     # Linux bootable partition config begins
     root = /dev/hda1
     image = /boot/bzImage
             label = linux        # This line starts with tab 
     image = /boot/vmlinuz        # Or /boot/bzImage.bak
             label = linux-old    # This line starts with tab 
     # Linux bootable partition config ends
     # 

Back