There is a help button for every option. Read the explaination, and suggestion.
For a newbie kernel compilation, I'd recommend these things:
- run menuconfig. use the arrows to navigate, and 'space' (or 'M' for modules) to change the settings.
- enable the kernel module loader + hotplug.. these features are used to detect+load devices at boot time. If you want a fast kernel, you could turn these off. (but you have to load the drivers yourself) hotplugging is also used to load a driver automatically if connect an usb-device.
- compile most the required options build-in the kernel, but compile drivers as module.
- don't enable features your system doesn't have
it will make your kernel big, and the best part of kernel compiling, is making a light fast kernel.
- if you doubt about some driver, just compile it as module (you can load it if you have to)
- compile all usb modules! if you have compiled these and enabled hotplug+kmod, your usb device will work automatically if you plug it in your machine. It's a bit pointless to re-compile your kernel because an USB driver is missing
... but: I don't compile all sound cards, etc..
I just choose the one I have.
- you can create a kernel adjusted to your own system, you motherboard, features, etc.. Only choose what you need, or enable it as module.
- don't forget to choose the right processor type (code will be optimized too), and stuff like the ext2+ext3 file systems
tips:
* create a symlink:
ln -s /usr/src/linux-2.4.22/ /usr/src/linux (most programs expect your kernel sources at /usr/src/linux)
Edit the revision version of /usr/src/linux/Makefile; you can install the new kernel modules without loosing your current modules. (for example, they'll install in /lib/modules/2.4.22-you if your revision is "-you")
then:
make dep
make clean
make bzImage
make modules
make modules_install
cp System.map /boot/System.map-2.4.22-you
ls -fs /boot/System.map-2.4.22-you /boot/System.map (create the new link to system.map)
cp .config /boot/config-2.4.22-you (keep this copy!)
cp arch/i386/boot/bzImage /boot/linux-2.4.22-you (your kernel)
* edit /etc/lilo.conf, and add another section:
Code:
image = /boot/linux-2.4.22-you
label = Linux_22-you
read-only
* run 'lilo', and 'reboot'