D-Link DWL-G122 Rev C1 USB adpater has died?

Live forum: http://rt2x00.serialmonkey.com/viewtopic.php?t=4396

davidwhthomas

31-10-2007 09:34:02

I installed the rt73 module for my D-Link DWL-G122 Rev C1 USB adpater.

After restarting the computer, the OS seems to fail to register that the USB adapter is plugged in.

No lights light up on the adapter. It looks like it's dead.

However, it seems to detect it when trying

/etc/init.d/networking restart

because if I unplug it, it says it's unplugged.

If I plug it in, no lights light up at all (normally the green 'Act' and 'Link' lights flash on and off)

What's going on here? Do I give up?

Or is there a way to get it restored and working?

thanks for any advice.

DT

knaar

31-10-2007 15:13:53

Does it work on a windows machine?

Which driver are you using?

Did you compile the driver yourself? If so could you follow the testing file and compile with make debug, then insert the module with modprobe rt73 debug=15 and send us the /var/log/debug file?

Which kernel are you using?

Do you have Ubuntu? It has its own driver which you have to blacklist first before this driver will work, if you're using this driver.

And lastly, the link lights are controlled in software by the driver. If the driver isn't working, the lights won't blink. It does not mean your device is foobed, unless it was working fine before and now it quit without you doing anything (and without your computer upgrading any software, again, with ubuntu if you upgraded to gusty you'll have to recompile the driver and re-blacklist the drivers that came with ubuntu or it won't work).

hennichodernich

31-10-2007 18:21:29

I installed the rt73 module for my D-Link DWL-G122 Rev C1 USB adpater.

After restarting the computer, the OS seems to fail to register that the USB adapter is plugged in.[/quote14fc0fk6]

How do you tell? What does lsusb show?


No lights light up on the adapter. It looks like it's dead.
[/quote14fc0fk6]

What lines in the output of dmesg do appear after plugging in the adapter?



However, it seems to detect it when trying

/etc/init.d/networking restart

because if I unplug it, it says it's unplugged.
[/quote14fc0fk6]

Have you tried to get it running by use of iwpriv, iwconfig and ifconfig?

regards
Henning

davidwhthomas

31-10-2007 20:23:26

Thanks for your replies! -)

[b3lbdhj9l]@knaar[/b3lbdhj9l]

[quote3lbdhj9l]Does it work on a windows machine? [/quote3lbdhj9l]
Yes, I tested that to make sure it wasn't completely dead, plugged it in and it worked straight away.
[quote3lbdhj9l]Which driver are you using? [/quote3lbdhj9l]
It's the rt73 driver from here http//rt2x00.serialmonkey.com/rt73-cvs-daily.tar.gz
[quote3lbdhj9l]Which kernel are you using? [/quote3lbdhj9l]
I'm running Ubuntu 2.6.20-16-generic
What is the driver to blacklist?

I compiled the driver myself, using the readme file (make, make install etc...) I followed all the instructions there.

The strange thing is, it worked the first time briefly so I restarted to make sure it was really working and the USB adapter lights stopped indicating any activity and here I am.

[b3lbdhj9l]@Henning[/b3lbdhj9l]

I'll post the output of those commands here when I get home this evening, thanks for your assistance.

I did try using iwpriv, iwconfig and ifconfig to get it going, using the instructions from the readme file.

Note I did have a previous rt73 module from Ralink installed. It had stopped working so I thought I'd try the serialmonkey version instead. I deleted the /etc/Wireless/RT.... folder + files (as instructed) and removed the module with modprobe -r rt73.

I tried installing everything again from the start but it didn't work (although the files and everything are in the right places, incl copying the firmware files to /lib/firmware

thanks again for your help.

I'll post that output a little later today.

hennichodernich

01-11-2007 07:37:36


Note I did have a previous rt73 module from Ralink installed. It had stopped working so I thought I'd try the serialmonkey version instead. I deleted the /etc/Wireless/RT.... folder + files (as instructed) and removed the module with modprobe -r rt73.[/quote3m3liak3]

This will not remove the rt73.ko file from harddisk, just from RAM. You'll have to delete the old rt73.ko file, you will find it in /lib/modules. To search for it
[code3m3liak3]find /lib/modules -name rt73.ko[/code3m3liak3]

regards
Henning

davidwhthomas

01-11-2007 07:40:10

I installed the rt73 module for my D-Link DWL-G122 Rev C1 USB adpater.

After restarting the computer, the OS seems to fail to register that the USB adapter is plugged in.[/quote9wdqxrs4]
[quote9wdqxrs4]
How do you tell? What does lsusb show?[/quote9wdqxrs4]

[b9wdqxrs4]lsusb shows

...
Bus 007 Device 003 ID 07d13c03 D-Link System
...[/b9wdqxrs4]



No lights light up on the adapter. It looks like it's dead.
[/quote9wdqxrs4]

[quote9wdqxrs4]What lines in the output of dmesg do appear after plugging in the adapter?
[/quote9wdqxrs4]

