LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Thread Tools
Old 11-02-2009, 03:58 PM   #1
jff24grd
LQ Newbie
 
Registered: Nov 2009
Posts: 8
Thanked: 0
How to get the source rpms


[Log in to get rid of this advertisement]
Hi,

I'm trying to get the full source of 2.6.30.9-90.fc11.i586 plus all of the modules that go with it. If you could point me in the right direction that would be great.

Thanks
windows_xp_2003 jff24grd is offline     Reply With Quote
Old 11-02-2009, 04:00 PM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 3,920
Thanked: 109
The easiest way is to just look the your repo address. Most RH based distros put the source rpm directory on the same level as i386 and 64bit:


and for updates:


Last edited by lazlow; 11-02-2009 at 04:02 PM..
linuxcentos lazlow is offline     Reply With Quote
Old 11-02-2009, 04:08 PM   #3
jff24grd
LQ Newbie
 
Registered: Nov 2009
Posts: 8
Thanked: 0

Original Poster
Thanks for the quick reply, but using a source rpm for a module it only installs the .ko file. How do I get at the makefile and the *.c and *.h files?
windows_xp_2003 jff24grd is offline     Reply With Quote
Old 11-02-2009, 04:19 PM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 3,920
Thanked: 109
On RH systems if you are compiling against any package you need the -devel of that package, which is in the standard repo. Keep in mind that you need to exactly match -devel to the kernel you are using (each kernel has a matching kernel-devel package).
linuxcentos lazlow is offline     Reply With Quote
Old 11-02-2009, 04:27 PM   #5
jff24grd
LQ Newbie
 
Registered: Nov 2009
Posts: 8
Thanked: 0

Original Poster
I did yum install kernel-devel-$(uname -r) and it says that its already installed. All that I have in my module is a kconfig and a makefile. I don't have the source. Any thoughts on how I actually get the source?

thanks
windows_xp_2003 jff24grd is offline     Reply With Quote
Old 11-02-2009, 04:36 PM   #6
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 3,920
Thanked: 109
Well the source rpm actually does have all the source code in it. It is more likely that your module is not looking for it in the correct place. The other quick thing you can try is installing kernel-headers, some makefiles get along better with those. Remember that your search database does not get updated until you run an updatedb(not a typo).
linuxcentos lazlow is offline     Reply With Quote
Old 11-02-2009, 07:08 PM   #7
jff24grd
LQ Newbie
 
Registered: Nov 2009
Posts: 8
Thanked: 0

Original Poster
I'm runnning fedora 11, and I can't get updateb to run under yum. Also I have the headers installed and the .c or .h files are not anywhere since I did a find on the root fs.
linuxfedora jff24grd is offline     Reply With Quote
Old 11-02-2009, 07:18 PM   #8
knudfl
Senior Member
 
Registered: Jan 2008
Location: Copenhagen, Denmark
Distribution: pclos2009.2, slack13, Debian Lenny (+30 others, for test only)
Posts: 2,906
Thanked: 267
The source = kernel-2.6.30.9-90.fc11.src.rpm ... is in updates :

http://download.fedora.redhat.com/pu...0.fc11.src.rpm
.. or you can get it with # yum , if the 'fedora-updates.repo',
[updates-source] is enabled : enabled=1

1) kernel-devel : Almost no code, only makefiles.

2) By install, the source src.rpm is unpacked to
/usr/src/redhat/SOURCES , and can either be rebuild to packages
with # rpmbuild , ( which makes a usable patched folder in
/usr/src/redhat/BUILD ) or you can unpack the included 'tar.bz2'
and patch it yourself. ( There are 50 patches ? ).
.....

Last edited by knudfl; 11-02-2009 at 07:20 PM..
linuxpclinuxos knudfl is offline     Reply With Quote
Old 11-02-2009, 07:53 PM   #9
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 3,920
Thanked: 109
It is updatedb not updateb(what you posted). updatedb has nothing to do with yum, it updates the database that locate (and I think find) uses to find stuff. If you add a file to your system it will not be found by locate (and find?) until you do a updatedb.
linuxcentos lazlow is offline     Reply With Quote
Old 11-03-2009, 09:45 AM   #10
jff24grd
LQ Newbie
 
Registered: Nov 2009
Posts: 8
Thanked: 0

Original Poster
I still can't get any of my module files.

I downloaded the rpm above an right now I'm patching it since if I build it now the module won't load since the versions are different. There has to be an easier way to actually get the actual source in /usr/src/kernels/2.6.30.9-9* right???
windows_xp_2003 jff24grd is offline     Reply With Quote
Old 11-06-2009, 11:11 AM   #11
jff24grd
LQ Newbie
 
Registered: Nov 2009
Posts: 8
Thanked: 0

Original Poster
I figured it out.

1. Download my module source
2. Point the makefile to the kernel headers. That was the thing I was missing. make –C /usr/src/kernels/2.6.x.x.x M=`pwd` modules
windows_xp_2003 jff24grd is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Source RPMS origins? keysorsoze Red Hat 5 12-04-2007 05:11 AM
where do source rpms go? sum1else Fedora 8 09-25-2005 02:01 PM
installing source rpms? minm Linux - Newbie 1 09-29-2004 06:18 PM
Using Source RPMs Ross Clement Red Hat 3 11-23-2003 03:44 PM
source rpms Daveb3 Linux - Newbie 9 04-05-2003 02:26 PM


All times are GMT -5. The time now is 09:00 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration