On Monday 02 July 2001 09:33 pm, you wrote:
[...]
> > I have a working kernel. It's the plain kernel after the installation
> > process is done.
> > Now I'll have to compile a new kernel, more custimized to the hardware I
> > have. The routine is easy:
> >
> > make mrproper
> > make menuconfig
Try "make xconfig" instead of menuconfig. Menuconfig will work, of course,
but the TK X interface is much nicer to deal with in xconfig. As for the
other question about keeping your old kernel... If you are building a kernel
from source that is the same kernel version as you already have, then do no
do the "make install" step or you will overwrite your prebuilt kernel. If
you are building a new kernel version, then it is not a problem and you can
do the "make install" without problem. You will not lose your old kernel, it
will remain in lilo.conf and remain an option during bootup.
One extra note of caution. On my system, running "make install" will install
the new kernel and create its entry in lilo.conf. The entry, however, is not
correct and I always need to correct it. The problem is the new entry in
lilo.conf will have a line like "root=306" instead of /dev/hda6, which is
what it should be on my system (basically, the root= entry should be the same
as all the other lilo.conf entries). If you do not correct this line, when
you run lilo, it will update the MBR with the new lilo with your new kernel
included but it will not boot the new kernel. Instead, if you select your
new kernel, you will get an error message about not being able to find the
root device (because the default root=306 entry is nonsense). You would
either need to add a boot parameter "root=/dev/<whatever your root is>" or
boot up your old kernel and fix the lilo.conf problem.
If you don't do the "make install" step at the end, then you will simply need
to move the new kernel manually to your /boot directory and name it whatever
you want.
> > make dep
> > make clean
> > make bzImage
> > make modules
> > --- save my existing /lib/modules/2.4.3-20mdk to 2.4.3-20mdk.old
> > make modules_install
> > make install
[...]