On Mon, 17 Aug 1998, Rupesh Nadar wrote:

> Hi,
> 
> I want to know the steps/procedure to basically compile/update my existing kernel on 
>my Machine. Currently i am running on RedHat 2.0.34 version.
> 
> Thanks in anticipation.
> 
> -Rupesh
> 
Basically the steps are : installing kernel source, configuring, building
and installing.

-Installing the source : you have the choice between Red Hat rpms and the
original .tar.gz or .tar.bz2 archives. I don't know about rpms, but I can
explain how to unpack the .tar.gz files
                cd /usr/src
        look if there is a directory called linux
        if it exists, and it is not a symlink : 
                mv linux linux-old
        if it is a symlink : 
                rm linux
        unpack the kernel : 
                tar zxvf linux-2.0.x.tar.gz
        This should make a directory "linux"
        What I do then is : 
                mv linux linux-2.0.x ; ln -s linux-2.0.x linux. 
           This step is not necessary.
        
Configuring the kernel :
        cd /usr/src/linux
        make menuconfig (or xconfig if you run X)
        Enable all options you think you will need, or choose to build
them as modules.
        If all is configured, choose exit and save your config.

Building the kernel:
        make dep;make clean;make zImage
        cp /usr/src/linux/arch/i386/boot/zImage /vmlinuz 
        lilo    (to update lilo) 

        or :

        make dep; make clean ; make zlilo
          this takes care of all the steps.

        If the building process complains about a kernel image that is to
large, use make bzImage or bzlilo instead.

If you follow these steps your new kernel should boot. Always make sure
you have a working bootdisk before you reboot.

Frank

Reply via email to