LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-22-2006, 09:56 AM   #1
dyara
LQ Newbie
 
Registered: Aug 2006
Posts: 5

Rep: Reputation: 0
trying to install DWL-G122 adapter on Ubuntu 6.06 and I cannot get it to run


Hi,

I am a total newbie, who started playing with Linux a month ago, and now I am trying to install the DWL-G122 adapter. I have some experience, as I installed a wireless PCI adapter before, so I assumed it cannot be very different from that.
I am using Ubuntu 6.06 . I loaded the drivers using ndiswrapper , but it doesn't seem to be working , since none of the adapter led's are on. Also I cannot configure the wlan0 interface. When I type "iwconfig" ,I get the following:

user@user-desktop:~$ iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

sit0 no wireless extensions.

user@user-desktop:~$ sudo dhclient wlan0
SIOCSIFADDR: No such device
wlan0: ERROR while getting interface flags: No such device
wlan0: ERROR while getting interface flags: No such device
Bind socket to interface: No such device


Thank you for any help !
 
Old 08-22-2006, 10:33 AM   #2
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
what does ndiswrapper -l list? Should say hardware present, and something else. Also what do you get when you modprobe ndiswrapper?
 
Old 08-22-2006, 10:43 AM   #3
dyara
LQ Newbie
 
Registered: Aug 2006
Posts: 5

Original Poster
Rep: Reputation: 0
ok...here is what I get:

user@user-desktop:~$ ndiswrapper -l
Installed drivers:
netrtusb driver installed

and when I modprobe ndiswrapper I get nothing !

One question though : do I have to tell ndiswrapper specifically for what device to use the drivers? I mean should I have something like :

user@user-desktop: sudo ndoswrapper -d xxxx:xxxx netrtusb ?

thanks
 
Old 08-22-2006, 10:58 AM   #4
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
When you installed you driver module in linux did you do a depmod and ndiswrapper -m to write your configuration. also stick in your usb stick and run ndiswrapper -l that way it will also show device present and then do a modprobe ndiswrapper.
 
Old 08-22-2006, 02:45 PM   #5
dyara
LQ Newbie
 
Registered: Aug 2006
Posts: 5

Original Poster
Rep: Reputation: 0
still not working

Let me tell you the steps that I am doing :

1. downloaded and installed ndiswrapper version 1.9 (already tested it, installed the wireless PCI adapter and is working just fine )
2. downloaded DWL-G122 drivers from D-Link website
3. I go into the directory where I unzipped the drivers and then I execute the following commands:

# sudo ndiswrapper -i NetRTUSB.inf
# ndiswrapper -l
Installed drivers:
netrtusb driver installed

# sudo modprobe ndiswrapper
# ndiswrapper -l
Installed drivers:
netrtusb driver installed

so it still does not show like the hardware is present ...which is weird.

and then if I type
# lsusb
I get :

Bus 005 Device 002: ID 2001:3704 D-Link Corp. [hex] DWL-G122 802.11g rev. A2
Bus 005 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000

# iwconfig

lo no wireless extensions.

eth0 no wireless extensions.

sit0 no wireless extensions.



so yeah...I don't know what else to do

Thank you for your help
 
Old 08-22-2006, 03:34 PM   #6
dyara
LQ Newbie
 
Registered: Aug 2006
Posts: 5

Original Poster
Rep: Reputation: 0
I tried to do the following :
#lsusb
Bus 005 Device 004: ID 2001:3704 D-Link Corp. [hex] DWL-G122 802.11g rev. A2
Bus 005 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000

# sudo ndiswrapper -i NetRTUSB.inf
# ndiswrapper -l
Installed drivers:
netrtusb driver installed
# sudo ndiswrapper -d 2001:3704 netrtusb
# ndiswrapper -l
Installed drivers:
netrtusb driver installed, hardware present
# modprobe ndiswrapper

apparently it sees the hardware only if I tell it the address. The wlan0 interface is still not there and if I restart the system , when I type "dmesg" , it looks like ndiswrapper is loading the drivers but then it says that the device could not be configured using those drivers and it disconnects the device.

so is it correct to do it like this or am I doing it wrong? Is that the address that I should specify or is it a different one ?

Thanks
 
Old 08-22-2006, 03:41 PM   #7
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
This was the point that I got to before I just lost it. How about we try a different route. What revision is your adapter. If it is b(which I had before I broke it on accident) then get this module driver.

then do the following.
Code:
tar -zxvf rt2570-1.1.0-b2.tar.gz
cd rt2570<directory
make
make install
depmod -a
modprobe rt2570
sudo gedit /etc/network/interfaces 

For Wep 

iface rausb0 inet dhcp
wireless-essid myapname
wireless-key s:myplaintextpassword
auto rausb0


For WPA

iface rausb0 inet dhcp
pre-up ifconfig rausb0 up
pre-up iwconfig rausb0 mode managed
pre-up iwpriv rausb0 enc 3
pre-up iwpriv rausb0 auth 3
pre-up iwconfig rausb0 essid myapname
pre-up iwpriv rausb0 wpapsk myplaintextwpapassword
pre-up iwconfig rausb0 essid myapname
auto rausb0

{At this point Insert USB dongle into machine or laptop}

sudo ifup rausb0

or

sudo dhclient rausb0
Hopefully this will get you going. I had trouble with ndiswrapper and finally gave up on it. It is one of those things that has left a bad taste in my mouth. Good luck.
 
Old 08-22-2006, 03:43 PM   #8
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
Here is where I got my information just in case you run into any trouble or need better instructions.
 
Old 08-22-2006, 04:33 PM   #9
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 997
Blog Entries: 15

Rep: Reputation: 136Reputation: 136
Hi,

Got a DWL-g122 rev B1. working in Ubuntu out of the box. But I have a little idea :

I know rev B1 uses the Ralik chip, and I think that the A2 uses a prism chip (A2 is what you got)
Quote:
Bus 005 Device 004: ID 2001:3704 D-Link Corp. [hex] DWL-G122 802.11g rev. A2
netrtusb.inf was the driver I was using with ndiswrapper in Mandriva, and it worked perfectly, try finding prism drivers; you should be able to get native drivers from here : http://jbnote.free.fr/prism54usb/ or try searching for prism in synaptic (I found something there)

good luck
 
Old 08-24-2006, 10:28 AM   #10
dyara
LQ Newbie
 
Registered: Aug 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Thank you all for your help !

It is finally working !!!!! ok...the problem was that I had the wrong driver for the adapter...in case anybody has troubles with the DWL-G122 rev A2 , you should download the specific driver for the revision A2 :
http://support.dlink.com/
select DWL G122 from the drop-down menus and then download the driver for the hardware revision needed.

What else ? Oh... I used Ubuntu 6.06 and ndiswrapper-1.8 and the WinXP driver ( PRISMA02.inf ) for the DWL-G122 revA2 adapter. Also I am using the D-Link DI-524 wireless router.

It worked beautifully from the first try. After modprobing ndiswrapper , I restarted the computer and it worked ! Even the adapter's leds are blinking !

Cheers

Last edited by dyara; 08-24-2006 at 10:36 AM.
 
Old 02-06-2007, 12:48 AM   #11
RedSyphon
LQ Newbie
 
Registered: Feb 2007
Posts: 4

Rep: Reputation: 0
Thumbs up

Thank you a ton for this thread!

I have the exact card you did and could not get it to work no matter what... Finally found this thread and the direct links and example steps allowed me to fix my problem within 5mins.

I have read probably over 5 how-to articles today on getting the DWL-G122 working and this thread was the only one to actually work in the end.

Thanks Again
~RedSyphon

Note: My issue was the I had somehow gotten both versions 1.1 & 1.8 of ndsiwrapper-utils installed for anyone who doesn't seem to have luck in the future.
 
Old 02-06-2007, 06:49 AM   #12
shyamarjarapu
LQ Newbie
 
Registered: Sep 2005
Location: Kearny, NJ
Posts: 4

Rep: Reputation: 0
Quote:
Originally Posted by RedSyphon
Thank you a ton for this thread!

I have the exact card you did and could not get it to work no matter what... Finally found this thread and the direct links and example steps allowed me to fix my problem within 5mins.

I have read probably over 5 how-to articles today on getting the DWL-G122 working and this thread was the only one to actually work in the end.

Thanks Again
~RedSyphon

Note: My issue was the I had somehow gotten both versions 1.1 & 1.8 of ndsiwrapper-utils installed for anyone who doesn't seem to have luck in the future.
RedSyphon, is you linux 32bit or 64bit? Even I have same card and was trying to get it work, but I think porting 32bit windows .inf file didn't work for 64bit linux. Do you /anyone have any ideas to help me out?

Shyam
 
Old 02-07-2007, 04:23 PM   #13
RedSyphon
LQ Newbie
 
Registered: Feb 2007
Posts: 4

Rep: Reputation: 0
srry mine is the 32bit Ubuntu distro and i'm WAY to new to linux to offer any suggestions
 
Old 02-07-2007, 04:26 PM   #14
shyamarjarapu
LQ Newbie
 
Registered: Sep 2005
Location: Kearny, NJ
Posts: 4

Rep: Reputation: 0
Quote:
Originally Posted by RedSyphon
srry mine is the 32bit Ubuntu distro and i'm WAY to new to linux to offer any suggestions
Thanks dude. I am no different from you. I am planning to buy a new card after wasting about 8-10 hours while searching to find the drivers.
 
  


Reply

Tags
drivers, dwlg122, linux



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
How can I get the D-Link AirPlus G DWL-G122 Wireless USB Adapter working under Debian No_Good_With_Linux Debian 3 09-14-2006 12:58 PM
D-Link DWL-G122 A1 on Ubuntu karjaneth Linux - Newbie 1 03-02-2006 03:07 PM
Installing the D-Link AirPlus G DWL-G122 Wireless USB Adapter on SuSE 9.2 SuSE starter Linux - Wireless Networking 28 02-05-2006 02:27 PM
dlink dwl-g122 Version A usb wireless network adapter darkraider Linux - Hardware 2 01-22-2006 10:02 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:49 PM.

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