> ----------
> From:         Richard Adams[SMTP:[EMAIL PROTECTED]]
> Reply To:     [EMAIL PROTECTED]
> Sent:         01 June 1999 01:52
> To:   [EMAIL PROTECTED]
> Cc:   [EMAIL PROTECTED]
> Subject:      Re: Kernel (Compile?) Errors
> 
> 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).
> 
You're right. I forgot, because I always keep a copy of my last .config in
/usr/src which I use when reconfiguring. I never missed it.

> 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
> 
I beg to differ. I may not have as much experience as you do, but I've
needed to build a new kernel several times. Under RH5.2 I needed to build
one because support for APM, my Iomega ZIP100 and PCMCIA were not included
in the kernel by default. Now under SuSE 6.1 again I need to build the
kernel because APM, Iomega ZIP100 and PCMCIA are not included. Okay, the
SuSE distro supplies a choice of kernels but none have this *combination*.
And I haven't even mentioned my soundcard... 

        [...]

> make distclean
> 
Apparently there are many ways to skin a cat. I use 'make mrproper'.

> make config # be it xconfig menuconfig etc.
> make dep
> make zImage
> 
> The second time around things change;
> 
> make config
> make dep
> make clean
> 
Above (top), you mentioned this would throw away the .config. This intriges
me I'll have to look at the Makefile tonight and find out the difference
between 'distclean', 'clean' and 'mrproper'.

> make zImage
> 
        [...]
> 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
> 
I've found that with the 2.2.x kernels you can define the 'EXTRAVERSION' in
the Makefile. This allows you to distiguish between kernel builds. Thus you
can create kernels with version 2.2.9-1 and 2.2.9-2 etc. by setting in the
Makefile (4th or 5th line from the top):

EXTRAVERSION = -1

or

EXTRAVERSION = -2

respectively. With these settings, doing 'make modules_install' would place
the modules in the directory /lib/modules/2.2.9-1 or /lib/modules/2.2.9-2
respectively. 

> 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.
> 
I must have misinterpreted things I think I'd better re-read that too ;-)

--
Maurice Hendrix

Reply via email to