rt2x00 + linux-2.6.24 on Gentoo PPC working...

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

thibaut28

16-04-2008 19:20:40

I've been trying for a long time to get my [b14zxfrpo]DWL-G122 H/W Ver C1[/b14zxfrpo] working, using the [b14zxfrpo]rt73 (usb) enhanced legacy driver[/b14zxfrpo]. Sadly, without any success ( . The driver would compile correctly and even load when inserting the dongle, but it just wouldn't be able to let the device scan for ESSID or associate to any access point. Only blinking while [b14zxfrpo]lsusb[/b14zxfrpo] or inserting.

So I decided to give the[b14zxfrpo] rt2x00 next generation drivers[/b14zxfrpo] a try as they were provided in the gentoo-sources. I just emerged the sources and compiled a new kernel. Then I updated the [b14zxfrpo]yaboot[/b14zxfrpo] config with [b14zxfrpo]ybin[/b14zxfrpo] and rebooted. During the boot, the [b14zxfrpo]Link LED[/b14zxfrpo][/color14zxfrpo] started to glow at regular intervals. I ran [b14zxfrpo]Rutilt[/b14zxfrpo], and tried to load my usual airport configuration. The[b14zxfrpo] Link LED[/b14zxfrpo][/color14zxfrpo] just stopped blinking, and stayed on activated position (green light). Then I just applied the configuration and the [b14zxfrpo]Act LED[/b14zxfrpo][/color14zxfrpo] started to blink, and that was it ;)

There are some drawbacks however
- I've not run much test at the moment, since I just got it working, but the connection is not 100 % stable.
- I haven't been able to determine either if it's possible to put it in monitor mode.
- The [b14zxfrpo]Rutilt[/b14zxfrpo] application doesn't provide as many option for the rt2x00 driver than for the rt73, like bit rate and so...
- I've an integrated airport using the Hermes/orinoco and rate between this 11 Mb/s and the DLink 54Mb/s seems quite the same...

Anyway, I can't say how pleasant it is to finally see this device working, and I would like to thank all the rt2x00 team for this tough work D

IvD

16-04-2008 19:28:27


- I've not run much test at the moment, since I just got it working, but the connection is not 100 % stable.
[/quote3a7mz4n7]

Known issue, I'm working on it.


- I haven't been able to determine either if it's possible to put it in monitor mode.
[/quote3a7mz4n7]

iwconfig wlan0 mode monitor

You could also use the 'iw' tool from linuxwireless.org which allows the monitor interface to run concurrently with the regular managed interface.


- The [b3a7mz4n7]Rutilt[/b3a7mz4n7] application doesn't provide as many option for the rt2x00 driver than for the rt73, like bit rate and so...
[/quote3a7mz4n7]

rt2x00 and rt73 have different interface to userspace.
Rutilt is aimed at using the legacy driver communication protocol, which means it doesn't handle all rt2x00 features. Fortunately for rt2x00 you can use all regular tools like iwconfig and more importantly wpa_supplicant and NetworkManager.


- I've an integrated airport using the Hermes/orinoco and rate between this 11 Mb/s and the DLink 54Mb/s seems quite the same...
[/quote3a7mz4n7]

Also a known issue, there is a lot to be done yet for optimizing throughput and speed.

thibaut28

16-04-2008 20:05:19

Thank you for your quick reply. I'll try the tools you advice.

thibaut28

18-04-2008 07:18:40

I though I should update my first post and give some feedback D

- First as you said, the monitor mode works.

- The stability is quite good I wasn't disconnected in a whole day ! In the first post I was using both Airport and my DWL-G122 in Managed mode, which was surely interfering. No stability problem either setting the DWL to monitor and using Airport in Managed.

thibaut28

10-05-2008 14:59:27

I've been getting some strange behavior lately when the dongle was plugged. A black screen would appear when unplugging the device or recently when setting mode, essid, encryption...
I've strictly no ideas, what it could be, appears it's some kind of monitor displaying an "Exception Information" followed by a "Backtrace" It's causing the disk to freeze (the mon> prompt still blinks and works), so I had to write the message on a piece of paper, hope it's something which could be exploited wink

[b24c92okr]Vector 300 (Data Access) at [cb3f7cf0]
pc cd07e70 rt2x00usb_wrote_txdata+0x54/0x70c [rt2x00usb]
lr cd078ee4 rt2x00mac_tx+0x1a8/0x280 [rt2x00lib]
sp cb3f7da0
msr 9032
dar 280
dsisr 40000000
current = 0x cba683d0
pid = 2268, comm = rt73usb
enter ? for help
[cb3f7dd0] cd078ee4 rt2x00mac_tx+0x1a8/0x280 [rt2x00lib]
[cb3f7df0] cd8b8608 __ieee80211_tx+0x78/0x1e8 [mac80211]
[cb3f7e10] cd8b!bc0 ieee80211_master_start_xmit+0x298/0x4bc [mac80211]
[cb3f7eb0] c02e59b4 dev_hard_start_xmit+0x260/0x2cc
[cb3f7ef0] c02f5594 __qdisc_run+0x54/0x1cc
[cb3f7f30] cd8ad260 ieee80211_sta_tx+0x6c/0x7c [mac80211]
[cb3f7f40] cd8b1238 ieee80211_sta_scan_work+0x1dc/0x214 [mac80211]
[cb3f7f70] c0043e30 run_workqueue+0xb0/0x15c
[cb37f90] c0044448 worker_thread+0x9c/0x120
[cb3f7fd0] c00486e0 kthread+0x48/0x84
[cb3f7ff0] c00107d8 kernel_thread+0x44/0x60
mon>[/b24c92okr][/color24c92okr]

That's it

IvD

10-05-2008 15:11:43

With what version are you seeing this?
I have rebased rt2x00.git today, could you try the updated version?

thibaut28

11-05-2008 15:54:43

Thank you for your lightning-fast answer. I don't know for sure what's the version, it's the one which is included in the kernel-2.6.24-gentoo-r3. So I didn't installed it with git, I just compiled from the gentoo kernel sources. Well I'll give a try with git and I keep you informed, by the way any idea what was that monitor ?

IvD

11-05-2008 17:05:17

You might even try gentoo-sources 2.6.24-r7 (which has been marked stable by the Gentoo team) that one works quite stable on my machine, although I must admit I didn't encounter much problems with 2.6.24-r3 either (only -r4 produced random problems).

I'm not sure what the monitor thing might be.. S