rt2x00.serialmonkey.com

Support forum for the rt2x00 project
It is currently Mon Sep 06, 2010 7:14 am

All times are UTC




Post new topic Reply to topic  [ 150 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9, 10  Next
Author Message
 Post subject: Re: rt2x00 802.11n devices
PostPosted: Mon Mar 02, 2009 5:04 pm 
Offline

Joined: Sat Feb 07, 2009 2:32 pm
Posts: 8
When I try and bring the interface up the first time I get this:
Code:
root@darkstar:ifconfig wlan0 up
root@darkstar:dmesg
phy0 -> rt2x00lib_request_firmware: Info - Loading firmware file 'rt2860.bin'.
rt2800pci 0000:01:00.0: firmware: requesting rt2860.bin
phy0 -> rt2x00lib_request_firmware: Info - Firmware detected - version: 0.11.
input: rt2800pci as /devices/pci0000:00/0000:00:1c.3/0000:01:00.0/input/input9
phy0 -> rt2x00pci_regbusy_read: Error - Indirect register access failed: offset=0x00007010, value=0xffffffff
phy0 -> rt2800pci_wait_wpdma_ready: Error - WPDMA TX/RX busy, aborting.
phy0 -> rt2800pci_set_device_state: Error - Device failed to enter state 4 (-5).
phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 0 - CWmin: 5, CWmax: 10, Aifs: 2, TXop: 0.
phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 1 - CWmin: 5, CWmax: 10, Aifs: 2, TXop: 0.
phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 2 - CWmin: 5, CWmax: 10, Aifs: 2, TXop: 0.
phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 3 - CWmin: 5, CWmax: 10, Aifs: 2, TXop: 0.
usb 5-1: USB disconnect, address 2
usb 5-1: new full speed USB device using uhci_hcd and address 3
usb 5-1: configuration #1 chosen from 1 choice

This is with no usb devices plugged in so I'm not entirely sure where those messages are coming from! If I try bringing the interface down and then up again I get:
Code:
phy0 -> rt2800pci_load_firmware: Error - Unstable hardware.
phy0 -> rt2x00pci_regbusy_read: Error - Indirect register access failed: offset=0x00007010, value=0xffffffff

This is on my eee with ralink rt2860 and the latest git snapshot, rt2800pci module loaded. If you want anything more specific do let me know.
Tom


Top
 Profile  
 
 Post subject: Re: rt2x00 802.11n devices
PostPosted: Wed Mar 04, 2009 1:06 pm 
Offline

Joined: Sat Feb 07, 2009 2:32 pm
Posts: 8
The interface now comes up and down without error. However, "iwlist scan wlan0" shows no results, nor does the card associate with an AP. Dmesg is showing more or less the same:
Code:
phy0 -> rt2x00lib_request_firmware: Info - Loading firmware file 'rt2860.bin'.
rt2800pci 0000:01:00.0: firmware: requesting rt2860.bin
phy0 -> rt2x00lib_request_firmware: Info - Firmware detected - version: 0.11.
input: rt2800pci as /devices/pci0000:00/0000:00:1c.3/0000:01:00.0/input/input9
phy0 -> rt2x00pci_regbusy_read: Error - Indirect register access failed: offset=0x00007010, value=0xffffffff
phy0 -> rt2800pci_wait_wpdma_ready: Error - WPDMA TX/RX busy, aborting.
phy0 -> rt2800pci_set_device_state: Error - Device failed to enter state 4 (-5).
phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 0 - CWmin: 5, CWmax: 10, Aifs: 2, TXop: 0.
phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 1 - CWmin: 5, CWmax: 10, Aifs: 2, TXop: 0.
phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 2 - CWmin: 5, CWmax: 10, Aifs: 2, TXop: 0.
phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 3 - CWmin: 5, CWmax: 10, Aifs: 2, TXop: 0.
phy0 -> rt2x00pci_regbusy_read: Error - Indirect register access failed: offset=0x00007010, value=0xffffffff
phy0 -> rt2x00pci_regbusy_read: Error - Indirect register access failed: offset=0x00007010, value=0xffffffff
phy0 -> rt2x00pci_regbusy_read: Error - Indirect register access failed: offset=0x00007010, value=0xffffffff
rt2800pci 0000:01:00.0: PCI INT A disabled
usb 5-1: USB disconnect, address 2
pci 0000:01:00.0: reg 10 32bit mmio: [0x000000-0x00ffff]
pci 0000:01:00.0: PME# supported from D0 D3hot
pci 0000:01:00.0: PME# disabled
rt2800pci 0000:01:00.0: enabling device (0000 -> 0002)
rt2800pci 0000:01:00.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
rt2800pci 0000:01:00.0: setting latency timer to 64
phy1 -> rt2x00_set_chip: Info - Chipset detected - rt: 0781, rf: 0003, rev: 28720200.
phy1: Selected rate control algorithm 'minstrel'
Registered led device: rt2800pci-phy1::radio
Registered led device: rt2800pci-phy1::assoc
Registered led device: rt2800pci-phy1::quality
phy1 -> rt2x00lib_request_firmware: Info - Loading firmware file 'rt2860.bin'.
rt2800pci 0000:01:00.0: firmware: requesting rt2860.bin
phy1 -> rt2x00lib_request_firmware: Info - Firmware detected - version: 0.11.
input: rt2800pci as /devices/pci0000:00/0000:00:1c.3/0000:01:00.0/input/input10
phy1 -> rt2x00mac_conf_tx: Info - Configured TX queue 0 - CWmin: 5, CWmax: 10, Aifs: 2, TXop: 0.
phy1 -> rt2x00mac_conf_tx: Info - Configured TX queue 1 - CWmin: 5, CWmax: 10, Aifs: 2, TXop: 0.
phy1 -> rt2x00mac_conf_tx: Info - Configured TX queue 2 - CWmin: 5, CWmax: 10, Aifs: 2, TXop: 0.
phy1 -> rt2x00mac_conf_tx: Info - Configured TX queue 3 - CWmin: 5, CWmax: 10, Aifs: 2, TXop: 0.

Then when bringing up the card with ifconfig the bottom four lines are repeated.

Nothing is getting received or transmitted according to ifconfig.


Top
 Profile  
 
 Post subject: Re: rt2x00 802.11n devices
PostPosted: Fri Mar 13, 2009 3:34 pm 
Offline

Joined: Sat Feb 07, 2009 2:32 pm
Posts: 8
A new error has emerged! On bringing up the interface now, I get this message in dmesg:
Code:
phy7 -> rt2800pci_mcu_status: Error - MCU request failed, no response from hardware

As far as I can tell the card is still not transmitting or receiving.
Appreciate your work!
Tom


Top
 Profile  
 
 Post subject: Re: rt2x00 802.11n devices
PostPosted: Fri Mar 20, 2009 10:08 pm 
Offline

Joined: Fri Mar 20, 2009 8:09 pm
Posts: 1
Hi,

I just starting trying to get the RT2860 in my Eee Box B202 running (goal: work as access point) some days ago. I read through all information that looked like being potentially useful and finally got to the same issue as pezboytom just described here. Although not being a kernel developer, but having seen (and created) a bit of C code years ago (actually I'm a Java developer), I looked at parts of the code as far as I could, just using common sense, to see whether I could at least narrow the region where something goes wrong. Added some more debugging statements to parts of the code, actually related to the "startup" of the device and loading of the firmware (which I had to configure correctly first), but didn't really succeed.

Just for the case that something of this still might be interesting, here are some of details I got from my "tests":
- rt2x00lib_request_firmware was finally OK, i.e. it returns 0
- The firmware loaded (it has been put into the kernel, so it's not loaded from the file system by now) has 8192 bytes, which matches the size of the original firmware file, so seems to be OK.
- rt2x00dev->ops->lib->load_firmwarert2x00dev, rt2x00dev->fw->data, rt2x00dev->fw->size) returns 0 = OK, too.
- Same for rt2x00lib_start(...), rt2x00lib_initialize(...) and rt2x00lib_start(...)

Quote:
[ 419.475301] phy0 -> rt2x00lib_request_firmware: Info - Loading firmware file 'rt2860.bin'.
[ 419.475312] rt2800pci 0000:03:00.0: firmware: using built-in firmware rt2860.bin
[ 419.475318] phy0 -> rt2x00lib_request_firmware: Info - Firmware detected - version: 0.11.
[ 419.475372] rt2800pci 0000:03:00.0: Heiko: rt2x00lib_request_firmware OK (retval = 0)<6>phy0 -> rt2x00lib_load_firmware: Info - Heiko: Sending firmware to device (8192 bytes)...<6>phy0 -> rt2x00lib_load_firmware: Info - Heiko: Result of load_firmware(...): 0<6>phy0 -> rt2x00lib_start: Info - Heiko: rt2x00lib_load_firmware(...) returned 0<7>device: 'input5': device_add
[ 419.478903] PM: Adding info for No Bus:input5
[ 419.480774] input: rt2800pci as /devices/pci0000:00/0000:00:1c.1/0000:03:00.0/input/input5
[ 419.484321] device: 'event5': device_add
[ 419.484422] PM: Adding info for No Bus:event5
[ 419.484484] phy0 -> rt2x00lib_start: Info - Heiko: rt2x00lib_initialize(...) returned 0<6>phy0 -> rt2x00lib_start: Info - Heiko: rt2x00lib_start(...) completed.<3>phy0 -> rt2800pci_mcu_status: Error - MCU request failed, no response from hardware
[ 419.517970] phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 0 - CWmin: 5, CWmax: 10, Aifs: 2, TXop: 0.
[ 419.517987] phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 1 - CWmin: 5, CWmax: 10, Aifs: 2, TXop: 0.
[ 419.518004] phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 2 - CWmin: 5, CWmax: 10, Aifs: 2, TXop: 0.
[ 419.518027] phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 3 - CWmin: 5, CWmax: 10, Aifs: 2, TXop: 0.


The only thing I'm not really sure about is that some of my "traces" were not written, i.e. the respective code was not run. Looking closer at the code around, which is _request_firmware(...) in drivers/base/firmware_class.c, I found that that function "quickly" returns with 0 if it finds the requested firmware in the kernel itself ("built-in"), so there is some code which is not executed then, and it doesn't look absolutely obvious to me that all of it is really only relevant if the firmware is read from the user space (I don't know exactly how that works, that's why I chose the built-in firmware by now - please enlighten me here ;-) ).

@Ivo: Can you tell whether
1) there might be any relation at all (maybe it's a completely wrong location where to look) and whether
2) some of that code should actually be called - in that case, please give me some hint how I can test with "external" firmware, i.e. which component is responsible for providing it at runtime. Just some basic hint so I can continue to collect the required information.

