View Full Version : Ndiswrapper troubles
Varean
2006-12-30, 02:06 PM CST
Hey everyone. I have a Linksys WUSB V2.4 adapter and I am having some trouble with Ndiswrapper.
I installed ndsiwrapper using
yum install kmod-ndiswrapper
and then I installed my drivers using "ndiswrapper -i netusb.inf" but when I type in
ndiswrapper -l
the system just hangs.
Any ideas?
Varean
2006-12-30, 04:38 PM CST
I tried some other things and rebooted my system, but now whenever I run the -l command, I get this error:
[root@localhost ndiswrapper_drivers]# /usr/sbin/ndiswrapper -l
couldn't run modprobe: No such file or directory at /usr/sbin/ndiswrapper line 826.
EDIT:
I read that using just "su" instead of "su -" causes some directory issues, so one problem was fixed. Now:
[root@localhost ~]# ndiswrapper -l
installed drivers:
netusb driver installed, hardware (09AA:3642) present
[root@localhost ~]# modprobe ndiswrapper
Segmentation fault
[root@localhost ~]#
Message from syslogd@localhost at Sat Dec 30 15:53:49 2006 ...
localhost kernel: Oops: 0000 [#1]
Message from syslogd@localhost at Sat Dec 30 15:53:49 2006 ...
localhost kernel: SMP
Message from syslogd@localhost at Sat Dec 30 15:53:49 2006 ...
localhost kernel: CPU: 0
Message from syslogd@localhost at Sat Dec 30 15:53:49 2006 ...
localhost kernel: EIP is at 0xf8dcf789
Message from syslogd@localhost at Sat Dec 30 15:53:49 2006 ...
localhost kernel: eax: f7ffc3c0 ebx: 00003538 ecx: f7ffc3c0 edx: f7ffc3c0
Message from syslogd@localhost at Sat Dec 30 15:53:49 2006 ...
localhost kernel: esi: 00000000 edi: f8d722b8 ebp: ec0babdc esp: ec0babc4
Message from syslogd@localhost at Sat Dec 30 15:53:49 2006 ...
localhost kernel: ds: 007b es: 007b ss: 0068
Message from syslogd@localhost at Sat Dec 30 15:53:49 2006 ...
localhost kernel: Process modprobe (pid: 3069, ti=ec0ba000 task=f471ad90 task.ti=ec0ba000)
Message from syslogd@localhost at Sat Dec 30 15:53:49 2006 ...
localhost kernel: Stack: c000138b 00000000 e612b8e0 dc8d5824 dc8d5400 e612b5e0 dc8d5400 f8d7da7c
Message from syslogd@localhost at Sat Dec 30 15:53:49 2006 ...
localhost kernel: ec0bac14 ec0bac10 00000000 00000000 dc8d5824 dc8d5824 c180a360 00000001
Message from syslogd@localhost at Sat Dec 30 15:53:49 2006 ...
localhost kernel: 00000000 ec0bac08 00000000 00000000 dc8d5824 e612b5e0 f8d7db85 e612ba80
Message from syslogd@localhost at Sat Dec 30 15:53:49 2006 ...
localhost kernel: Call Trace:
Message from syslogd@localhost at Sat Dec 30 15:53:49 2006 ...
localhost kernel: Inexact backtrace:
Message from syslogd@localhost at Sat Dec 30 15:53:49 2006 ...
localhost kernel: [<f8d7da7c>] miniport_init+0x9d/0x124 [ndiswrapper]
Message from syslogd@localhost at Sat Dec 30 15:53:49 2006 ...
localhost kernel: [<f8d7db85>] NdisDispatchPnp+0x71/0x795 [ndiswrapper]
Message from syslogd@localhost at Sat Dec 30 15:53:50 2006 ...
localhost kernel: [<f8d78884>] IoAllocateIrp+0x67/0x74 [ndiswrapper]
Message from syslogd@localhost at Sat Dec 30 15:53:50 2006 ...
localhost kernel: [<f8d79178>] IoBuildAsynchronousFsdRequest+0x2d/0x132 [ndiswrapper]
Message from syslogd@localhost at Sat Dec 30 15:53:50 2006 ...
localhost kernel: [<f8d74a38>] get_current_nt_thread+0xad/0xbc [ndiswrapper]
Message from syslogd@localhost at Sat Dec 30 15:53:50 2006 ...
localhost kernel: [<f8d7928a>] IoQueueThreadIrp+0xd/0xc7 [ndiswrapper]
Message from syslogd@localhost at Sat Dec 30 15:53:50 2006 ...
localhost kernel: [<f8d785dc>] IofCallDriver+0x2e/0x5c [ndiswrapper]
Message from syslogd@localhost at Sat Dec 30 15:53:50 2006 ...
localhost kernel: [<f8d7a7b6>] IoSendIrpTopDev+0xad/0xfb [ndiswrapper]
Message from syslogd@localhost at Sat Dec 30 15:53:50 2006 ...
localhost kernel: [<f8d7aa85>] pnp_start_device+0x47/0x8e [ndiswrapper]
Message from syslogd@localhost at Sat Dec 30 15:53:50 2006 ...
localhost kernel: [<f8d7acdf>] wrap_pnp_start_device+0x213/0x234 [ndiswrapper]
Message from syslogd@localhost at Sat Dec 30 15:53:51 2006 ...
localhost kernel: [<c0552b9b>] __driver_attach+0x0/0x8f
Message from syslogd@localhost at Sat Dec 30 15:53:51 2006 ...
localhost kernel: [<f8d7af40>] wrap_pnp_start_usb_device+0xb2/0xb9 [ndiswrapper]
Message from syslogd@localhost at Sat Dec 30 15:53:51 2006 ...
localhost kernel: [<c041e580>] __wake_up+0x2a/0x3d
Message from syslogd@localhost at Sat Dec 30 15:53:51 2006 ...
localhost kernel: [<c05cc433>] netlink_broadcast+0x253/0x293
Message from syslogd@localhost at Sat Dec 30 15:53:51 2006 ...
localhost kernel: [<c0584c22>] usb_probe_interface+0x58/0x86
Message from syslogd@localhost at Sat Dec 30 15:53:51 2006 ...
localhost kernel: [<c0552ad5>] driver_probe_device+0x45/0x9a
Message from syslogd@localhost at Sat Dec 30 15:53:51 2006 ...
localhost kernel: [<c0552c00>] __driver_attach+0x65/0x8f
Message from syslogd@localhost at Sat Dec 30 15:53:51 2006 ...
localhost kernel: [<c055255a>] bus_for_each_dev+0x37/0x59
Message from syslogd@localhost at Sat Dec 30 15:53:51 2006 ...
localhost kernel: [<c0552a36>] driver_attach+0x16/0x18
Message from syslogd@localhost at Sat Dec 30 15:53:52 2006 ...
localhost kernel: [<c0552b9b>] __driver_attach+0x0/0x8f
Message from syslogd@localhost at Sat Dec 30 15:53:52 2006 ...
localhost kernel: [<c0552252>] bus_add_driver+0x6f/0x10d
Message from syslogd@localhost at Sat Dec 30 15:53:52 2006 ...
localhost kernel: [<c0584a3f>] usb_register_driver+0x65/0xcb
Message from syslogd@localhost at Sat Dec 30 15:53:52 2006 ...
localhost kernel: [<f8d6f4f9>] loader_init+0x1c7/0x1fd [ndiswrapper]
Message from syslogd@localhost at Sat Dec 30 15:53:52 2006 ...
localhost kernel: [<f8d7b043>] wrap_procfs_init+0x56/0xa3 [ndiswrapper]
Message from syslogd@localhost at Sat Dec 30 15:53:52 2006 ...
localhost kernel: [<f882207f>] wrapper_init+0x7f/0xb9 [ndiswrapper]
Message from syslogd@localhost at Sat Dec 30 15:53:52 2006 ...
localhost kernel: [<c043f237>] sys_init_module+0x17de/0x1977
Message from syslogd@localhost at Sat Dec 30 15:53:52 2006 ...
localhost kernel: [<c0404013>] syscall_call+0x7/0xb
Message from syslogd@localhost at Sat Dec 30 15:53:53 2006 ...
localhost kernel: =======================
Message from syslogd@localhost at Sat Dec 30 15:53:53 2006 ...
localhost kernel: Code: 14 f0 dc f8 56 68 a0 0f 00 00 ff b0 30 1c 00 00 ff d7 8b 45 14 56 53 89 b0 30 1c 00 00 ff 75 14 ff d7 56 68 8b 13 00 c0 89 75 14 <ff> 35 04 00 00 00 ff 15 30 f0 dc f8 83 c4 0c b8 06 00 01 c0 eb
Message from syslogd@localhost at Sat Dec 30 15:53:53 2006 ...
localhost kernel: EIP: [<f8dcf789>] 0xf8dcf789 SS:ESP 0068:ec0babc4
Everything is detected but my system hangs at the last line of code after I run modprobe ndiswrapper
EDIT2:
[root@localhost ~]# /usr/sbin/ndiswrapper -m
adding "alias wlan0 ndiswrapper" to /etc/modprobe.d/ndiswrapper ...
couldn't add module alias: at /usr/sbin/ndiswrapper line 705.
I read that you should try to run 'ndiswrapper -m' before running modprobe ndiswrapper. Here is my error when doing so.
Varean
2006-12-31, 09:43 AM CST
Alright so I was reading over at Ubuntu Forums that you don't even need to run an 'ndiswrapper -m' as long as it shows up in /etc/modprobe.d/ndiswrapper.
cat /etc/modprobe.d/ndiswrapper
show:
alias wlan0 ndiswrapper
However, when I run a 'iwconfig wlan0', the system spews out the same long error message I got when modprobing ndiswrapper.
Any ideas why this is happening?
blue13130
2006-12-31, 11:00 AM CST
post the output of these two commands
rpm -q kernel
rpm -qa | grep ndiswrapper
[sanjay@laptop ~]$ rpm -q kernel
kernel-2.6.18-1.2868.fc6
[sanjay@laptop ~]$ rpm -qa |grep ndiswrapper
ndiswrapper-1.31-1
kernel-module-ndiswrapper-2.6.18-1.2868.fc6-1.31-1
Varean
2006-12-31, 11:30 AM CST
[Varean@localhost ~]$ rpm -q kernel
kernel-2.6.18-1.2798.fc6
kernel-2.6.18-1.2868.fc6
[Varean@localhost ~]$ rpm -qa | grep ndiswrapper
kmod-ndiswrapper-1.25-1.2.6.18_1.2868.fc6
ndiswrapper-1.25-1.lvn6
uname -a shows that I am running the 2868 kernel.
blue13130
2006-12-31, 01:12 PM CST
try running "depmod -a" as it might give you a better understanding of what the error is.
http://ndiswrapper.sourceforge.net/mediawiki/index.php/Installation#Load_module
Varean
2006-12-31, 07:49 PM CST
After I run depmod -a, modprobe ndiswrapper shows this:
Message from syslogd@localhost at Sat Dec 30 15:53:49 2006 ...
localhost kernel: Oops: 0000 [#1]
Message from syslogd@localhost at Sat Dec 30 15:53:49 2006 ...
localhost kernel: SMP
Message from syslogd@localhost at Sat Dec 30 15:53:49 2006 ...
localhost kernel: CPU: 0
Message from syslogd@localhost at Sat Dec 30 15:53:49 2006 ...
localhost kernel: EIP is at 0xf8dcf789
Message from syslogd@localhost at Sat Dec 30 15:53:49 2006 ...
localhost kernel: eax: f7ffc3c0 ebx: 00003538 ecx: f7ffc3c0 edx: f7ffc3c0
Message from syslogd@localhost at Sat Dec 30 15:53:49 2006 ...
localhost kernel: esi: 00000000 edi: f8d722b8 ebp: ec0babdc esp: ec0babc4
Message from syslogd@localhost at Sat Dec 30 15:53:49 2006 ...
localhost kernel: ds: 007b es: 007b ss: 0068
Message from syslogd@localhost at Sat Dec 30 15:53:49 2006 ...
localhost kernel: Process modprobe (pid: 3069, ti=ec0ba000 task=f471ad90 task.ti=ec0ba000)
Message from syslogd@localhost at Sat Dec 30 15:53:49 2006 ...
localhost kernel: Stack: c000138b 00000000 e612b8e0 dc8d5824 dc8d5400 e612b5e0 dc8d5400 f8d7da7c
Message from syslogd@localhost at Sat Dec 30 15:53:49 2006 ...
localhost kernel: ec0bac14 ec0bac10 00000000 00000000 dc8d5824 dc8d5824 c180a360 00000001
Message from syslogd@localhost at Sat Dec 30 15:53:49 2006 ...
localhost kernel: 00000000 ec0bac08 00000000 00000000 dc8d5824 e612b5e0 f8d7db85 e612ba80
Message from syslogd@localhost at Sat Dec 30 15:53:49 2006 ...
localhost kernel: Call Trace:
Message from syslogd@localhost at Sat Dec 30 15:53:49 2006 ...
localhost kernel: Inexact backtrace:
Message from syslogd@localhost at Sat Dec 30 15:53:49 2006 ...
localhost kernel: [<f8d7da7c>] miniport_init+0x9d/0x124 [ndiswrapper]
Message from syslogd@localhost at Sat Dec 30 15:53:49 2006 ...
localhost kernel: [<f8d7db85>] NdisDispatchPnp+0x71/0x795 [ndiswrapper]
Message from syslogd@localhost at Sat Dec 30 15:53:50 2006 ...
localhost kernel: [<f8d78884>] IoAllocateIrp+0x67/0x74 [ndiswrapper]
Message from syslogd@localhost at Sat Dec 30 15:53:50 2006 ...
localhost kernel: [<f8d79178>] IoBuildAsynchronousFsdRequest+0x2d/0x132 [ndiswrapper]
Message from syslogd@localhost at Sat Dec 30 15:53:50 2006 ...
localhost kernel: [<f8d74a38>] get_current_nt_thread+0xad/0xbc [ndiswrapper]
Message from syslogd@localhost at Sat Dec 30 15:53:50 2006 ...
localhost kernel: [<f8d7928a>] IoQueueThreadIrp+0xd/0xc7 [ndiswrapper]
Message from syslogd@localhost at Sat Dec 30 15:53:50 2006 ...
localhost kernel: [<f8d785dc>] IofCallDriver+0x2e/0x5c [ndiswrapper]
Message from syslogd@localhost at Sat Dec 30 15:53:50 2006 ...
localhost kernel: [<f8d7a7b6>] IoSendIrpTopDev+0xad/0xfb [ndiswrapper]
Message from syslogd@localhost at Sat Dec 30 15:53:50 2006 ...
localhost kernel: [<f8d7aa85>] pnp_start_device+0x47/0x8e [ndiswrapper]
Message from syslogd@localhost at Sat Dec 30 15:53:50 2006 ...
localhost kernel: [<f8d7acdf>] wrap_pnp_start_device+0x213/0x234 [ndiswrapper]
Message from syslogd@localhost at Sat Dec 30 15:53:51 2006 ...
localhost kernel: [<c0552b9b>] __driver_attach+0x0/0x8f
Message from syslogd@localhost at Sat Dec 30 15:53:51 2006 ...
localhost kernel: [<f8d7af40>] wrap_pnp_start_usb_device+0xb2/0xb9 [ndiswrapper]
Message from syslogd@localhost at Sat Dec 30 15:53:51 2006 ...
localhost kernel: [<c041e580>] __wake_up+0x2a/0x3d
Message from syslogd@localhost at Sat Dec 30 15:53:51 2006 ...
localhost kernel: [<c05cc433>] netlink_broadcast+0x253/0x293
Message from syslogd@localhost at Sat Dec 30 15:53:51 2006 ...
localhost kernel: [<c0584c22>] usb_probe_interface+0x58/0x86
Message from syslogd@localhost at Sat Dec 30 15:53:51 2006 ...
localhost kernel: [<c0552ad5>] driver_probe_device+0x45/0x9a
Message from syslogd@localhost at Sat Dec 30 15:53:51 2006 ...
localhost kernel: [<c0552c00>] __driver_attach+0x65/0x8f
Message from syslogd@localhost at Sat Dec 30 15:53:51 2006 ...
localhost kernel: [<c055255a>] bus_for_each_dev+0x37/0x59
Message from syslogd@localhost at Sat Dec 30 15:53:51 2006 ...
localhost kernel: [<c0552a36>] driver_attach+0x16/0x18
Message from syslogd@localhost at Sat Dec 30 15:53:52 2006 ...
localhost kernel: [<c0552b9b>] __driver_attach+0x0/0x8f
Message from syslogd@localhost at Sat Dec 30 15:53:52 2006 ...
localhost kernel: [<c0552252>] bus_add_driver+0x6f/0x10d
Message from syslogd@localhost at Sat Dec 30 15:53:52 2006 ...
localhost kernel: [<c0584a3f>] usb_register_driver+0x65/0xcb
Message from syslogd@localhost at Sat Dec 30 15:53:52 2006 ...
localhost kernel: [<f8d6f4f9>] loader_init+0x1c7/0x1fd [ndiswrapper]
Message from syslogd@localhost at Sat Dec 30 15:53:52 2006 ...
localhost kernel: [<f8d7b043>] wrap_procfs_init+0x56/0xa3 [ndiswrapper]
Message from syslogd@localhost at Sat Dec 30 15:53:52 2006 ...
localhost kernel: [<f882207f>] wrapper_init+0x7f/0xb9 [ndiswrapper]
Message from syslogd@localhost at Sat Dec 30 15:53:52 2006 ...
localhost kernel: [<c043f237>] sys_init_module+0x17de/0x1977
Message from syslogd@localhost at Sat Dec 30 15:53:52 2006 ...
localhost kernel: [<c0404013>] syscall_call+0x7/0xb
Message from syslogd@localhost at Sat Dec 30 15:53:53 2006 ...
localhost kernel: =======================
Message from syslogd@localhost at Sat Dec 30 15:53:53 2006 ...
localhost kernel: Code: 14 f0 dc f8 56 68 a0 0f 00 00 ff b0 30 1c 00 00 ff d7 8b 45 14 56 53 89 b0 30 1c 00 00 ff 75 14 ff d7 56 68 8b 13 00 c0 89 75 14 <ff> 35 04 00 00 00 ff 15 30 f0 dc f8 83 c4 0c b8 06 00 01 c0 eb
Message from syslogd@localhost at Sat Dec 30 15:53:53 2006 ...
localhost kernel: EIP: [<f8dcf789>] 0xf8dcf789 SS:ESP 0068:ec0babc4
Then gives me a command line. I try to run iwconfig wlan0 after that but that hangs my system.
blue13130
2007-01-01, 09:27 AM CST
not sure why this is happening. Perhaps you can try building your own rpm from the latest ndiswrapper source and seeing if that helps. If you wish to try building your own rpm, let me know if you require assistance.
Varean
2007-01-01, 09:51 AM CST
I think I could use some help. I just switched over to Fedora from Gentoo and I don't really know how to build an rpm. :confused:
blue13130
2007-01-01, 12:36 PM CST
To start you will need the packages rpmdevtools, rpm-build and kernel-devel installed.
yum install rpmdevtools kernel-devel rpm-build
We will also need to remove all current ndiswrapper packages that you have installed
rpm -qa | grep ndiswrapper
---list of packages
(as root)
rpm -e (the listed package names)
Next go to the ndiswrapper site and download the source package for the latest version
http://sourceforge.net/projects/ndiswrapper/
I believe the latest version is 1.33, I haven't used that one yet, I am currently using 1.31. Pick whichever you wish to use.
The next steps will be to create the build environment in your home directory, create the rpms from the source package, install the rpms.
1. Build the environment. As your normal users issue the command:
fedora-buildrpmtree
(this will create a directory called rpmbuild in your home directory)
2. change directories to the location where you downloaded the source package and issue the command rpmbuild -tb ndiswrapper-1.31.tar.gz (or ...1.33.tar.gz if that is the version you have)
rpmbuild -tb ndiswrapper-1.31.tar.gz
do this as normal user, the option -tb says to build a binary rpm package from the given tarball source package which includes a .spec file
3. The rpms should build now and will be placed in the location ~/rpmbuild/RPMS/i.... Navigate to that directory and install both rpms (ndiswrapper and kernel-module) as root.
rpm -ivh *.rpm
Next proceed with the configuration steps outlined on the ndiswrapper wiki to install your driver and get it running. Hopefully it works!
PS. I never found my system to work with the file /etc/modprobe.d/ndiswrapper. I always needed to add the line "alias wlan0 ndiswrapper" to the file /etc/modprobe.conf
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.