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 to enet wireless adapter on OMAP-L138

Other Parts Discussed in Thread: OMAP-L138, OMAPL138, WL1271

Is it possible to connect an OMAP-L138 to network via usb to wireless enet adapter?

Thanks,

Shilpa.

  • Has anyone suceeded in connecting USB wifi on OMAP L138 Logic PD board? If so, could you please point out to the detailed procedure.

    Thanks,

    Shilpa.

  • OMAP L138 has high speed USB OTG port and full.low speed only USBHOST OHCI port.

    You can use either of the port for USB WIFI connectivity.

    1. Enable USB interface in defconfig

    2. Enable USB WIFI driver in defconfig.

    3. Boot and connect wifi device to board.

    4. setup the ip addresses

    Regards,
    Ajay

  • Thanks Ajay. 

    Is this a tested feature? If so, can you please mention the usb wifi adapter you use for testing? Do we have a wifi driver in the latest SDK ( 4.01.00.09) with linux driver version 2.6.33-rc4-psp03.20.00.14 for testing purposes?

    Thanks,

    Shilpa

  • Shilpa,

    It's not a tested feature but should work as other customers have been using them. i think most of the usb wifi drivers should be available in kernel. Which one do you have ?

    Regards,

    Ajay

  • Ajay,

    We got USB wifi to work on our OMAPL138 board. As mentioned by you earlier, we got the wifi adapter to enumerate as full speed device on USB host OHCI port and to enumerate as a high speed device on USB host OTG port.

    Some questions:

    1. Will the USB host OHCI port support High speed mode in the future?
    2. The USB OTG port works only in PIO mode.The kernel panics in DMA mode. Is this a known issue? Will DMA mode be supported in the future?


    Thanks,
    Shilpa.

  • 1. Will the USB host OHCI port support High speed mode in the future?

    USB OHCI is a standard controller and can support only full/low speed by it's design itself.

    2. The USB OTG port works only in PIO mode.The kernel panics in DMA mode. Is this a known issue? Will DMA mode be supported in the future?

    I think there is a DMA patch to make it work. I am attaching it here,

    6521.0001--MUSB-Fix-for-CDC-Host-issue-when-streaming-more.patch.log

     

    Regards,

    Ajay

  • Ajay,

    Sorry for the late reply. The DMA patch didn't work. With this patch the kernel didn't panic,put the kernel hangs while running udhcpc to get the ipaddress for the device.

    Shilpa.

  • Shilpa,

    We have a release planned on AM18x in March last week and hopefully this issue should be fixed in it. I will keep you posted on this.

    Regards,

    Ajay

  • Thanks Ajay,

    We will wait for the update.

    Shilpa.

  • I do not see 2. USB WIFI as a option in menuconfig of my ti-dvsdk_omapl138-evm_4_02_00_

    06 / linux-2.6.33-rc4-psp03.20.00.14.sdk.
    Is that what you are referring to?  Please elaborate, detail of setup etc.
    Thanks
    Brian
  • ------------------------------

    ---------------------------------------------------
    It's not a tested feature but should work as other customers have been using them.
    i think most of the usb wifi drivers should be available in kernel. Which one do you have ?
    ---------------------------------------------------------------------------------

    Ajay Can you help me find out more info, i.e what USB WIFI modules or parts have worked on OMAP-L138 Logic PD Zoom evm board, where to find the drivers for them, how to set up the Kernel features to use them etc.   I can use any vendors part for now as long as I can get it to work on OMAP-L138 Logic PD Zoom evm board.
    I would like to / prefer to, use a Ralink based rt3070, but have been unable to find a approperate driver and or how to set it up.  Please help all.
    Thanks
    Brian

  • Brain,

    We used D-Link DWA-160 USB wifi adapter to test this feature on Logic PD board. Here are some of the instructions based on the notes I kept after trying out the DWA-160A2:.

    Make sure the following options are set in the kernel:
    CONFIG_NET
    CONFIG_PACKET
    CONFIG_INET
    WIRELESS
    CONFIG_CFG80211
    CONFIG_MAC80211
    CONFIG_NETDEVICES
    CONFIG_WLAN
    CONFIG_ATH_COMMON
    CONFIG_AR9170_USB

    Download the firmware from
    http://linuxwireless.org/en/users/Drivers/ar9170 and place it under /lib/firmware/.

    You can connect to a WEP Wi-Fi router using:
    ifconfig lo up
    ifconfig wlan0 up
    iwconfig wlan0 mode managed
    iwconfig wlan0 essid "name"
    iwconfig wlan0 key 10_digit_key
    iwconfig wlan0 channel auto
    udhcpc -i wlan0

    Regards,

    Shilpa.

  • Shilpa:
    Thanks so much for the fast response, that is great !!!

    Did you manually change the definitions in defconfig or use menuconfg to set them.


    If you did change the definitions in defconfig which defconfig file did you change in the ti-dvsdk_omapl138-evm_4_02_00_
    06 / linux-2.6.33-rc4-psp03.20.00.14.sdk?


    If you used menuconfg where did you find the selection for wireless I don't seem to see it in my ti-dvsdk_omapl138-evm_4_02_00_
    06 / linux-2.6.33-rc4-psp03.20.00.14.sdk version?


    I went to http://linuxwireless.org/en/users/Drivers/ar9170, which file should I get or is there a pre compiled module or ?.  If we are on the same sdk, perhaps you could send me the driver?


    So you did get it to work on OMAP-L138 Logic PD Zoom evm then?


    Which USB port did you use OTG or other?

    Sorry for all the questions and really appreciate the help !!!
    I've been fighting this for some time now. 
    If I can get anybody's USB wifi adaptor to connect I should be able to get others to go as well... Again thanks!

    Brian

     

  • Brian,

    We used menuconfig to change the definitions. We used da850_omapl138_defconfig in the kernel as the default and added the changes needed for USB wifi. Listed below is the path to the configuration settings from menuconfig.

    CONFIG_NET - already configured
    CONFIG_PACKET - already configured
    CONFIG_INET - already configured

    CONFIG_CFG80211 - Networking Support-> Wireless -> cfg80211 - wireless configuration API
    CONFIG_MAC80211 - Networking Support-> Wireless -> Generic IEEE 802.11 Networking Stack (mac80211).
    CONFIG_NETDEVICES - already configured
    CONFIG_WLAN - already configured
    CONFIG_ATH_COMMON - Device Drivers-> Network device support -> Wireless LAN -> Atheros Wireless Cards

    CONFIG_AR9170_USB - Device Drivers-> Network device support -> Wireless LAN -> Atheros Wireless Cards -> Atheros AR9170 802.11n USB support.

    We used the one stage firmware from the website for testing purposes.

    Yes we did get it to work on OMAP-L138 Logic PD Zoom evm. USB WIFI works on both ports. On the high speed port, it only works in PIO mode. 

    Shilpa.

     

  • Shilpa:
    Thanks again for you're fast response I really appreciate it. !!
    Nice to have someone out there willing to share there experience !  Hope I can do the same for you sometime... !

    CONFIG_ATH_COMMON - Device Drivers-> Network device support -> Wireless LAN -> Atheros Wireless Cards
    Can only be selected as a modual correct?

    I could not find this one ?
    CONFIG_AR9170_USB - Device Drivers-> Network device support -> Wireless LAN -> Atheros Wireless Cards -> Atheros AR9170 802.11n USB support. 

    Suggestions?


    So you simpley put ar9170.fw in /targetfs/lib/firmware correct ?  Nothing else ?  Correct ?
    Sorry for the dumb questions, just trying to be sure I got it all.

    Since CONFIG_ATH_COMMON can only be selected as a module did you have to load it or ?

    Thanks again for helping!
    Brian

     

  • Brian,

    No problem. It's a pleasure to share my experience.

    CONFIG_ATH_COMMON is not a module. Make sure you have Wireless LAN or any of its dependencies are not set as a module( Look in the help from menuconfig for that option to scan for dependencies).

    Once CONFIG_ATH_COMMON is enabled, CONFIG_AR9170_USB should open up.

    Yes you simply put the firmware under targetfs/lib/firmware directory. On enumeration, it should find the right firmware.

    Shilpa. 

  • Thanks Shilpa !!

    I found them all now.  I had some of the previous dependencies wrong as you said.

    I will configure and try a build tomorrow... Thanks so much !!!

    Brian

    P.S. also noticed there is some Ralink stuff in there but the bummer is

    CONFIG_RT2800USB:

     Known issues:
      │ - support for RT2870 chips doesn't work with 802.11n APs yet
      │ - support for RT3070 chips is non-functional at the moment

    RT3070 is the one I would ultimately like to use... but we'll get it going whit whatever for now....

     

    Thanks again and I'll let you know on progress.  Often some of the e2e' never have a conclusion and I will let you know... Thanks

    Brian.

  • Shilpa: Sorry for the continued traffic on this post but just want to be sure this is the actual device you used

    http://www.cdw.com/shop/products/D-Link-Xtreme-N-Duo-USB-Adapter-DWA-160-network-adapter/1381385.aspx?enkwrd=ALLPROD%3a|D-Link%2520DWA-160%2520USB|All%20Product%20Catalog#TS

    Correct?

    Thanks

    Brian

  • Brian,

    Yes that's the correct device.

    Shilpa.

  • Hello Shilpa:
    It appears the D-Link USB WiFi stick does get recognised now.
    When plugged in

    usb 1-1: new high speed USB device using musb_hdrc and address 2
    usb 1-1: reset high speed USB device using musb_hdrc and address 2
    usb 1-1: firmware: requesting ar9170.fw
    ath: EEPROM regdomain: 0x3a
    ath: EEPROM indicates we should expect a direct regpair map
    ath: Country alpha2 being used: CA
    ath: Regpair used: 0x3a
    phy0: Selected rate control algorithm 'minstrel'
    cfg80211: Calling CRDA for country: CA
    usb 1-1: Atheros AR9170 is registered as 'phy0'
    udev: renamed network interface wlan0 to wlan2

    then
    root@arago:/# lsusb
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 001 Device 002: ID 07d1:3a09 D-Link System
    Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

    So it appears to be there.

    I believe I was able to set a IP address for it
    root@arago:/# ifconfig wlan2 xxx.xxx.xx.xx netmask 255.255.255.0 up
    and it does show up using root@arago:/# ifconfig 

    eth0      xxxxxxxxxxxxxxxxxxx   etc.

    lo        xxxxxxxxxxxxxxxxxxx   etc.

    wlan2     Link encap:Ethernet  HWaddr 14:D6:4D:56:16:14 
              inet addr:xxx.xxx.xx.xx  Bcast:xxx.xxx.xx.xx  Mask:255.255.255.0
              UP BROADCAST MULTICAST  MTU:1500  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:1000
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

    I then did
    root@arago:/# iwconfig wlan1 mode managed
    -sh: iwconfig: not found
    Appears I do not have Wireless Tools or ? in this system?
    I looked at this http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html but not sure I need or what to do hear?
    Is it perhaps Common routines for IEEE802.11 drivers in the menuconfig?
    Is this what I need to be doing to establish a connection?

    I did try ping(ing) my remote access point, but of course it timed out.
    What do I need to do to connect any suggestions...
    P.S. I am connecting to a non secured WiFi network access point.
    I am basically using a very similarar set up (access point wise) as shown hear
    http://processors.wiki.ti.com/index.php/OMAPL138_Wireless_Connectivity_Demo
    I do have the  WL1271 daughter card and have gone threw this wiki, and all works as expected with a
    non secured WiFi network access point.
    Im trying to achieve the same only using USB WiFi adapter instead of the WL1271 card.
    Sounds like you have managed to do that so again thanks for sharing, I think I'm close. ?

    Any thoughts? 

    Thanks again!!  Brian

  • Brain

    iwconfig is part of the wireless-tools package which can be found at :
    http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/wireless_tools.29.tar.gz

    Download the package and rebuild using codesourcery tools and drop it under /sbin directory. And you are good to go.

    Shilpa.

  • Shilpa Thanks got it rebuilt it and moved everything to /sbin.

    Now with any iwconfig command i.e.

    iwconfig --version,  iwconfig wlan2 mode managed  etc, etc I get 

    root@arago:/# iwconfig --version
    /sbin/iwconfig: line 1: syntax error: "(" unexpected

    Am I missing wireless extensions or ??  Thank you again for helping me !!

    Brian

     

  • Brain,

    Can I have your email id ? I'll try to send the executable that I used.

    Shilpa.

  • Shilpa.Thanks!  If its not to large I think you can just use the insert file icon on this form (the paper clip) maybe?

    Otherwise let me know and I will get you e-mail address somehow.  I'm a little reluctant to put that up on a "semi" privet / public forum such as this, if you know what I mean.

    Thanks again let me know... !

    Brian

  • 0118.iwconfig.zip

    Brian,

    Please try the above link.  Otherwise you can get iwconfig from am180x sdk which can be downloaded from link below:

    http://focus.ti.com/docs/toolsw/folders/print/linuxezsdk-sitara.html

    Download LINUXEZSDK-AM18X from the above link.

    After installing the sdk, iwconfig should be in tisdk-rootfs-am180x-evm.tar.gz under SDK_INSTALL_DIR/filesystem directory.

    Shilpa.

     

  • Shilpa:  Thanks the .zip file worked !!!

    root@arago:/# iwconfig
    lo        no wirnet eth0: DaVinci EMAC: ioctl not supported
    eless extensions.

    eth0      no wireless extensions.

    wlan2     IEEE 802.11abg  ESSID:"name" 
              Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm  
              Retry  long limit:7   RTS thr:off   Fragment thr:off
              Encryption key:off
              Power Management:off

    Thanks so much !!!

    Now if I could just figure out setting the access point to a non-secure local wifi network I think I be in shape?

    I tried iwconfig wlan2 ap xx:xx:xx:xx:xx:xx  the mac address of the Wireless access point i.e. the router.  I thought that would show up as a access point but it did not.

    root@arago:~# iwconfig                           
    lo        no wirnet eth0: DaVinci EMAC: ioctl not supported
    eless extensions.

    eth0      no wireless extensions.

    wlan2     IEEE 802.11abg  Mode:Managed  Access Point: Not-Associated   
              Tx-Power=20 dBm   
              Retry  long limit:7   RTS thr:off   Fragment thr:off
              Encryption key:off
              Power Management:off

    Guess I'll keep searching?  If you have any pointers thanks again !!

    Brian

    P.S. could you perhaps as well zip up the other wireless tools and send ?

    • iwlist allow to initiate scanning and list frequencies, bit-rates, encryption keys...
    • iwspy allow to get per node link quality
    • iwpriv allow to manipulate the Wireless Extensions specific to a driver (private)
    • ifrenam

    if you have them?  again thanks you have been extremely helpful !!!

    Brian

  • Shilpa:

    I have managed to descover the Wireless access point i.e. the router. and obtain the access point .

    root@arago:/# iwconfig wlan2 essid "Test_Router" 
    root@arago:/# ADDRCONF(NETDEV_CHANGE): wlan2: link becomes ready
    iwconfig wlan2 channel auto
    root@arago:/# udhcpc -i wlan2
    udhcpc (v1.13.2) started
    Sending discover...
    Sending select for 192.168.1.100...
    Lease of 192.168.1.100 obtained, lease time 86400
    RTNETLINK answers: File exists
    adding dns 192.168.1.1


    root@arago:/# ifconfig
    eth0      Link encap:Ethernet  HWaddr 00:08:EE:04:9B:44 
              inet addr:xxx.xxx.x.xxx Bcast:xxx.xxx.x.xxx  Mask:255.255.255.0
              inet6 addr: fe80::208:eeff:fe04:9b44/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:9235 errors:0 dropped:0 overruns:0 frame:0
              TX packets:6554 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:6973326 (6.6 MiB)  TX bytes:1536696 (1.4 MiB)
              Interrupt:33

    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)

    wlan2     Link encap:Ethernet  HWaddr 14:D6:4D:56:16:14 
              inet addr:192.168.1.100  Bcast:0.0.0.0  Mask:255.255.255.0
              inet6 addr: fe80::16d6:4dff:fe56:1614/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:106 errors:0 dropped:0 overruns:0 frame:0
              TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:8572 (8.3 KiB)  TX bytes:1792 (1.7 KiB)


    root@arago:/# iwconfig
    lo        no wirnet eth0: DaVinci EMAC: ioctl not supported
    eless extensions.

    eth0      no wireless extensions.

    wlan2     IEEE 802.11abg  ESSID:"Test_Router" 
              Mode:Managed  Frequency:2.412 GHz  Access Point: C0:C1:C0:0D:A9:16  
              Bit Rate=1 Mb/s   Tx-Power=20 dBm  
              Retry  long limit:7   RTS thr:off   Fragment thr:off
              Encryption key:off
              Power Management:off
              Link Quality=48/70  Signal level=-62 dBm 
              Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
              Tx excessive retries:0  Invalid misc:0   Missed beacon:0

    Trouble is I just cant seem to ping the PC that is connected to the Access Poin, nor the  EVM from the PC connected to the Access Point via Ethernet.

    I think it is safe to say that I am connected to the access point since I got a Lease and a IP address, is that correct?

    root@arago:/# udhcpc -i wlan2
    udhcpc (v1.13.2) started
    Sending discover...
    Sending select for 192.168.1.100...
    Lease of 192.168.1.100 obtained, lease time 86400
    RTNETLINK answers: File exists
    adding dns 192.168.1.1

    Not quite sure why the Access Point: mac address is showing up as C0:C1:C0:0D:A9:16 for that device, i.e router, when the configuration for that device says it is C0:C1:C0:0D:A9:15 ?  But I'm not a network guy, so I'm just trying to prove the hardware i.e. eval board can work with USB wifi module.

    I'll keep looking... Thanks again so much !!

    P.S if you could send the other wireless tools, if you have them, that would be great !!!  Thanks !

    Brian

     



  • Shilpa:

    I can not thank you enough I am able to ping both directions....!!

    Again thanks, and if you have the other tools please send... something must have gone wrong with my build of them not sure but all tools I built exhibit the same

    /sbin/iwconfig: line 1: syntax error: "(" unexpected

    Thanks Brian

     

  • @Shilpa/Brian,

    I also faced the same problem. I downloaded wireless tools and cross compiled it. But it didnt work out.

    Then I tried the above iwconfig tool. Its worked. Thanks for the tool.

    Could you please send me the other wireless tools (iwlist, iwpriv, ifrenam, iwspy) if you have.

    Thanks in advance..

    Sanath