ndiswrapper

pascal pascal at deception.nl
Sat Aug 26 18:05:39 UTC 2006


> > Hi,
> 
> > 
> 
> > Ndiswrapper module failed to load:
> 
> > 
> 
> > FATAL: Error inserting ndiswrapper
> 
> > (/lib/modules/2.6.17-6-386/kernel/drivers/net/ndiswrapper/ndiswrapper.ko):
> > Invalid argument
> 
> > 
> 
> 
> 
> You get that error when you have an invalid .inf file or another kernel
> module is using the same device.  I don't think hostap works with any
> prism54 stuff, though.  Is the native prism54 module being loaded? 
> Maybe you have to blacklist it?
> 
> 
> -- 
> azz
> 

Ok, I reinstalled the kernel-image, ndiswrapper-utils, installed
ndiswrapper-utils-1.8

Now I'm able to load the module.


root at laptop:/etc/ndiswrapper/prisma00# dmesg

[17182130.000000] ndiswrapper version 1.22 loaded (preempt=no,smp=no)
[17182130.020000] ndiswrapper: driver prisma00
(GlobespanVirata,12/05/2003, 2.1.14.2) loaded
[17182130.020000] ACPI: PCI Interrupt 0000:03:06.0[A] -> GSI 18 (level,
low) -> IRQ 201
[17182130.020000] ndiswrapper: using irq 201
[17182131.692000] wlan0: vendor: 'PRISM 802.11g Wireless Adapter'
[17182131.692000] wlan0: ethernet device 00:60:b3:9d:ef:dd using NDIS
driver prisma00, 1260:3890:17CF:0014.5.conf
[17182131.692000] wlan0: encryption modes supported: WEP; TKIP with WPA;
AES/CCMP with WPA
[17182131.720000] ndiswrapper: changing interface name from 'wlan0' to
'eth1'
root at laptop:/etc/ndiswrapper/prisma00# ndiswrapper -m
Is it okay to shutdown 'wlan0' interface and reload the module?
If loading the module crashes kernel, then say N here
Reload ndiswrapper module? [N/y]:y
[: 113: ==: unexpected operator
wlan0: ERROR while getting interface flags: No such device
please attach /tmp/ndiswrapper-buginfo.gz to your bugreport!

But it refuses to connect

root at laptop:/etc/ndiswrapper/prisma00# tail -30 /var/log/syslog

Aug 26 19:42:52 laptop kernel: [17182181.464000] wlan0: ethernet device
00:60:b3:9d:ef:dd using NDIS driver prisma00, 1260:3890:17CF:0014.5.conf
Aug 26 19:42:52 laptop kernel: [17182181.464000] wlan0: encryption modes
supported: WEP; TKIP with WPA; AES/CCMP with WPA
Aug 26 19:42:52 laptop kernel: [17182181.472000] ndiswrapper: changing
interface name from 'wlan0' to 'eth1'
Aug 26 19:42:52 laptop dhclient: There is already a pid
file /var/run/dhclient.eth1.pid with pid 134993416
Aug 26 19:42:52 laptop dhclient: Internet Systems Consortium DHCP Client
V3.0.4
Aug 26 19:42:52 laptop dhclient: Copyright 2004-2006 Internet Systems
Consortium.
Aug 26 19:42:52 laptop dhclient: All rights reserved.
Aug 26 19:42:52 laptop dhclient: For info, please visit
http://www.isc.org/sw/dhcp/
Aug 26 19:42:52 laptop dhclient: 
Aug 26 19:42:53 laptop dhclient: Listening on LPF/eth1/00:60:b3:9d:ef:dd
Aug 26 19:42:53 laptop dhclient: Sending on   LPF/eth1/00:60:b3:9d:ef:dd
Aug 26 19:42:53 laptop dhclient: Sending on   Socket/fallback
Aug 26 19:42:55 laptop dhclient: DHCPDISCOVER on eth1 to 255.255.255.255
port 67 interval 7
Aug 26 19:42:55 laptop NetworkManager: <debug info>^I[1156614175.722812]
nm_hal_device_added (): New device added (hal udi is
'/org/freedesktop/Hal/devices/net_00_60_b3_9d_ef_dd'). 
Aug 26 19:42:55 laptop NetworkManager: <information>^Ieth1: Device is
fully-supported using driver 'ndiswrapper'. 
Aug 26 19:42:55 laptop NetworkManager: <information>^Inm_device_init():
waiting for device's worker thread to start 
Aug 26 19:42:55 laptop NetworkManager: <information>^Inm_device_init():
device's worker thread started, continuing. 
Aug 26 19:42:55 laptop NetworkManager: <information>^INow managing
wireless (802.11) device 'eth1'. 
Aug 26 19:42:55 laptop NetworkManager: <information>^IDeactivating
device eth1. 
Aug 26 19:43:02 laptop dhclient: DHCPDISCOVER on eth1 to 255.255.255.255
port 67 interval 13
Aug 26 19:43:03 laptop dhclient: DHCPDISCOVER on eth1 to 255.255.255.255
port 67 interval 1
Aug 26 19:43:04 laptop dhclient: No DHCPOFFERS received.
Aug 26 19:43:04 laptop dhclient: No working leases in persistent
database - sleeping.
Aug 26 19:43:04 laptop ntpdate[6918]: step time server 82.211.81.145
offset 0.007016 sec
Aug 26 19:43:15 laptop dhclient: DHCPDISCOVER on eth1 to 255.255.255.255
port 67 interval 21
Aug 26 19:43:36 laptop dhclient: DHCPDISCOVER on eth1 to 255.255.255.255
port 67 interval 8
Aug 26 19:43:44 laptop dhclient: DHCPDISCOVER on eth1 to 255.255.255.255
port 67 interval 12
Aug 26 19:43:56 laptop dhclient: No DHCPOFFERS received.
Aug 26 19:43:56 laptop dhclient: No working leases in persistent
database - sleeping.


Which is weird, with the prism54 driver it doesn't have any problems.

root at laptop:/etc/ndiswrapper/prisma00# rmmod ndiswrapper
root at laptop:/etc/ndiswrapper/prisma00# modprobe prism54
root at laptop:/etc/ndiswrapper/prisma00# lsmod | grep prism
prism54                57480  0 
root at laptop:/etc/ndiswrapper/prisma00# ifup eth1
ifup: interface eth1 already configured
root at laptop:/etc/ndiswrapper/prisma00# ifconfig 
	  eth1  
          Link encap:Ethernet  HWaddr 00:60:B3:9D:EF:DD  
          inet addr:192.168.0.21  Bcast:192.168.0.255
Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:834 (834.0 b)  TX bytes:1116 (1.0 KiB)
          Interrupt:201 Base address:0x4000 



It refuses to connect to the wifi-point.

Any idea?

Pascal.


-- 
Windows is als Playmobil,
Linux als Lego.





More information about the ubuntu-users mailing list