2001-02-07 05:04:18

by Jim Roland

[permalink] [raw]
Subject: RedHat kernel RPM 2.2.16

I am trying to get RedHat's Kernel RPM 2.2.16 installed, however, the rpm
program does unpack the files, but does not run any script to install them
into the source tree (kernel-2.2.16-3.i386.src.rpm). Is there a trick to
making it work?




2001-02-07 05:50:28

by Jim Roland

[permalink] [raw]
Subject: Re: RedHat kernel RPM 2.2.16

I appreciate your comments, but the SOURCE is exactly what I am needing in
order to compile in PCTel modem support. FYI, I'm not a newbie, so I do
not uninstall a kernel from a running system (no offense on your
assumption :-P). Besides if I did, I would just simply spend 5 minutes
creating a rescue floppy and away I go. No problem. Anyway, I have
already installed the binary form of the 2.2.16 kernel, I am needing the
sources so I can kludge together a module for the PCTel support.

FWIW, the rpm -i did unpack the kernel to the /usr/src/redhat/SOURCES
directory, however, I had to manually untar the sources to /usr/src to get
my kernel, move over the appropriate .config file, and manually run the
patches to patch the sources. Forcing RPM to be very talkative (via -vv)
gave me a bunch of "action unknown" errors, and the rpm's install scripts
did not execute. This occurs on an RH7 system as well. Seems to be
something wrong with RH's kernel rpm?

JR



On Tue, 6 Feb 2001, J. Dow wrote:

> RTFM - it is writ large on the RedHat site. You have probably rendered your
> machine unbootable at this point if you tried first with the regular kernel
> RPM. Recovery is awkward. You *NEVER* *EVER* -U a kernel RPM. You *ALWAYS* -i
> it instead. Then your old kernel is still present in case the new one shows
> problems, like 2.2.16 will.
>
> Furthermore installing the source RPMs does not install a new kernel. You have
> to proceed from there with building the kernel. That means you have to have
> kgcc installed and all the other proper materials.
>
> I saw your email on the RedHat list but it was at the beginning of 80 some
> messages so I didn't reply figuring someone else would have. I guess nobody
> felt like typing "RTFM". As I say, RedHat has kernel compilation and kernel
> installation information on their website in a fairly easy to find place.
> A little digging would be good for your soul and education. There is other
> stuff there associated with the kernel compile and install instructions
> that can be a great help.
>
> {^_^}
>
> ----- Original Message -----
> From: "Jim Roland" <[email protected]>
> To: <[email protected]>
> Sent: Tuesday, February 06, 2001 21:03
> Subject: RedHat kernel RPM 2.2.16
>
>
> > I am trying to get RedHat's Kernel RPM 2.2.16 installed, however, the rpm
> > program does unpack the files, but does not run any script to install them
> > into the source tree (kernel-2.2.16-3.i386.src.rpm). Is there a trick to
> > making it work?
> >
> >
> >
> > -
> > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> > the body of a message to [email protected]
> > Please read the FAQ at http://www.tux.org/lkml/
> >
>

2001-02-07 08:38:19

by David Woodhouse

[permalink] [raw]
Subject: Re: RedHat kernel RPM 2.2.16


[email protected] said:
> FWIW, the rpm -i did unpack the kernel to the /usr/src/redhat/SOURCES
> directory, however, I had to manually untar the sources to /usr/src to
> get my kernel, move over the appropriate .config file, and manually
> run the patches to patch the sources. Forcing RPM to be very
> talkative (via -vv) gave me a bunch of "action unknown" errors, and
> the rpm's install scripts did not execute. This occurs on an RH7
> system as well. Seems to be something wrong with RH's kernel rpm?

Install the kernel-source binary RPM, which contains the build tree already
extracted and set up as you desire, instead of the master SRPM which
contains build instructions for all the kernel versions.

i.e. kernel-source-2.2.16-3.i386.rpm, not kernel-2.2.16-3.src.rpm

--
dwmw2


2001-02-07 09:39:19

by Alan

[permalink] [raw]
Subject: Re: RedHat kernel RPM 2.2.16

> I appreciate your comments, but the SOURCE is exactly what I am needing in
> order to compile in PCTel modem support. FYI, I'm not a newbie, so I do

You want the kernel-source*rpm package. That provides a copy of the source
tree in the typical Linus format (unpacked in /usr/src/linux)

> did not execute. This occurs on an RH7 system as well. Seems to be
> something wrong with RH's kernel rpm?

Nope. The source rpm is for building kernels in rpm format. It does exactly
that. You could add your patches to the rpm build and build an rpm format
kernel but thats a less trivial exercise and one that is perhaps not so
well understood by most of the folks who can help you

2001-02-08 03:09:52

by Jim Roland

[permalink] [raw]
Subject: Re: RedHat kernel RPM 2.2.16

AH HA! Thanks!


----- Original Message -----
From: "David Woodhouse" <[email protected]>
To: "Jim Roland" <[email protected]>
Cc: "J. Dow" <[email protected]>; <[email protected]>
Sent: Wednesday, February 07, 2001 2:37 AM
Subject: Re: RedHat kernel RPM 2.2.16


>
> [email protected] said:
> > FWIW, the rpm -i did unpack the kernel to the /usr/src/redhat/SOURCES
> > directory, however, I had to manually untar the sources to /usr/src to
> > get my kernel, move over the appropriate .config file, and manually
> > run the patches to patch the sources. Forcing RPM to be very
> > talkative (via -vv) gave me a bunch of "action unknown" errors, and
> > the rpm's install scripts did not execute. This occurs on an RH7
> > system as well. Seems to be something wrong with RH's kernel rpm?
>
> Install the kernel-source binary RPM, which contains the build tree
already
> extracted and set up as you desire, instead of the master SRPM which
> contains build instructions for all the kernel versions.
>
> i.e. kernel-source-2.2.16-3.i386.rpm, not kernel-2.2.16-3.src.rpm
>
> --
> dwmw2
>
>