Find the answer to your Linux question:
Results 1 to 6 of 6
Hello all, Thank you for your time. I am currently having some issues getting my TP-Link TL-WN422G wireless adapter working on my beaglebone running an angstrom ubuntu linux. (Somewhat new ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2012
    Location
    California
    Posts
    3

    Ath9k-htc with Atheros AR9271 on Beaglebone with angstrom ubuntu


    Hello all,

    Thank you for your time. I am currently having some issues getting my TP-Link TL-WN422G wireless adapter working on my beaglebone running an angstrom ubuntu linux. (Somewhat new to linux in general, really trying to immerse myself currently though!) The end result that I am looking for is running my beaglebone as an access point. After doing some research, I believe that this wireless adapter's chipset is supported by the ath9k-htc drivers, which supports acting as an access point. For now, I would just like to get the wireless running, I can figure out the AP stuff afterward. I believe I have the information asked for from the "wireless setup start here" post, but if I am missing anything, please let me know and I will get it asap.

    The issue I am running into is that when the wireless adapter is plugged into the usb port, it will start freezing my ssh session. I have been messing around with this for the past 4-5 hours today, and have had mostly the same results. When I unplug the adapter, the session resumes and I can continue interacting with the beaglebone. My debugging process is something like: get the command ready, plug in the wireless adapter, hit enter before it "freezes." I am not sure exactly what I am racing, perhaps the wireless initializing of the device, just a guess. From this process, I have gotten the following information:

    lsusb:
    (typed lsusb, plugged in card, hit enter, and this showed up before the session froze)
    Code:
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 001 Device 006: ID 0cf3:1006 Atheros Communications, Inc. TP-Link TL-WN322G v3 / TL-WN422G v2 802.11g [Atheros AR9271]
    lsmod:
    Code:
    Module                  Size  Used by
    aes_generic            27837  2 
    arc4                    1111  2 
    ath9k_htc              49066  0 
    mac80211              227364  1 ath9k_htc
    ath9k_common            3111  1 ath9k_htc
    ath9k_hw              357489  2 ath9k_htc,ath9k_common
    ath                    15700  3 ath9k_htc,ath9k_common,ath9k_hw
    cfg80211              167346  3 ath9k_htc,mac80211,ath
    rfkill                 16663  1 cfg80211
    spidev                  5012  0 
    snd_soc_tlv320aic3x    32666  0

    ifconfig -a:
    Code:
    eth0      Link encap:Ethernet  HWaddr d4:94:a1:97:1f:93  
              inet addr:192.168.1.14  Bcast:192.168.1.255  Mask:255.255.255.0
              inet6 addr: fe80::d694:a1ff:fe97:1f93/64 Scope:Link
              UP BROADCAST RUNNING ALLMULTI MULTICAST  MTU:1500  Metric:1
              RX packets:4228 errors:0 dropped:0 overruns:0 frame:0
              TX packets:2382 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:723854 (723.8 KB)  TX bytes:578340 (578.3 KB)
    
    lo        Link encap:Local Loopback  
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
    dmesg:
    (This part seemed to loop several times, I am guessing this is where the problem is, if more is needed, please let me know)
    Code:
    [ 1242.461717] usb 1-1: new high-speed USB device number 8 using musb-hdrc
    [ 1242.622727] usb 1-1: New USB device found, idVendor=0cf3, idProduct=1006
    [ 1242.622777] usb 1-1: New USB device strings: Mfr=16, Product=32, SerialNumber=48
    [ 1242.622816] usb 1-1: Product: USB2.0 WLAN
    [ 1242.622844] usb 1-1: Manufacturer: ATHEROS
    [ 1242.622870] usb 1-1: SerialNumber: 12345
    [ 1242.931272] usb 1-1: ath9k_htc: Transferred FW: htc_9271.fw, size: 51272
    [ 1243.167025] ath9k_htc 1-1:1.0: ath9k_htc: HTC initialized with 33 credits
    [ 1254.314385] Failed to initialize the device
    [ 1254.320176] ath9k_htc: probe of 1-1:1.0 failed with error -22
    [ 1254.322241] usb 1-1: USB disconnect, device number 8
    I really appreciate any input or direction that I should take this!

    Thank you,
    Char

    Edit1: I believe my etc/network/interfaces is correct, I had this working flawlessly with my other usb adapter (it just didnt support APs)
    Last edited by Charzoc; 09-03-2012 at 01:33 AM. Reason: clarification

  2. #2
    Linux Guru rokytnji's Avatar
    Join Date
    Jul 2008
    Location
    Desert
    Posts
    4,037
    Beaglebone/Beagle Board

    The issue I am running into is that when the wireless adapter is plugged into the usb port, it will start freezing
    Try onother usb wireless dongle to make sure this is not a Beagle Bone hardware issue. Which basically sounds like a Hard ware issue.

    I had this working flawlessly with my other usb adapter(it just didnt support APs)
    Ok. Just saw that. It sounds like that
    Code:
    Bus 001 Device 006: ID 0cf3:1006 Atheros Communications, Inc. TP-Link TL-WN322G v3 / TL-WN422G v2 802.11g [Atheros AR9271]
    and Beaglebone board are having a hardware conflict. I am not savvy assignning IRQ designations on a computer. Just some stuff to read.

    Gentoo Forums :: View topic - [RESOLVED] Beagle Bone: Gentoo Startup Fails

    https://groups.google.com/forum/?fro...rd/Cs5K9WJc3oU

    http://embedded-system-training.goog...N322GPlus.wiki

    http://beagleboard.org/support/faq

    http://beagleboard.org/discuss
    I am afraid I won't be of much help on this one.
    Linux Registered User # 475019
    Lead,Follow, or get the heck out of the way. I Have a Masters in Raising Hell
    Tech Books
    Free Linux Books
    Newbie Guide
    Courses at Home

  3. #3
    Just Joined!
    Join Date
    Sep 2012
    Location
    California
    Posts
    3
    I appreciate the resources! I will read through those now

  4. #4
    Linux Guru rokytnji's Avatar
    Join Date
    Jul 2008
    Location
    Desert
    Posts
    4,037
    Was Just wondering with the atheros usb plugged in if

    Code:
    rfkill list
    may be blocking the adapter also. I was reading this over at

    https://groups.google.com/forum/?fro...rd/tG6d_VpZ9Pc

    and

    beagleboard - [beagleboard] Re: Wifi dongle adapter RT3070 or AR9271 - msg#00700 - Recent Discussion OSDir.com

    Kinda hard to find any info on beagle boards.

    IRC Log for #beagle on irc.freenode.net, collected by BeagleLogBot

    seems like you are not the only one with this problem either

    https://groups.google.com/forum/?fro...rd/gqFohLcR0fg

    Low-cost, fan-less, ARM-based computer user's group. ()
    Linux Registered User # 475019
    Lead,Follow, or get the heck out of the way. I Have a Masters in Raising Hell
    Tech Books
    Free Linux Books
    Newbie Guide
    Courses at Home

  5. #5
    Just Joined!
    Join Date
    Sep 2012
    Location
    California
    Posts
    3
    Yeah, beaglebone resources are hard to come across :/ I actually have most of those links bookmarked :P I appreciate the on-going effort. There's gotta be something that is blocking/interfering. I mean, it *does* work like 1 in 25 times that I try, so I am fairly confident that the hardware in the wireless adapter is fine. Gotta be a process :/ Thanks! I will be sure to post as soon as I solve this

  6. #6
    Just Joined!
    Join Date
    Oct 2012
    Posts
    15
    thanks for links. its hard to find the perfect knowledge but you did well.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •