LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 07-06-2005, 10:27 AM   #16
Adrian Baker
Member
 
Registered: Apr 2004
Distribution: PCLinuxOS 2007 on my laptop and Suse 10.2 on my desktop.
Posts: 341

Rep: Reputation: 30

Ok, I've got it working.... sort of.

I now got the message that the driver and hardware are present and working.... but then your excellent guide talks about YaST... which I don't have!

What do I do next to ge my computer to recognise and use the device?

Incidentally, modprobe does NOT make my dongle light up as your guide suggests.

Thanks for listening!
Adrian
 
Old 07-08-2005, 01:02 PM   #17
SuSE starter
LQ Newbie
 
Registered: Mar 2005
Posts: 17

Original Poster
Rep: Reputation: 0
Hello there

I have installed this device on Mandrake 10.1 successfully as well but now I use the SuSE distribution instead.

I will explain to you how I configured the card once ndiswrapper was properly installed.

I have to point out that to install ndiswrapper correctly on Mandrake 10.1 you have to make sure that the file ndiswrapper.ko is NOT present in the path :

/lib/modules/-your kernel edition-/3rdparty/drivers or /lib/modules/-your kernel version-/3rdparty

If you see the ndiswrapper.ko there delete it so that you can successfully apply the modprobe ndiswrapper command

If you don't see any error with the modprobe command then the lights of the device should turn on and you can configure the settings using the Mandrake Control Center.

Select Network from the left column list and then New Connection

You will then be asked to choose what type of connection you want to setup so select Wireless from the list of options

The next section will ask you whether you want to manually load a driver or select one from a list. Select manually load a driver and pick wlan0 from the menu

In the following section you will have a chance to enter the relative values for the IP and DNS etc that correspond to your wireless network. Once you finish completing the section with the right values and you reach the end of the setup, you will have established a connection to your access point which will allow you to use the internet.

I hope that these steps help you setup your device properly and manage to get the internet working in the end.
 
Old 07-08-2005, 04:26 PM   #18
Adrian Baker
Member
 
Registered: Apr 2004
Distribution: PCLinuxOS 2007 on my laptop and Suse 10.2 on my desktop.
Posts: 341

Rep: Reputation: 30
Hi there - thanks for the answer

Well I went to /lib/modules/2.6.8.1-12mdk/kernel/3rdparty

and deleted the ndiswrapper folder there as you said.

I then tried modprobe ndiswrapper (which used to work!) and now I get the error message:

FATAL: Could not open 'lib/modules/2.6.8.1-12mdk/kernel/3rdparty/ndiswrapper/ndiswrapper.ko.gz' : No such file or directory


Well I just deleted it so perhaps thats why!!!

I guess I deleted the wrong thing?

Anyway, both before this and after, if I do an 'Iwconfig' it doesn't find wlan0 despite me adding the suggested code in your posting. I posted elsewhere on this forum for help on this. I wrote:


First I installed ndiswrapper:

ndiswrapper is installed, with XP drivers from the CD.
ndiswrapper -l shows driver present hardware present.

modprobe ndiswrapper gives no error report

However, as is the case with many people on various forums, when I type in Iwconfig I get a list of devices, but NOT wlan0.

I added the code

alias wlan0 ndiswrapper
install ndiswrapper /sbin/modprobe --ignore-install ndiswrapper && { loadndisdriver 2001:3c00 /etc/ndiswrapper/netrtusb/rt2500usb.sys; /etc/ndiswrapper/netrtusb/netrtusb.inf; }

to my /etc/modprobe.conf file.

I wasn't sure about the 2001:3c00 but I typed 'lsusb' to find my USB D-link device and got the reply:

BUS 004 Device 003 : ID 2001:3c00 D-link Corp. [hex]

so I guessed that the 2001:3c00 was the ID to use.

OK, so what am I doing wrong? My USB D-link LED doesn't light up and the computer cant seem to find wlan0


I'm really fed up with this now. I would SO appreciate some more help to get this working.
 
Old 07-08-2005, 04:46 PM   #19
Adrian Baker
Member
 
Registered: Apr 2004
Distribution: PCLinuxOS 2007 on my laptop and Suse 10.2 on my desktop.
Posts: 341

Rep: Reputation: 30
Hmm more problems!

I looked for the files that I sent to the wastebin to get them back..... and they are no longer there!

I know that I'm new to Linux but boy oh boy this is frustrating!
I'm determined to succeed though, so please keep the ideas coming my way....
 
Old 07-09-2005, 07:27 PM   #20
SuSE starter
LQ Newbie
 
Registered: Mar 2005
Posts: 17

Original Poster
Rep: Reputation: 0
Hi again Adrian,

