According to Charles E. Gelm: While burning my CPU.
> 
> Douglas Ort wrote:
> <snip>
>  I use:
> 
> cd /usr/src/linux
> make mrproper config
> make dep clean zImage modules modules_install
> make zlilo
> 

mrproper is realy only needed once right after installing the source, if
you wish to clean out the complete tree and make it like it was when
firstly installed, use. make distclean

make dep clean zlilo modules modules_install

will save you some time, make zlilo and zImage are realy both the same, its
only that the image is copied to its default resting place which is "/"
unless you define it otherwise in the Makefile in /usr/src/linux

#INSTALL_PATH=/boot
change to
INSTALL_PATH=/boot

and of course lilo is called automaticly to install it, BUT BEWARE, if there
is anything wrong with the image, ie, you forgot some or other "vital" option
which causes a so called "kernel panic" at boottime, your up the creek and
possable then up the creek without a paddel.
You will then need to boot from a (rescue) floppy and then copy the old
image, (hopefully vmlinuz will have been copied to vmlinuz.old) back to
vmlinuz and rerun lilo once again.

So realy i would strongly advise new commers making a kernel not to use zlilo,
but there again you dont have to take my advice.

One thing i do is keep my /usr/src/linux/.config (the file generated by make
config) in a safe place outside of the kernel tree, it contains all the
configuration you choose. You might ask why should you keep it, the answer
is very simple, it saves time,when you want to change from a kernel driver to
a module for example, all you need to do is edit the .config file and change
the option like;

CONFIG_BINFMT_AOUT=y  to
CONFIG_BINFMT_AOUT=m

now copy the file back to the ./linux directory and simply type 'make
oldconfig' no need to answer any questions this time it will do it stuff
automaticly.

Even if you have installed a new higher kernel source tree you can still use
the same .config file, even if there are new options in the new source it
will prompt you with something like the following;

PCI bios support (CONFIG_PCI) [N/y/m/?] [NEW]

Note the [NEW], these are all small short cuts, which i can assure you save
a lot of time, of course some things have to be done by the book.

-- 
Regards Richard.
[EMAIL PROTECTED]

Reply via email to