Not sure about your distro but if it is not Debian, it is always a good
idea  to download the kernel source from www.kernel.org

The latest stable version is 2.6.8.1 but it has issues with CD Writer, so
I use Linux-2.6.7
http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.7.tar.bz2 (33MB)
May take lifetime on dial up.

Once downloaded

$ su -
Password:

# cp linux-2.6.7.tar.bz2 /usr/src
You can build it in any directory but /usr/src is always there for source
codes

# cd /usr/src

# tar xvfj linux-2.6.7.tar.bz2
bunzip the bzipped archive

# cd linux-2.6.7

# make menuconfig
will fire ncurses based GUI to make changes in the default kernel that
matches your needs and hardware configuration. Do read the corresponding
help files for the options cofusing you. Yes, it's a tedious work as there
are plenty so it might take lifetime to select and unselect the options
but don't forget the help files.
Once done, select exit, it will ask you whether or not you want to save
the configuration, say Yes.

# make
Now it will take time, 15-20 minutes on my P3, 1.1GHz, Slackware 10.

# make modules_install
5-10 seconds

Kernel compilation is done, congrats :)
Now installation

# cp arch/i386/boot/bzImage /boot/bzImage-2.6.7
You may or may not want to change the name of bzImage, but it's good if
you change the version of the kernel you have compiled, hence
bzImage-2.6.7

Now open /etc/lilo.conf for editing and append it with following lines

image = /boot/bzImage-2.6.7
  root=/dev/hdaX
  label = Linux-2.6.7
  read-only

Don't comment or delete the previous kernel enteries.
root = /dev/hdaX is the partition where your / (root) resides
if unsure

$ df -h
It will list all currently mounted partitions, now replace /dev/hdaX with
the partition where your / is mounted

Save and exit lilo.conf

# lilo
If you see the following
Added x.x.x*
Added 2.6.7
instead of any error messages, it's done :)

Reboot and at startup select Linux-2.6.7 where it asks which image to
boot. If everything works fine, save your /usr/src/linux-2.6.7/.config
file for future kernel compilations. Even if you want to compile 2.6.8.1
later, all you have to do is to just copy this .config file in your
/usr/src/linux-2.6.8.1/ directory, select and unselect new features
offered by new kernel and *BOOM*, all done.

I hope you will get it running, if not find me at irc.freenode.net in
#slackman, sometimes in #linux-india under the nick India. Best of luck :)



_______________________________________________
ilugd mailinglist -- [EMAIL PROTECTED]
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/[EMAIL PROTECTED]/

Reply via email to