I think what you are asking is how to upgrade the kernel AND the kernel 
sources. You need to rebuild the new kernel .src.rpm. If you have a 
self-created building tree set up in /home/user, you can build as user. If 
not, doing it as root is OK- just cd to where the kernel srpm is, and su to 
root.

When you rebuild, you can also specify your cpu with something like:

rpm --rebuild --target athlon kernelwhatever.src.rpm


This will take up to 3 hours to buid all versions of the kernel (the default 
action)- some people do a procedure to edit the srpm makefile to only build 
the type kernel they need, but it's more complicated. The above command 
builds them all, but is easy. Then install BOTH the resulting "kernel you 
need" and kernel sources rpms the usual way. Move them both to their own 
directory, and then as root issue:

rpm -ivh *.rpm

In Mandrake, this will install the new kernel image, the initrd, and the 
System.map file to /boot, the new modules into a new directory in 
/lib/modules, and the new sources into /usr/src. It will also edit lilo for 
you, but check anyway to be sure all is correct before re-booting.

Post back if you still have questions.

BTW, the reason you got:

> > linux.2.4.20.tar.bz2
> > linux.2.4.21-pre4q18.tar.bz2
> > linux-mdkconfig.h
> > linux-merge-config.awk
> > linux-merge-modules.awk
> > patch-2.4.21-pre4.bz2
> > README.kernel-sources
> > README.Mandrake

is because this srpm was made before 2.4.21 final was released, and they are 
patching the 2.4.20 version with various patches to bring it up to pre4 
version. You might like to try using a regular newer 2.4.21 with the Con 
Kolivas patches (see my post on this in this list about multimedia kernel.)

Robert Crawford


On Thursday 26 June 2003 13:07, Adrian Golumbovici wrote:
> Ack... That is not the way to do it. A "src" kernel is something used to
> compile the kernel on your machine:
>
> rpm --rebuild blablabla.src.rpm
>
> To install the sources you need the kernel-source-xxxxx.rpm
>
> This second one is the one you install with:
>
> rpm -ivh kernel-source-xxxxx.rpm
>
> Best regards,
> Adrian
> ----- Original Message -----
> From: "Jan Wilson" <[EMAIL PROTECTED]>
> To: "Mandrake Expert List" <[EMAIL PROTECTED]>
> Sent: Thursday, June 26, 2003 6:32 PM
> Subject: [expert] Compiling kernel from .src.rpm
>
> > OK, I've struggled with this for a couple of hours while trying to
> > coordinate the Linux Kernel howto, several READMEs, etc.  I have
> > previously compiled kernels from the .src.rpm, and I remember it being
> > surprisingly easy, if you just want to compile all 5 or so sets of
> > kernel binaries.
> >
> > I downloaded kernel-2.4.21.0.18mdk-1-1mdk.src.rpm from sec.sup.org and
> > tried to install the source with rpm -ivh.  It seems to dump several
> > files into /usr/src/RPMS/SOURCES:
> >

> >
> > None of this matches any of the howtos I have seen.  Any suggestions?
> > Oh, I avoid urpmi like the plague ... it really is NOT good for an
> > expensive dial-up connection, which is why I wanted to download the
> > source RPM and build the various kernels.
> >
> > Thanks.
> >
> > --
> > Jan Wilson, SysAdmin     _/*];          [EMAIL PROTECTED]
> > Corozal Junior College   |  |:'  corozal.com corozal.bz
> > Corozal Town, Belize     |  /'  chetumal.com & linux.bz
> > Reg. Linux user #151611  |_/   Network, PHP, Perl, HTML
>
> ---------------------------------------------------------------------------
>- ----
>
> > Want to buy your Pack or Services from MandrakeSoft?
> > Go to http://www.mandrakestore.com


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to