Results 1 to 8 of 8

Thread: Building drivers with make

Hybrid View

  1. #1
    mariusmeyer NNTP User

    Default Building drivers with make

    Hello all!

    When trying to build serialmonkeys rt61 drivers (I have a card not working with ndiswrapper you see) I get the following error after typing make in a terminal window:
    Code:
    make[1]: Entering directory `/usr/src/linux-2.6.25.5-1.1-obj/i386/default'
    make[1]: *** No rule to make target `modules'.  Stop.
    make[1]: Leaving directory `/usr/src/linux-2.6.25.5-1.1-obj/i386/default'
    rt61.ko failed to build!
    make: *** [module] Error 1
    I have make, gcc and linux-kernel-headers installed. What is going wrong?

    Thanks for all help!

  2. #2
    Join Date
    Jun 2008
    Location
    /dev/belgium
    Posts
    1,946

    Default Re: Building drivers with make

    try this:

    cd /usr/src/linux-2.6.25.5-1.1
    make prepare
    make modules_prepare

  3. #3
    mariusmeyer NNTP User

    Default Re: Building drivers with make

    I would get a similar error:
    Code:
    make: *** No rule to make target `prepare'.  Stop.
    I get the feeling something is off with the config of either make or gcc, but I don't have much experience with these things..
    Thanks for the quick reply!

  4. #4
    Join Date
    Jun 2008
    Location
    /dev/belgium
    Posts
    1,946

    Default Re: Building drivers with make

    try this:

    cd /usr/src/linux
    make oldconfig
    make prepare
    make modules_prepare

    see if that works first, if not, then there's something wrong with your kernel source

  5. #5
    mariusmeyer NNTP User

    Default Re: Building drivers with make

    I should perhaps have already mentioned that I'm doing this in openSUSE 11.0 GM, GNOME edition (not that it should matter much I suppose)

    The only folders in my /usr/src folder are called
    linux-2.6.25.5-1.1-obj and packages, and in the first we have a folder named i386 and a link to another named i586. They both have a folder each named default, and inside of them again are two files: makedumpfile.config and Module.symvers.
    Running "make oldconfig" in any of these folders yield the same result:
    Code:
    make: *** No rule to make target `oldconfig'.  Stop.
    Just made the clean install from an md5-checked ISO today. Weird.

  6. #6
    Join Date
    Jun 2008
    Location
    /dev/belgium
    Posts
    1,946

    Default Re: Building drivers with make

    Quote Originally Posted by mariusmeyer View Post
    I should perhaps have already mentioned that I'm doing this in openSUSE 11.0 GM, GNOME edition (not that it should matter much I suppose)

    The only folders in my /usr/src folder are called
    linux-2.6.25.5-1.1-obj and packages, and in the first we have a folder named i386 and a link to another named i586. They both have a folder each named default, and inside of them again are two files: makedumpfile.config and Module.symvers.
    Running "make oldconfig" in any of these folders yield the same result:
    Code:
    make: *** No rule to make target `oldconfig'.  Stop.
    Just made the clean install from an md5-checked ISO today. Weird.
    sounds like you haven't installed the kernel source package. Look in Yast for it

  7. #7
    Join Date
    Jan 2008
    Location
    Milwaukee, WI
    Posts
    197

    Default Re: Building drivers with make

    Make sure your kernel-source package exactly matches the version of your kernel-default package.
    I will not fear. Fear is the mind-killer. Fear is the little-death that brings total obliteration. I will face my fear. I will permit it to pass over me and through me. ... Where the fear has gone there will be nothing. Only I will remain.

  8. #8
    mariusmeyer NNTP User

    Default Re: Building drivers with make

    Oh man.... Saw just now that I had the header files but not the kernel sources installed. Thanks for pointing that out!

    UPDATE:
    Now everything worked straight away thank you guys!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •