Well to compile a kernel is fairly easy but tricky since you need to know what you need.
But let's see.
For the kernel 2.6.x try this:
Before anything else and with your current kenrel write down the devices listed on the screen when you type lspci and lsmod (this are the ones you will need.)
Find out what video card you have.
Download the sources of the 2.6.x kernel
Decomress it (do it inisde /usr/src/) and go inside the folder
will give you a clean config file, is actually easier to start from scratch (at least is my opinion).
this will bring the menu so you can select what you need, be pacient (remember to look again to the output of lspci and lsmod), remember also to set the processor type of your machine.
The "M" stands for module, this means that the driver will be loaded by request and won't be integral part of the kernel itself, the "*" make the driver part of the kernel core. ---tip----- add as module all the NICs available so you can add any other NIC if needed ----tip----.
When you are sure that you have all what you need exit from the menu and save the configuration file.
Code:
make modules_install
After this add a tag on the lilo.conf, somthing like this
Code:
image =/boot/vmlinuz-2.6.x
root=/dev/hdx
label=Linux-2.6.x
read-only
After that run the lilo command and cross your fingers