According to Maurice Hendrix: While burning my CPU.
>
> > Well, I decided to recompile my kernel to get rid of some superfluos stuff
> > and to get PPP in. Did everything according to the howto, make config,
> > make
> > dep, make clean, make zImage... I set up lilo, rebooted, and everything
> >
> If this is the order you did it in you are bound to get into trouble.
Not at "all".
Doing it your way will delete /usr/src/linux/.config (if one has compiled
kernels before,) that will not allow you to use your "own" configuration
file made from previous compile(s).
Firstly i have mentioned so many times, "IF" one has installed Linux and
followed the install "advice" then one has "all" that is needed for PPP or
whatever. Presant day distributions have just about everyting included as
modules for the kernel version installed at install time, which realy
excludes the nessasaty to recompile a kernel, the ONLY advantage of
compiling your own kernel is a "smaller" kernel and of course the memory
savings it brings with it.
The guru's amungst us will dispute that its "always" beter to recompile your
own kernel, i do agree to that, because guru's are choosy about what and who
uses thier memory and kernel space, a normal Linux user has no inclination
of how and why or even what i have just said, so that eliminates 90% of
linux-newbie users. So now you know why a distribution kernel has everything
you need in accompanying module form.
Now having gotten that out of the way, The first time one compiles a kernel
after installing the distribution or even a new source tree, one would do;
make distclean
make config # be it xconfig menuconfig etc.
make dep
make zImage
The second time around things change;
make config
make dep
make clean
make zImage
Now that can all be on one line;
make config dep clean zImage
If modules were defined we would need to do;
make modules modules_install as well.
If we are constantly making the same kernel version the "fun starts with
modules". "old modules" should be removed from /lib/modules/2.x.x before
make modules_install is issued, otherwise old modules will be left over
and will cause error messages at bootime, now thats the answer to the
origanal question.
>
> It should be:
> make clean
> make config
> make dep
> make zImage
>
> If you do 'make clean' *after* 'make dep' you might lose the .depend and
> .hdepend files and probably some other important files.
Not at all, if that were the case then the Kernel-HOWTO would have
misinformed millions by now.
> (Not sure because I can't look at the Makefile from here)
>
> Hope this helps.
>
Hope that helps you.
--
Regards Richard.
[EMAIL PROTECTED]