This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

USB Wi-Fi hungs on 2.0 port with L138 EVM

I'm trying to connect my L138 EMV to wireless router using USB wifi dongle using DVSDK_4.03 04_03_00_06.

using this forum post as road map

http://e2e.ti.com/support/embedded/linux/f/354/t/94791.aspx?pi36987=1

I'm now able to connect EVM with D-link DWA-160 A2 adapter attached to USB1.1 port  to wireless network, but with 2.0 port there is problem.

when wifi adapter attached to 2.0 port it is enumerated fine, firmware downloaded too. then I set network parameters and up connection:

root@arago:~# iwconfig wlan0 mode managed
root@arago:~# iwconfig wlan0 essid "D-link"
root@arago:~# iwconfig wlan0 key 1234512345
root@arago:~# iwconfig wlan0 channel auto

root@arago:~# ifconfig wlan0 up
ADDRCONF(NETDEV_UP): wlan0: link is not ready
root@arago:~# ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
root@arago:~# iwconfig
lo        no wirnet eth0: DaVinci EMAC: ioctl not supported
eless extensions.
eth0      no wireless extensions.
wlan0     IEEE 802.11abgn  ESSID:"D-link"  Mode:Managed  Frequency:2.412 GHz  Access Point: 00:21:91:2C:4B:A1   
          Bit Rate=1 Mb/s   Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:1234-5123-45
          Power Management:off
          Link Quality=70/70  Signal level=-32 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

everything looks ok until dhcp procedure:

root@arago:~# udhcpc -i wlan0
udhcpc (v1.13.2) started
Sending discover...
usb 1-1: no command feedback received (-110).
usb 1-1: restart device (6)
ieee80211 phy1: writing reg 0x1d0104 (val 0x3) failed (-110)
usb 1-1: firmware upload failed (-32).
usb 1-1: Failed to restart device  (-32).
ieee80211 phy1: writing reg 0x1c36f0 (val 0x5000) failed (-5)
cfg80211: Calling CRDA to update world regulatory domain
netconsole: network logging stopped, interface wlan0 unregistered
cfg80211: World regulatory domain updated:
    (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
usb 1-1: reset high speed USB device using musb-hdrc and address 3
usb 1-1: reset high speed USB device using musb-hdrc and address 3
usb 1-1: driver   API: 1.8.8.3 2010-09-28 [1-1]
usb 1-1: firmware API: 1.9.2 2010-12-25
cfg80211: Calling CRDA for country: RU
usb 1-1: Atheros AR9170 is registered as 'phy2'
cfg80211: Regulatory domain changed to country: RU
    (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
    (5735000 KHz - 5835000 KHz @ 20000 KHz), (N/A, 3000 mBm)
udhcpc: bind: No such device
root@arago:~#

it seems wifi adapter hangs. I was trying ar9170 and carl9170-1 firmwares and both Atheros and Linux Community drivers integrated in kernel. for community driver log provided above. here network fails, but adapter successfully restarted. with Atheros driver enabled in kernel and ar9170.fw firmware I have to manually replug dongle to make it enumerated again.

as with 1.1 port everything works fine the question is what's wrong with USB 2.0?

I'w attached my .config file for kernel 4034.config.zip

Thanks,

Dmitriy.