It's unfortunate you're running into problems with this device on Mandrake 10.1 but believe me I got it working successfully with the steps I outlined for you.

I suggest you uninstall ndiswrapper following the instructions on this page :

http://ndiswrapper.sourceforge.net/m....php/Uninstall

and then compile and install ndiswrapper-1.1 once again and use the WinXP driver like you did before. I do recommed you use the ndiswrapper 1.1 version rather than the 0.9 version that comes with the Mandrake CD.

I'm convinced that once you compile and install ndiswrapper after you have deleted that ndiswrapper.ko file from the /lib/modules/-your kernel version-/3rdparty directory you will see that the lights of the device will turn on and you can configure it according to your wireless network settings.

I had the same problem when I was using Mandrake 10.1 and when I installed ndiswrapper without deleting that file, the lights of the device wouldn't flash after I entered modprobe ndiswrapper even though I received no error messages.

Even on SuSE 9.2 that I'm using now, I had to delete that same file before I installed ndiswrapper otherwise again the device would never turn on after writing modprobe ndiswrapper in order for me to be able to configure it.

Best of luck and let me know how you get along

Regards

I.G.
 
Old 07-10-2005, 06:31 AM   #21
SuSE starter
LQ Newbie
 
Registered: Mar 2005
Posts: 17

Original Poster
Rep: Reputation: 0
I'm just going to outline for you the steps I took from the start when I used the device with Mandrake 10.1 and had it working without any problems.
The drivers you need to use for this device are the WinXP drivers from the D-Link CD and the files you have to copy are NetRTUSB.cat, NetRTUSB.inf, rt2500usb.sys and rt25_98.sys
After copying these files from the CD to a folder on my Linux desktop I took did the following :

1)
Deleted the /lib/modules/2.6.8.1-12mdk/kernel/3rdparty/ndiswrapper folder

2)
Downloaded ndiswrapper version 1.1 from sourceforge.net
I didn't install ndiswrapper version 0.9 from the Mandrake CD because the 0.9 verision will not identify the D-Link USB wireless adapter when you use the WinXP drivers with it.

3)
Installed the kernel source and the packages gcc, binutils and glibc-devel from the Mandrake CD because they are needed to compile ndiswrapper successfully. You might have these packages already installed but I didn't and had to add them after I installed Mandrake 10.1 on my laptop.

4)
Compiled and installed ndiswrapper with make and then make install

5)
Added the WinXP drivers using the command

ndiswrapper -i /...path to the location where you saved the WinXP drivers.../NetRTUSB.inf

6)
Checked with ndiswrapper -l to see that both the driver and hardware is present

7)
Added an alias for ndiswrapper in modprobe.conf using ndiswrapper -m

8)
Activated the ndiswrapper module using modprobe ndiswrapper

9)
Checked with lsmod to see if the ndiswrapper module has initiated successfully.
It appears as a separate module in the lsmod output and also as module used by usbcore

After these steps the Lnk light of the device will also be on and you can proceed to configure it according to your wireless network settings.
N.B. If you have setup your wireless network with encryption then you will not see the Lnk light turn on until you configure your device further using the Mandrakelinux Control Center

Start the Control Center by selecting the Configure Your Computer option from the Start menu.
From the Control Center menu select Network and Internet and then choose New connection
In the following list that appears select Wireless connection and from the subsequent menu where you're asked to select a network interface, choose the device wlan0:ANI |802.11gW
If you don't see that option there it means that there was a problem with the installation of the ndiswrapper or there may be an error with the activation of the ndiswrapper module.
However, you should see the device listed there if you have followed the steps I have outlined above.

Once you select your device and proceed to the next menu you'll be able to enter the necessary information according to the settings of your wireless network and in the end you'll have a working internet connection using the device.

I hope that this has been of help and you have managed to get your D-Link wireless USB adapter working as well.

Regards

I.G.
 
Old 07-11-2005, 04:04 AM   #22
Adrian Baker
Member
 
Registered: Apr 2004
Distribution: PCLinuxOS 2007 on my laptop and Suse 10.2 on my desktop.
Posts: 341

Rep: Reputation: 30
Your help is MUCH appreciated. I'll try and sort it out this week. I'll let you know how I get on.

Once again, thanks for your help with this.

Adrian :-)
 
Old 07-22-2005, 04:21 PM   #23
Adrian Baker
Member
 
Registered: Apr 2004
Distribution: PCLinuxOS 2007 on my laptop and Suse 10.2 on my desktop.
Posts: 341

Rep: Reputation: 30
I've now spent more than 30 hours trying to get this bl***y D-link thing to work and I give up - it is impossible. I've read so much advice about how easy it is, but nothing I do works.

