HOW TO UPGRADE YOUR KERNEL                              By Robert Glover
--------------------------                              (rob@cdrom.com)

So you want to upgrade your kernel?  Great!  Learning how to do this is one
of the most important parts of running a Linux system.  Below are two
versions of the upgrade process:  the short one for those of you that just
want to DO IT and not worry about WHY you're doing stuff, and the detailed
way, for those of you who want to know what you're doing each step of the
way.

It's a relatively painless procedure, so sit back, relax, get a soda and
keep reading.  At this point, I will assume that you've already intalled
Linux and have the 1.1.94 kernel operating.  If you don't do it now, then
come back to this document.

THE SHORT WAY
-------------

Copy the linux-1.2.0.tar.gz from the CDROM to the /usr/src directory on your
hard drive.  The file is in source/kernel-source/v1.2.

cd /usr/src
rm linux
tar -xvzf linux-1.2.0.tar.gz
cd linux
make config

Now follow the prompts and enter Y or N for the items that you need.  
When in doubt, use the defaults.  If you make a mistake, hit CTRL-C and 
type 'make config' to start over.

When you're done, you can do the compile.  Enter:

make dep ; make clean ; make zImage

If you're on a 486DX2/66 machine with plenty of RAM, expect the compile 
to take 30-40 minutes.  My P100 with 32 meg does it in ten minutes.

When it's done, do:

cd arch/i386/boot
mv zImage /
cd /
mv vmlinuz vmlinuz-1.1.94
mv zImage vmlinuz

With that done, you'll need to redo your LILO config (if you use it).  If so:

liloconfig

Then enter 6 to recycle your current settings.  It'll rewrite your LILO 
information to the hard drive.

If you need to make a new boot disk, type 'setup' and enter 'c' for 
configuration.  Choose Yes to configure, Yes to mount root as read only, 
and Yes to make boot disk.  When it finishes writing to your floppy disk, 
remove it and hit CTRL-ALT-DEL to force a system shutdown and reboot.  
You should be all set.

THE DETAILED WAY
----------------

Copy the linux-1.2.0.tar.gz from the CDROM to the /usr/src directory on your
hard drive.  The file is in source/kernel-source/v1.2.

Go into your /usr/src directory (cd /usr/src).  Do an 'ls -l' and you'll 
see a symbolic link called linux, which points to the directory 
linux-1.1.94, which is the source code to the old kernel.

Remove that symbolic link (rm linux).  Now untar the new kernel file with 
'tar -xvzf linux-1.2.0.tar.gz'.  That will create a new directory called 
'linux'.

Go into that new directory (cd linux) and type 'make config'.

Go through the various entries, choosing what you need.  In most cases, you
can choose the defaults.  If you make a mistake, hit CTRL-C and type 'make
config' again to start over.

Once you're done, you're now ready to do the compile.  Enter:

make dep ; make clean ; make zImage

When the compile finishes, go into arch/i386/boot and move the zImage file
out to your root (/) directory, and go out there.  As in:

cd arch/i386/boot
mv zImage /
cd /

Now rename the old kernel to something else, and rename zImage to the new
one:

mv vmlinuz vmlinuz-1.1.94
mv zImage vmlinuz

Next you have to redo your LILO setup, if you're using it.  Type:

liloconfig

And choose option 6 to recycle your old config info.  It'll rewrite the LILO
info to your hard drive and you should be all set.

If you're using a boot floppy (it's always a good idea to have one), the
easiest way to make one is to type 'setup', enter 'c' for configure, and
answer Yes to the next several questions until it creates your boot floppy.

If you don't plan on using the old kernel, once everything works, you can
delete the old kernel (the one we called vmlinuz-1.1.94), and the old
kernel's source code, in the directory linux-1.1.94 in the /usr/src
directory.

That's it!

Rob