Author Topic: wireless-mod-rt.app.bin v1.2  (Read 165725 times)

June 06, 2009, 07:26:10 PM
Read 165725 times

smartP

  • Jr. Member

  • Offline
  • **

  • 91
Hi, I'm releasing v1.x of wireless-mod-rt.app.bin.

With additional testing and help (thanks videomilk!) I'm happy to say that most of the kinks have been ironed out.

If you've tried the previous versions and it didn't work, please try again with this version.
I've tested it with both ext3-boot 0.9.2 and WDLXTV 0.5.3.2 firmwares flashed onto my WDTV.


Pro and cons of using this app.bin
Pros:
1. Works with both ext3-boot and WDLXTV.
2. Inbuilt WPA support (no wpa_supplicant required).
3. Latest version of drivers with more supported devices.
4. Faster to connect and more logging.

Cons:
1. Need to config XXX.dat files.
2. Not as well tested.


Setup:
1. Install ext3-boot 0.9.2 or WDLXTV 0.5.3.2 firmware onto your WDTV.
2. Find out your wireless usb vendor id (vid) and product id (pid) by looking at messages.txt (for ext3-boot) and messages.txt.0 (for WDLXTV with log-saver.app.bin) and search for the word WLAN
eg. "[157e:300e] 1-2.2( 2.00,480m) 802.11 n WLAN/1.0" (here the vid=157e, pid=300e)
3. Check the table below for the list of supported Devices and note the driver name. (NB: some devices might be supported by more than 1 driver, so check all the lists and try each driver below one at a time).
4. Create a Dat file for your device using the template and Param file as a reference. You should fill in at least the SSID, AuthMode, EncrypType, and WPAPSK (if authenication mode is WPA).


Installation:
1. Download wireless-mod-rt.app.bin-1.2.4.zip and unzip to get wireless-mod-rt.app.bin
2. Save the wireless-mod-rt.app.bin and Dat file (eg. RT2870STA.dat) to the root of your flash key.
3. Add the following lines to your net.config:

Quote
#one of rt61sta.dat, rt73sta.dat, RT2400.dat, RT2500STA.dat, RT2570STA.dat, RT2870STA.dat (used by rt3070 as well)
WLAN_CFG=<your device dat file>
#one of rt61.ko, rt73.ko, rt2400.ko, rt2500.ko, rt2570.ko, rt2870sta.ko, rt3070sta.ko
WLAN_LOAD=<your device driver name>
#need to bring up device?
WLAN_UP=yes
#time to sleep while waiting for wireless association
WLAN_SLEEP=1

4. Verify that you have the following files on the flash key:
Quote
/net.config
/wireless-mod-rt.app.bin
/rt61sta.dat or /rt73sta.dat or /RT2400.dat or /RT2500STA.dat or /RT2570STA.dat or /RT2870STA.dat

5. Insert flash key into WDTV and boot up.


History:
1.0      Initial version
1.1      Added rt3070sta.ko (uses RT2870STA.dat) and compiled rt73.ko without debug.
1.2(.4) Fixed rt2570.ko with help from Lion999.

DriverVersion
Devices
Dat
Param
WLAN_UP
ext3-boot
WDLXTV
rt3070sta.ko | 2.1.1.0 | rt3070 vid/pid | RT2870STA.dat | README_STA
yes
?
success
rt2870sta.ko | 2.1.2.0 | rt2870 vid/pid | RT2870STA.dat | README_STA
yes
success
success
rt2570.ko | 2.0.8.0 | rt2570 vid/pid | RT2570STA.dat | iwpriv_usage.txt
?
?
?
rt2500.ko | legacy final | ? | RT2500STA.dat | iwpriv_usage.txt
?
?
?
rt2400.ko | legacy final | rt2400 vid/pid | RT2400.dat | ?
?
?
?
rt73.ko | 1.1.0.2 | rt73 vid/pid | rt73sta.dat | iwpriv_usage.txt
no
success
success
rt61.ko | 1.1.0 | rt61 vid/pid | rt61sta.dat | iwpriv_usage.txt
?
?
?
« Last Edit: June 26, 2009, 05:07:21 PM by smartP »

June 07, 2009, 03:27:01 AM
Reply #1

