NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.

WL18xx First Time Getting Started Guide (SAMA5D2-Xplained)

From Texas Instruments Wiki
Jump to: navigation, search

Hardware[edit]

The following components are used for this demo setup:

SAMA5D2-Xplained board
WiLink™ WL18xx SDIO Board
WL1835MOD COM8 Kit
WL1837MOD COM8 Kit

Preparing the Environment[edit]

Setup your SAMA5D2-Xplained platform with the WL18XX based module[edit]

This section will walk you through setting-up your SAMA5D2-Xplained platform for use with the WL18XX based module, which is connected using the SDMMC1 port:

  • Plug the WL18xx SDIO Board into the SDMMC1 port of the SAMAD52-Xplained platform.

The adapter board comes with [default] jumpers assembly to work with a host.

  • Plug the WL18xxMOD COM8 Kit into the WL18xx SDIO Board.
  • Connect a wire used as GPIO for controlling the WL18xx WLAN_Enable between pin 2 of the J12 (WL_EN_COM) of the WL18xxMOD COM8 Kit, and J22 pin 15 (PA23) on the SAMA5D2 platform.
  • Connect a wire used for interrupts gpio from the WL18XX chip (WL_IRQ) WL18xx between pin 1 of J19 (HOST_WL_IRQ_3V3) of the WL18xxMOD COM8 Kit, and J22 pin 14 (PA24) on the SAMA5D2 platform.

See pictures of the connected platforms below:

WL1837 module mounted on SDMMC1
WL1837 GPIOs on J22
WL1837 GPIOs adapter side

Integration with the linux4sam 4.1 based Linux kernel[edit]

fetching and the kernel source code[edit]

To build and integrate the WiLink8 related software components into your own file system, you need to start by getting the Linux4SAM kernel source code.
Please refer to the Getting Kernel sources link.
Follow the instructions for cloning the kernel git and checking out the linux-4.1-at91 branch

Patching the kernel for WiLink8 build[edit]

The WiLink8 drivers are built out of tree using the build script provided here.
These build scripts also provide the option to apply the patches required on top of the linux-at91 kernel, for adding WiLink8 WLAN support.
The initial step is to download the script (step 1 on link) and then modify setup-env for your configuration (step 2).
One key item here is to add KERNEL_VARIANT to setup-env in order to get the script to patch the linux-4.1-at91 kernel branch with the additions needed for the wilink8 integration.

...
export KERNEL_VARIANT=linux-4.1-at91
...


Next step is to apply the required patches to the kernel

./build_wl18xx.sh patch_kernel

Once you have run the above command, the kernel can now be built with these patches applied.

Building the updated kernel and device tree file[edit]

Important Note: Before building the kernel make sure the following modules will not be built intree.
Edit the ".config" file after running "make ARCH=arm sama5_defconfig" but before you build the kernel:

# CONFIG_CFG80211 is not set
# CONFIG_MAC80211 is not set

Use the method described in Configure and Build section.
Once the kernel and device tree builds are completed, you need to use the updated arch/arm/boot/zImage and arch/arm/boot/dts/at91-sama5d2_xplained.dtb.

Building WiLink8 related artifacts[edit]

Now that the kernel has been built the next stage is to do a full build of the WiLink8 related components using the build script.
This is done by following step 3 and step 4 from the WL18xx System Build Scripts page.

Important Note: When using the build-script for building with the linux-at91 4.1 kernel, you may see a build failure during the wl18xx drivers build.
This is due to a redundant backports patch that breaks the drivers build with this kernel and can be deleted
In case this happen, you need to remove this patch and run the script again (with no parameters this time), in order to complete the build.
See the sequence below that should be used in case of failure during the build script build:

rm src/backports/patches/collateral-evolutions/network/0053-possible_net_t.patch
./build-wl18xx.sh

Booting the platform using the updated zImage and device tree file at91-sama5d2_xplained.dtb[edit]

By default, when powering up the platform, the kernel and device tree files are already present inside the nand flash of the target. The defualt boot command is copying them from NAND to ram and using them for boot.
You can use the following command to tftp the kernel and device tree file and use them for boot instead of the ones that are inside the flash already.

U-Boot> setenv bootcmd_tftp "tftp 0x22000000 zImage; tftp 0x21000000 at91-sama5d2_xplained.dtb; bootz 0x22000000 - 0x21000000"
U-Boot> run bootcmd_tftp

Note: once you are satisfied with the updated kernel and device tree file you can use u-boot for updating the kernel and device tree in the platform nand flash.

Installing WiLink8 build artifacts into the platform root file system[edit]

Once a full ./build_wl18xx.sh has been completed, a tar file containing all build artifacts is created inside the outputs directory inside the build-utilites directory. This tar file is called fs_skeleton.tbz2

Follow the following steps for installing this tar file into the internal flash file system of the platform:

  • boot the board and connect it to your network using an Ethernet cable.
  • Use tftp for downloading the "fs_skeleton.tbz2" to your platform.
  • Extract the tar file on top of the root directory of your file system.

See the example below:

tftp -g -r fs_skeleton.tbz2 <tftp_server_ip>
tar xf ./fs_skeleton.tbz2 -C /
depmod -a
reboot

Running the Demos[edit]

Boot the Board[edit]

Power up the platform and use the commands above for booting the platform using the kernel and device tree file downloaded using tftp.
In case the updated kernel and device tree file were used, during boot you should see an SDIO module being detected:

mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
mmc1: new high speed SDIO card at address 0001

and next you should see the wl18xx driver loading:

Loading modules backported from Linux version R8.6_SP1-0-g4d167bf
Backport generated by backports.git R8.6_SP1-0-g4677dc3
cfg80211: Calling CRDA to update world regulatory domain
EXT4-fs (mmcblk0p1): re-mounted. Opts: (null)
wlcore: ERROR configuration binary file size is wrong, expected 1229 got 1221
wlcore: WARNING falling back to default config
cfg80211: World regulatory domain updated:
cfg80211:  DFS Master region: unset
cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
random: dd urandom read with 38 bits of entropy available
wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
wlcore: loaded

Complete kernel boot log:

## Flattened Device Tree blob at 21000000
   Booting using the fdt blob at 0x21000000
   Loading Device Tree to 3fb1c000, end 3fb26a1a ... OK

Starting kernel ...

Booting Linux on physical CPU 0x0
Linux version 4.1.0-linux4sam_5.3-00017-gb79ab07 (eyalr@eyalr-OptiPlex-960) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) ) #44 Tue May 3 6
CPU: ARMv7 Processor [410fc051] revision 1 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: Atmel SAMA5D2 Xplained
cma: Reserved 64 MiB at 0x38000000
Memory policy: Data cache writeback
CPU: All CPU(s) started in SVC mode.
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
Kernel command line: console=ttyS0,57600 root=/dev/mmcblk0p1 rw rootfstype=ext4 rootwait
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 447336K/524288K available (4514K kernel code, 178K rwdata, 1536K rodata, 188K init, 156K bss, 11416K reserved, 65536K cma-reserved)
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
    lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .text : 0xc0008000 - 0xc05f0a4c   (6051 kB)
      .init : 0xc05f1000 - 0xc0620000   ( 188 kB)
      .data : 0xc0620000 - 0xc064cbb8   ( 179 kB)
       .bss : 0xc064cbb8 - 0xc0673f9c   ( 157 kB)
NR_IRQS:16 nr_irqs:16 16
L2C-310 ID prefetch enabled, offset 2 lines
L2C-310 dynamic clock gating enabled, standby mode enabled
L2C-310 cache controller enabled, 8 ways, 128 kB
L2C-310: CACHE_ID 0x410000c9, AUX_CTRL 0x36020000
clocksource pit: mask: 0x7ffffff max_cycles: 0x7ffffff, max_idle_ns: 11513617062 ns
sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836475000000ns
Console: colour dummy device 80x30
Calibrating delay loop... 329.31 BogoMIPS (lpj=1646592)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0x20008200 - 0x20008258
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 2 part 30 variant 5 rev 1
clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor ladder
cpuidle: using governor menu
AT91: Detected SoC family: sama5d2
AT91: Detected SoC: sama5d27, revision 0
clocksource tcb_clksrc: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 184217874325 ns
at_xdmac f0010000.dma-controller: 16 channels, mapped at 0xe081e000
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
at91_i2c f8028000.i2c: could not find pctldev for node /ahb/apb/pinctrl@fc038000/i2c0_default, deferring probe
at91_i2c fc028000.i2c: could not find pctldev for node /ahb/apb/pinctrl@fc038000/i2c1_default, deferring probe
media: Linux media interface: v0.10
Linux video capture interface: v2.00
Advanced Linux Sound Architecture Driver Initialized.
Switched to clocksource tcb_clksrc
NET: Registered protocol family 2
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
futex hash table entries: 256 (order: -1, 3072 bytes)
io scheduler noop registered (default)
pinctrl-at91-pio4 fc038000.pinctrl: atmel pinctrl initialized
f8020000.serial: ttyS0 at MMIO 0xf8020000 (irq = 39, base_baud = 5187500) is a ATMEL_SERIAL
console [ttyS0] enabled
[drm] Initialized drm 1.1.0 20060810
brd: module loaded
loop: module loaded
at91_i2c fc018600.i2c: can't use DMA, error -19
at91_i2c fc018600.i2c: Using FIFO (16 data)
at91_i2c fc018600.i2c: AT91 i2c bus driver (hw version: 0x704).
atmel_spi f8000000.spi: version: 0x311
atmel_spi f8000000.spi: Using dma0chan0 (tx) and dma0chan1 (rx) for DMA transfers
atmel_spi f8000000.spi: Using FIFO (16 data)
atmel_spi f8000000.spi: Atmel SPI Controller at 0xf8000000 (irq 32)
m25p80 spi32766.0: at25df321a (4096 Kbytes)
CAN device driver interface
m_can f8054000.can: m_can device registered (regs=e0870000, irq=42)
m_can fc050000.can: m_can device registered (regs=e0880000, irq=52)
libphy: MACB_mii_bus: probed
macb f8008000.ethernet eth0: Cadence GEM rev 0x00020203 at 0xf8008000 irq 33 (fc:c2:3d:03:48:b2)
macb f8008000.ethernet eth0: attached PHY driver [Micrel KSZ8081 or KSZ8091] (mii_bus:phy_addr=f8008000.etherne:01, irq=127)
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-atmel: EHCI Atmel driver
atmel-ehci 500000.ehci: EHCI Host Controller
atmel-ehci 500000.ehci: new USB bus registered, assigned bus number 1
atmel-ehci 500000.ehci: irq 25, io mem 0x00500000
atmel-ehci 500000.ehci: USB 2.0 started, EHCI 1.00
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: EHCI Host Controller
usb usb1: Manufacturer: Linux 4.1.0-linux4sam_5.3-00017-gb79ab07 ehci_hcd
usb usb1: SerialNumber: 500000.ehci
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 3 ports detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci-atmel: OHCI Atmel driver
at91_ohci 400000.ohci: USB Host Controller
at91_ohci 400000.ohci: new USB bus registered, assigned bus number 2
at91_ohci 400000.ohci: irq 25, io mem 0x00400000
usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: USB Host Controller
usb usb2: Manufacturer: Linux 4.1.0-linux4sam_5.3-00017-gb79ab07 ohci_hcd
usb usb2: SerialNumber: at91
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 3 ports detected
usbcore: registered new interface driver cdc_acm
cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
usbcore: registered new interface driver usb-storage
usbcore: registered new interface driver usbserial
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial support registered for generic
usbcore: registered new interface driver ftdi_sio
usbserial: USB Serial support registered for FTDI USB Serial Device
usbcore: registered new interface driver pl2303
usbserial: USB Serial support registered for pl2303
rtc rtc0: alarm rollover not handled
rtc rtc0: invalid alarm value: 1900-1-1 0:0:0
at91_rtc f80480b0.rtc: rtc core: registered f80480b0.rtc as rtc0
at91_rtc f80480b0.rtc: AT91 Real Time Clock driver.
i2c /dev entries driver
AT91: Starting after wakeup
sama5d4_wdt f8048040.watchdog: initialized (timeout = 16 sec, nowayout = 0)
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
sdhci-at91 a0000000.sdio-host: update clk mul to 39 as gck rate is 480000000 Hz
mmc0: SDHCI controller on a0000000.sdio-host [a0000000.sdio-host] using ADMA
sdhci-at91 b0000000.sdio-host: update clk mul to 39 as gck rate is 480000000 Hz
ledtrig-cpu: registered to indicate activity on CPUs
atmel_aes f002c000.aes: version: 0x500
atmel_aes f002c000.aes: Atmel AES - Using dma0chan2, dma0chan3 for DMA transfers
atmel_sha f0028000.sha: version: 0x510
atmel_sha f0028000.sha: using dma0chan4 for DMA transfers
atmel_sha f0028000.sha: Atmel SHA1/SHA256/SHA224/SHA384/SHA512
atmel_tdes fc044000.tdes: version: 0x703
atmel_tdes fc044000.tdes: using dma0chan5, dma0chan6 for DMA transfers
atmel_tdes fc044000.tdes: Atmel DES/TDES
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
atmel-classd fc048000.classd: PWM modulation type is Differential, non-overlapping is enabled
atmel-classd fc048000.classd: atmel-classd-hifi <-> fc048000.classd mapping ok
atmel-pdmic f8018000.pdmic: atmel-pdmic-hifi <-> f8018000.pdmic mapping ok
NET: Registered protocol family 17
can: controller area network core (rev 20120528 abi 9)
NET: Registered protocol family 29
can: raw protocol (rev 20120528)
can: broadcast manager protocol (rev 20120528 t)
can: netlink gateway (rev 20130117) max_hops=1
at91_i2c f8028000.i2c: can't use DMA, error -19
at91_i2c f8028000.i2c: AT91 i2c bus driver (hw version: 0x704).
at91_i2c fc028000.i2c: can't use DMA, error -19
at24 2-0054: 256 byte 24c02 EEPROM, writable, 16 bytes/write
at91_i2c fc028000.i2c: AT91 i2c bus driver (hw version: 0x704).
mmc1: SDHCI controller on b0000000.sdio-host [b0000000.sdio-host] using ADMA
at91-sama5d2_adc fc030000.adc: version: 800
input: gpio_keys as /devices/soc0/gpio_keys/input/input0
at91_rtc f80480b0.rtc: setting system clock to 2015-09-15 13:22:31 UTC (1442323351)
ALSA device list:
  #0: classd @ SAMA5D2-Xplained
  #1: PDMIC @ sama5d2_xplained
Waiting for root device /dev/mmcblk0p1...
mmc0: MAN_BKOPS_EN bit is not set
mmc0: new DDR MMC card at address 0001
mmcblk0: mmc0:0001 MMC04G 3.65 GiB 
mmcblk0boot0: mmc0:0001 MMC04G partition 1 1.00 MiB
mmcblk0boot1: mmc0:0001 MMC04G partition 2 1.00 MiB
mmcblk0rpmb: mmc0:0001 MMC04G partition 3 128 KiB
 mmcblk0: p1 p2
sdhci-at91 b0000000.sdio-host: card claims to support voltages below defined range
mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
mmc1: new high speed SDIO card at address 0001
EXT4-fs (mmcblk0p1): warning: mounting unchecked fs, running e2fsck is recommended
EXT4-fs (mmcblk0p1): mounted filesystem without journal. Opts: (null)
VFS: Mounted root (ext4 filesystem) on device 179:1.
devtmpfs: mounted
Freeing unused kernel memory: 188K (c05f1000 - c0620000)
INIT: version 2.88 booting
UIM SYSFS Node Not Found
Starting udev
udevd[674]: starting version 182
Loading modules backported from Linux version R8.6_SP1-0-g4d167bf
Backport generated by backports.git R8.6_SP1-0-g4677dc3
cfg80211: Calling CRDA to update world regulatory domain
EXT4-fs (mmcblk0p1): re-mounted. Opts: (null)
wlcore: ERROR configuration binary file size is wrong, expected 1229 got 1221
wlcore: WARNING falling back to default config
cfg80211: World regulatory domain updated:
cfg80211:  DFS Master region: unset
cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
random: dd urandom read with 38 bits of entropy available
wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
wlcore: loaded
wlcore: driver version: 
INIT: Entering runlevel: 5
Configuring network interfaces... udhcpc (v1.23.1) started
Sending discover...
Sending discover...
Sending discover...
No lease, forking to background
done.
Starting system message bus: dbus.
Starting OpenBSD Secure Shell server: sshd
key_load_public: invalid format
Could not load host key: /etc/ssh/ssh_host_rsa_key
key_load_public: invalid format
Could not load host key: /etc/ssh/ssh_host_dsa_key
key_load_public: invalid format
Could not load host key: /etc/ssh/ssh_host_ecdsa_key
key_load_public: invalid format
Could not load host key: /etc/ssh/ssh_host_ed25519_key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting.
Starting rpcbind daemon...rpcbind: cannot create socket for udp6
rpcbind: cannot create socket for tcp6
done.
starting statd: done
Starting atd: OK
NFS daemon support not enabled in kernel
Starting system log daemon...0
Starting kernel log daemon...0
Starting Lighttpd Web Server: lighttpd.
Starting crond: OK

Poky (Yocto Project Reference Distro) 1.8 sama5d2-xplained /dev/ttyS0

sama5d2-xplained login: root

bring up the wlan0 interface, connect and ping[edit]

Use the following basic sequence for bringing up the wlan0, connecting to an open AP, dhcp and ping:

ifconfig wlan0 up
iw wlan0 scan | grep SSID
iw wlan0 connect <open_ap_ssid>
udhcpc -i wlan0
ping <ap_ip>

Expected output:

root@sama5d2-xplained:~# 
root@sama5d2-xplained:~# ifconfig wlan0 up
wlcore: PHY firmware version: Rev 8.2.0.0.233
wlcore: firmware booted (Rev 8.9.0.1.55)
random: nonblocking pool is initialized
root@sama5d2-xplained:~# 
root@sama5d2-xplained:~# iw wlan0 scan | grep SSID
        SSID: Reizer
        SSID: iotLink
        SSID: net4guest
        SSID: halekoa75
        SSID: externalhotspot84
        SSID: iotLink-5G
root@sama5d2-xplained:~# 
root@sama5d2-xplained:~# iw wlan0 connect iotLink-5G
root@sama5d2-xplained:~# wlan0: authenticate with e0:91:f5:01:0a:4e
wlan0: send auth to e0:91:f5:01:0a:4e (try 1/3)
wlan0: authenticated
wlan0: associate with e0:91:f5:01:0a:4e (try 1/3)
wlan0: RX AssocResp from e0:91:f5:01:0a:4e (capab=0x401 status=0 aid=1)
wlcore: Association completed.
wlan0: associated

root@sama5d2-xplained:~# 
root@sama5d2-xplained:~# 
root@sama5d2-xplained:~# udhcpc -i wlan0
udhcpc (v1.23.1) started
Sending discover...
Sending discover...
Sending select for 192.168.1.185...
Lease of 192.168.1.185 obtained, lease time 86400
/etc/udhcpc.d/50default: Adding DNS 192.168.1.1
root@sama5d2-xplained:~# 
root@sama5d2-xplained:~# 
root@sama5d2-xplained:~# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=27.9 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=28.6 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=14.5 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=14.1 ms
64 bytes from 192.168.1.1: icmp_seq=5 ttl=64 time=13.7 ms
64 bytes from 192.168.1.1: icmp_seq=6 ttl=64 time=1024 ms
64 bytes from 192.168.1.1: icmp_seq=7 ttl=64 time=1034 ms
64 bytes from 192.168.1.1: icmp_seq=8 ttl=64 time=23.7 ms
64 bytes from 192.168.1.1: icmp_seq=9 ttl=64 time=23.9 ms
64 bytes from 192.168.1.1: icmp_seq=10 ttl=64 time=23.3 ms
64 bytes from 192.168.1.1: icmp_seq=11 ttl=64 time=23.4 ms
64 bytes from 192.168.1.1: icmp_seq=12 ttl=64 time=24.1 ms
64 bytes from 192.168.1.1: icmp_seq=13 ttl=64 time=13.5 ms
64 bytes from 192.168.1.1: icmp_seq=14 ttl=64 time=13.3 ms
64 bytes from 192.168.1.1: icmp_seq=15 ttl=64 time=14.1 ms
^C
--- 192.168.1.1 ping statistics ---
15 packets transmitted, 15 received, 0% packet loss, time 14152ms
rtt min/avg/max/mdev = 13.335/154.519/1034.776/343.243 ms, pipe 2
root@sama5d2-xplained:~# iw wlan0 link
Connected to e0:91:f5:01:0a:4e (on wlan0)
        SSID: iotLink-5G
        freq: 5220
        RX: 3462 bytes (30 packets)
        TX: 3078 bytes (22 packets)
        signal: -74 dBm
        tx bitrate: 81.0 MBit/s MCS 4 40MHz

        bss flags:      short-slot-time
        dtim period:    2
        beacon int:     100
root@sama5d2-xplained:~# 

Demo Guide[edit]

For more information regarding use case and demo please refer to the Wilink8 WLAN Demos page

E2e.jpg {{
  1. switchcategory:MultiCore=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article WL18xx First Time Getting Started Guide (SAMA5D2-Xplained) here.

Keystone=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article WL18xx First Time Getting Started Guide (SAMA5D2-Xplained) here.

C2000=For technical support on the C2000 please post your questions on The C2000 Forum. Please post only comments about the article WL18xx First Time Getting Started Guide (SAMA5D2-Xplained) here. DaVinci=For technical support on DaVincoplease post your questions on The DaVinci Forum. Please post only comments about the article WL18xx First Time Getting Started Guide (SAMA5D2-Xplained) here. MSP430=For technical support on MSP430 please post your questions on The MSP430 Forum. Please post only comments about the article WL18xx First Time Getting Started Guide (SAMA5D2-Xplained) here. OMAP35x=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article WL18xx First Time Getting Started Guide (SAMA5D2-Xplained) here. OMAPL1=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article WL18xx First Time Getting Started Guide (SAMA5D2-Xplained) here. MAVRK=For technical support on MAVRK please post your questions on The MAVRK Toolbox Forum. Please post only comments about the article WL18xx First Time Getting Started Guide (SAMA5D2-Xplained) here. For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article WL18xx First Time Getting Started Guide (SAMA5D2-Xplained) here.

}}

Hyperlink blue.png Links

Amplifiers & Linear
Audio
Broadband RF/IF & Digital Radio
Clocks & Timers
Data Converters

DLP & MEMS
High-Reliability
Interface
Logic
Power Management

Processors

Switches & Multiplexers
Temperature Sensors & Control ICs
Wireless Connectivity