According to Maurice Hendrix: While burning my CPU.
>
>
>
> > ----------
> > 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...
APM is unfortunatly an exception to the rule, it is NOT available as a
module, i belive the reason why its not included in the kernel either is
because of so many BIOS problem/limitations, however Iomega is included under
/lib/modules/kernel_ver/scsi and PCMCIA under ./pcmcia.
I see that the ppa driver is not included in some distro's, so if you need
ppa for the Iomega then thats another execption to the rule.
Of course if you choose not to install the kernel modules at installation
time then they wont be there, but they will be on the distribution source
and could always be included afterwards.
>
> [...]
>
> > 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'.
How right you are, i mistook make clean for make distclean, i am sorry to
have mislead you.
>
> > 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.
That i did not know, i have only been using 2.2.x kernels now for a short
while and have not even compiled a new kernel, (yet), that is just the
answer for the above problem.
I used to follow kernel-development, however for the last 2 years i have a
job again after 8 years of disablilty after an accident, now i just dont have
the time to do what i used to.
>
> > 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 ;-)
I think we were both very tyred and not thinking clearly when we wrote our
answers.
>
> --
> Maurice Hendrix
>
--
Regards Richard.
[EMAIL PROTECTED]