Fedora Linux Support Community & Resources Center
  #1  
Old 20th December 2010, 08:54 PM
astroccd Offline
Registered User
 
Join Date: Dec 2010
Posts: 7
linuxchrome
How to get Kernel Source for Fedora 14

Hello

I have done a new install of Fedora 14 but the RTL8191 wirless card is not being recognised. Realtek have provided the driver source but the make operation is failing because (I think) Fedora 14 isn't provided with the kernel source to enable it to complete successfully.

Basically (in easy to understand steps): how do I download correctly the Kernel source to enable the driver make operation to proceed?

Many thanks

Pete
Reply With Quote
  #2  
Old 20th December 2010, 09:26 PM
CronoCloud Offline
Registered User
 
Join Date: May 2010
Location: Midwest USA
Posts: 452
linuxfedorafirefox
Re: How to get Kernel Source for Fedora 14

Code:
yum install yum-utils
yumdownloader --source kernel
yum --nogpgcheck localinstall [kernel you downloaded]
Ron Rogers Jr. (CronoCloud)
Reply With Quote
  #3  
Old 20th December 2010, 10:31 PM
astroccd Offline
Registered User
 
Join Date: Dec 2010
Posts: 7
linuxchrome
Re: How to get Kernel Source for Fedora 14

Hi Roin

It is the 2nd step that causes me a problem: exactly what parameter is required for "source_kernel"?? uname gives me 2.6.35.6-45.fc14.x86_64 but that is not an acceptable value.

Did I say that I was new to Fedora and it had to be basic? ;-)

Many thanks

Pete

---------- Post added at 10:15 PM ---------- Previous post was at 10:13 PM ----------

OK - me being very thick this evening. If I had taken your response literally it may have worked ... and now is doing something.

I will report back later.

Many thanks

---------- Post added at 10:31 PM ---------- Previous post was at 10:15 PM ----------

OK - sorry about this. the 3rd step has got me now

[root@voyager ~]# yum --nogpgcheck localinstall kernel-2.6.35.9-64.fc14.src.rpm
Loaded plugins: langpacks, presto, refresh-packagekit
Adding en_US to language list
Setting up Local Package Process
Examining kernel-2.6.35.9-64.fc14.src.rpm: kernel-2.6.35.9-64.fc14.src
Cannot add package kernel-2.6.35.9-64.fc14.src.rpm to transaction. Not a compatible architecture: src
Nothing to do

Any ideas

Many thanks

Pete
Reply With Quote
  #4  
Old 20th December 2010, 10:44 PM
CronoCloud Offline
Registered User
 
Join Date: May 2010
Location: Midwest USA
Posts: 452
linuxfedorafirefox
Re: How to get Kernel Source for Fedora 14

Quote:
Originally Posted by astroccd View Post

OK - sorry about this. the 3rd step has got me now

[root@voyager ~]#
Cannot add package kernel-2.6.35.9-64.fc14.src.rpm to transaction. Not a compatible architecture: src
Nothing to do

Any ideas

Many thanks

Pete
Sorry, my fault for not double checking....you have to use "rpm -ivh" to install it, not yum with the localinstall option. My apologies

Ron Rogers Jr. (CronoCloud)
Reply With Quote
  #5  
Old 20th December 2010, 10:58 PM
jkerr82508 Offline
Registered User
 
Join Date: Sep 2005
Location: Fife, Scotland
Posts: 44
linuxfedorafirefox
Re: How to get Kernel Source for Fedora 14

Usually, to build third-party drivers you would use the kernel-devel package (matching your running kernel) and not the full kernel source.
Code:
yum install kernel-devel
Jim
Reply With Quote
  #6  
Old 20th December 2010, 11:06 PM
astroccd Offline
Registered User
 
Join Date: Dec 2010
Posts: 7
linuxchrome
Re: How to get Kernel Source for Fedora 14

Jim: I did that step earlier this evening with little success. Realtek provided a whole sub-directory and make file referencing a /lib/modules/build subdirectory which is just a symbolic link and not the real directory which is causing the make to fail. Some googling around indicated that I need to download the kernel source (as well as a few other things such as gcc, etc.)

Ron: I tried the "rpm -ivh" which resulted in pages of errors.

I am probably using rpm incorrectly but a quick google doesn't show me where I am going wrong.

Cheers

Pete


[root@voyager ~]# rpm -ivh kernel-2.6.35.9-64.fc14.src.rpm
1:kernel warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
Reply With Quote
  #7  
Old 20th December 2010, 11:25 PM
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Age: 57
Posts: 14,763
linuxchrome
Re: How to get Kernel Source for Fedora 14

