trying to install DWL-G122 adapter on Ubuntu 6.06 and I cannot get it to run
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,032
Rep:
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.
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:
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
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
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 ?
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,032
Rep:
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.
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)
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 !
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.