If I can help in any way to solve this, please let me know. As I mentioned, I don't have experience with kernel programming, but I can do some easy modifications like adding tracing code or slightly modifying existing behavior, if that helps.

Thanks and best regards
Heiko


Top
 Profile  
 
 Post subject: Re: rt2x00 802.11n devices
PostPosted: Fri Mar 20, 2009 11:03 pm 
Offline
Site Admin

Joined: Sun Jun 05, 2005 1:01 pm
Posts: 5879
Location: Haarlem, The Netherlands
hbrucky wrote:
1) there might be any relation at all (maybe it's a completely wrong location where to look) and whether
2) some of that code should actually be called - in that case, please give me some hint how I can test with "external" firmware, i.e. which component is responsible for providing it at runtime. Just some basic hint so I can continue to collect the required information.


rt2x00 doesn't work with built-in firmware, it will always need the external firmware file to operate.
Other then that there is no point in following the error codes from the rt2x00 functions, they will all return 0. The problem is the hardware register initialization and either there are some missing initialization calls or they are not in the correct order. THe best thing is comparing the initialization with the original Ralink drivers to see if there are critical differences.

_________________
Regards,
Ivo van Doorn
Project Administrator
http://rt2x00.serialmonkey.com


Top
 Profile  
 
 Post subject: Re: rt2x00 802.11n devices
PostPosted: Thu May 14, 2009 9:05 pm 
Offline

Joined: Sat Feb 07, 2009 2:32 pm
Posts: 8
The behaviour of the card has changed with the latest snapshot from git. Trying to bring the interface up I now get this output:
Code:
phy0 -> rt2x00lib_request_firmware: Info - Loading firmware file 'rt2860.bin'.
rt2800pci 0000:01:00.0: firmware: requesting rt2860.bin
phy0 -> rt2x00lib_request_firmware: Info - Firmware detected - version: 0.11.
input: rt2800pci as /devices/pci0000:00/0000:00:1c.3/0000:01:00.0/input/input9
phy0 -> rt2x00pci_regbusy_read: Error - Indirect register access failed: offset=0x00007010, value=0xffffffff
phy0 -> rt2x00pci_regbusy_read: Error - Indirect register access failed: offset=0x00007010, value=0xffffffff
phy0 -> rt2800pci_mcu_status: Error - MCU request failed, no response from hardware
phy0 -> rt2800pci_wait_wpdma_ready: Error - WPDMA TX/RX busy, aborting.
phy0 -> rt2800pci_set_device_state: Error - Device failed to enter state 4 (-5).
phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 0 - CWmin: 5, CWmax: 10, Aifs: 2, TXop: 0.
phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 1 - CWmin: 5, CWmax: 10, Aifs: 2, TXop: 0.
phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 2 - CWmin: 5, CWmax: 10, Aifs: 2, TXop: 0.
phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 3 - CWmin: 5, CWmax: 10, Aifs: 2, TXop: 0.
phy0 -> rt2x00pci_regbusy_read: Error - Indirect register access failed: offset=0x00007010, value=0xffffffff
phy0 -> rt2x00pci_regbusy_read: Error - Indirect register access failed: offset=0x00007010, value=0xffffffff
phy0 -> rt2x00pci_regbusy_read: Error - Indirect register access failed: offset=0x00007010, value=0xffffffff
rt2800pci 0000:01:00.0: PCI INT A disabled
The led on my eeepc goes out at this point and it becomes impossible to switch back on without restarting. Upon trying to remove the module rt2800pci, the system crashes completely.


