LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   Ndiswrapper error on ubuntu edgy amd64 (https://www.linuxquestions.org/questions/linux-wireless-networking-41/ndiswrapper-error-on-ubuntu-edgy-amd64-498542/)

alek66 11-04-2006 07:20 AM

Ndiswrapper error on ubuntu edgy amd64
 
Ndiswrapper instalation ok.
Ndiswrapper driver installation ok, hardaware present.
When i do a modprobe this comes out
Quote:

FATAL: Error inserting ndiswrapper (/lib/modules/2.6.17-10-generic/kernel/drivers/net/ndiswrapper/ndiswrapper.ko): Invalid argument

happygiraffe98 11-19-2006 06:28 PM

Fix...
 
I stumbled upon the same problem, and after some Googling, found this page: https://launchpad.net/distros/ubuntu...per/+bug/59983

From the bits and pieces gathered from the discussion, I fixed the problem in the following steps:

Code:

1. $ sudo apt-get install ndiswrapper-utils-1.8 [Install older version free of a bug (I think :D ) ]

2. $ sudo mv /usr/sbin/ndiswrapper /usr/sbin/ndiswrapper_blah [To make a backup, the name reflects my frustration ;) )

3. $ sudo cp /usr/sbin/ndiswrapper-1.8 /usr/sbin/ndiswrapper [Replace the broken bin with the older, stable version]

4. $ sudo modprobe ndiswrapper [Test it out]

...and wlan0 was configured properly. I unhooked my temporary ethernet cable, added ndiswrapper to /etc/modules, rebooted, and everything came up fine :) .

alek66 11-20-2006 06:37 AM

Thanks a lot, It worked perfectly. how do i set it so the module starts at startup?

alex

happygiraffe98 11-20-2006 10:08 AM

/etc/modules..
 
First, open up /etc/modules:

Code:

$ sudo vi /etc/modules
and add "ndiswrapper" so that the file looks something like:

Code:

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

lp
psmouse
ndiswrapper


alek66 11-20-2006 11:08 AM

Thanks, It worked just fine. i see the wlan0 interface, but I cant connect to any ap I detect... i dont know why.

nosrednaekim 11-22-2006 06:04 PM

thanks... this worked for me...

happygiraffe98 11-27-2006 07:35 PM

nosrednaekim: Glad I was of some help :)

Quote:

Originally Posted by alek66
Thanks, It worked just fine. i see the wlan0 interface, but I cant connect to any ap I detect... i dont know why.

This is probably going to get beyond me fast. However, if you post some particulars (router brand/model, wireless card brand/model, router security setup, any errors you receive) maybe some of the gurus around here will be able to help :) . You might want to create a new topic with these details.

poppo 12-09-2006 11:19 AM

I had a similar problem so I am using ndiswrapper-utils-1.8

with that I can load my driver, although to be exact it says
"driver installed, hardware present"
and not
"driver present, hardware present"

anyway when I do 'sudo modprobe ndiswrapper" nothing happens

what am I missing ? :confused:

Thanx in advance

alek66 12-09-2006 11:21 AM

post the system logs
I solved everything by downloading ndiswrapper 2.9.... and voila!
post everything and lets take it from there.

poppo 12-10-2006 06:01 AM

here are the details
 
OK, I'm a newbie and I have just installed ubuntu 6.10 on AMD 64
The kernel is 2.6.17-10.

In Network Administration the wireless card does not show at all.
Note: on another disk on the same PC there's WindowsXP and the wi-fi works perfectly.

Anyway I found the following:

1) Using lshw I see:
--------------------------------------------------------------
*-network:0 UNCLAIMED
description: Ethernet controller
product: 88w8335 [Libertas] 802.11b/g Wireless
vendor: Marvell Technology Group Ltd.
physical id: c
bus info: pci@00:0c.0
version: 03
width: 32 bits
clock: 66MHz
capabilities: bus_master cap_list
resources: iomemory:fae00000-fae0ffff iomemory:fad00000-fad0ffff irq:10
--------------------------------------------------------------

2) with 'lspci |grep 00:0c.0' I get :
00:0c.0 Ethernet controller: Marvell Technology Group Ltd. 88w8335 [Libertas] 802.11b/g Wireless (rev 03)

2b) I don't remember how I found it, but I found that the the pccid is 11ab:1faa (rev 03)

3) My wi-fi card is a low-cost Skintek card. The card is not listed in the ndiswrapper list page, but there's some others in the list which apparently are using the same chipset.
Note: I'm not sure which driver is best - the one given with my card's CD, or the ones used by other cards with same chipset listed on ndiswrapper page ? Anyway I tried one of them with same results.

4) with 'iwconfig' I see :

lo no wireless extensions.

eth0 no wireless extensions.

sit0 no wireless extensions.


5) Using ndiswrapper I got exactly the same error as on top of this thread. So I moved to ndiswrapper-utils-1.8 and that problem was solved. With 'sudo ndiswrapper -i ~/Desktop/mrv8000c.inf' I see :

Installing mrv8000c
Forcing parameter AdhocGMode|1 to AdhocGMode|0
Forcing parameter AdhocGMode|1 to AdhocGMode|0

And then with 'ndiswrapper -l' I see:

Installed drivers:
mrv8000c driver installed, hardware present

Note: the help page says it should be "driver present, hardware present".

6) 'sudo depmod -a' takes about 2-3 seconds and does not print anything

7) 'sudo modprobe ndiswrapper' returns instantly and does not print anything

My main concerns are :

a) not sure which driver is best (see 3 above)
b) I feel I am missing something else other than the driver to activate the wireless card! :confused:

Thanks a lot for your help

alek66 12-10-2006 11:08 AM

1) can you post a ndiswrapper -v I had problem qith 1.8 and i updated.
2) can you post your system.log???
Alex

poppo 12-10-2006 03:13 PM

sorry... where can I find the system.log ?

alek66 12-10-2006 05:05 PM

Assuming you are running under ubuntu go to top bar
System->administration->system log
Identify the message you got after you did the modprobe.
If you are no using ubuntu /var/log/messages

Good hunting

poppo 12-16-2006 03:59 PM

There is nothing in the system log after I try to remove/reinstall the driver with ndiswrapper + depmod + modprobe

The version is :

$ 'ndiswrapper -v'
utils Error: no version specified!
driver version: 1.22
vermagic: 2.6.17-10-generic SM mod_unload gcc-4.1

alek66 12-16-2006 06:14 PM

erase everything and start from scratch...
download latest version, and we ll take it from there.


All times are GMT -5. The time now is 07:25 PM.