I've done so much (read http://www.linuxquestions.org/questi...hreadid=344882)

but still it doesnt work.

I know that the problem is me, not Linux, but obviously it is beyond my capabilities.

I'll still play with Linux, but will have to find another way to access the net.

Last edited by Adrian Baker; 07-22-2005 at 04:23 PM.
 
Old 07-25-2005, 11:00 AM   #24
Darrel.Wilson
LQ Newbie
 
Registered: Jul 2005
Distribution: Fedora Core 4
Posts: 3

Rep: Reputation: 0
Hi,
I am new to the Linux world, and have just installed Fedora Core 4. I also have a D-Link DWL-G630 wireless PCMCIA card that I am trying to get installed. I followed the advice above and was able to install the drivers TNET1130.INF off of my original installation CD for the card using ndiswrapper. when I do a ndiswrapper -l, I see "tnet1130 driver present", but I do not see "hardware present". Also the lights are not on on the card. What else do I have to do to get Fedora to see the card? Thanks,
 
Old 07-25-2005, 01:42 PM   #25
Adrian Baker
Member
 
Registered: Apr 2004
Distribution: PCLinuxOS 2007 on my laptop and Suse 10.2 on my desktop.
Posts: 341

Rep: Reputation: 30
Hi - I'm just a newbie but in all my hours of work trying to get ndiswrapper to work, I have read in several places that ndiswrapper doesn't work well with Fedora Core kernels.

I read somewhere that you could do with downloading and using a kernel that works with the NTFS file system - apparently that helps.

Good luck!!
Adrian
 
Old 07-25-2005, 03:38 PM   #26
Adrian Baker
Member
 
Registered: Apr 2004
Distribution: PCLinuxOS 2007 on my laptop and Suse 10.2 on my desktop.
Posts: 341

Rep: Reputation: 30
I'm back, re-invigorated and again trying to get ndiswrapper working.. but still no success.

I really need help understanding a 'dmesg' output so please help if you can.

My ndiswrapper is all installed with correct drivers, but the D-Link light still doesn't light up and I can't get it to work.

Anyway, I did

modprobe ndiswrapper

and this sat thinking about it for a minute or two and then finished - but still didn't light up my D-link. I then did

dmesg

and got a very odd readout. This is what I don't understand.... (I am a newbie still!):


[root@localhost adrian]# dmesg
ing address 3
usb 4-2: reset high speed USB device using address 3
usb 4-2: reset high speed USB device using address 3
usb 4-2: reset high speed USB device using address 3
usb 4-2: reset high speed USB device using address 3
usb 4-2: reset high speed USB device using address 3
usb 4-2: reset high speed USB device using address 3
usb 4-2: reset high speed USB device using address 3
usb 4-2: reset high speed USB device using address 3
usb 4-2: reset high speed USB device using address 3
usb 4-2: reset high speed USB device using address 3
usb 4-2: reset high speed USB device using address 3


It continued to repeat the above message over 240 times and then finished with:


usb 4-2: reset high speed USB device using address 3
usb 4-2: reset high speed USB device using address 3
usb 4-2: reset high speed USB device using address 3
usb 4-2: reset high speed USB device using address 3
usb 4-2: reset high speed USB device using address 3
ndiswrapper (usb_reset_port:633): usb_reset_device() = -19
ndiswrapper (ndiswrapper_add_one_usb_dev:312): Windows driver couldn't initialize the device (C0000001)
ndiswrapper: probe of 4-2:1.0 failed with error -22
usbcore: registered new driver ndiswrapper
usb 4-2: USB disconnect, address 3
usb 4-2: new high speed USB device using address 5
[root@localhost adrian]#



OK, so why didn't it work?

According to this thread, I'm using the correct drivers, and I have now tried with the XP drivers from the CD that came with the device AND with the drivers that I downloaded from the D-Link website.

I've reinstalled, rebooted, tried with 10.1 Community, upgraded to 10.1 Official, done everything, but still no luck.

Any ideas at all -- anyone????
 
Old 07-29-2005, 12:13 AM   #27
kylnj
Member
 
Registered: May 2005
Posts: 37

Rep: Reputation: 15
hi suse starter,

well i had not get it to work last time and i am try to get it to work again.

pls see the following:



i am running fc-3 2.6.12-1.1372, since this version
didnt come with kernel source. so i try bootng into
2.6.11-1.35 instead to make the 'ndiswrapper' and copy
the ndiswrapper.ko into 2.6.12-1.1372/modify
modules.dep.




