LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 05-06-2006, 11:17 PM   #1
LocustPlague
LQ Newbie
 
Registered: Mar 2006
Distribution: Ubuntu 5.10 Breezy Badger
Posts: 19

Rep: Reputation: 0
ndiswrapper problem


Okay, so I had an Airlink 101 5025 (I think) cardbus adapter, but it didn't work worth crap. I couldn't get it to be even visible in Ubuntu. lspci wouldn't show it, and other cardbus cards just wouldn't show up either.

Fast-forward through a couple other attempts at getting the card to work...

I bought a D-Link DWL-G122 USB dongle (I got it on sale for 20 bucks). I'm having a little trouble getting it to work, though. (But I'm further along than I was with the cardbus option).

When I do a lsusb, the dongle shows up.
When I use ndiswrapper to load the drivers, then an
ndiswrapper -l
the drivers and the hardware are present.

Here's where the trouble starts...when I do a
modprobe ndiswrapper
the command never "finishes". The kernel didn't crash (because I can still type in the terminal window) but it doesn't DO anything. I mean, the window basically functions similar to a text editing window from there on. I've let it sit for an hour (just out of curiosity) to see if it would work.

How do you suggest I go about figuring this out?
 
Old 05-06-2006, 11:53 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
There are a couple really quick and easy things to try.
As root:
ldconfig
depmod -a

The ldconfig will update your library paths.
The depmod command may have been interrupted during the installation of ndiswrapper itself.
You could also restart the hotplug service before doing the "modprobe ndiswrapper" phase. Perhaps one of the usb modules wasn't loaded in for some reason.

I admit the the first two are long shots, but maybe a combination of two problems caused the stall.

Also, being it is a usb device, maybe hotplugging took care of the "modprobe ndiswrapper" command for you and you tried to re-modprobe it, or both where happening simultaneously. This is another longshot because modprobing a module again shouldn't hurt. It shouldn't do anything.

If for example you want to try unloading and reloading the .sys driver into ndiswrapper, make sure you first disable the interface (as in "ifdown <interface name>" before removing the ndiswrapper.ko kernel module "rmmod ndiswrapper". Not doing so, if the interface is up will lock up the kernel.

Power down the computer, boot it back up, follow your log in a terminal: "sudo tail -f /var/log/messages", and plug it in. See how far along the installation of the device progresses automatically.

Check if the device is present with the "ifconfig" command and the "iwconfig" commands.
If the device is present but you don't have an IP address, enter the command "sudo /usr/sbin/iwlist <interfacename> scan"

If you see an Access Point listed, the device is working and you need to configure it for your network and authentication. The "iwconfig" and "iflist" commands are supplied by "wireless-tools". You will also need to make sure that you have "wpa_supplicant" installed. Not having Ubuntu, I don't know whether you can use its network interface configuration to configure wireless and enter the key(s), or if you need to do this manually. In any case, if you are using DHCP, the authentication needs to be working before you will get an IP address. That's using iwlist to scan for an AP is a handy way to find out if your wireless device is working. If the scan works, the device setup was successful and you can procede with the networking setup.

Last edited by jschiwal; 05-06-2006 at 11:54 PM.
 
Old 05-09-2006, 12:08 AM   #3
LocustPlague
LQ Newbie
 
Registered: Mar 2006
Distribution: Ubuntu 5.10 Breezy Badger
Posts: 19

Original Poster
Rep: Reputation: 0
Nope...no dice. I tried the first two, and got no results.

I tried the rmmod ndiswrapper but got the error, "Module ndiswrapper does not exist in /proc/modules"

Thanks for the attempt, though

Any other ideas?

Oh yeah, the device isn't present in the ifconfig or iwconfig...


UPDATE!!!

Okay, so I was fooling around and tried to modprobe the ndiswrapper, it hung up, as it always does.

So I restart the hotplug system while it's doing this (hoping to get control of my stuff back so I don't have to shut the computer down each time) and that works. I can check the lsusb again. So I tried a modprobe now...and IT WORKS! now I just have to get this stuff all set up and I'll be golden!

When I restart the system, I have to modprobe the ndiswrapper, then go into my network configuration and activate the wlan0 connection. This isn't too bad, but I have to make sure the dongle isn't plugged in, or else startup stalls until I take it out...

Last edited by LocustPlague; 05-09-2006 at 09:53 AM.
 
Old 05-09-2006, 07:03 PM   #4
tskears
Member
 
Registered: Apr 2005
Location: Ottawa, Canada.
Distribution: PCLinuxOS.
Posts: 122

Rep: Reputation: 15
I went through this exactly the same with a Belkin USB adapter. When I did "modprobe ndiswrapper", the command never completed.

I finally downloaded a recent version of ndiswrapper and built it from source.

See http://www.linuxquestions.org/questi...d.php?t=390690

I finally got back to it and successfully built ndiswrapper, but that was a while ago and the memories of how exactly I did it have faded.

But it can be made to work...
 
Old 05-09-2006, 11:19 PM   #5
LocustPlague
LQ Newbie
 
Registered: Mar 2006
Distribution: Ubuntu 5.10 Breezy Badger
Posts: 19

Original Poster
Rep: Reputation: 0
It works just fine right now, except for every once in a while, it stalls when I try to do ANYTHING related to the usb when the dongle is plugged in (lsusb, modprobe, even restarting hotplug) but usually after a reboot (two is the most I've ever had to do) it works just fine...no modprobe or anything required...this is good enough for me, at the moment
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem of ndiswrapper andrewnow Linux - Software 2 03-28-2006 06:35 PM
ndiswrapper problem. xVern Linux - Hardware 2 09-07-2005 06:39 PM
ndiswrapper problem ultimatenoob Linux - Newbie 3 06-21-2005 04:34 AM
ndiswrapper problem PEACEYALL Debian 2 01-25-2005 08:20 AM
ndiswrapper problem siskel Linux - Wireless Networking 5 10-31-2004 09:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 06:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration