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.

How to enable WLAN on AM335X StarterKit EVM?

Other Parts Discussed in Thread: WL1271

Hi,

My SK-EVM board boots fine with Ethernet to the Arago prompt. I basically want to enable WLAN at that point. What are the Linux programs/commands to issue to do that? I know the SSID of the wireless network to connect to and am willing to have the password kept in a file somewhere if need be. We just need to test the wireless connectivity in a lab setup.

Besides the issue of what to run to enable WLAN, I am thinking that I may have to rebuild the kernel because I do not see these wl12xx messages, like these obtained from the stock Linux SD card:

[ 4.978759] wl12xx: driver version: ol_R5.00.17
[ 4.983520] wl12xx: compilation time: Thu May 17 05:25:00 2012
[ 5.366546] wl12xx: loaded

Thanks.

-Tho

  • EVM-SK WiFi worked for me "out of the box" with SDK05.05 stock.  You can use the Matrix WiFi->WPA icons or use the command line mentioned here:

    http://processors.wiki.ti.com/index.php/WL18xx_First_Time_Getting_Started_Guide#Running_the_Demos

    (I did move to SDK05.07 for EVM WiFi to work with WiLink6/COM6 board  "out of the box" so I could install WiLink8/COM8 board)

    Please see my EVM-SK log below (after using the Matrix icons):

    root@am335x-evm:~#

    root@am335x-evm:~# ifconfig

    eth0    Link encap:Ethernet  HWaddr D4:94:A1:88:6B:83           inet addr:158.218.121.3  Bcast:0.0.0.0  Mask:255.255.254.0           UP BROADCAST RUNNING ALLMULTI MULTICAST  MTU:1500  Metric:1           RX packets:530 errors:0 dropped:203 overruns:0 frame:0           TX packets:2 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000           RX bytes:50144 (48.9 KiB)  TX bytes:1180 (1.1 KiB)

    lo        Link encap:Local Loopback           inet addr:127.0.0.1  Mask:255.0.0.0           UP LOOPBACK RUNNING  MTU:16436  Metric:1           RX packets:216 errors:0 dropped:0 overruns:0 frame:0           TX packets:216 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:0           RX bytes:304462 (297.3 KiB)  TX bytes:304462 (297.3 KiB)

    wlan0     Link encap:Ethernet  HWaddr 00:01:33:88:44:72           inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:25 errors:0 dropped:3 overruns:0 frame:0           TX packets:28 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000           RX bytes:2007 (1.9 KiB)  TX bytes:4248 (4.1 KiB)

    root@am335x-evm:~# iw wlan0 scan

    BSS 08:86:3b:29:6d:06 (on wlan0) -- associated         TSF: 374829630 usec (0d, 00:06:14)         freq: 2462         beacon interval: 100         capability: ESS ShortSlotTime (0x0401)         signal: -53.00 dBm         last seen: 10 ms ago         Information elements from Probe Response frame:         SSID: belkin.joe         Supported rates: 1.0* 2.0* 5.5* 11.0* 6.0 9.0 12.0 18.0         DS Parameter set: channel 11         ERP: <no flags>         Extended supported rates: 24.0 36.0 48.0 54.0         HT capabilities:                 Capabilities: 0x186e                         HT20/HT40                         SM Power Save disabled                         RX HT20 SGI                         RX HT40 SGI                         No RX STBC                         Max AMSDU length: 7935 bytes                         DSSS/CCK HT40                 Maximum RX AMPDU length 32767 bytes (exponent: 0x002)                 Minimum RX AMPDU time spacing: 8 usec (0x06)                 HT RX MCS rate indexes supported: 0-7                 HT TX MCS rate indexes are undefined         HT operation:                  * primary channel: 11                  * secondary channel offset: below                  * STA channel width: any                  * RIFS: 0                  * HT protection: no                  * non-GF present: 0                  * OBSS non-GF present: 0                  * dual beacon: 0                  * dual CTS protection: 0                  * STBC beacon: 0                  * L-SIG TXOP Prot: 0                  * PCO active: 0                  * PCO phase: 0         WMM:     * Parameter version 1                  * BE: CW 15-1023, AIFSN 3                  * BK: CW 15-1023, AIFSN 7                  * VI: CW 7-15, AIFSN 2, TXOP 3008 usec                  * VO: acm CW 3-7, AIFSN 2, TXOP 1504 usec         WPS:     * Version: 1.0                  * Wi-Fi Protected Setup State: 2 (Configured)                  * Response Type: 3 (AP)                  * UUID: 775b6680-bfde-11d3-8d2f-08863b296d06                  * Manufacturer: Belkin International                  * Model: N150 Wireless Router                  * Model Number: F9K1001                  * Serial Number: 201120G1122267                  * Primary Device Type: 6-0050f204-1                  * Device name: Belkin N150 Wireless Router                  * Config methods: Ethernet, Label, PBC

    root@am335x-evm:~# iw wlan0 link

    Connected to 08:86:3b:29:6d:06 (on wlan0)         SSID: belkin.joe         freq: 2462         RX: 6742 bytes (55 packets)         TX: 5737 bytes (32 packets)         signal: -52 dBm         tx bitrate: 72.2 MBit/s MCS 7 short GI

            bss flags:      short-slot-time         dtim period:    1         beacon int:     100        

    root@am335x-evm:~# udhcpc -i wlan0

    udhcpc (v1.13.2) started Sending discover... Sending select for 192.168.2.2... Lease of 192.168.2.2 obtained, lease time 268435455 adding dns 192.168.2.1

    root@am335x-evm:~# ifconfig

    eth0      Link encap:Ethernet  HWaddr D4:94:A1:88:6B:83           inet addr:158.218.121.3  Bcast:0.0.0.0  Mask:255.255.254.0           UP BROADCAST RUNNING ALLMULTI MULTICAST  MTU:1500  Metric:1           RX packets:2651 errors:0 dropped:931 overruns:0 frame:0           TX packets:12 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000           RX bytes:259232 (253.1 KiB)  TX bytes:3598 (3.5 KiB)

    lo        Link encap:Local Loopback           inet addr:127.0.0.1  Mask:255.0.0.0           UP LOOPBACK RUNNING  MTU:16436  Metric:1           RX packets:1574 errors:0 dropped:0 overruns:0 frame:0           TX packets:1574 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:0           RX bytes:682965 (666.9 KiB)  TX bytes:682965 (666.9 KiB)

    wlan0     Link encap:Ethernet  HWaddr 00:01:33:88:44:72           inet addr:192.168.2.2  Bcast:0.0.0.0  Mask:255.255.255.0           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:148 errors:0 dropped:4 overruns:0 frame:0           TX packets:137 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000           RX bytes:10978 (10.7 KiB)  TX bytes:19056 (18.6 KiB)

    root@am335x-evm:~# ping 192.168.2.1

    PING 192.168.2.1 (192.168.2.1): 56 data bytes 64 bytes from 192.168.2.1: seq=0 ttl=64 time=8.026 ms 64 bytes from 192.168.2.1: seq=1 ttl=64 time=4.273 ms 64 bytes from 192.168.2.1: seq=2 ttl=64 time=4.303 ms 64 bytes from 192.168.2.1: seq=3 ttl=64 time=4.425 ms 64 bytes from 192.168.2.1: seq=4 ttl=64 time=4.242 ms

     

  • This works like a charm. Thanks.

  • For others who might be interested, I found this link to be very useful in setting up the wlan0:

    https://wiki.archlinux.org/index.php/Wireless_Setup#Part_II:_Wireless_management

    One difference worth noting is that on the AM335X, the dhcp client is named udhcpc as indicated in the TI response.

  • Great to hear! 

    BTW, I realized later I referred to the WiLink8/COM8 version of the Wiki docs (which of course are almost identical to the WL1271/COM6 version along with your above wlan0 reference).

    But the official WL1271/COM6 docs are at: http://processors.wiki.ti.com/index.php/WL127x_Getting_Started_Guide

    and a nice central location for links to both (among other TI wireless) is http://processors.wiki.ti.com/index.php/Wireless_Connectivity

     

  • Joe,

    I am now trying to have a kernel and device drivers that will have the WL12xx enabled, when using a kernel that I built (to enable SPI device driver as one reason). That is currently not working as far as WLAN0 coming up. See this post: http://e2e.ti.com/support/arm/sitara_arm/f/791/t/270156.aspx. I would appreciate if you or someone at TI can point me in the right direction. Thanks.