[root@localhost ~]# modprobe ndiswrapper
FATAL: Error inserting ndiswrapper
(/lib/modules/2.6.12-1.1372_FC3/misc/ndiswrapper.ko):
Invalid module format
[root@localhost ~]# dmesg|grep ndiswrapper
ndiswrapper: disagrees about version of symbol
struct_module
[root@localhost

then i try rpm to load the current (2.6.12) kernel
source so i can remake the ndiswrapper,

.
.
[root@localhost /home/tom]# rpm -i
kernel-2.6.12-1.1372_FC3.src.rpm
[root@localhost /home/tom]# rpm -q
kernel-2.6.12-1.1372_FC3.src.rpm
package kernel-2.6.12-1.1372_FC3.src.rpm is not
installed
[root@localhost /home/tom]#


it fail to load correctly.

pls help and thanks much






it would


--- tom loong <kylnj@yahoo.com> wrote:

>
> hi all,
>
> i try to get my g630 to work with ndiswrapper, but
> having problem...
> .
> .
> [root@localhost /home/tom/ndiswrapper-1.2]#
> ndiswrapper -i mrv8k51.inf
> Installing mrv8k51
> Parse error in inf. Unable to find section
> W8100PCI.zerocfg
> Parse error in inf. Unable to find section
> W8100PCI.zerocfg
> Parse error in inf. Unable to find section
> W8100PCI.zerocfg
>
>
>
> [root@localhost /home/tom/ndiswrapper-1.2]#
> ndiswrapper -l
> Installed ndis drivers:
> mrv8k51 driver present, hardware present
>
>
> ** if i pop out the card, ndiswrapper seems to
> notice
> its not there.
>
> but
>
> [root@localhost /home/tom/ndiswrapper-1.2]# modprobe
> ndiswrapper
> FATAL: Module ndiswrapper not found.
>
>
> and the LED on the card wont light up!!
>
>
>
> please comment.
>
> thanks much
>
> tom
>
 
Old 12-05-2005, 09:41 PM   #28
gta
LQ Newbie
 
Registered: Dec 2005
Posts: 1

Rep: Reputation: 0
For those using the DWL-G122 with SuSE 10.0:
There's no need to use ndiswrapper!
This is how it worked for me:
Make sure you have installed the package wireless-tools (install via YAST).
Plug in the DWL USB Stick, a window will pop up that new HW has been detected.
Start YAST, go to the network device configuration screen, where the DWL should be listed as an available but not yet configured device.
Click on the "configure" button, choose DHCP or add a static IP-Address (I haven't tried DHCP).
Set up hostnames and routing.
Go to the next screen (Button "Next")
Set the mode to "Managed", type in your ESSID, set the authentification mode to "open" and add your key.
Click on the "Next" Button and that's it!

I've had a very hard time trying to set up a DWL-G520+ (ACX111 chip) in various Distro's, after switching to SuSE 10.0 this card would not work at all. So I decided to get rid of it and bought the DWL-G122.
I was prepared to go through another hell of compiling, patching and tweaking but I somehow decided to first go for the straight forward way and it worked!!!

Good luck!
 
Old 02-05-2006, 02:27 PM   #29
R00ts
Member
 
Registered: Mar 2004
Location: Austin TX, USA
Distribution: Ubuntu 11.10, Fedora 16
Posts: 547

Rep: Reputation: 30
Working on Debian

FYI, I got it working on Debian unstable with almost no problem at all. I used this guide: http://ndiswrapper.sourceforge.net/m.../InstallDebian


Instead of using the drivers on the CD though, I downloaded them off of D-Link's website since they are probably newer. I also selected the WinXP2k drivers, not the 98 ones.


Funny thing is though, typing ndiswrapper -l says that the netrtusb driver and hardware are present, but also says:

Code:
winxp2k invalid driver!

Well whatever. It works and that's all I care about
 
  


Reply

Tags
dlink, ndiswrapper



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
DWL-122 D-link USB adapter with SUSE 9.3 bitsnedker Linux - Newbie 2 04-29-2005 08:33 AM
Is it possible to install the D-Link DWL-G122 wireless USB adapter on SuSE 8.2 ? SuSE starter Linux - Hardware 2 03-05-2005 11:20 AM
D-Link DWL-G122 (USB) not working with ndiswrapper Anders1 Linux - Wireless Networking 8 02-27-2005 10:57 AM
Mandrake 9.1 Internet: D-Link AirPlus DWL-G520 wireless PCI Adapter khurrum Mandriva 47 12-06-2004 10:43 PM
D-Link Airplus Pci Adapter and Suse 9.0 joshsterm Linux - Wireless Networking 1 02-14-2004 03:12 AM

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

All times are GMT -5. The time now is 11: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