LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-21-2005, 03:10 PM   #1
steveman2000
Newbie
 
Registered: Feb 2005
Location: cardiff uk
Distribution: fedora 2
Posts: 15

Rep: Reputation: 0
problem building and installing rpm from ndiswrapper source


hi,

I'm a newbie whos (hopefully) near the end of getting my wireless PCI card supported using ndiswrapper. I so far have got the ndiswrapper saying I have a valid driver and that my card is there.

HOWEVER my next obstacle is that modprobe ndiswrapper fails:

Command failed: /sbin/modprobe ndiswrapper

Output:
FATAL: Module ndiswrapper not found

I'm assuming I need to build and then install an rpm of ndiswrapper to fix it. I've been through the process fo doing this by going to the source (driver) directory typing "make makedist" which works fine and then after switching to admin typing "make" in the source directory. This claims that it cant find the kernel sources and asks to specify the dir of it. This has lost me please help!!!
 
Old 10-21-2005, 04:13 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 683Reputation: 683Reputation: 683Reputation: 683Reputation: 683Reputation: 683
Building a RPM would just make it more convenient to reinstall the same thing in the future. It might have some edits to the spec file if you are starting with a ndiswrapper-<version>.src.rpm file so that the RPM file you end up with works better on your system.

It is more likely that you need to download a newer version of ndiswrapper and build it from source.

Also, there are an ndiswrapper option to modify one of the configuration files that you may need to do. Run "ndiswrapper --help" for that information.

Lastly try running "ldconfig" as root. It is possible that the location of the libraries that ndiswrapper uses are not being searched by the loader. Sometimes an installation will not do this automatically. This is performed periodically by a cron job, but it is worth a try.

Last edited by jschiwal; 10-21-2005 at 04:17 PM.
 
Old 10-21-2005, 04:19 PM   #3
steveman2000
Newbie
 
Registered: Feb 2005
Location: cardiff uk
Distribution: fedora 2
Posts: 15

Original Poster
Rep: Reputation: 0
hi,

The one i downloaded is the latest as far as I know. As you will se in another post it seems that I now have a problem building it as it seems the link for the source of the kernel isn't right (which i think is pretty muhc what u said anyway isn't it?).

cheers for your help btw!
 
Old 10-21-2005, 05:49 PM   #4
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 3,016

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
You probably don't have your kernel source code installed; it's not installed by default. To check, open a console and run:

$ rpm | grep kernel

Post the output here. I believe the package is called kernel-source or kernel-sourcecode or something like that in rh/fedora. You only need the source code if you are compiling a kernel or a kernel module, like ndiswrapper. Since the kernel source can be pretty big(50MB), it is usually not included/installed by default.
Compiling ndiswrapper from source will probably fix your problem. I assume the previous install of ndiwrapper was from an rpm. The rpm probably was compiled on a different kernel than the one you are using; I had the same thing happen to me with identical symptoms. Compiling from source fixed it.
 
Old 10-21-2005, 06:40 PM   #5
steveman2000
Newbie
 
Registered: Feb 2005
Location: cardiff uk
Distribution: fedora 2
Posts: 15

Original Poster
Rep: Reputation: 0
hi,

I have another problem now. After having downloaded teh source from internet and installing it I soon realised that the link between two of the directories didnt fit the right format. So i changed it and then ran the build rpm thing like the ndiswrapper install thing says. The first one i tried seemed to do absolutely nothing. So I tried the rpmbuild one instead and that wrote four rpm files which i installed with no problems. but then when I ran the "modprobe ndiswrapper" it now comes up with an error message (check out the quote below):

What I installed (which was made):
/usr/src/redhat/SRPMS/ndiswrapper-1.4-1.src.rpm
/usr/src/redhat/RPMS/i386/ndiswrapper-1.4-1.i386.rpm
/usr/src/redhat/RPMS/i386/kernel-module-ndiswrapper-2.6.13-1.1526_FC4.stk16smp-1.4-1.i386.rpm
/usr/src/redhat/RPMS/i386/ndiswrapper-debuginfo-1.4-1.i386.rpm

The error when I ran "modprobe ndiswrapper":

FATAL: Error inserting ndiswrapper (/lib/modules/2.6.13-1.1526_FC4.stk16smp/misc/ndiswrapper.ko): Invalid module format


...having just looked it up it seems this is down to kernel/ndiswrapper compilation problems. I downloaded a pre-compiled kernel, installed it. Then went back to the same website and got the source code version, then compiled ndiswrapper with that.

This is where i got the kernel from:
http://www.linuxant.com/driverloader...ernel-i686.php

The one i downloaded and then installed is: 2.6.13-1.1526_FC4smp
and the one i downloaded, installed and before having compiled ndiswrapper was: Development (of the same one).

I think im gonna try downloading and installing 2.6.13-1.1526_FC4 becuase i have no idea what the spm stands for!

btw where is the source located?.... there seem to be two dirs the tutorials are always on about.

cheers again!

Last edited by steveman2000; 10-21-2005 at 07:54 PM.
 
Old 10-23-2005, 07:01 PM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 683Reputation: 683Reputation: 683Reputation: 683Reputation: 683Reputation: 683
SMP is for a computer that has more than one processor chip. The kernel and drivers have to include things like spin-locks, and many operations have to be done "atomically" so that one processor doesn't partially change something that another processor retrieves.

By the source, I meant the source tarball from the sourceforge project site. Although, the RedHat source rpm may be recent enough.

If you ran "rpmbuild -bi", to install from source, on more than one .src.rpm, I'm wondering if that could cause a problem, having multiple ndiswrapper versions existing in the kernel source at the same time.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Building a Source RPM for RH9 stefaandk Red Hat 4 07-22-2005 07:23 AM
Debian: Problem installing 'Source RPM package' driver for winmodem Steerpike_jhb Linux - Newbie 8 03-17-2005 03:33 AM
installing fedora 3 kernel source, for ndiswrapper Jakeao Linux - Laptop and Netbook 5 01-13-2005 05:12 PM
Problem installing Mandrake kernel source rpm Gibson Linux - Newbie 4 07-30-2004 01:42 PM
Building RPM from the source for mrproject Basel Linux - Newbie 0 02-26-2004 01:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:25 AM.

Main Menu
Advertisement
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
Twitter: @linuxquestions
Open Source Consulting | Domain Registration