Top
 Profile  
 
 Post subject: Re: rt2x00 802.11n devices
PostPosted: Wed Jun 17, 2009 3:32 pm 
Offline

Joined: Mon Jun 15, 2009 12:25 pm
Posts: 5
Any progress with "master mode"? Managed to start the card with hostapd (it is in master mode, and there is mon.wlan0) but i can't see the network from my laptop or connect to "hidden ssid". All this with WPA2 enc, but the problem is also there without any enc. Any suggestions? PS using 2860 pci card.


Top
 Profile  
 
 Post subject: Re: rt2x00 802.11n devices
PostPosted: Wed Jun 17, 2009 6:36 pm 
Offline

Joined: Wed Jun 17, 2009 10:08 am
Posts: 1
Mony wrote:
Managed to start the card with hostapd.



How did you manage that? With standart Ralink RT2860_Linux_STA drivers?


Top
 Profile  
 
 Post subject: Re: rt2x00 802.11n devices
PostPosted: Wed Jun 17, 2009 8:12 pm 
Offline

Joined: Mon Jun 15, 2009 12:25 pm
Posts: 5
No with the driver from git. With original(ralink) driver it works perfect as client, but from what i know master mode is not supported :( Unfortunately i need it to work as Access point :(


Top
 Profile  
 
 Post subject: Re: rt2x00 802.11n devices
PostPosted: Thu Jun 18, 2009 2:18 pm 
Offline

Joined: Sat Feb 07, 2009 2:32 pm
Posts: 8
Shock horror, does this mean that the changes get made to git without them coming up on the web interface? I was under the impression that there had been no update since 23rd may and that snapshot crashes my card completely!

Does anyone know if this driver is now working in managed mode?


Top
 Profile  
 
 Post subject: Re: rt2x00 802.11n devices
PostPosted: Tue Jun 23, 2009 5:55 pm 
Offline

Joined: Tue Jun 02, 2009 5:45 pm
Posts: 1
From the git web:
Quote:
description rt2x00 drivers (mac80211)
owner Ivo van Doorn
last change Sat, 20 Jun 2009 16:19:18 +0000
URL git://git.kernel.org/pub/scm/linux/kern ... rt2x00.git
http://www.kernel.org/pub/scm/linux/ker ... rt2x00.git
2 days ago Ivo van Doorn rt2x00: Implement support for rt2800pci
...


I tried them with my SparkLAN WPIR-501. Just to be precise it's in fact a RT2800pci, RT2860 MAC/BBP and RT2820 RF.
Before the new release, when modprobing rt2800pci (staging) I used to get lots of this (and the card wouldn't work).
Code:
rt2800pci 0000:01:06.0: firmware: requesting rt2860.bin
phy1 -> rt2800pci_mcu_status: Error - MCU request failed, no response from hardware

Now, when modprobing the drivers:
Code:
[ 3273.151293] rt2800pci 0000:01:06.0: PCI INT A -> Link[APC2] -> GSI 17 (level, low) -> IRQ 17
[ 3273.158567] phy2: Selected rate control algorithm 'minstrel'
[ 3273.159539] Registered led device: rt2800pci-phy2::radio
[ 3273.159561] Registered led device: rt2800pci-phy2::assoc
[ 3273.159582] Registered led device: rt2800pci-phy2::quality

Which seems alright to me, but I'm no expert.
Then when I try to put it in master mode with iwconfig, this happens. (Is that normal? )
Code:
>iwconfig wlan0 mode Master
Error for wireless request "Set Mode" (8B06) :
    SET failed on device wlan0 ; Invalid argument.

With that being said, hostapd *seems* to start just fine and ends up saying:
Code:
wlan0: Setup of interface done.

I've yet to test if it really works since I'm remote right now, but iwconfig doesn't show anything wrong (maybe except the levels, but I didn't connect any antennas for the time being).
Code:
>iwconfig wlan0
wlan0     IEEE 802.11bgn  Mode:Master  Frequency:2.412 GHz  Tx-Power=12 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:C9B0-34CF-522C-DF93-E585-0864-2714-C63C [2]
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

Oh, and also, dmesg still throws
Code:
[ 4050.151084] phy2 -> rt2800pci_mcu_status: Error - MCU request failed, no response from hardware
[ 4050.178143] phy2 -> rt2800pci_mcu_status: Error - MCU request failed, no response from hardware


Btw, many thanks to IvD for all the work on the drivers. Also thanks to Mattias, Mark, Felix and Xose for the latest patch work. Sweet piece of code guys.


Top
 Profile  
 
 Post subject: Re: rt2x00 802.11n devices
PostPosted: Thu Jul 02, 2009 8:56 pm 
Offline

Joined: Mon Jun 15, 2009 12:25 pm
Posts: 5
I'll give it a try tomorrow. The thing with iwconfing wlanx mode master + err is normal. Only way to get it in master mode is hostapd.


Top
 Profile  
 
 Post subject: Re: rt2x00 802.11n devices
PostPosted: Tue Jul 14, 2009 2:55 pm 
Offline

Joined: Tue Jul 14, 2009 2:47 pm
Posts: 2
For what its worth, I just tried the rt2800pci drivers. It appears that I cannot send wireless packets, either in managed mode or AP mode.

AP mode with hostapd, when I tcpdump the monitor interface, I see iwlist scans from my test client, and see SSID responses. However, tcpdump and monitor from the client never sees the response.

Managed mode, I can do iwlist $dev scan sometimes and see SSIDS. However, I can't connect to even an open AP.

FWIW, both work much better with a rt2800usb-based adapter I had kicking around.

Anything I can do to help get this going?


Top
 Profile  
 
 Post subject: Re: rt2x00 802.11n devices
PostPosted: Tue Jul 14, 2009 11:31 pm 
Offline

Joined: Tue Jul 14, 2009 11:21 pm
Posts: 5
Is there any way to compile the rt2800pci driver without recompiling the entire kernel from your git?
BTW: compat-wireless does not include it in its latest "bleeding edge" version (2009-07-14).


Top
 Profile  
 
 Post subject: Re: rt2x00 802.11n devices
PostPosted: Wed Jul 15, 2009 12:36 am 
Offline
Site Admin

Joined: Sun Jun 05, 2005 1:01 pm
Posts: 5879
Location: Haarlem, The Netherlands
MatejB wrote:
Is there any way to compile the rt2800pci driver without recompiling the entire kernel from your git?


No.

MatejB wrote:
BTW: compat-wireless does not include it in its latest "bleeding edge" version (2009-07-14).


That is because compat-wireless is based on the upstream wireless-testing.git and not rt2x00.git.

_________________
Regards,
Ivo van Doorn
Project Administrator
http://rt2x00.serialmonkey.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 150 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9, 10  Next

All times are UTC


Who is online

Users browsing this forum: MSN [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group