yoppie

  • Newbie

  • Offline
  • *

  • 4
Thank You brother, i can get my dlin dwl g122 rev c run with this app.bin. but i want ask you, why if my dwl g122 in usb hub it cannot run. but if in usb 1 or usb 2 i can get it run . why?

June 07, 2009, 04:23:23 AM
Reply #2

smartP

  • Jr. Member

  • Offline
  • **

  • 91
Hmm... I'm not sure, but it seems that it's a problem with the latest firmware (1.02.08).

See http://wdtvforum.com/main/index.php?topic=869.0 and http://wdtvforum.com/main/index.php?topic=1002.0

Which driver and firmware did you use? (so I can update the table)

June 07, 2009, 06:59:39 AM
Reply #3

mike2k8

  • Full Member

  • Offline
  • ***

  • 100
I can confirm that this works with rt73 based Linksys WUSB54GC (0x13b1,0x0020).
Thanks smartP  :)

It works with Zorander's ext3-boot 0.9.2(1.02.08) (rezmus updated version), with static IP and WPA2 (without wpa_supplicant).

Transfer speeds (via ftp) however, 'seems' to be worse than the ones I got with Zorander's experimental wireless-mod.app.bin (using wpa_supplicant). But this was using a different ext3-boot 1.02.07, and an USB HDD instead a USB key, so results are not comparable. Need to test more. It might also be due to some different config in the rt73sta.dat

By the way, does anybody know a linux command to see the CPU usage? I want to see which of the modules uses less CPU with WPA2 (zoranders+wpa_supplicant or stand-alone smartP one) in order to choose the better one for my configuration.

Edit:
I have found that I get this with wireless-mod-rt.app.bin v1.0

Code: [Select]
# ifconfig rausb0
rausb0    Link encap:Ethernet  HWaddr **:**:**:**:**:**
          inet addr:*.*.*.*  Bcast:*.*.*.*  Mask:*.*.*.*
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:655516 errors:0 dropped:3939 overruns:3939 frame:3939
          TX packets:376436 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:357691729 (341.1 MiB)  TX bytes:36593662 (34.8 MiB)
