Tuesday, December 18, 2007

Ubuntu FF : How to install a linux vanilla kernel

This guide is not a guide. This is just a list of problems that I had to face while installing the kernel and what more could you do with it. The aim was to modify the kernel code to implement changes in the TCP protocol.

First, its best to get a VMware player/server version installed on your machine. That way, you need not reboot you machine everytime. It is freely available on www.vmware.com. Get the keys and you can install it easily. The difference between the server and the player is that you can make your images of an OS with the server.

Once you install VMware, get Ubuntu's VMware image. This is freely available on the internet. Locate the configuration file (.vmx) in the VMware application to load the OS. A point to note here, enable NAT network configuration if the default network setting (Bridged) doesn't work.

To install a vanilla kernel ( a kernel obtained from www.kernel.org and is not modified or distr dependent ), goto http://www.howtoforge.com/kernel_compilation_ubuntu.

its a good and easy guide and should get you through easily.

You installed the kernel, perhaps you want to make some changes to it. Now trying to understand the linux code can be a real pain-in-the-***. In order to understand the flow of execution, the best bet is using kernel debug statements, one of which I know is printk. Use various parameters with printk and keep checking /var/mesgs/kern.log.

A good guide towards printk is :




Will update as and when I remember something.