rt73 can not work on s3c2410,strange??

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

xdoctor

05-11-2007 15:58:48

Hi ,Vern ,I have port rt73 to s3c2410 ,but now I have a strange problem.Every time,when I first boot my system,the usb card based rt2571 chipsets can connect to my AP,but then,the usb disconnect quickly.the message i get from the console as following

[i1fhh6imr]#ifconfig rausb0 up
rt73 driver version - 1.0.4.0
**RT2571**<7>--> PortCfgInit
**RT2571**<7><-- PortCfgInit
**RT2571**<7>--> RTMPInitAdapterBlock
**RT2571**<7><-- RTMPInitAdapterBlock
**RT2571**<7>--> NICInitTransmit
**RT2571**<7>--> NICInitRecv
**RT2571**<7><-- NICInitRecv
**RT2571**<7>Init MAC_CSR0=0x0002573a, Status=0x00000004
**RT2571**<7>--> NICLoadFirmware
**RT2571**<7>NICLoadFirmware OK CRC = 0x29e9 ver=1.7
<7>RTUSBFirmwareRun!!!
<7>RTUSBSetLED
**RT2571**<7><-- NICLoadFirmware (src=/etc/Wireless/RT73STA/rt73.bin)
**RT2571**<7>--> NICInitializeAsic
**RT2571**<7>BBP version = 22
**RT2571**<7><-- NICInitializeAsic
**RT2571**<7>RTMPReadParametersFromFile(CountryRegion=0)
**RT2571**<7>RTMPReadParametersFromFile(CountryRegionABand=7)
**RT2571**<7>RTMPReadParametersFromFile(SSID=dlink)
**RT2571**<7>RTMPReadParametersFromFile(NetworkType=1)
**RT2571**<7>RTMPSetPhyMode(=0)
**RT2571**<7>country code=0/7, RFIC=1, PHY mode=0, support 11 channels
<7>channel #0
<7>channel #0
<7>channel #0
<7>channel #0
<7>channel #0
<7>channel #0
<7>channel #0
<7>channel #0
<7>channel #0
<7>channel #0
<7>channel #0
**RT2571**<7> MlmeUpdateTxRates (MaxDesire=54, MaxSupport=54, MaxTxRate=54, Rate Switching =1)
**RT2571**<7> MlmeUpdateTxRates (TxRate=54, RtsRate=2, BasicRateBitmap=0x015f)
**RT2571**<7>AsicSetSlotTime(=9 us)
**RT2571**<7>RTMPReadParametersFromFile(WirelessMode=0)
**RT2571**<7> RTMPSetDesiredRates (6c,60,48,30,16,0b,04,02)
**RT2571**<7> MlmeUpdateTxRates (MaxDesire=54, MaxSupport=54, MaxTxRate=54, Rate Switching =1)
**RT2571**<7> MlmeUpdateTxRates (TxRate=54, RtsRate=2, BasicRateBitmap=0x015f)
**RT2571**<7>RTMPReadParametersFromFile(TxRate=0)
**RT2571**<7>RTMPReadParametersFromFile(Channel=0)
**RT2571**<7>RTMPReadParametersFromFile(BGProtection=0)
**RT2571**<7>MlmeSetTxPreamble (= LONG PREAMBLE)
**RT2571**<7>RTMPReadParametersFromFile(TxPreamble=0)
**RT2571**<7>RTMPReadParametersFromFile(RTSThreshold=2347)
**RT2571**<7>RTMPReadParametersFromFile(FragThreshold=2346)
**RT2571**<7>RTMPReadParametersFromFile(TxBurst=0)
**RT2571**<7>RTMPReadParametersFromFile(TurboRate=0)
**RT2571**<7>RTMPReadParametersFromFile(IEEE80211H=0)
**RT2571**<7>MlmeSetPsmBit = 0
**RT2571**<7>RTMPReadParametersFromFile(PSMode=0)
**RT2571**<7>RTMPReadParametersFromFile(AdhocOfdm=0)
**RT2571**<7>RTMPReadParametersFromFile(FastRoaming=0)
**RT2571**<7>RTMPReadParametersFromFile(RoamThreshold=-70)
**RT2571**<7>RTMPReadParametersFromFile(AuthMode=0)
**RT2571**<7>RTMPReadParametersFromFile(EncrypType=1)
**RT2571**<7>RTMPReadParametersFromFile(DefaultKeyID, KeyType, KeyStr !!!!!!!!!)
**RT2571**<7> DefaultKeyID(0~3)=0
**RT2571**<7> Key1Str=0123456789 and type=Hex
**RT2571**<7> Key2Str is Invalid key length!
**RT2571**<7> Key3Str is Invalid key length!
**RT2571**<7> Key4Str is Invalid key length!
**RT2571**<7>--> NICReadEEPROMParameters
<7>RTUSBReadEEPROM
<7>Local MAC = 0014781a3ffc
<7>RTUSBReadEEPROM
**RT2571**<7>E2PROM Version = 1, FAE release #3
<7>RTUSBReadEEPROM
<7>RTUSBReadEEPROM
<7>RTUSBReadEEPROM
<7>RTUSBReadEEPROM
<7>RTUSBReadEEPROM
**RT2571**<7>E2PROM G Tssi[-4 .. +4] = 255 255 255 255 - 255 -255 255 255 255, step=255, tuning=0
<7>RTUSBReadEEPROM
**RT2571**<7>E2PROM A Tssi[-4 .. +4] = 255 255 255 255 - 255 -255 255 255 255, step=255, tuning=0
<7>RTUSBReadEEPROM
**RT2571**<7>E2PROM RF freq offset=0x1b
<7>RTUSBReadEEPROM
<7>RTUSBReadEEPROM
<7>RTUSBReadEEPROM
<7>RTUSBReadEEPROM
**RT2571**<7><-- NICReadEEPROMParameters
**RT2571**<7>--> NICInitAsicFromEEPROM
**RT2571**<7>pAd->RfIcType = 2
<7>RTUSBSetLED
**RT2571**<7>Use Hw Radio Control Pin=0; if used Pin=0;
**RT2571**<7>RFIC=2, LED mode=0
**RT2571**<7><-- NICInitAsicFromEEPROM
<7>Local MAC = 0014781a3ffc
**RT2571**<7>RTMPSetPhyMode(=0)
**RT2571**<7>country code=129/129, RFIC=2, PHY mode=0, support 13 channels
<7>channel #1
<7>channel #2
<7>channel #3
<7>channel #4
<7>channel #5
<7>channel #6
<7>channel #7
<7>channel #8
<7>channel #9
<7>channel #10
<7>channel #11
<7>channel #12
<7>channel #13
**RT2571**<7> MlmeUpdateTxRates (MaxDesire=54, MaxSupport=54, MaxTxRate=54, Rate Switching =1)
**RT2571**<7> MlmeUpdateTxRates (TxRate=54, RtsRate=2, BasicRateBitmap=0x015f)
**RT2571**<7> RTMPSetDesiredRates (6c,60,48,30,16,0b,04,02)
**RT2571**<7> MlmeUpdateTxRates (MaxDesire=54, MaxSupport=54, MaxTxRate=54, Rate Switching =1)
**RT2571**<7> MlmeUpdateTxRates (TxRate=54, RtsRate=2, BasicRateBitmap=0x015f)
**RT2571**<7>--> MLME Initialize
**RT2571**<7><-- MLME Initialize
**RT2571**<7>AsicSwitchChannel(RF=2) to #1, TXPwr=22%, R1=0x94002c0c, R2=0x94000786, R3=0x9406ac55, R4=b/ # **RT2571**<7>RSSI=-121, CCA=1, --R17= 0x1c
**RT2571**<7>AsicAdjustTxPower = 22, AvgRssi = -121
**RT2571**<7>CNTL - No matching BSS, start a new ACTIVE scan SSID[dlink]
**RT2571**<7>SCANNING, suspend MSDU transmission ...
**RT2571**<7>SYNC - MlmeScanReqAction
**RT2571**<7>AsicSwitchChannel(RF=2) to #1, TXPwr=22%, R1=0x94002c0c, R2=0x94000786, R3=0x9406ac55, R4=b**RT2571**<7><---MlmeRate 1 Channel 1
**RT2571**<7>AsicSwitchChannel(RF=2) to #2, TXPwr=22%, R1=0x94002c0c, R2=0x94000786, R3=0x9406ac55, R4=f**RT2571**<7><---MlmeRate 1 Channel 2
**RT2571**<7>AsicSwitchChannel(RF=2) to #3, TXPwr=22%, R1=0x94002c0c, R2=0x9400078a, R3=0x9406ac55, R4=b**RT2571**<7><---MlmeRate 1 Channel 3
**RT2571**<7>AsicSwitchChannel(RF=2) to #4, TXPwr=21%, R1=0x94002c0c, R2=0x9400078a, R3=0x9406aa55, R4=f**RT2571**<7><---MlmeRate 1 Channel 4
**RT2571**<7>AsicSwitchChannel(RF=2) to #5, TXPwr=21%, R1=0x94002c0c, R2=0x9400078e, R3=0x9406aa55, R4=b**RT2571**<7><---MlmeRate 1 Channel 5
**RT2571**<7>AsicAdjustTxPower = 22, AvgRssi = -121
**RT2571**<7>AsicSwitchChannel(RF=2) to #6, TXPwr=21%, R1=0x94002c0c, R2=0x9400078e, R3=0x9406aa55, R4=f**RT2571**<7><---MlmeRate 1 Channel 6
**RT2571**<7>AsicSwitchChannel(RF=2) to #7, TXPwr=20%, R1=0x94002c0c, R2=0x94000792, R3=0x9406a855, R4=b**RT2571**<7><---MlmeRate 1 Channel 7
**RT2571**<7>AsicSwitchChannel(RF=2) to #8, TXPwr=20%, R1=0x94002c0c, R2=0x94000792, R3=0x9406a855, R4=f**RT2571**<7><---MlmeRate 1 Channel 8
**RT2571**<7>AsicSwitchChannel(RF=2) to #9, TXPwr=19%, R1=0x94002c0c, R2=0x94000796, R3=0x9406a655, R4=b**RT2571**<7><---MlmeRate 1 Channel 9
**RT2571**<7>AsicSwitchChannel(RF=2) to #10, TXPwr=19%, R1=0x94002c0c, R2=0x94000796, R3=0x9406a655, R4f**RT2571**<7><---MlmeRate 1 Channel 10
**RT2571**<7>AsicAdjustTxPower = 22, AvgRssi = -121
**RT2571**<7>AsicSwitchChannel(RF=2) to #11, TXPwr=18%, R1=0x94002c0c, R2=0x9400079a, R3=0x9406a455, R4b**RT2571**<7><---MlmeRate 1 Channel 11
**RT2571**<7>AsicSwitchChannel(RF=2) to #12, TXPwr=18%, R1=0x94002c0c, R2=0x9400079a, R3=0x9406a455, R4f**RT2571**<7><---MlmeRate 1 Channel 12
**RT2571**<7>AsicSwitchChannel(RF=2) to #13, TXPwr=17%, R1=0x94002c0c, R2=0x9400079e, R3=0x9406a255, R4b**RT2571**<7><---MlmeRate 1 Channel 13
**RT2571**<7>SYNC - End of SCAN, restore to channel 1
**RT2571**<7>AsicSwitchChannel(RF=2) to #1, TXPwr=22%, R1=0x94002c0c, R2=0x94000786, R3=0x9406ac55, R4=b**RT2571**<7>SCAN done, resume MSDU transmission ...
**RT2571**<7>RSSI=-121, CCA=1, keep R17 at 0x1c
**RT2571**<7>AsicAdjustTxPower = 22, AvgRssi = -121
**RT2571**<7>RSSI=-121, CCA=0, keep R17 at 0x1c
**RT2571**<7>AsicAdjustTxPower = 22, AvgRssi = -121
**RT2571**<7>Driver auto reconnect to last OID_802_11_SSID setting - dlink
**RT2571**<7>CNTL - 1 BSS match the desire SSID - dlink
**RT2571**<7>CNTL - iterate BSS 0 of 1
**RT2571**<7>SYNC - MlmeJoinReqAction(BSS #0)
**RT2571**<7>AsicSwitchChannel(RF=2) to #6, TXPwr=21%, R1=0x94002c0c, R2=0x9400078e, R3=0x9406aa55, R4=f**RT2571**<7>SYNC - Switch to channel 6, SSID dlink
**RT2571**<7>SYNC - Wait BEACON from 00179a685bfd ...
**RT2571**<7>SYNC - receive desired BEACON at JoinWaitBeacon... Channel = 6
**RT2571**<7>SYNC - after JOIN, SupRateLen=4, ExtRateLen=8
**RT2571**<7>AUTH - Send AUTH request seq#1 (Alg=0) 6...
**RT2571**<7><---MlmeRate 1 Channel 6
**RT2571**<7>AUTH - Receive AUTH_RSP seq#2 to me (Alg=0, Status=0)
**RT2571**<7>CNTL - AUTH OK
**RT2571**<7>ASSOC - Send ASSOC request...
**RT2571**<7><---MlmeRate 1 Channel 6
**RT2571**<7>ASSOC - receive ASSOC_RSP to me (status=0)
**RT2571**<7>!!! LINK UP !!! [/color1fhh6imr](Infra=1, AID=1, ssid=dlink)
**RT2571**<7>>>>AsicSetBssid<<<
**RT2571**<7>AsicSetEdcaParm
**RT2571**<7> MlmeUpdateTxRates (Rssi=-56, init TX rate = 24 Mbps)
**RT2571**<7> MlmeUpdateTxRates (MaxDesire=54, MaxSupport=54, MaxTxRate=54, Rate Switching =1)
**RT2571**<7> MlmeUpdateTxRates (TxRate=24, RtsRate=2, BasicRateBitmap=0x015f)
**RT2571**<7>--->AsicEnableBssSync(INFRA mode)
**RT2571**<7>NDIS_STATUS_MEDIA_CONNECT Event B!
<7>RTUSBSetLED
**RT2571**<7>CNTL - Association successful on BSS #0
**RT2571**<7>3 strong RSSI=-57, CCA=12, fixed R17 at 0x40
<7>24 NDIS push BE=0, BK=0, VI=0, VO=0, TX/RX AGGR=<0,0>, p-NDIS=0, RSSI=-57, ACKbmap=15f, PER=0%
**RT2571**<7>AsicAdjustTxPower = 21, AvgRssi = -57
**RT2571**<7>3 strong RSSI=-57, CCA=0, fixed R17 at 0x40
<7>54 NDIS push BE=0, BK=0, VI=0, VO=0, TX/RX AGGR=<0,0>, p-NDIS=0, RSSI=-57, ACKbmap=15f, PER=0%
**RT2571**<7>AsicAdjustTxPower = 21, AvgRssi = -57
**RT2571**<7>3 strong RSSI=-57, CCA=0, fixed R17 at 0x40
<7>54 NDIS push BE=0, BK=0, VI=0, VO=0, TX/RX AGGR=<0,0>, p-NDIS=0, RSSI=-57, ACKbmap=15f, PER=0%
**RT2571**<7>AsicAdjustTxPower = 21, AvgRssi = -57
**RT2571**<7>3 strong RSSI=-56, CCA=0, fixed R17 at 0x40
<7>54 NDIS push BE=0, BK=0, VI=0, VO=0, TX/RX AGGR=<0,0>, p-NDIS=0, RSSI=-56, ACKbmap=15f, PER=0%
**RT2571**<7>AsicAdjustTxPower = 21, AvgRssi = -56
**RT2571**<7>3 strong RSSI=-57, CCA=0, fixed R17 at 0x40
<7>54 NDIS push BE=0, BK=0, VI=0, VO=0, TX/RX AGGR=<0,0>, p-NDIS=0, RSSI=-57, ACKbmap=15f, PER=0%
**RT2571**<7>AsicAdjustTxPower = 21, AvgRssi = -57
**RT2571**<7>3 strong RSSI=-56, CCA=0, fixed R17 at 0x40
<7>54 NDIS push BE=0, BK=0, VI=0, VO=0, TX/RX AGGR=<0,0>, p-NDIS=0, RSSI=-56, ACKbmap=15f, PER=0%
**RT2571**<7>AsicAdjustTxPower = 21, AvgRssi = -56
**RT2571**<7>3 strong RSSI=-57, CCA=0, fixed R17 at 0x40
<7>54 NDIS push BE=0, BK=0, VI=0, VO=0, TX/RX AGGR=<0,0>, p-NDIS=0, RSSI=-57, ACKbmap=15f, PER=0%
**RT2571**<7>AsicAdjustTxPower = 21, AvgRssi = -57
**RT2571**<7>3 strong RSSI=-56, CCA=0, fixed R17 at 0x40
<7>54 NDIS push BE=0, BK=0, VI=0, VO=0, TX/RX AGGR=<0,0>, p-NDIS=0, RSSI=-56, ACKbmap=15f, PER=0%
**RT2571**<7>AsicAdjustTxPower = 21, AvgRssi = -56
**RT2571**<7>3 strong RSSI=-57, CCA=0, fixed R17 at 0x40
<7>54 NDIS push BE=0, BK=0, VI=0, VO=0, TX/RX AGGR=<0,0>, p-NDIS=0, RSSI=-57, ACKbmap=15f, PER=0%
**RT2571**<7>AsicAdjustTxPower = 21, AvgRssi = -57
**RT2571**<7>SYNC - send NULL Frame @54 Mbps...
**RT2571**<7>3 strong RSSI=-57, CCA=0, fixed R17 at 0x40
<7>54 NDIS push BE=0, BK=0, VI=0, VO=0, TX/RX AGGR=<0,0>, p-NDIS=0, RSSI=-57, ACKbmap=15f, PER=0%
**RT2571**<7>AsicAdjustTxPower = 21, AvgRssi = -57
**RT2571**<7>3 strong RSSI=-56, CCA=0, fixed R17 at 0x40
<7>54 NDIS push BE=0, BK=0, VI=0, VO=0, TX/RX AGGR=<0,0>, p-NDIS=0, RSSI=-56, ACKbmap=15f, PER=0%
**RT2571**<7>AsicAdjustTxPower = 21, AvgRssi = -56
**RT2571**<7>3 strong RSSI=-57, CCA=0, fixed R17 at 0x40
<7>54 NDIS push BE=0, BK=0, VI=0, VO=0, TX/RX AGGR=<0,0>, p-NDIS=0, RSSI=-57, ACKbmap=15f, PER=0%
**RT2571**<7>AsicAdjustTxPower = 21, AvgRssi = -57
**RT2571**<7>3 strong RSSI=-56, CCA=0, fixed R17 at 0x40
<7>54 NDIS push BE=0, BK=0, VI=0, VO=0, TX/RX AGGR=<0,0>, p-NDIS=0, RSSI=-56, ACKbmap=15f, PER=0%
**RT2571**<7>AsicAdjustTxPower = 21, AvgRssi = -56
**RT2571**<7>3 strong RSSI=-56, CCA=0, fixed R17 at 0x40
<7>54 NDIS push BE=0, BK=0, VI=0, VO=0, TX/RX AGGR=<0,0>, p-NDIS=0, RSSI=-56, ACKbmap=15f, PER=0%
**RT2571**<7>AsicAdjustTxPower = 21, AvgRssi = -56
**RT2571**<7>USBVendorRequest failed ret=-110
**RT2571**<7>3 strong RSSI=-57, CCA=0, fixed R17 at 0x40
**RT2571**<7>USBVendorRequest failed ret=-110
<7>54 NDIS push BE=0, BK=0, VI=0, VO=0, TX/RX AGGR=<0,0>, p-NDIS=0, RSSI=-57, ACKbmap=15f, PER=100%
**RT2571**<7>DRS --TX rate from 54 to 48 Mbps
**RT2571**<7>AsicAdjustTxPower = 21, AvgRssi = -57
**RT2571**<7>USBVendorRequest failed ret=-110
**RT2571**<7>USBVendorRequest failed ret=-110
usb 1-1 USB disconnect, address 6
**RT2571**<7>unregister usbnet usb-s3c2410-1
unregister_netdev()
**RT2571**<7>-->rt73_close
**RT2571**<7>====> RTUSBHalt
**RT2571**<7>--->CleanUpMLMEWaitQueue
**RT2571**<7><---CleanUpMLMEWaitQueue
**RT2571**<7>--->CleanUpMLMEBulkOutQueue
**RT2571**<7><---CleanUpMLMEBulkOutQueue
**RT2571**<7>==> MlmeHalt
**RT2571**<7><== MlmeHalt
<7>--->RTUSBCancelPendingBulkInIRP
<7><---RTUSBCancelPendingBulkInIRP
**RT2571**<7>---> ReleaseAdapter
**RT2571**<7><--- ReleaseAdapter
**RT2571**<7><--rt73_close
**RT2571**<7><=== RTUSB disconnect successfully
2-ENODEV -19 <7>usb 1-11.0 hotplug
usb 1-1 new full speed USB device using s3c2410-ohci and address 7
usb 1-1 Product 54M.USB.......
usb 1-1 Manufacturer Ralink
dev->descriptor.idVendor = 0x148f, dev->descriptor.idProduct = 0x2573
rtusb_usb_id[0].idVendor = 0x148f, rtusb_usb_id[0].idProduct = 0x2573
**RT2571**<7>usb device name rausb0
**RT2571**<7>BulkOutMaxPacketSize 64
<here , it stops, until input any key. [/color1fhh6imr] >
[list1fhh6imr][/listu1fhh6imr][/i1fhh6imr]

I have read what u posted in this forum, and I also #undefine BIG_ENDIAN and #define PACKED __attribute__ ((packed)). Would u please give some adivces!

Vern

05-11-2007 20:06:02

Hi xdoctor,

What's an s3c2410?

Please provide the following info
* driver version (including the date if it's a CVS build)
* hardware description - CPU, adapter Mfr. & model, AP if known.
* distrobution name and version
* kernel version

I'm a little confused as to how the messages you post were generated. The legacy rt73 driver now uses the interface name "wlan0" instead of "rausb0".

The function names look believable, but the leader ("RT2571">7>) isn't in the driver CVS source.

BTW, for non-trivial amounts of data, best to attach as a gzipped file.

Anyway, if you can provide that info, thanks,

xdoctor

06-11-2007 02:18:57

I use RT73_Linux_STA_Drv1.0.4.0.tar.gz,the "" **RT2571** "" ever was " **RT2573**" , I changed it to "**RT2571**" .S3C2410 is ARM9 chip, I use linux-2.6.11.1 kernel. my AP is D_link DI-624+A wireless router. and my wireless usb adapter is TL-WN321G

Vern

06-11-2007 02:24:39

Hi xdoctor,

RT73_Linux_STA_Drv1.0.4.0.tar.gz is Ralink's version of the driver. You need to contact them (lots of luck) for support.

If you wish to try our version, click on the download tab at the top of the page before - or after- logging in, and select the rt73 legacy driver.

Thanks,

xdoctor

06-11-2007 02:54:11

hi ,vern,Thanks for your replay,let me try your driver.If i have some question,I will be back.

xdoctor

06-11-2007 07:57:18

hi .vern , when I download the http//rt2x00.serialmonkey.com/rt73-cvs-daily.tar.gz ,it's so
slow, i can not download from the web.would you please send it to my e-mail address.
ourdoctor@163.com,thanks!

when i try rt2570 i download from http//rt2x00.serialmonkey.com/rt2570-cvs-daily.tar.gz
i met some prolem too.
http//rt2x00.serialmonkey.com/phpBB2/v ... 7190#27190

Vern

07-11-2007 02:12:10

Things could have been busy. You might try trying it again.