<---- template headericclude ----->
How to get Kernel Source for Fedora 14
FedoraForum.org - Fedora Support Forums and Community
Page 1 of 2 12 LastLast
Results 1 to 15 of 21
  1. #1
    Join Date
    Dec 2010
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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

  2. #2
    Join Date
    May 2010
    Location
    Midwest USA
    Age
    56
    Posts
    534
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    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)

  3. #3
    Join Date
    Dec 2010
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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

  4. #4
    Join Date
    May 2010
    Location
    Midwest USA
    Age
    56
    Posts
    534
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: How to get Kernel Source for Fedora 14

    Quote Originally Posted by astroccd

    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)

  5. #5
    Join Date
    Sep 2005
    Location
    Fife, Scotland
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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

  6. #6
    Join Date
    Dec 2010
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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

  7. #7
    Join Date
    Mar 2004
    Location
    In your closet
    Posts
    16,269
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)

    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.

  8. #8
    Join Date
    Dec 2010
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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.

  9. #9
    Join Date
    Aug 2010
    Location
    Wellington, New Zealand
    Posts
    921
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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

  10. #10
    Join Date
    Dec 2010
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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

  11. #11
    Join Date
    Aug 2010
    Location
    Wellington, New Zealand
    Posts
    921
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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

  12. #12
    Join Date
    Mar 2004
    Location
    In your closet
    Posts
    16,269
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)

    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.

  13. #13
    Join Date
    Dec 2010
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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.

  14. #14
    Join Date
    Mar 2004
    Location
    In your closet
    Posts
    16,269
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)

    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?

  15. #15
    stevea Guest

    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 ?

Page 1 of 2 12 LastLast

Similar Threads

  1. HI, Where can I get fedora 8 kernel source code
    By netphilic in forum Programming & Packaging
    Replies: 9
    Last Post: 4th May 2008, 09:22 AM
  2. how to load USB device drivers into kernel source & source tree?
    By im2saxy in forum Installation, Upgrades and Live Media
    Replies: 2
    Last Post: 6th May 2007, 11:35 AM
  3. Fedora Core 5 kernel source?
    By damasco71 in forum Using Fedora
    Replies: 5
    Last Post: 24th August 2006, 09:49 PM
  4. Kernel source on fedora 3
    By baked in forum Using Fedora
    Replies: 2
    Last Post: 14th June 2005, 10:56 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
[[template footer(Guest)]]