LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   Fedora 12 Ndiswrapper installation problem (https://www.linuxquestions.org/questions/linux-wireless-networking-41/fedora-12-ndiswrapper-installation-problem-771953/)

minrich 11-27-2009 06:01 PM

Did you follow (in a file manager) the dreaded link to: /lib/modules/'uname -r'/misc/ is there anything there? N.B. the 'uname -r' is auto-substituting your kernel version.

TheStarLion 11-27-2009 06:01 PM

Yes, that returned (In bright red text):
/lib/modules/2.6.31.5-127.fc12.i686.PAE/build

minrich 11-27-2009 06:13 PM

Your locate listing shows that the ndiswrapper module "ndiswrapper.ko" (.ko equates to kernel object file) is in place in an /extra/ directory rather than my suggested /misc/ directory, in the line:

/lib/modules/2.6.31.5-127.fc12.i686/extra/ndiswrapper/ndiswrapper.ko

That is good!

Now we need to know if you have a /etc/modules file or its equivalent in Fedora12 - unfortunately I haven't run a Fedora distro for some time - either you or I can troll the Fedora forums here and/or elsewhere for where Fedora/Fedora12 places its modules to run at start-up/on boot.

Did you check the contents of /etc/modprobe.d/ndiswrapper ?

TheStarLion 11-27-2009 06:14 PM

Yes. Running ls for that directory returns an empty directory.
I'll do some more in the morning.

minrich 11-27-2009 07:28 PM

Did you see this thread:

http://www.linuxquestions.org/questi...-china-526023/


Maybe you are doomed - first a WPN111 now a WG511v2 - what next?

You may want to read this:

http://verens.com/archives/2005/02/2...pset-in-linux/

TheStarLion 11-28-2009 03:18 AM

I've seen both (Well, I have now, anyway) and I know this is the case, and that there is no native support for the Marvell chipset one, which is unfortunatly the one I have.

The problem still remains though, that I appear to have to compile ndiswrapper myself. I will try this as soon as I can get back to my laptop to try it.

On Monday, I think I'll go looking for other wireless cards that have better native support; better to have one that works natively than one that only works through ndiswrapper, I think.

TheStarLion 11-28-2009 10:46 AM

Alright, I'm trying to compile and install ndiswrapper myself. I've hit a problem before I've even started though.
running 'make' returns an error:
Code:

make -C driver
make[1]: Entering directory `/home/isaac/Downloads/ndiswrapper-1.55/driver'
Makefile:34: *** Cannot find kernel version in /usr/src/kernels/2.6.31.5-127.fc12.i686.PAE, is it configured?.  Stop.
make[1]: Leaving directory `/home/isaac/Downloads/ndiswrapper-1.55/driver'
make: *** [all] Error 2

I think this may have something to do with the link that the INSTALL guide says is needed, right at the start, because I don't think I have that link, and don't know how to set it up.

minrich 11-28-2009 12:14 PM

a) Have you tried the command:

ls /lib/modules/`uname -r`/build

as it says in the INSTALL file this should return, at the very least:

an include directory and a .config file

does it?

b) in a file manager, open /lib/modules/2.6.31.5-127.fc12.i686/ and float your cursor over the build directory it should show a link to /usr/src/linux-headers...blah...blah (where blah...blah is something like 2.6.31.5-127.fc12.i686) If floating cursor doesn't show a link then you will have to right click and choose properties which should show the link.

if you have no joy check that you have linux-headers.... installed - a quick way is to run the locate command followed by linux-headers and then locate the /usr/src/ directory.

c) if you haven't got the linux-headers installed then I suggest you use 'yum', because without it you can never ./configure, make, make install a .tar.gz package. i would note that I also had to install a linux-kbuild and a linux-headers-2.6.31.5 - common and a gcc-4.1 package ( the GNU C compiler )

Hope this helps

TheStarLion 11-28-2009 12:21 PM

A: no, I have neither
B: That link exists
C: A yum search finds no packages named linux-headers or containing that in their name, the same for linux-kbuild, linux-headers-2.6.31.5-common and gcc-4.1

Make still returns the same error.

minrich 11-28-2009 04:50 PM

I found an rpm for fedora12 named kernel-headers, also gcc-4.4.2.7 - I believe that yum should get them for you. Obviously, Fedora uses 'kernel' in lieu of 'linux' in Debian, likewise you use rpm's and I use deb's. I have been searching in vain for fedora forums - I keep coming back to LQ's fedora forum - have you found any yet? And I have been searching in vain for the requirements for fedora 12 needed to make tar.gz source files - it is a challenge especially since I don't have a copy of Fedora running to check these thing out!

minrich 11-28-2009 05:34 PM

Well I did find this: http://forums.fedoraforum.org/showthread.php?t=234231

Not much help - just more frustration

minrich 11-28-2009 06:24 PM

And this:

http://forums.fedoraforum.org/showthread.php?t=232957

and more encouragingly this:

http://forums.fedoraforum.org/showthread.php?t=227285

bedtime now

TheStarLion 11-29-2009 06:20 AM

Sorry, I forgot to post the solution I got from the Fedora IRC channel.
You have to have ndiswrapper, kmod-ndiswrapper AND akmod-ndiswrapper (I only had kmod the first time, and akmod the second), then reboot, and then run modprobe ndiswrapper as root.
Worked for me.

minrich 11-29-2009 04:56 PM

Glad you got it sorted

Larry Webb 11-29-2009 06:09 PM

Quote:

Originally Posted by TheStarLion (Post 3773120)
Sorry, I forgot to post the solution I got from the Fedora IRC channel.

I am glad you came back with the solution, I have been following the thread from the first post. I was not talking nice about you when I saw the 'Solved' marking without the solution being posted. Thank you for posting the solution.


Larry


All times are GMT -5. The time now is 01:13 AM.