- Before you do any kind of such work, have a backup of everything.
- Obtain the kernel you wish to compile: ftp://ftp.kernel.org/pub/linux/kernel/ for me this was 220.127.116.11 this was key for getting my 965GM video card working correctly.
- Edit your lilo.conf config, make the following changes:
- Next open up
- Then cd back to where you downloaded the new kernel too and
- Next we create a symlink to linux from the new kernel:
- It’s a good idea to use the configuration of your current working kernel as a basis for your new kernel. You will be editing it in a second if you nee to change anything before the install, do it then. So we copy the existing configuration to /usr/src/linux:
- Now we run:
- The kernel configuration menu will pop up, proceed to the bottom where it says:
- If you happen to have the same chipset I do, this next step is imperative. Navigate to:
- Exit out of everything when you’re done and it will ask if you’d like to save your changes, select Yes.
- Now that we have everything configured let’s go ahead and start to build the kernel:
- When all is said and done check to make sure it installed the bzImage to you /boot directory and that lilo.conf was altered to reflect the new kernel compilation.
- Reboot and enjoy your new kernel. If something goes wrong, you can always boot back to you’re old kernel and see what happened.
# cd to /usr/src # wget ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.XX.XX.tar.gz
image = /boot/vmlinuz.old label = OldKernel
/usr/src/linux/Makefile Uncomment the line... #export INSTALL_PATH=/boot
# tar zxf linux-2.6.XX.XX.tar.gz
# ln -s linux-18.104.22.168 linux # cd /usr/src/linux
# make clean && make mrproper # cp /boot/config-`uname -r` ./.config
# make menuconfig
Load an Alternate Configuration File Type:
Device Driver -> Character Devices -> Scroll down to /dev/agpgart Press space to build this module into the kernel. It should show up as a (*) to the left of it.
# make bzImage # make # make install # make modules # make modules_install
This could take a while if you have a slow computer.