Whereas with the old wireless-mod.app.bin (zorander's experimental pack), using wpa_supplicant, I got something like this:
Code: [Select]
# ifconfig rausb0
rausb0    Link encap:Ethernet  HWaddr **:**:**:**:**:**
          inet addr:*.*.*.*  Bcast:*.*.*.*  Mask:*.*.*.*
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3790 errors:0 dropped:0 overruns:0 frame:0
          TX packets:546 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:393723 (384.4 KiB)  TX bytes:81680 (79.7 KiB)

Note the relevant line: RX packets:655516 errors:0 dropped:3939 overruns:3939 frame:3939
I suppose, there is something wrong here.

I also get lost of warnings like these in the messages.txt now (not happened with the other wireless-mod.app.bin):

Code: [Select]
Jan  1 01:40:08 wdtv user.warn kernel: -RT73-<7>SYNC - send NULL Frame @54 Mbps...
Jan  1 01:40:18 wdtv user.warn kernel: -RT73-<7>SYNC - send NULL Frame @54 Mbps...
Jan  1 01:40:22 wdtv user.warn kernel: -RT73-<7>!!! report BCAST DATA to LLC (len=28) !!!
Jan  1 01:40:22 wdtv user.warn kernel: -RT73-<7>!!! report BCAST DATA to LLC (len=32) !!!
Jan  1 01:40:24 wdtv user.warn kernel: -RT73-<7>!!! report BCAST DATA to LLC (len=46) !!!
Jan  1 01:40:28 wdtv user.warn kernel: -RT73-<7>SYNC - send NULL Frame @54 Mbps...
Jan  1 01:40:38 wdtv user.warn kernel: -RT73-<7>SYNC - send NULL Frame @54 Mbps...
Jan  1 01:40:48 wdtv user.warn kernel: -RT73-<7>SYNC - send NULL Frame @54 Mbps...
Jan  1 01:40:58 wdtv user.warn kernel: -RT73-<7>SYNC - send NULL Frame @54 Mbps...
« Last Edit: June 07, 2009, 07:41:09 AM by mike2k8 »

June 07, 2009, 07:33:50 AM
Reply #4

yoppie

  • Newbie

  • Offline
  • *

  • 4
Hmm... I'm not sure, but it seems that it's a problem with the latest firmware (1.02.08).

See http://wdtvforum.com/main/index.php?topic=869.0 and http://wdtvforum.com/main/index.php?topic=1002.0

Which driver and firmware did you use? (so I can update the table)

i use WDLXTV 0.5.3.2, with rt73 based. sorry, now can run in usb hub. but why sometime lose connection or maybe not stable?. thanks

June 07, 2009, 04:07:42 PM
Reply #5

smartP

  • Jr. Member

  • Offline
  • **

  • 91
i use WDLXTV 0.5.3.2, with rt73 based. sorry, now can run in usb hub. but why sometime lose connection or maybe not stable?. thanks

Do you get the same stability problem with other app.bins? Once I get a wireless connection, I can watch an entire movie without any problem.

I'm not sure if it's a software or hardware problem at this stage. Maybe try with different hub or a powered usb hub?

June 07, 2009, 04:16:51 PM
Reply #6

smartP

  • Jr. Member

  • Offline
  • **

  • 91

RX packets:655516 errors:0 dropped:3939 overruns:3939 frame:3939

RX packets:3790 errors:0 dropped:0 overruns:0 frame:0


Hmmm... dropped packets aren't good, but are expected when using wireless. 3939 / 655516 = 0.006 (0.6%) which is very low so it's not that bad. Can you try using zorander's version for longer? 3790 rx packets is not that many at all.

I'll have a look at the warning msgs, but note that I've compiled it with debug messages on so you'll get more log messages than with zoranders.

I'm interested if you can do a comparable speed test.

June 07, 2009, 04:56:55 PM
Reply #7

smartP

  • Jr. Member

  • Offline
  • **

  • 91
I'll have a look at the warning msgs, but note that I've compiled it with debug messages on so you'll get more log messages than with zoranders.

You can control the debug logging level by setting the Debug parameter in the dat file as follows:

Debug=[0-5]

where 0 = OFF, 1 = ERROR, 2 = WARN, 3 = TRACE (default), 4 = INFO, 5 = LOUD

June 07, 2009, 05:55:59 PM
Reply #8

smartP

  • Jr. Member

  • Offline
  • **

  • 91
I also get lost of warnings like these in the messages.txt now (not happened with the other wireless-mod.app.bin):

Jan  1 01:40:08 wdtv user.warn kernel: -RT73-<7>SYNC - send NULL Frame @54 Mbps...
Jan  1 01:40:18 wdtv user.warn kernel: -RT73-<7>SYNC - send NULL Frame @54 Mbps...
Jan  1 01:40:22 wdtv user.warn kernel: -RT73-<7>!!! report BCAST DATA to LLC (len=28) !!!
Jan  1 01:40:22 wdtv user.warn kernel: -RT73-<7>!!! report BCAST DATA to LLC (len=32) !!!
Jan  1 01:40:24 wdtv user.warn kernel: -RT73-<7>!!! report BCAST DATA to LLC (len=46) !!!
Jan  1 01:40:28 wdtv user.warn kernel: -RT73-<7>SYNC - send NULL Frame @54 Mbps...

The send NULL frame looks okay according to the code:

Code: [Select]
/*
Description: Send out a NULL frame to AP. The purpose is to inform AP this client current PSM bit.
NOTE: This routine should only be used in infrastructure mode.    
 */
VOID    RTMPSendNullFrame()

Don't know what a PSM bit is though. :)

Those send NULL frame messages are logged at debug TRACE level. The "report BCAST DATA to LLC" are also trace messages, but I don't know what they do.


By the way, does anybody know a linux command to see the CPU usage?

You can try the ps or top command.
« Last Edit: June 07, 2009, 07:25:00 PM by smartP »

June 08, 2009, 05:37:16 AM
Reply #9

manman12

  • Newbie

  • Offline
  • *

  • 6
Thanks SmartP. This is good work.  I try the Belkin USB wireless stick (rt73) on WD Media player based on your latest wireless mod rt v1.0 bin
and it works with or without WEP the first time it boot up
But when I unplug and plug back the wireless stick again, it stops working even I unplug power and plug back in, or do a system reset.
Any suggestion to solve this problem?

Thanks


June 08, 2009, 10:38:47 AM
Reply #10

mike2k8

  • Full Member

  • Offline
  • ***

  • 100
Hmmm... dropped packets aren't good, but are expected when using wireless. 3939 / 655516 = 0.006 (0.6%) which is very low so it's not that bad. Can you try using zorander's version for longer? 3790 rx packets is not that many at all.
OK. Forget this. I was wrong. As you suggested, I get a similar number of dropped packets with zorander's version if I leave it the same time on.

I'll have a look at the warning msgs, but note that I've compiled it with debug messages on so you'll get more log messages than with zoranders.
You can control the debug logging level by setting the Debug parameter in the dat file as follows:

Debug=[0-5]

where 0 = OFF, 1 = ERROR, 2 = WARN, 3 = TRACE (default), 4 = INFO, 5 = LOUD
Thanks, this is very useful. :).


By the way, does anybody know a linux command to see the CPU usage?

You can try the ps or top command.

Thanks again. 'top' is what I was searching for. (The busybox 'ps' seems to be quite limited in options).

Quote
I'm interested if you can do a comparable speed test.

I'll try to do this as soon as I have some time (maybe next weekend), because I need to create a comparable enviroment. Same filesystem and hard disk. (I tested yours in a flash usb key, whereas the zorander's one is on my "stable" configuration (WD Passport HDD). I'll let you know the results.

June 09, 2009, 01:21:52 AM
Reply #11

smartP

  • Jr. Member

  • Offline
  • **

  • 91
But when I unplug and plug back the wireless stick again, it stops working even I unplug power and plug back in, or do a system reset.
Any suggestion to solve this problem?

Thanks

Weird. Sometimes I get this too and I keep thinking something's gone wrong, however, a 30 second off reboot usually solves the problem. (ie. switch WDTV for 30 secs and then turn it back on)


June 09, 2009, 06:54:24 AM
Reply #12

manman12

  • Newbie

  • Offline
  • *

  • 6
I find that when unplug and plug in the Wireless USB stick, wireless stop working.
To get it back to work again, I have to unplug and plug in the wdtv box power or do system reset while
must also have another FAT 32 USB data stick / HDD (on the other USB port) with wireless-mod-rt.app.bin, rt73sta.dat and net.config
(I don't know what is the minimum set out of three files whether just wireless-mod-rt.app.bin is good enough in the data USB stick/HDD,
but I just put all three) in order to make it work again.  Once it is up, you can plug out this USB data stick/HDD.

Since my HDD is NFS and not FAT 32, so I don't have another USB port on wdtv (I don't use external USB hub) for wireless USB stick,
FAT USB data stick with these three files and USB NFS HDD at the same time. I can first plug USB wireless and data USB stick to get
wireless up after wdtv box power up, plug out USB data stick and plug in USB HDD, but it is not convenient.

Is there a solution to fix this inconvenient (other than use USB hub)?

June 10, 2009, 03:08:35 AM
Reply #13

ferarias

  • Newbie

  • Offline
  • *

  • 25
    • Mi Blog
Hi

I can confirm it is working with my SMC WUSBS-N (rt2870). Just brad-cc 0.5.3.2 and your wireless-rt mod v1.0.
I can stream 1080p from an iMac sharing via NFS, at approx. 65Mbps (not too much, but there are several walls in between)
The only issue is that it seems not to recognize DHCP=no from net.config, so it ignores my fixed IP.
Apart from that, it works great. Thanks!
WDTV + SMCWUSB-N + b-rad.cc's WDLXTV firmware

June 10, 2009, 04:48:20 AM
Reply #14

smartP

  • Jr. Member

  • Offline
  • **

  • 91
I find that when unplug and plug in the Wireless USB stick, wireless stop working.
To get it back to work again, I have to unplug and plug in the wdtv box power or do system reset while

Ahhh... I see what you mean now. Unfortunately the answer is no. Zorander's ext3-boot firmware requires the flash key to be plugged in all the time and both firmwares currently only detect the app.bin off a mounted storage device. Which means... you'll need a usb hub.
« Last Edit: June 10, 2009, 05:13:54 AM by smartP »