[b9wdqxrs4][18971.782126] usb 7-3 new high speed USB device using ehci_hcd and address 3
[18972.053255] usb 7-3 configuration #1 chosen from 1 choice
[18972.165605] rtusb init ====>
[18972.165734] idVendor = 0x7d1, idProduct = 0x3c03
[18972.225782] usbcore registered new interface driver rt73
[18972.251949] rt73 driver version - 1.0.3.6 CVS
[18972.409467] ***rt73*** Interface goes up for the first time, activating permanent MAC
[18972.409473] ***rt73*** Active MAC is 0015e9bac5e9.
[18982.525578] wlan1 no IPv6 routers present[/b9wdqxrs4]



Please help!

I would love to get wireless working, I don't want to give up on this.

Thanks!

davidwhthomas

01-11-2007 08:37:58

How do I remove all instances and start again from the beginning?

davidwhthomas

01-11-2007 21:04:23

The lights are still totally dead on the usb adapter.
No, 'link' and 'act' lights are blinking at all.

knaar

02-11-2007 02:06:37

I think it's rt2750usb and rt73usb. These are modules from the next-gen driver. The rt2750 driver wrongly grabs the usb device, but usually the symptom of this happening is the system slowing down to a crawl or hanging or a kernel panic.

Show us the output from lsmod please.

Add all modules from rt****usb that is not rt73 to the /etc/modprobe.d/blacklist file. For example

blacklist rt73usb
blacklist rt2750usb

I know the nextgen rt73 driver is called rt73usb but I'm not sure about the rt2750usb, it might be called just rt2750. To be safe you could add

blacklist rt2750

to this file as well. That should fix it. If not, report back and we'll try something else.

davidwhthomas

02-11-2007 09:06:04

Thanks for your reply.

I've added

[code1p6limys]blacklist rt73usb
blacklist rt2570
blacklist rt2750usb[/code1p6limys]

to /etc/modprobe.d/blacklist

The output from lsmod is

[code1p6limys]
Module Size Used by
i915 25472 2
drm 81044 3 i915
binfmt_misc 12680 1
rfcomm 40856 0
l2cap 25856 5 rfcomm
bluetooth 55908 4 rfcomm,l2cap
ppdev 10116 0
ipv6 268960 12
acpi_cpufreq 10056 1
cpufreq_conservative 8200 0
cpufreq_ondemand 9228 2
cpufreq_userspace 5408 0
cpufreq_powersave 2688 0
cpufreq_stats 7360 0
freq_table 5792 3 acpi_cpufreq,cpufreq_ondemand,cpufreq_stats
dev_acpi 12292 0
pcc_acpi 13184 0
sony_acpi 6284 0
tc1100_wmi 8068 0
container 5248 0
dock 10268 0
ac 6020 0
sbs 15652 0
i2c_ec 6016 1 sbs
i2c_core 22656 1 i2c_ec
battery 10756 0
asus_acpi 17308 0
button 8720 0
video 16388 0
backlight 7040 1 asus_acpi
sbp2 23812 0
lp 12452 0
fuse 46612 3
snd_hda_intel 21912 5
snd_hda_codec 205056 1 snd_hda_intel
snd_pcm_oss 44544 0
snd_mixer_oss 17408 1 snd_pcm_oss
snd_pcm 79876 4 snd_hda_intel,snd_hda_codec,snd_pcm_oss
snd_seq_dummy 4740 0
snd_seq_oss 32896 0
snd_seq_midi 9600 0
snd_rawmidi 25472 1 snd_seq_midi
snd_seq_midi_event 8448 2 snd_seq_oss,snd_seq_midi
usbhid 26592 0
snd_seq 52592 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
hid 27392 1 usbhid
af_packet 23816 2
snd_timer 23684 3 snd_pcm,snd_seq
snd_seq_device 9100 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
parport_pc 36388 1
rt73 214656 0
pcspkr 4224 0
psmouse 38920 0
parport 36936 3 ppdev,lp,parport_pc
snd 54020 18 snd_hda_intel,snd_hda_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
soundcore 8672 1 snd
serio_raw 7940 0
snd_page_alloc 10888 2 snd_hda_intel,snd_pcm
shpchp 34324 0
pci_hotplug 32576 1 shpchp
iTCO_wdt 11812 0
iTCO_vendor_support 4868 1 iTCO_wdt
intel_agp 26140 1
agpgart 35400 3 drm,intel_agp
evdev 11008 3
tsdev 8768 0
ext3 133128 1
jbd 59816 1 ext3
mbcache 9604 1 ext3
sg 36252 0
sr_mod 17060 0
cdrom 37664 1 sr_mod
sd_mod 23428 4
ata_piix 15492 3
pata_marvell 7936 0
ata_generic 9092 0
libata 125720 3 ata_piix,pata_marvell,ata_generic
scsi_mod 142348 5 sbp2,sg,sr_mod,sd_mod,libata
ohci1394 36528 0
ieee1394 299448 2 sbp2,ohci1394
ehci_hcd 34188 0
uhci_hcd 25360 0
generic 5124 0 [permanent]
e1000 126016 0
usbcore 134280 5 usbhid,rt73,ehci_hcd,uhci_hcd
thermal 14856 0
processor 31048 2 acpi_cpufreq,thermal
fan 5636 0
fbcon 42656 0
tileblit 3584 1 fbcon
font 9216 1 fbcon
bitblit 6912 1 fbcon
softcursor 3200 1 bitblit
vesafb 9220 0
capability 5896 0
commoncap 8192 1 capability
[/code1p6limys]

Still no activity on the usb adpater lights and no connection -(

I'm not sure why the wlan number has become wlan1
It used to be wlan0
There's no wlan0 operating either.

In any case, any assistance is _much_ appreciated

thanks!

davidwhthomas

02-11-2007 09:24:02

I followed the instructions in Module/TESTING to setup debug mode

I've attached the gzipped output from the debug text log for rt73 to this post.

Starcrasher

02-11-2007 12:02:57

You'd better check your configuration files and put all things back to wlan0.
If the device is named wlan0 and you try to access it with wlan1 (or the opposite), it will surely not receive the command and therefore light can't blink.

davidwhthomas

02-11-2007 23:52:56

You'd better check your configuration files and put all things back to wlan0.
If the device is named wlan0 and you try to access it with wlan1 (or the opposite), it will surely not receive the command and therefore light can't blink.[/quote374lobkc]

Thanks for your help.

I can't see any device named wlan0, if I try to
[code374lobkc]ifconfig wlan0 up[/code374lobkc]
I get
[code374lobkc]wlan: ERROR while getting interface flags: No such device
[/code374lobkc]

If I try ifconfig wlan1 up
it works (there is no error message)
But no lights blink on the adapter at all.

What other config file should I check to reset wlan1 to wlan0?

the modprobe.conf file is set
[code374lobkc]alias wlan* rt73[/code374lobkc]

So yes, a little confused.

Even if I try restoring from the start, by removing rt73 and recompiling / reinstalling - nothing is working.

knaar

03-11-2007 01:25:33

make that line read

[codegkzzq0p3]
alias wlan0 rt73
[/codegkzzq0p3]

might work. Otherwise your lsmod looks fine. I haven't read your debug.txt yet though.

davidwhthomas

03-11-2007 02:57:31

make that line read

[codeiiierf3v]
alias wlan0 rt73
[/codeiiierf3v]

might work. Otherwise your lsmod looks fine. I haven't read your debug.txt yet though.[/quoteiiierf3v]

Thanks for the reply -)

I've changed/added that line.

Well, everything _seems_ to be setup perfectly.

I've installed the rt73 module.
The firmware is in the right place ( /lib/firmware/ )
The other modules are blacklisted (rt2750usb etc...)
The ifconfig / iwconfig / iwpriv setttings are all correct

This is the section in my interfaces file

[codeiiierf3v]
# rt73 wireless network device using DHCP
auto wlan0
iface wlan0 inet dhcp
pre-up ifconfig wlan0 up
pre-up iwconfig wlan0 mode managed
pre-up iwconfig wlan0 essid Nexus
pre-up iwconfig wlan0 channel 6
pre-up iwpriv wlan0 set AuthMode=WPAPSK
pre-up iwpriv wlan0 set EncrypType=TKIP
pre-up iwpriv wlan0 set WPAPSK=<my key>
pre-up iwpriv wlan0 set NetworkType=Infra
[/codeiiierf3v]

ifconfig and iwconfig shows the adapter is plugged in

This one from ifconfig looks interesting in that some data appears to be being sent?

[codeiiierf3v]
wlan0 Link encap:Ethernet HWaddr 00:15:E9:BA:C5:E9
inet6 addr: fe80::215:e9ff:feba:c5e9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8742 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1277577 (1.2 MiB) TX bytes:0 (0.0 b)
[/codeiiierf3v]

iwconfig says

[codeiiierf3v]
wlan0 RT73 WLAN ESSID:"Nexus"
Mode:Managed Frequency=2.437 GHz Bit Rate=54 Mb/s
RTS thr:off Fragment thr:off
Link Quality=0/100 Signal level:-121 dBm Noise level:-115 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
[/codeiiierf3v]

But... no lights are showing on the USB adapter and it can't seem to make a connection.

I'm sure we must be getting close ;-)

knaar

03-11-2007 03:57:16

I'm stumped, maybe someone else knows?

davidwhthomas

03-11-2007 04:43:15

I think something may have happened when I first installed the rt73 driver.

It worked at first, and then I restarted. My computer took a very long time to shutdown (it hang on shutdown) I left it and it shut down eventually. (about 3-5min later)

Then, the next time, the grub menu has been altered (???) to the default and the lights didn't show on the USB adapter at all. There was no network connectivity.

I thought it must be a firmware problem but the firmware is installed in the right places. (/lib/firmware/ ) I also put a copy in the kernel subfolders too.

I suspect it must be something to do with how the interface is connecting to the kernel (and vice versa) and some strange settings there, but I'm not sure where to look to check.

If anyone else has any suggestions, it would be much appreciated. Thanks for your help

davidwhthomas

03-11-2007 06:27:16

Thanks for your help, I have summarized this thread and continued it here

[url1sasqjr0]http://rt2x00.serialmonkey.com/phpBB2/viewtopic.php?p=27104[/url1sasqjr0]

[solved!]