Discussion:
[Ndiswrapper-general] ndiswrapper: Driver init returned error
Stefan Schlörholz
2004-01-17 16:15:32 UTC
Permalink
Hello everybody,

I desperately try to get ndiswrapper to work on my ASUS M2400N Notebook.
It is a Centrino Notebook with the Intel 2100 Wireless mini-PCI
Wireless NIC.

I tried linuxant's driverloader before and it worked with the
w70n51.inf/sys files. I know that it can work from another ndiswrapper
users with the same notebook.

Configuration was created by the ./indtall.sh sript. Kernel version is
vanilla 2.4.24 patched with acpi-20031203-2.4.24.diff. ACPI support
konfigured and enabled.

What am I missing or doing wrong?

Here is some output:

clodette:~ # ls -l /usr/sbin/loadndisdriver
-rwxr-xr-x 1 root root 70430 2004-01-17 16:14 /usr/sbin/
loadndisdriver

clodette:~ # ls -l /lib/windrivers/*
-rw-r--r-- 1 root root 80581 2004-01-17 16:14 /lib/
windrivers/w70n51.inf
-rw-r--r-- 1 root root 2370688 2004-01-17 16:14 /lib/
windrivers/w70n51.sys

clodette:~ # lsmod | grep ndis

clodette:~ # modprobe ndiswrapper
Calling putdriver ioctl
Parsing the inf file.
Driver version: 01/11/2003,1.0.28.2
Calling startdriver ioctl
Unable to start driver (check dmesg for more info): No such device

clodette:~ # lsmod | grep ndis
ndiswrapper 53592 0

clodette:~ # dmesg | grep ndis
ndiswrapper version 0.4 loaded
ndiswrapper: error log: C000138A, length: 2 (00000000)
ndiswrapper: error log: C000138D, length: 2 (00000000)
ndiswrapper: error log: C000138D, length: 2 (00000000)
ndiswrapper: Driver init returned error

clodette:~ # ifconfig eth1 up
eth1: unbekannte Schnittstelle: Kein passendes Gerät gefunden

clodette:~ # tail -n4 /etc/modules.conf
#alias eth1 driverloader
alias eth1 ndiswrapper
options ndiswrapper if_name=eth1
post-install ndiswrapper /usr/sbin/loadndisdriver 8086 1043 /lib/
windrivers/w70n51.sys /lib/windrivers/w70n51.inf

clodette:~ # lspci -n | grep 280
01:05.0 Class 0280: 8086:1043 (rev 04)

clodette:~ # lspci | grep 01:05.0
01:05.0 Network controller: Intel Corp.: Unknown device 1043 (rev 04)

Which additional information do you need?

Stefan
Stefan Dösinger
2004-01-17 21:44:52 UTC
Permalink
Hello,

First: Make shure you have the LATEST driver. Download it from your vendors
website, the drivers on the cdrom are to old.

Get the latest CVS. See the project page->CVS reprositority on how to do this.
Post by Stefan Schlörholz
ndiswrapper version 0.4 loaded
ndiswrapper: error log: C000138A, length: 2 (00000000)
ndiswrapper: error log: C000138D, length: 2 (00000000)
ndiswrapper: error log: C000138D, length: 2 (00000000)
ndiswrapper: Driver init returned error
I get a simmilar error when calling iwconfig when loading the driver, eighter
by calling iwconfig wlan0 <anything> before the driver is loaded and gets
loaded because wlan0 is needed, or when I have a iwconfig call in the install
command in iwconfig. Try loading everythink manually:

insmod /path-to-module/ndiswrapper.o (or ndiswrapper.ko for 2.6.X)
use insmod, not modprobe!!

loadndisdriver 8086 1034 /lib/windrivers/w70n51.inf /lib/windrivers/w70n51.sys

Check with ifconfig -a if your interface is loaded

/Stefan
Stefan Schlörholz
2004-01-18 13:07:33 UTC
Permalink
Post by Stefan Dösinger
Hello,
Hello Stefan,
Post by Stefan Dösinger
First: Make shure you have the LATEST driver. Download it from your
vendors website, the drivers on the cdrom are to old.
Will do that in the next step, thanks. But Driverloader worked with
those drivers I have.
Post by Stefan Dösinger
Get the latest CVS. See the project page->CVS reprositority on how to do this.
Do you mean ndiswrapper?
Post by Stefan Dösinger
I get a simmilar error when calling iwconfig when loading the driver,
eighter by calling iwconfig wlan0 <anything> before the driver is
loaded and gets loaded because wlan0 is needed, or when I have a
iwconfig call in the install command in iwconfig. Try loading
insmod /path-to-module/ndiswrapper.o (or ndiswrapper.ko for 2.6.X)
use insmod, not modprobe!!
I did
clodette:~ # insmod ndiswrapper
Using /lib/modules/2.4.24/misc/ndiswrapper.o
Post by Stefan Dösinger
loadndisdriver 8086 1034 /lib/windrivers/w70n51.inf
/lib/windrivers/w70n51.sys
I did
clodette:~ # loadndisdriver 8086 1043 /lib/windrivers/w70n51.sys /lib/
windrivers/w70n51.inf
Calling putdriver ioctl
Parsing the inf file.
Driver version: 01/11/2003,1.0.28.2
Calling startdriver ioctl
Unable to start driver (check dmesg for more info): No such device
Post by Stefan Dösinger
Check with ifconfig -a if your interface is loaded
No eth1 device

