Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10th December 2004, 03:36 PM
sdrinkwater Offline
Registered User
 
Join Date: Dec 2004
Posts: 1
Question Fedora Core 3 Installing Kernel Source from RPM

Hello.
I have a AMD 64 Box running Fedora Core 3. I am trying to unpack the kernel source from RPM. The rpm file I am using is kernel-2.6.9-1.667.src.rpm I have tried the CDROM version and the download file from the main fedora site.
First I will do a rpm -qa | grep kernel and I get

[root@csqrouter sdrinkwater]# rpm -qa | grep kernel
kernel-utils-2.4-13.1.39
kernel-2.6.9-1.667

step 2. Install src rpm
[root@csqrouter sdrinkwater]# rpm -i -h kernel-2.6.9-1.667.src.rpm
########################################### [100%]
[root@csqrouter sdrinkwater]#

step 3. check to see if RPM was installed
[root@csqrouter sdrinkwater]# rpm -qa | grep kernel
kernel-utils-2.4-13.1.39
kernel-2.6.9-1.667

nope no install. Am I doing something wrong??? I checked the /usr/src/redhat
no source...
Any Ideas would be great!!!!
Shane



Reply With Quote
  #2  
Old 10th December 2004, 04:52 PM
cybrjackle's Avatar
cybrjackle Offline
Registered User
 
Join Date: Jan 2004
Posts: 456
Quote:
kernel

*

In the past, the process of updating the kernel did not change the default kernel in the system's boot loader configuration.

Fedora Core 3 changes this behavior to set newly-installed kernels as the default. This behavior applies to all installation methods (including rpm -i).

This behavior is controlled by two lines in the /etc/sysconfig/kernel file:
o

UPGRADEDEFAULT — Controls whether new kernels will be booted by default (default value: yes)
o

DEFAULTKERNEL — kernel RPMs whose names match this value will be booted by default (default value: depends on hardware configuration)
*

In order to eliminate the redundancy inherent in providing a separate package for the kernel source code when that source code already exists in the kernel's .src.rpm file, Fedora Core 3 no longer includes the kernel-source package. Users that require access to the kernel sources can find them in the kernel .src.rpm file. To create an exploded source tree from this file, perform the following steps (note that <version> refers to the version specification for your currently-running kernel):
1.

Obtain the kernel-<version>.src.rpm file from one of the following sources:
o

The SRPMS directory on the appropriate "SRPMS" CD iso image
o

The FTP site where you got the kernel package
o

By running the following command:

up2date --get-source kernel
2.

Install kernel-<version>.src.rpm (given the default RPM configuration, the files this package contains will be written to /usr/src/redhat/)
3.

Change directory to /usr/src/redhat/SPECS/, and issue the following command:

rpmbuild -bp --target=<arch> kernel.spec

(Where <arch> is the desired target architecture.)

On a default RPM configuration, the kernel tree will be located in /usr/src/redhat/BUILD/.
4.

In resulting tree, the configurations for the specific kernels shipped in Fedora Core 3 are in the /configs/ directory. For example, the i686 SMP configuration file is named /configs/kernel-<version>-i686-smp.config. Issue the following command to place the desired configuration file in the proper place for building:

cp <desired-file> ./.config
5.

Issue the following command:

make oldconfig

You can then proceed as usual.
http://fedora.redhat.com/docs/release-notes/fc3/x86_64/

Now to be honest, i"ve never seen up2date --get-source kernel work for the kernel, everything else it works but for some reason none of my box's work doing that, regardless you already have the .src.rpm and you have installed it. You can follow the rest thought.

cd /usr/src/redhat/SPECS
rpmbuild -bp kernel.spec

-bp Executes the "%prep" stage from the spec file. Normally this
involves unpacking the sources and applying any patches.

You can read "man rpmbuild" for more options.

-ba will build the binary and source package, ie. that is what people use after they create a spec file and build all the rpm/srpm(s) that are built in prereq's of the rpm.
__________________
aka "jlc" on irc.

Main Desktop:
Rawhide x86_64
MSI K8N NEO2 Platinum
AMD Athlon 64 3200+ Winchester @ 2350MHz
CORSAIR XMS TWINX1024-3200C2 2GB
BFG Nvidia GeForce 6800GT OC @ 370MHz 256MB GDDR3
2x80GB SATA 150 Segate Raid 0
Reply With Quote
  #3  
Old 10th December 2004, 04:55 PM
cybrjackle's Avatar
cybrjackle Offline
Registered User
 
Join Date: Jan 2004
Posts: 456
FYI....

Oh, another thing they don't tell you is that:

up2date --get-source <package>

Drops the srpm in:

/var/spool/up2date/

from there you will need to do:

rpm -i <package>.src.rpm
__________________
aka "jlc" on irc.

Main Desktop:
Rawhide x86_64
MSI K8N NEO2 Platinum
AMD Athlon 64 3200+ Winchester @ 2350MHz
CORSAIR XMS TWINX1024-3200C2 2GB
BFG Nvidia GeForce 6800GT OC @ 370MHz 256MB GDDR3
2x80GB SATA 150 Segate Raid 0
Reply With Quote
Reply

Tags
core, fedora, installing, kernel, rpm, source

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
fedora core 5 kernel source? machielr Installation and Live Media 2 7th August 2007 02:53 PM
Help to find the kernel-source from Fedora Core 6 ruben.zamora Using Fedora 2 27th April 2007 10:55 PM
Installing: Asterisk Open Source PBX on Fedora Core 6 JoshuaWhite Servers & Networking 1 2nd March 2007 01:09 PM
Fedora Core 5 kernel source? damasco71 Using Fedora 5 24th August 2006 09:49 PM


Current GMT-time: 06:15 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat