archos 10 integrated RT2573 - AP mode crash after few days

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

defer

05-12-2010 08:00:52

Hi. Im using Micro Star International RT2573 in AP-mode. It is integrated wlan card of my archos 10 netbook. Im running funtoo linux with 2.6.36-gentoo-r3 kernel. It works well but in few days after starting network crashes and i get this error to dmesg "Dec 3 043003 dfr-netbook kernel [123395.028611] phy0 -> rt2x00usb_vendor_request Error - Vendor Request 0x07 failed for offset 0x3034 with error -71." Nothing else seems to help so i have to restart my "ap/server" once in few days to get wlan back up. I have also tried with newest rt2x00.git kernel and hostapd 0.8.x from git. Didnt resolve the problem (but i could set tx-power to 20). Also have tried disabling powersaving in ap and clients. Still get the same error.

Please let me know if there is anything i can do to help solve this problem. Its not fun having to boot your server many times a week. Thank you!

dmesg http//pastebin.com/Gwt7jNkV

defer@dfr-netbook ~/rt2x00usb/logs $ sudo uname -a
Linux dfr-netbook 2.6.36-gentoo-r3 #3 SMP Sat Nov 27 025836 EET 2010 i686 Intel(R) Atom(TM) CPU N270 @ 1.60GHz GenuineIntel GNU/Linux

defer@dfr-netbook ~/rt2x00usb/logs $ sudo lsusb
Bus 001 Device 004 ID 0db06877 Micro Star International RT2573

defer@dfr-netbook ~/rt2x00usb/logs $ sudo lsmod
Module Size Used by
xt_mark 871 0
rt73usb 22518 0
rt2x00usb 8815 1 rt73usb
rt2x00lib 28117 2 rt73usb,rt2x00usb

defer@dfr-netbook ~/rt2x00usb/logs $ sudo emerge --info
Portage 2.2_rc67-r2 (default/linux/x86/2008.0/desktop, gcc-4.4.5, glibc-2.11.2-r2, 2.6.36-gentoo-r3 i686)
=================================================================
System uname Linux-2.6.36-gentoo-r3-i686-Intel-R-_Atom-TM-_CPU_N270_@_1.60GHz-with-gentoo-2.1.8
Timestamp of tree Wed, 01 Dec 2010 190001 +0000
app-shells/bash 4.1_p9
dev-lang/python 2.6.5-r3
dev-util/cmake 2.8.1-r2
sys-apps/baselayout 2.1.8-r2
sys-apps/openrc 0.6.5-r1
sys-apps/sandbox 2.3-r1
sys-devel/autoconf 2.13, 2.68
sys-devel/automake 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils 2.20.1
sys-devel/gcc 4.4.5
sys-devel/gcc-config 1.4.1
sys-devel/libtool 2.4-r1
sys-devel/make 3.81-r2
virtual/os-headers 2.6.32
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -fomit-frame-pointer -pipe"
CXXFLAGS="-march=prescott -O2 -fomit-frame-pointer -pipe"

defer

07-12-2010 07:36:22

I got this error while trying rt2x00.git kernel with hostapd from git
[ 235.055757] cfg80211 Calling CRDA for country FI
[ 245.218046] wlan0 no IPv6 routers present
[ 3819.002469] phy0 -> rt2x00usb_watchdog_tx_dma Warning - TX queue 2 DMA timed out, invoke forced forced reset
[ 8332.004323] phy0 -> rt2x00queue_write_tx_frame Error - Arrived at non-free entry in the non-full queue 2.
[ 8332.004336] Please file bug report to http//rt2x00.serialmonkey.com.
[11477.003327] phy0 -> rt2x00usb_watchdog_tx_dma Warning - TX queue 2 DMA timed out, invoke forced forced reset
[11477.508282] usb 1-7 events/0 timed out on ep0in len=0/4
[11478.008289] usb 1-7 events/0 timed out on ep0in len=0/4
[11478.508295] usb 1-7 events/0 timed out on ep0in len=0/4
[11479.008302] usb 1-7 events/0 timed out on ep0in len=0/4
[11479.508308] usb 1-7 events/0 timed out on ep0in len=0/4
[11479.508332] phy0 -> rt2x00usb_vendor_request Error - Vendor Request 0x07 failed for offset 0x3034 with error -110.
[11485.082700] phy0 -> rt2x00mac_conf_tx Info - Configured TX queue 0 - CWmin 3, CWmax 4, Aifs 2, TXop 102.
[11485.084678] phy0 -> rt2x00mac_conf_tx Info - Configured TX queue 1 - CWmin 4, CWmax 5, Aifs 2, TXop 188.
[11485.086677] phy0 -> rt2x00mac_conf_tx Info - Configured TX queue 2 - CWmin 5, CWmax 10, Aifs 3, TXop 0.
[11485.088677] phy0 -> rt2x00mac_conf_tx Info - Configured TX queue 3 - CWmin 5, CWmax 10, Aifs 7, TXop 0.

dmesg http//pastebin.com/48iSc5u7

$ uname -a
Linux dfr-netbook 2.6.35+ #4 SMP Wed Dec 1 024449 EET 2010 i686 Intel(R) Atom(TM) CPU N270 @ 1.60GHz GenuineIntel GNU/Linux

$ iwconfig
wlan0 IEEE 802.11bg ModeMaster Frequency2.452 GHz Tx-Power=20 dBm
Retry long limit7 RTS throff Fragment throff
Power Managementoff

mon.wlan0 IEEE 802.11bg ModeMonitor Tx-Power=20 dBm
Retry long limit7 RTS throff Fragment throff
Power Managementoff

defer

17-12-2010 09:01:06

With up to date rt2x00.git i could bring wlan up again without reboot after "rt2x00usb_vendor_request" error. Im really thankful about this improvement!

This way i could bring wlan up without reboot (same method has been failing before)
# /etc/init.d/dnsmasq stop
# /etc/init.d/hostapd stop
# /etc/init.d/netif.wlan0 stop
# /etc/init.d/netif.wlan0 start
# /etc/init.d/hostapd start
# /etc/init.d/dnsmasq start
# /root/iptables-nat.sh

