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/)

TheStarLion 11-27-2009 11:53 AM

Fedora 12 Ndiswrapper installation problem
 
I've installed the ndiswrapper packages from the repositories used in this guide in order to make ndiswrapper work on my laptop, but following the instructions also in that guide, changed only for my own wireless card's driver instead, at the point it says to run:
Code:

modprobe ndiswrapper
It returns:
Code:

FATAL: Module ndiswrapper not found.
And I cannot continue.
I've done nothing different to the guide, except, as said, to change the drivers to the one I have to use for my card.

I don't understand why it's doing this. The card in question, if it matters, is a Netgear WG511v2 (Marvell Techologies chipset, so no native driver).

Thanks in advance.

nimnull22 11-27-2009 04:31 PM

Can you post previous command's outputs, please.

Because we need to understand what was before "modprobe ndiswrapper"

TheStarLion 11-27-2009 04:34 PM

They're listed in the linked to Fedora guide in the first post.

nimnull22 11-27-2009 04:47 PM

Google: "Fedora 12 Module ndiswrapper not found"

TheStarLion 11-27-2009 04:52 PM

Contrary to popular belief, I am not stupid, and like usual when faced with a problem, Google is the FIRST port of call, this being the last if I haven't found a useful solution that works.

minrich 11-27-2009 05:21 PM

Hi

I don't think the guide that you used included a "# ndiswrapper -m" command, which loads ndiswrapper into /etc/modules. In Debian, my /etc/modules has three lines:
loop
sbp2
ndiswrapper

I also have one line in /etc/modprobe.d/ndiswrapper:
alias wlan0 ndiswrapper

Do you have a directory: /etc/ndiswrapper? Mine contains a .sys file, a .inf file and various .conf files.

Do you have pcmcia module loaded. Try lsmod....

Also you might want to check which version of ndiswrapper you have, I am using 1.55. Furthermore this page may be of interest: http://www.angelfire.com/linux/hardwire/problems.html

Hope this helps

TheStarLion 11-27-2009 05:25 PM

the ndiswrapper -m command has been suggested to me before, and has had no change on the result.
The line you have in ndiswrapper.conf is for me, in /etc/modprobe.conf, because it was suggested that it might solve the problem.
The ndiswrapper version is 1.54 , from the rpmfusion-free repository.

minrich 11-27-2009 05:30 PM

Have you seen: http://www.angelfire.com/linux/hardwire/problems.html ??

I presume that lsmod doesn't show ndiswrapper. Any joy with pcmcia? Since I believe your card is a pccard.

TheStarLion 11-27-2009 05:32 PM

You are correct, lsmod does not show ndiswrapper at all.
I have seen that page, the only part which appears to help is the 3rd in the ndiswrapper problems.
That section suggests to me that I will have to compile it myself, something I am unable, and unwilling to do myself, because the computer isn't all that powerful, and would probably have a heart attack if I asked it to compile anything, let alone that I know next to nothing about how to compile ndiswrapper.

minrich 11-27-2009 05:36 PM

can you run: locate ndiswrapper ?

Mine returns amoungst many others:
/lib/modules/2.6.26-2-amd64/misc/ndiswrapper.ko

Your kernel name is no doubt up in the 30's

TheStarLion 11-27-2009 05:38 PM

whereis ndiswrapper returns:
Code:

ndiswrapper: /usr/sbin/ndiswrapper /etc/ndiswrapper
I'm uncertain as to how to find the current kernel version in use.

minrich 11-27-2009 05:42 PM

The following is the INSTALL instructions from ndiswrapper-1.55.tar.gz:

The instructions below explain how to install ndiswrapper. This is
rather short version; more details about installation,
troubleshooting, FAQ etc. can be found in the Wiki at

http://ndiswrapper.sourceforge.net/wiki

Prerequisites
=============

You need a recent kernel, at least 2.6.16, with header files for the
kernel. Make sure there is a link to the kernel source from the modules
directory. The command

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

should have at least 'include' directory and '.config' file.

Downloading
===========

Download the latest version of the ndiswrapper sources from here and
extract it with the command

tar zxvf ndiswrapper-version.tar.gz

This will create ndiswrapper-version directory. Change to that
directory and run

make uninstall
make

Login as root and run
make install

Install Windows driver
======================

If this is the first time you install ndiswrapper, you need to install
Windows driver for Windows XP (in some cases Windows NT or Windows
2000 may also work). First, get a Windows driver that is known to
work. See http://ndiswrapper.sourceforge.net/wiki/List for status
about the device for which you are installing Windows driver. For
this, you need to identify device ID with

lspci -n

if it is PCI device or

lsusb

if it is USB device.

Then lookup in that List for the device ID and if a driver is known to
work, get that driver. Occassionally, Windows driver on the CD or your
Windows partition may work, but if it doesn't, don't complain - get a
known-to-work driver.

Many Windows drivers are distributed either as zipped files or cab
files. Zipped files, even if they are .exe files, can be extracted
with 'unzip' in Linux; cab files can be extracted with combination of
'cabextract' and 'unshield' programs.

Once the driver has been unpacked, locate .inf and .sys files. If
necessary, move these files so both .inf and .sys are in the same
directory. Some drivers also come with firmware files, such as
fwrad16.bin etc. These files also should be in the same
directory. Then install the Windows driver with

ndiswrapper -i driver.inf

This installs .inf file and required .sys and .bin files. Now, see if
installation of Windows driver is "valid" with

ndiswrapper -l

This should report

"driver present, hardware present"

for the driver installed and if that driver is for the device that is
already in the system. If device is not present, it should report

"driver present"

If not, the Windows driver has not been installed properly.

Now load ndiswrapper module with

modprobe ndiswrapper

If everything worked properly, this should initialize 'wlan0' wireless
device, which can be configured with wireless tools, such as
'iwconfig', 'wpa_supplicant' etc.

TheStarLion 11-27-2009 05:45 PM

I have two problems before even attempting that - I don't know how to find the kernel version in use, and I don't know how to make the link mentioned near the start, since it doesn't exist on my system.

minrich 11-27-2009 05:55 PM

Did you try the locate command that I suggested? The whereis command only returns the directories that include the ndiswrapper name.

Look at /boot/ and you will see what kernel is loading. Or type uname -r in a terminal

TheStarLion 11-27-2009 05:57 PM

Locate ndiswrapper returns:
Code:

/ndiswrapper_drivers
/etc/ndiswrapper
/etc/modprobe.d/ndiswrapper
/etc/ndiswrapper/wg511v2
/etc/ndiswrapper/wg511v2/11AB:1FAA.5.conf
/etc/ndiswrapper/wg511v2/11AB:1FAA:4E00:1385.5.conf
/etc/ndiswrapper/wg511v2/11AB:1FAB.5.conf
/etc/ndiswrapper/wg511v2/wg511v2.inf
/etc/ndiswrapper/wg511v2/wg511v2xp.sys
/lib/modules/2.6.31.5-127.fc12.i686/extra/ndiswrapper
/lib/modules/2.6.31.5-127.fc12.i686/extra/ndiswrapper/ndiswrapper.ko
/ndiswrapper_drivers/CopyWHQLDriver.exe
/ndiswrapper_drivers/InsDrvlh.exe
/ndiswrapper_drivers/WG511v2.INF
/ndiswrapper_drivers/WG511v2.cat
/ndiswrapper_drivers/WG511v2.sys
/ndiswrapper_drivers/WG511v2XP.sys
/ndiswrapper_drivers/snetcfg .exe
/ndiswrapper_drivers/wlndis51.inf
/ndiswrapper_drivers/wlndis51.sys
/usr/sbin/ndiswrapper
/usr/sbin/ndiswrapper-buginfo
/usr/share/doc/ndiswrapper-1.54
/usr/share/doc/ndiswrapper-1.54/AUTHORS
/usr/share/doc/ndiswrapper-1.54/ChangeLog
/usr/share/doc/ndiswrapper-1.54/INSTALL
/usr/share/doc/ndiswrapper-1.54/README
/var/lib/yum/yumdb/k/2353c4effd6d0f35ce229cd0c81ddee2709062ab-kmod-ndiswrapper-2.6.31.5-127.fc12.i686-1.54-4.fc12.14-i586
/var/lib/yum/yumdb/k/6f8ae75c1f8c9dc1070f50c3929917661953b453-kmod-ndiswrapper-1.54-4.fc12.14-i586
/var/lib/yum/yumdb/k/2353c4effd6d0f35ce229cd0c81ddee2709062ab-kmod-ndiswrapper-2.6.31.5-127.fc12.i686-1.54-4.fc12.14-i586/checksum_data
/var/lib/yum/yumdb/k/2353c4effd6d0f35ce229cd0c81ddee2709062ab-kmod-ndiswrapper-2.6.31.5-127.fc12.i686-1.54-4.fc12.14-i586/checksum_type
/var/lib/yum/yumdb/k/2353c4effd6d0f35ce229cd0c81ddee2709062ab-kmod-ndiswrapper-2.6.31.5-127.fc12.i686-1.54-4.fc12.14-i586/command_line
/var/lib/yum/yumdb/k/2353c4effd6d0f35ce229cd0c81ddee2709062ab-kmod-ndiswrapper-2.6.31.5-127.fc12.i686-1.54-4.fc12.14-i586/from_repo
/var/lib/yum/yumdb/k/2353c4effd6d0f35ce229cd0c81ddee2709062ab-kmod-ndiswrapper-2.6.31.5-127.fc12.i686-1.54-4.fc12.14-i586/from_repo_revision
/var/lib/yum/yumdb/k/2353c4effd6d0f35ce229cd0c81ddee2709062ab-kmod-ndiswrapper-2.6.31.5-127.fc12.i686-1.54-4.fc12.14-i586/from_repo_timestamp
/var/lib/yum/yumdb/k/2353c4effd6d0f35ce229cd0c81ddee2709062ab-kmod-ndiswrapper-2.6.31.5-127.fc12.i686-1.54-4.fc12.14-i586/reason
/var/lib/yum/yumdb/k/2353c4effd6d0f35ce229cd0c81ddee2709062ab-kmod-ndiswrapper-2.6.31.5-127.fc12.i686-1.54-4.fc12.14-i586/releasever
/var/lib/yum/yumdb/n/8d86cc7a0bdb74c7baa0abc1680f18f95009523c-ndiswrapper-1.54-2.fc11-i586
/var/lib/yum/yumdb/n/8d86cc7a0bdb74c7baa0abc1680f18f95009523c-ndiswrapper-1.54-2.fc11-i586/checksum_data
/var/lib/yum/yumdb/n/8d86cc7a0bdb74c7baa0abc1680f18f95009523c-ndiswrapper-1.54-2.fc11-i586/checksum_type
/var/lib/yum/yumdb/n/8d86cc7a0bdb74c7baa0abc1680f18f95009523c-ndiswrapper-1.54-2.fc11-i586/command_line
/var/lib/yum/yumdb/n/8d86cc7a0bdb74c7baa0abc1680f18f95009523c-ndiswrapper-1.54-2.fc11-i586/from_repo
/var/lib/yum/yumdb/n/8d86cc7a0bdb74c7baa0abc1680f18f95009523c-ndiswrapper-1.54-2.fc11-i586/from_repo_revision
/var/lib/yum/yumdb/n/8d86cc7a0bdb74c7baa0abc1680f18f95009523c-ndiswrapper-1.54-2.fc11-i586/from_repo_timestamp
/var/lib/yum/yumdb/n/8d86cc7a0bdb74c7baa0abc1680f18f95009523c-ndiswrapper-1.54-2.fc11-i586/reason
/var/lib/yum/yumdb/n/8d86cc7a0bdb74c7baa0abc1680f18f95009523c-ndiswrapper-1.54-2.fc11-i586/releasever

I don't know if that's useful.

The kernel version reported to me from the uname command is:
2.6.31.5-127.fc12.i686.PAE


All times are GMT -5. The time now is 06:14 PM.