Can it be a missing Kernel module/feature? If so, which must be
included?

cu

Stefan
Stefan Dösinger
2004-01-18 21:12:56 UTC
Permalink
Hello,
Post by Stefan Schlörholz
Post by Stefan Dösinger
First: Make shure you have the LATEST driver. Download it from your
vendors website, the drivers on the cdrom are to old.
Will do that in the next step, thanks. But Driverloader worked with
those drivers I have.
Driverloader does, but the ndis API has changed recently. A funktion(I've
forgotten its name) is a function(and thus in ndiswrapper) and not a
macro(compiled into the driver). The macro works with driverloader, but not
with ndiswrapper.
Post by Stefan Schlörholz
Post by Stefan Dösinger
Get the latest CVS. See the project page->CVS reprositority on how to do this.
Do you mean ndiswrapper?
Yes
Post by Stefan Schlörholz
Can it be a missing Kernel module/feature? If so, which must be
included?
You have to enable Wireless Lan(non hamradio) support to have wireless
extentions, but this is not causing your problem. If your driver loads and
iwconfig says "no wireless extentions", then you have wireless support
disabled.

/Stefan
Stefan Schlörholz
2004-01-18 22:42:02 UTC
Permalink
Post by Stefan Dösinger
Hello,
Hello Stefan
Post by Stefan Dösinger
Post by Stefan Schlörholz
Post by Stefan Dösinger
First: Make shure you have the LATEST driver. Download it from
your vendors website, the drivers on the cdrom are to old.
Will do that in the next step, thanks. But Driverloader worked with
those drivers I have.
Driverloader does, but the ndis API has changed recently. A
funktion(I've forgotten its name) is a function(and thus in
ndiswrapper) and not a macro(compiled into the driver). The macro
works with driverloader, but not with ndiswrapper.
That was the solution. Thanks for that.

But could someone explain the following. I do not get the fancy 'Adding
setting:' messages like other. Is it an .inf or .sys-file specific
output. Here is some output (+'s changed by me) from manually starting
the driver but the automatic procedure utilizing /etc/modules.conf
works as well:

-----
clodette:~ # insmod ndiswrapper
Using /lib/modules/2.4.24/misc/ndiswrapper.o

clodette:~ # loadndisdriver 8086 1043 /lib/windrivers/w70n51.inf /lib/
windrivers/w70n51.sys
Calling putdriver ioctl
Parsing the inf file.
Driver version: 06/11/2003,1.2.0.56
Calling startdriver ioctl

clodette:~ # ifup wlan0
ERROR: command 'iwconfig wlan0 nick clodette' returned
Error for wireless request "Set Nickname" (8B1C) :
SET failed on device wlan0 ; No such device.
Starting DHCP Client Daemon on wlan0... . . . . . IP/Netmask: 192.168.+.
+ / 255.255.+++.+++

clodette:~ # iwconfig wlan0
Warning: Driver for device wlan0 has been compiled with version 16
of Wireless Extension, while this program is using version 15.
Some things may be broken...

wlan0 IEEE 802.11b ESSID:"++++++++"
Mode:Managed Frequency:2.462GHz Access Point: ++:++:++:++:+
+:++
Bit Rate=11Mb/s
RTS thr=1600 B Fragment thr=2344 B
Encryption key:++++-++++-++++-++++-++++-++++-++ Encryption
mode:restricted
Power Management:off
Link Quality:0/0 Signal level:-68 dBm Noise level:-256 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

ifup somehow wants to set a nick name (in this case the host name) but I
did not set any. Obviously setting a nick is not supported by the
driver. Will it be supported soon?

Is it a problem that there were different Wireless Extensions?

Does anybody know if the power management is supported and how I can set
it? And what is does exactly?

Thanks for all hints so far

Stefan
Stefan Dösinger
2004-01-20 21:39:20 UTC
Permalink
Hello,
Post by Stefan Schlörholz
ifup somehow wants to set a nick name (in this case the host name) but I
did not set any. Obviously setting a nick is not supported by the
driver. Will it be supported soon?
I don't know what the nick is used for, and if NDIS supports nick names. But I
think it's easy to implement
Post by Stefan Schlörholz
Is it a problem that there were different Wireless Extensions?
Unless you encounter one, no.
Post by Stefan Schlörholz
Does anybody know if the power management is supported and how I can set
it? And what is does exactly?
Giri...
Powermanagement is to lower the transmit power to save battery life. See the
iwconfig manual for details.
Another thing is to turn off the card before a standby/suspend.

The first should be supportet, but I haven't tried it because I am always on
wall power when using the wlan.
The secound should work for ndiswrapper, but it is problematic with Linux,
especially with video drivers

/Stefan
Giridhar Pemmasani
2004-01-20 20:48:34 UTC
Permalink
On Tue, 20 Jan 2004 21:39:20 +0000, Stefan Dösinger <***@gmx.at> said:

Stefan> The first should be supportet, but I haven't tried it
Stefan> because I am always on wall power when using the wlan.
Stefan> The secound should work for ndiswrapper, but it is
Stefan> problematic with Linux, especially with video drivers

Both features are supported in ndiswrapper. See "tips" link on project
page.
--
Giri
Loading...