syslog
Dec 17 101128 dfr-netbook kernel phy0 -> rt2x00usb_watchdog_tx_dma Warning - TX queue 2 DMA timed out, invoke forced forced reset
Dec 17 101128 dfr-netbook kernel usb 1-7 events/0 timed out on ep0in len=0/4
Dec 17 101128 dfr-netbook kernel usb 1-7 events/0 timed out on ep0in len=0/4
Dec 17 101129 dfr-netbook kernel usb 1-7 events/0 timed out on ep0in len=0/4
Dec 17 101129 dfr-netbook kernel usb 1-7 events/0 timed out on ep0in len=0/4
Dec 17 101130 dfr-netbook kernel usb 1-7 events/0 timed out on ep0in len=0/4
Dec 17 101130 dfr-netbook kernel phy0 -> rt2x00usb_vendor_request Error - Vendor Request 0x07 failed for offset 0x3034 with error -110.
Dec 17 101342 dfr-netbook hostapd wlan0 STA 00242143100a IEEE 802.11 disassociated due to inactivity
Dec 17 101343 dfr-netbook hostapd wlan0 STA 00242143100a IEEE 802.11 deauthenticated due to inactivity
Dec 17 101716 dfr-netbook dnsmasq[28021] exiting on receipt of SIGTERM
Dec 17 101720 dfr-netbook kernel netconsole network logging stopped, interface mon.wlan0 unregistered
Dec 17 101808 dfr-netbook kernel phy0 -> rt2x00mac_conf_tx Info - Configured TX queue 0 - CWmin 2, CWmax 3, Aifs 2, TXop 47.
Dec 17 101808 dfr-netbook kernel phy0 -> rt2x00mac_conf_tx Info - Configured TX queue 1 - CWmin 3, CWmax 4, Aifs 2, TXop 94.
Dec 17 101808 dfr-netbook kernel phy0 -> rt2x00mac_conf_tx Info - Configured TX queue 2 - CWmin 4, CWmax 10, Aifs 3, TXop 0.
Dec 17 101808 dfr-netbook kernel phy0 -> rt2x00mac_conf_tx Info - Configured TX queue 3 - CWmin 4, CWmax 10, Aifs 7, TXop 0.
Dec 17 101808 dfr-netbook kernel ADDRCONF(NETDEV_UP) wlan0 link is not ready
Dec 17 101818 dfr-netbook kernel phy0 -> rt2x00mac_conf_tx Info - Configured TX queue 0 - CWmin 3, CWmax 4, Aifs 2, TXop 102.
Dec 17 101818 dfr-netbook kernel phy0 -> rt2x00mac_conf_tx Info - Configured TX queue 1 - CWmin 4, CWmax 5, Aifs 2, TXop 188.
Dec 17 101818 dfr-netbook kernel phy0 -> rt2x00mac_conf_tx Info - Configured TX queue 2 - CWmin 5, CWmax 10, Aifs 3, TXop 0.
Dec 17 101818 dfr-netbook kernel phy0 -> rt2x00mac_conf_tx Info - Configured TX queue 3 - CWmin 5, CWmax 10, Aifs 7, TXop 0.
Dec 17 101818 dfr-netbook kernel phy0 -> rt2x00mac_conf_tx Info - Configured TX queue 0 - CWmin 2, CWmax 3, Aifs 2, TXop 47.
Dec 17 101818 dfr-netbook kernel phy0 -> rt2x00mac_conf_tx Info - Configured TX queue 1 - CWmin 3, CWmax 4, Aifs 2, TXop 94.
Dec 17 101818 dfr-netbook kernel phy0 -> rt2x00mac_conf_tx Info - Configured TX queue 2 - CWmin 4, CWmax 10, Aifs 3, TXop 0.
Dec 17 101818 dfr-netbook kernel phy0 -> rt2x00mac_conf_tx Info - Configured TX queue 3 - CWmin 4, CWmax 10, Aifs 7, TXop 0.
Dec 17 101822 dfr-netbook hostapd wlan0 STA 00242143100a IEEE 802.11 authenticated
Dec 17 101822 dfr-netbook hostapd wlan0 STA 00242143100a IEEE 802.11 associated (aid 1)
Dec 17 101822 dfr-netbook hostapd wlan0 STA 00242143100a RADIUS starting accounting session 4D0B1CCA-00000000
Dec 17 101828 dfr-netbook kernel wlan0 no IPv6 routers present
Dec 17 101833 dfr-netbook dnsmasq[739] started, version 2.55 cachesize 150
Dec 17 101833 dfr-netbook dnsmasq[739] compile time options IPv6 GNU-getopt DBus I18N DHCP no-TFTP
Dec 17 101833 dfr-netbook dnsmasq-dhcp[739] DHCP, IP range 192.168.0.10 -- 192.168.0.50, lease time 2d
Dec 17 101833 dfr-netbook dnsmasq[739] reading /etc/resolv.conf
Dec 17 101833 dfr-netbook dnsmasq[739] using nameserver 193.229.0.42#53
Dec 17 101833 dfr-netbook dnsmasq[739] using nameserver 193.229.0.40#53
Dec 17 101833 dfr-netbook dnsmasq[739] read /etc/hosts - 3 addresses
Dec 17 101837 dfr-netbook dnsmasq-dhcp[739] DHCPDISCOVER(wlan0) 00242143100a
Dec 17 101837 dfr-netbook dnsmasq-dhcp[739] DHCPOFFER(wlan0) 192.168.0.32 00242143100a
Dec 17 101837 dfr-netbook dnsmasq-dhcp[739] DHCPREQUEST(wlan0) 192.168.0.32 00242143100a
Dec 17 101837 dfr-netbook dnsmasq-dhcp[739] DHCPACK(wlan0) 192.168.0.32 00242143100a your-7f23718c86