if you're trying to compile something then first try the following (one of them already mentioned by jkerr82508). The command requires root password.
Code:
su -c 'yum install kernel-devel kernel-headers gcc-c++'
Then try your ./configue and make.
__________________
Glenn
The Bassinator © ®

[SIGPIC][/SIGPIC]
Laptop: Just a couple of old single core units
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / Kingston HyperX 3K SSD 240GB SATA 3.0 / 1TB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #8  
Old 20th December 2010, 11:39 PM
astroccd Offline
Registered User
 
Join Date: Dec 2010
Posts: 7
linuxchrome
Re: How to get Kernel Source for Fedora 14

Good point. I've just run this command and another two packages were installed but the "rpm -ivh" still results in the same errors.
Reply With Quote
  #9  
Old 20th December 2010, 11:47 PM
JamesNZ Offline
Registered User
 
Join Date: Aug 2010
Location: Wellington, New Zealand
Posts: 915
windows_7chrome
Re: How to get Kernel Source for Fedora 14

I thought that command was
Code:
rpm -Ivh
note that's with a capital "I".
__________________
"For what is a man profited if he gains the whole world, but loses his own soul?"

- Jesus
Reply With Quote
  #10  
Old 20th December 2010, 11:49 PM
astroccd Offline
Registered User
 
Join Date: Dec 2010
Posts: 7
linuxchrome
Re: How to get Kernel Source for Fedora 14

One cut and paste later ...

root@voyager ~]# rpm -Ivh kernel-2.6.35.9-64.fc14.src.rpm
-Ivh: unknown option
Reply With Quote
  #11  
Old 20th December 2010, 11:51 PM
JamesNZ Offline
Registered User
 
Join Date: Aug 2010
Location: Wellington, New Zealand
Posts: 915
windows_7chrome
Re: How to get Kernel Source for Fedora 14

Oh, sorry. Maybe I was thinking of
Code:
rpm -Uvh
__________________
"For what is a man profited if he gains the whole world, but loses his own soul?"

- Jesus
Reply With Quote
  #12  
Old 21st December 2010, 12:16 AM
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Age: 57
Posts: 14,763
linuxchrome
Re: How to get Kernel Source for Fedora 14

Uvh is upgrade. man rpm would be helpful here. i (lower case eye) is for install.
__________________
Glenn
The Bassinator © ®

[SIGPIC][/SIGPIC]
Laptop: Just a couple of old single core units
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / Kingston HyperX 3K SSD 240GB SATA 3.0 / 1TB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #13  
Old 21st December 2010, 12:30 AM
astroccd Offline
Registered User
 
Join Date: Dec 2010
Posts: 7
linuxchrome
Re: How to get Kernel Source for Fedora 14

Thanks. I did try that with the same result. I did see a reference to this saying that these are just warnings and could be ignored ... but would appreciate a little more information first. I have also tried a "yum install mock" as well.

Unfortunately, the original driver make command still fails with the same error so warnings or not, something is still not right and has not installed the files into the /lib/modules/[kernel]/build directory.
Reply With Quote
  #14  
Old 21st December 2010, 12:43 AM
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Age: 57
Posts: 14,763
linuxchrome
Re: How to get Kernel Source for Fedora 14

Astroccd. Can you provide a link directly to the driver you've downloaded? The exact file please?
__________________
Glenn
The Bassinator © ®

[SIGPIC][/SIGPIC]
Laptop: Just a couple of old single core units
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / Kingston HyperX 3K SSD 240GB SATA 3.0 / 1TB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #15  
Old 21st December 2010, 02:11 AM
stevea Online
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,907
linuxfedorafirefox
Re: How to get Kernel Source for Fedora 14

All the posts above except 1,5,7,14 are off topic or irrelevant.

You do not need to install full kernel sources to build a driver - and it's a bad idea.


Try:

A/ Boot the kernel you want to work with
B/ Install development tools and kernel headers
su -
<passwd>
yum -y groupinstall "Development Tools"
yum -y install kernel-devel kernel-headers # as in post7


C/ cd to the drive source directory and type "make" (as root).

Also see Glen in post #14. Where's the source ?
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
Reply

Tags
fedora, kernel, 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
HI, Where can I get fedora 8 kernel source code netphilic Programming & Packaging 9 4th May 2008 09:22 AM
how to load USB device drivers into kernel source & source tree? im2saxy Installation, Upgrades and Live Media 2 6th May 2007 11:35 AM
Fedora Core 5 kernel source? damasco71 Using Fedora 5 24th August 2006 09:49 PM
Kernel source on fedora 3 baked Using Fedora 2 14th June 2005 10:56 PM


Current GMT-time: 18:20 (Tuesday, 21-10-2014)

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
Mugumu - Turrialba - Ciudad Guayana Photos