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 (Hawthorn)

From Texas Instruments Wiki
Jump to: navigation, search

Hardware[edit]

The following componets are used for this demo setup:

  • Hawthorn development platform with the wl18xx module mounted
Hawthorn development platform
Hawthorn development platform (reverse)
WiLink™ WL18xx SDIO Board
WL1835MOD COM8 Kit
WL1837MOD COM8 Kit




Preparing the Environment[edit]

Setup your Hawthorn platform with the WL18XX based module[edit]

This section will walk you through setting-up your Hawthorn platform for use with the WL18xx based module, which is connected using the SD Connecion/SDIO Slot port of the Hawthorn board

  • Plug the WL18xx SDIO Board into the SD Connecion/SDIO Slot port of the Hawthron platform.

The adapter board comes with default jumper assembly to work with a host.

  • Plug the WL18xxMOD COM8 Kit into the WL18xx SDIO Board.
  • Connect a wire used for interrupts from the WL18XX chip (WL_IRQ) WL18xx between pin 1 of J19 (HOST_WL_IRQ_3V3) of the WL18xxMOD COM8 Kit, and GPIO14 on the Hawthorn platform (the 15th pin from the left in the picture below).


WL1837 GPIOs on J22 (click to enlarge)








Integration with the Ambarella s2l_purelinux_sdk_2_6[edit]

Getting the kernel Ambarella BSP[edit]

To build and integrate the WiLink8 related software components into your own file system, you need to start by getting the Ambarella SDK source code directly from Ambarella. Follow the SDK instructions for setting up you build environment.

Patching the kernel for WiLink8 build[edit]

The WiLink8 drivers are built out of tree using the build scripts provided here. The initial step is to download the script (step 1 on link) and then modify setup-env for your configuration (step 2).

Updating the Hawthorn device tree file for adding wl8xx support[edit]

This is the device tree file required: (hawthorn.dts)

It is derived from the original file that is part of the ambarella BSP: …/s2l_purelinux_sdk2_6/ambarella/boards/hawthorn/bsp/hawthorn.dts The difference is the addition of wilink8 WLAN support into this file.

Updating the kernel defconfig file[edit]

In the default defconfig: …/s2l_purelinux_sdk2_6/ambarella/boards/hawthorn/config/kernel/hathorn_xxx_defcnfig

The following switch is not selected:

   CONFIG_CRYPTO_GCM is not set

Please make sure it is selected:

   CONFIG_CRYPTO_GCM=y

Building the updated kernel and device tree file[edit]

Build the updated .dts file and kernel (zImage) using the SDK build instructions

Building WiLink8 related artifacts[edit]

Next step 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.

Note: When setting the build script “setup-env” use the below settings for pointing the build script to the location of the hawthorn “kernel” and root filesystem (fakeroot):

   export ROOTFS=<your_prefix>/Ambarella/S2L_IPCAM/SDK2.6/Pure_Linux/s2l_purelinux_sdk2_6/ambarella/out/hawthorn/fakeroot
   export KERNEL_PATH=<your_prefix>/Ambarella/S2L_IPCAM/SDK2.6/Pure_Linux/s2l_purelinux_sdk2_6/ambarella/out/hawthorn/kernel/linux-3.10_s2l


Setting the ROOTFS to your fakeroot directory allow the build script to install all the build output (wl18xx modules, wpa_supplicant/firmware etc.) directly into the file system used with the target.


Running the Demos[edit]

Boot the Board[edit]

Power up the platform and let the system boot up. In case the updated kernel and device tree file were used, during boot you should see an SDIO module being detected:


[    0.416084] ambarella-sd e0002000.sdmmc0: Slot0 req_size=0x00020000, segs=32, seg_size=0x00020000                                                                                                   
[    0.424938] ambarella-sd e0002000.sdmmc0: Slot0 use ADMA                                                                                                                                            
[    0.852901] ambarella-sd e0002000.sdmmc0: 1 slots @ 200000000Hz                                                                                                                                     
[    0.862535] ambarella-sd e000c000.sdmmc1: Slot0 use bounce buffer[0xab760000<->0x2b960000]                                                                                                          
[    0.870797] mmc0: card claims to support voltages below the defined range. These will be ignored.
[    0.879654] ambarella-sd e000c000.sdmmc1: Slot0 req_size=0x00020000, segs=32, seg_size=0x00020000                                                                                                   
[    0.888508] ambarella-sd e000c000.sdmmc1: Slot0 use ADMA                                                                                                                                            
[    0.908129] mmc0: queuing unknown CIS tuple 0x91 (3 bytes)                                                                                                                                          
[    0.914104] mmc0: new high speed SDIO card at address 0001                                                                                                                                          
[    1.282880] ambarella-sd e000c000.sdmmc1: 1 slots @ 50000000Hz   

and next you should see the wl18xx drivers 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
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:[edit]


….
…
[    0.000000] Booting Linux on physical CPU 0x0                                                                                                                                                       
[    0.000000] Initializing cgroup subsys cpu                                                                                                                                                          
[    0.000000] Linux version 3.10.73 (eyalr@eyalr-OptiPlex-960) (gcc version 4.9.1 20140625 (prerelease) (crosstool-NG - Ambarella Linaro Multilib GCC [CortexA9 & ARMv6k] 2014.06) ) #5 PREEMPT Mon M6
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c53c7d                                                                                                                         
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache                                                                                                                
[    0.000000] Machine: Ambarella S2L (Flattened Device Tree), model: Ambarella S2L Hawthorn Board                                                                                                     
[    0.000000] Memory policy: ECC disabled, Data cache writeback                                                                                                                                       
[    0.000000] Ambarella:      AHB = 0xe0000000[0xe0000000],0x01000000 0                                                                                                                               
[    0.000000] Ambarella:      APB = 0xe8000000[0xe8000000],0x01000000 0                                                                                                                               
[    0.000000] Ambarella:      PPM = 0x00000000[0xdfe00000],0x00200000 9                                                                                                                               
[    0.000000] Ambarella:      AXI = 0xf0000000[0xf0000000],0x00030000 0                                                                                                                               
[    0.000000] Ambarella:    DRAMC = 0xdffe0000[0xef000000],0x00020000 0                                                                                                                               
[    0.000000] Ambarella:   DBGBUS = 0xec000000[0xec000000],0x00200000 0                                                                                                                               
[    0.000000] Ambarella:  DBGFMEM = 0xee000000[0xee000000],0x01000000 0                                                                                                                               
[    0.000000] Ambarella:   IAVMEM = 0x2be00000[          ],0x14200000                                                                                                                                 
[    0.000000] Ambarella:    FBMEM = 0x2be00000[          ],0x00000000                                                                                                                                 
[    0.000000] CPU: All CPU(s) started in SVC mode.                                                                                                                                                    
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 177800                                                                                                             
[    0.000000] Kernel command line: console=ttyS0 ubi.mtd=lnx root=ubi0:rootfs rw rootfstype=ubifs init=/linuxrc                                                                                       
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)                                                                                                                                    
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)                                                                                                                        
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)                                                                                                                          
[    0.000000] Memory: 700MB = 700MB total                                                                                                                                                             
[    0.000000] Memory: 705196k/705196k available, 11604k reserved, 0K highmem                                                                                                                          
[    0.000000] Virtual kernel memory layout:                                                                                                                                                           
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)                                                                                                                                       
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)                                                                                                                                       
[    0.000000]     vmalloc : 0xac000000 - 0xff000000   (1328 MB)                                                                                                                                       
[    0.000000]     lowmem  : 0x80000000 - 0xabc00000   ( 700 MB)                                                                                                                                       
[    0.000000]     modules : 0x7f000000 - 0x80000000   (  16 MB)                                                                                                                                       
[    0.000000]       .text : 0x80008000 - 0x8046a1f4   (4489 kB)                                                                                                                                       
[    0.000000]       .init : 0x8046b000 - 0x8048e85c   ( 143 kB)                                                                                                                                       
[    0.000000]       .data : 0x80490000 - 0x804d4078   ( 273 kB)                                                                                                                                       
[    0.000000]        .bss : 0x804d4078 - 0x804f41ec   ( 129 kB)                                                                                                                                       
[    0.000000] NR_IRQS:240                                                                                                                                                                             
[    0.000000] sched_clock: 32 bits at 108MHz, resolution 9ns, wraps every 39768ms                                                                                                                     
[    0.000000] Console: colour dummy device 80x30                                                                                                                                                      
[    0.000000] console [ttyS0] enabled                                                                                                                                                                 
[    0.240445] Calibrating delay loop... 1001.88 BogoMIPS (lpj=5009408)                                                                                                                                
[    0.282738] pid_max: default: 32768 minimum: 301                                                                                                                                                    
[    0.287396] Mount-cache hash table entries: 512                                                                                                                                                     
[    0.293774] CPU: Testing write buffer coherency: ok                                                                                                                                                 
[    0.298820] Setting up static identity map for 0x80344bb0 - 0x80344c18                                                                                                                              
[    0.306987] devtmpfs: initialized                                                                                                                                                                   
[    0.311167] pinctrl core: initialized pinctrl subsystem                                                                                                                                             
[    0.316562] regulator-dummy: no parameters                                                                                                                                                          
[    0.320834] NET: Registered protocol family 16                                                                                                                                                      
[    0.325725] DMA: preallocated 256 KiB pool for atomic coherent allocations                                                                                                                          
[    0.332929] L310 cache controller enabled                                                                                                                                                           
[    0.336921] l2x0: 8 ways, CACHE_ID 0x410000c8, AUX_CTRL 0x32020000, Cache size: 131072 B                                                                                                            
[    0.346029] ambarella-pinctrl e8009000.pinctrl: Ambarella pinctrl driver registered                                                                                                                 
[    0.353908] ambarella-gpio gpio.0: Ambarella GPIO driver registered                                                                                                                                 
[    0.362557] bio: create slab <bio-0> at 0                                                                                                                                                           
[    0.367222] ambarella-dma e0005000.dma: Ambarella DMA Engine                                                                                                                                        
[    0.374043] ambarella-i2c e8003000.i2c: Ambarella I2C adapter[0] probed!                                                                                                                            
[    0.380925] ambarella-i2c e8001000.i2c: Ambarella I2C adapter[1] probed!                                                                                                                            
[    0.390044] ambarella-i2c e8007000.i2c: Ambarella I2C adapter[2] probed!                                                                                                                            
[    0.397574] Switching to clocksource ambarella-cs-timer                                                                                                                                             
[    0.407809] ambarella-sd e0002000.sdmmc0: Slot0 use bounce buffer[0xab740000<->0x2b940000]                                                                                                          
[    0.416084] ambarella-sd e0002000.sdmmc0: Slot0 req_size=0x00020000, segs=32, seg_size=0x00020000                                                                                                   
[    0.424938] ambarella-sd e0002000.sdmmc0: Slot0 use ADMA                                                                                                                                            
[    0.852901] ambarella-sd e0002000.sdmmc0: 1 slots @ 200000000Hz                                                                                                                                     
[    0.862535] ambarella-sd e000c000.sdmmc1: Slot0 use bounce buffer[0xab760000<->0x2b960000]                                                                                                          
[    0.870797] mmc0: card claims to support voltages below the defined range. These will be ignored.                                                                                                   
[    0.879654] ambarella-sd e000c000.sdmmc1: Slot0 req_size=0x00020000, segs=32, seg_size=0x00020000                                                                                                   
[    0.888508] ambarella-sd e000c000.sdmmc1: Slot0 use ADMA                                                                                                                                            
[    0.908129] mmc0: queuing unknown CIS tuple 0x91 (3 bytes)                                                                                                                                          
[    0.914104] mmc0: new high speed SDIO card at address 0001                                                                                                                                          
[    1.282880] ambarella-sd e000c000.sdmmc1: 1 slots @ 50000000Hz                                                                                                                                      
[    1.288788] NET: Registered protocol family 2                                                                                                                                                       
[    1.293732] TCP established hash table entries: 8192 (order: 4, 65536 bytes)                                                                                                                        
[    1.300849] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)                                                                                                                               
[    1.307406] TCP: Hash tables configured (established 8192 bind 8192)                                                                                                                                
[    1.313801] TCP: reno registered                                                                                                                                                                    
[    1.317012] UDP hash table entries: 512 (order: 1, 8192 bytes)                                                                                                                                      
[    1.322843] UDP-Lite hash table entries: 512 (order: 1, 8192 bytes)                                                                                                                                 
[    1.329191] NET: Registered protocol family 1                                                                                                                                                       
[    1.333721] RPC: Registered named UNIX socket transport module.                                                                                                                                     
[    1.339617] RPC: Registered udp transport module.                                                                                                                                                   
[    1.344330] RPC: Registered tcp transport module.                                                                                                                                                   
[    1.349008] RPC: Registered tcp NFSv4.1 backchannel transport module.                                                                                                                               
[    1.355676] ambarella-adc e801d000.adc: Ambarella ADC driver init                                                                                                                                   
[    1.362582] squashfs: version 4.0 (2009/01/31) Phillip Lougher                                                                                                                                      
[    1.368733] msgmni has been set to 1377                                                                                                                                                             
[    1.373606] NET: Registered protocol family 38                                                                                                                                                      
[    1.378087] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)                                                                                                                    
[    1.385565] io scheduler noop registered                                                                                                                                                            
[    1.389465] io scheduler deadline registered                                                                                                                                                        
[    1.393745] io scheduler cfq registered (default)                                                                                                                                                   
[    1.398710] e8005000.uart: ttyS0 at MMIO 0xe8005000 (irq = 9) is a ambuart                                                                                                                          
[    1.406168] brd: module loaded                                                                                                                                                                      
[    1.410769] loop: module loaded                                                                                                                                                                     
[    1.414092] Ambarella read-only mtdblock                                                                                                                                                            
[    1.420267] ambarella-nand e0001000.nand: in ecc-[1]bit mode                                                                                                                                        
[    1.425930] ambarella_nand: Use On Flash BBT                                                                                                                                                        
[    1.430221] NAND device: Manufacturer ID: 0x01, Chip ID: 0xda (AMD/Spansion NAND 256MiB 3,3V 8-bit), 256MiB, page size: 2048, OOB size: 64                                                          
[    1.442795] Bad block table found at page 131008, version 0x01                                                                                                                                      
[    1.448738] Bad block table found at page 130944, version 0x01                                                                                                                                      
[    1.454697] nand_read_bbt: bad block at 0x000003b80000                                                                                                                                              
[    1.459864] 8 ofpart partitions found on MTD device amba_nand                                                                                                                                       
[    1.465596] Creating 8 MTD partitions on "amba_nand":                                                                                                                                               
[    1.470625] 0x000000000000-0x000000020000 : "bst"                                                                                                                                                   
[    1.475804] 0x000000020000-0x000000120000 : "bld"                                                                                                                                                   
[    1.480902] 0x000000120000-0x000000200000 : "ptb"                                                                                                                                                   
[    1.486023] 0x000000200000-0x000000600000 : "spl"                                                                                                                                                   
[    1.491113] 0x000000600000-0x000001600000 : "pri"                                                                                                                                                   
[    1.496260] 0x000001600000-0x000002600000 : "sec"                                                                                                                                                   
[    1.501390] 0x000002600000-0x000006600000 : "rmd"                                                                                                                                                   
[    1.506616] 0x000006600000-0x00000e600000 : "lnx"                                                                                                                                                   
[    1.512061] mousedev: PS/2 mouse device common for all mice                                                                                                                                         
[    1.517842] ambarella-rtc e8015000.rtc: rtc core: registered rtc-ambarella as rtc0                                                                                                                  
[    1.525737] ambarella-wdt e800c000.wdt: Ambarella Watchdog Timer Probed.                                                                                                                            
[    1.532466] ambarella cpufreq driver init                                                                                                                                                           
[    1.536677] TCP: cubic registered                                                                                                                                                                   
[    1.539972] Initializing XFRM netlink socket                                                                                                                                                        
[    1.544256] NET: Registered protocol family 17                                                                                                                                                      
[    1.548724] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4                                                                                                                 
[    1.556364] ThumbEE CPU extension supported.                                                                                                                                                        
[    1.561111] regulator-dummy: disabling                                                                                                                                                              
[    1.565174] UBI: attaching mtd7 to ubi0                                                                                                                                                             
[    1.738997] UBI: scanning is finished                                                                                                                                                               
[    1.758022] UBI: volume 0 ("rootfs") re-sized from 395 to 980 LEBs                                                                                                                                  
[    1.764519] UBI: attached mtd7 (name "lnx", size 128 MiB) to ubi0                                                                                                                                   
[    1.770588] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes                                                                                                                           
[    1.777378] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048                                                                                                                            
[    1.784060] UBI: VID header offset: 2048 (aligned 2048), data offset: 4096                                                                                                                          
[    1.790905] UBI: good PEBs: 1024, bad PEBs: 0, corrupted PEBs: 0                                                                                                                                    
[    1.796892] UBI: user volume: 1, internal volumes: 1, max. volumes count: 128                                                                                                                       
[    1.804003] UBI: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 1854126643                                                                                                 
[    1.813020] UBI: available PEBs: 0, total reserved PEBs: 1024, PEBs reserved for bad PEB handling: 40                                                                                               
[    1.822210] UBI: background thread "ubi_bgt0d" started, PID 49                                                                                                                                      
[    1.828053] ambarella-rtc e8015000.rtc: setting system clock to 1970-01-01 18:02:56 UTC (64976)                                                                                                     
[    1.938721] UBIFS: background thread "ubifs_bgt0_0" started, PID 50                                                                                                                                 
[    2.081573] UBIFS: start fixing up free space                                                                                                                                                       
[    6.152527] UBIFS: free space fixup complete                                                                                                                                                        
[    6.165821] UBIFS: mounted UBI device 0, volume 0, name "rootfs"                                                                                                                                    
[    6.171808] UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes                                                                                                
[    6.180940] UBIFS: FS size: 123039744 bytes (117 MiB, 969 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)                                                                                        
[    6.190741] UBIFS: reserved for root: 0 bytes (0 KiB)                                                                                                                                               
[    6.195777] UBIFS: media format: w4/r0 (latest is w4/r0), UUID 7D149F80-D684-4CEC-9DA2-28A7F2BBE2D6, small LPT model                                                                                
[    6.207131] VFS: Mounted root (ubifs filesystem) on device 0:12.                                                                                                                                    
[    6.213969] devtmpfs: mounted                                                                                                                                                                       
[    6.217022] Freeing unused kernel memory: 140K (8046b000 - 8048e000)                                                                                                                                
                                                                                                                                                                                                       
Welcome to Ambarella Flexible Linux S2L (2.5.0)!                                                                                                                                                       
                                                                                                                                                                                                       
         Expecting device dev-ttyS0.device...                                                                                                                                                          
[  OK  ] Reached target Remote File Systems.                                                                                                                                                           
[  OK  ] Reached target Paths.                                                                                                                                                                         
[  OK  ] Reached target Swap.                                                                                                                                                                          
[  OK  ] Created slice Root Slice.                                                                                                                                                                     
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.                                                                                                                                           
[  OK  ] Listening on Delayed Shutdown Socket.                                                                                                                                                         
[  OK  ] Listening on Journal Socket (/dev/log).                                                                                                                                                       
[  OK  ] Created slice User and Session Slice.                                                                                                                                                         
[  OK  ] Listening on udev Control Socket.                                                                                                                                                             
[  OK  ] Listening on udev Kernel Socket.                                                                                                                                                              
[  OK  ] Listening on Journal Socket.                                                                                                                                                                  
[  OK  ] Created slice System Slice.                                                                                                                                                                   
         Starting Remount Root and Kernel File Systems...                                                                                                                                              
         Mounting POSIX Message Queue File System...                                                                                                                                                   
         Starting Create list of required static device nodes...rrent kernel...                                                                                                                        
         Starting udev Coldplug all Devices...                                                                                                                                                         
         Mounting Debug File System...                                                                                                                                                                 
         Starting Setup Virtual Console...                                                                                                                                                             
         Starting Load Kernel Modules...                                                                                                                                                               
[  OK  ] Created slice system-serial\x2dgetty.slice.                                                                                                                                                   
         Starting Apply Ambarella Specific Kernel Variables...                                                                                                                                         
         Starting Journal Service...                                                                                                                                                                   
[  OK  ] Started Journal Service.                                                                                                                                                                      
[  OK  ] Reached target Slices.                                                                                                                                                                        
         Mounting Temporary Directory...                                                                                                                                                               
         Mounting Temporary Directory...                                                                                                                                                               
[  OK  ] Mounted Debug File System.                                                                                                                                                                    
[  OK  ] Mounted POSIX Message Queue File System.                                                                                                                                                      
[  OK  ] Mounted Temporary Directory.                                                                                                                                                                  
[  OK  ] Mounted Temporary Directory.                                                                                                                                                                  
[  OK  ] Started Remount Root and Kernel File Systems.                                                                                                                                                 
[  OK  ] Started Create list of required static device nodes ...current kernel.                                                                                                                        
[  OK  ] Started Setup Virtual Console.                                                                                                                                                                
[FAILED] Failed to start Load Kernel Modules.                                                                                                                                                          
See 'systemctl status systemd-modules-load.service' for details.                                                                                                                                       
[  OK  ] Started Apply Ambarella Specific Kernel Variables.                                                                                                                                            
[  OK  ] Started udev Coldplug all Devices.                                                                                                                                                            
         Mounting Configuration File System...                                                                                                                                                         
         Starting Apply Kernel Variables...                                                                                                                                                            
         Starting Load/Save Random Seed...                                                                                                                                                             
         Starting Rebuild Hardware Database...                                                                                                                                                         
         Starting Create System Users...                                                                                                                                                               
[  OK  ] Mounted Configuration File System.                                                                                                                                                            
[  OK  ] Started Apply Kernel Variables.                                                                                                                                                               
[  OK  ] Started Load/Save Random Seed.                                                                                                                                                                
[  OK  ] Started Rebuild Hardware Database.                                                                                                                                                            
[  OK  ] Started Create System Users.                                                                                                                                                                  
         Starting Create Static Device Nodes in /dev...                                                                                                                                                
[  OK  ] Started Create Static Device Nodes in /dev.                                                                                                                                                   
         Starting udev Kernel Device Manager...                                                                                                                                                        
[  OK  ] Reached target Local File Systems (Pre).                                                                                                                                                      
[  OK  ] Reached target [    7.485301] systemd-udevd[99]: starting version 215                                                                                                                         
Local File Systems.                                                                                                                                                                                    
         Starting Trigger Flushing of Journal to Persistent Storage...                                                                                                                                 
         Starting Rebuild Journal Catalog...                                                                                                                                                           
         Starting Create Volatile Files and Directories...                                                                                                                                             
[  OK  ] Started udev Kernel Device Manager.                                                                                                                                                           
[  OK  ] Started Rebuild Journal Catalog.                                                                                                                                                              
[    7.661848] input: gpio_keys.4 as /devices/gpio_keys.4/input/input0                                                                                                                                 
         Starting Update is Completed...                                                                                                                                                               
[  OK  ] Started Create Volatile Files and Directories.                                                                                                                                                
[    7.731298] ambarella-spi e0020000.spi: DMA is used                                                                                                                                                 
[    7.780737] input: AmbIR as /devices/virtual/input/input1                                                                                                                                           
[  OK  ] Found device /dev/ttyS0.                                                                                                                                                                      
[    7.824803] input input1: Protocol PANASONIC[1]                                                                                                                                                     
[    7.849786] usbcore: registered new interface driver usbfs                                                                                                                                          
[    7.857730] Loading modules backported from Linux version R8.6_SP1-0-g4d167bf                                                                                                                       
[    7.886968] ambarella-ir e8006000.ir: IR Host Controller probed!                                                                                                                                    
[  OK  ][    7.896856] Backport generated by backports.git R8.6_SP1-0-g4677dc3                                                                                                                         
 Started Update [    7.904992] usbcore: registered new interface driver hub                                                                                                                            
is Completed.                                                                                                                                                                                          
[    7.934442] usbcore: registered new device driver usb                                                                                                                                               
[    7.988338] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver                                                                                                                              
[    8.008069] ambarella-spi e0020000.spi: Ambarella spi controller 0 created.                                                                                                                         
[    8.018025] ambarella-crypto f0020000.crypto: Ambarella Media Processor Cryptography Engine probed(interrupt mode).                                                                                 
[    8.031724] systemd-journald[67]: Received request to flush runtime journal from PID 1                                                                                                              
[    8.046729] ambarella-udc e0006000.udc: ambarella_udc: version 12 August 2015                                                                                                                       
[  OK  ][    8.058742] ehci-ambarella: AMBARELLA-EHCI Host Controller driver                                                                                                                           
 Started Trigger Flushing of Journal to Persistent Storage.                                                                                                                                            
[    8.152882] libphy: Ambarella MII Bus: probed                                                                                                                                                       
[    8.157232] mdio_bus e000e000.etherne: /ahb@e0000000/ethernet@e000e000/phy@3 has invalid PHY address                                                                                                
         Starting Update UTMP about System Boot/Shutdown...                                                                                                                                            
[    8.200136] mdio_bus e000e000.etherne: scan phy phy at address 0                                                                                                                                    
[    8.300178] mdio_bus e000e000.etherne: registered phy phy at address 0                                                                                                                              
[  OK  ] Started Update UTMP about System Boot/Shutdown.[    8.324861] ambarella-eth e000e000.ethernet: Ethernet PHY[0]: 0x00221560!                                                                   
                                                                                                                                                                                                       
[    8.377428] ambarella-eth e000e000.ethernet: MAC Address[0a:d8:99:f8:c8:39].                                                                                                                        
[  OK  ] Reached target System Initialization.                                                                                                                                                         
[    8.407176] ambarella-ehci e0018000.ehci: EHCI Host Controller                                                                                                                                      
[  OK  ] Listening on Sound System.                                                                                                                                                                    
[    8.422479] ak4642-codec 0-0012: AK4642 Audio Codec 0.3                                                                                                                                             
[  OK  ] Listening on Journal Gateway Service Socket.                                                                                                                                                  
[    8.437600] ambarella-ehci e0018000.ehci: new USB bus registered, assigned bus number 1                                                                                                             
[  OK  ] Listening on Telnet Server Activation Socket.                                                                                                                                                 
[  OK  ] Reached target Timers.                                                                                                                                                                        
[    8.476860] AMBARELLA SoC Audio DUMMY Codec                                                                                                                                                         
[    8.489774] snd_soc_card_amba sound.3:  ak4642-hifi <-> e001a000.i2s mapping ok                                                                                                                     
         Starting[    8.499291] cfg80211: Calling CRDA to update world regulatory domain                                                                                                               
 Restore Sound C[    8.506235] ambarella-ehci e0018000.ehci: irq 39, io mem 0xe0018000                                                                                                                 
ard State...                                                                                                                                                                                           
[    8.518751] snd_soc_card_amba sound.3:  AMBARELLA_DUMMY_CODEC <-> e001a000.i2s mapping ok                                                                                                           
[    8.535028] ambarella-ehci e0018000.ehci: USB 2.0 started, EHCI 1.00                                                                                                                                
[    8.541419] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002                                                                                                                           
[  OK  ] Listening on D-Bus System Message Bus Socket.                                                                                                                                                 
[  OK  ] Reached target Sockets.                                                                                                                                                                       
[    8.564280] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1                                                                                                                      
[    8.571556] usb usb1: Product: EHCI Host Controller                                                                                                                                                 
[  OK  ][    8.577132] usb usb1: Manufacturer: Linux 3.10.73 ehci_hcd                                                                                                                                  
 Reached target [    8.584185] usb usb1: SerialNumber: AmbUSB                                                                                                                                          
Basic System.                                                                                                                                                                                          
[    8.598678] hub 1-0:1.0: USB hub found                                                                                                                                                              
         Starting Network Manager[    8.605573] hub 1-0:1.0: 2 ports detected                                                                                                                          
...                                                                                                                                                                                                    
         Starting Permit User Sessions...                                                                                                                                                              
[    8.645182] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver                                                                                                                                  
         Starting Sound Service...                                                                                                                                                                     
[    8.657517] ambarella-ohci e0019000.ohci: Ambarella OHCI                                                                                                                                            
[    8.663425] ambarella-ohci e0019000.ohci: new USB bus registered, assigned bus number 2                                                                                                             
[    8.671598] ambarella-ohci e0019000.ohci: irq 44, io mem 0xe0019000                                                                                                                                 
         Starting D-Bus System Message Bus...                                                                                                                                                          
[  OK  ] Started D-Bus System Message Bus.                                                                                                                                                             
[    8.736989] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001                                                                                                                           
[    8.746334] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1                                                                                                                      
[    8.753850] usb usb2: Product: Ambarella OHCI                                                                                                                                                       
[    8.758276] usb usb2: Manufacturer: Linux 3.10.73 ohci_hcd                                                                                                                                          
[    8.764060] usb usb2: SerialNumber: AmbUSB                                                                                                                                                          
[    8.769980] hub 2-0:1.0: USB hub found                                                                                                                                                              
[    8.774780] hub 2-0:1.0: 2 ports detected                                                                                                                                                           
[    8.878716] cfg80211: World regulatory domain updated:                                                                                                                                              
[    8.884011] cfg80211:  DFS Master region: unset                                                                                                                                                     
[    8.888396] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)                                                                                           
[    8.898441] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)                                                                                                             
[    8.906578] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)                                                                                                             
[    8.914797] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)                                                                                                             
[    8.922826] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)                                                                                            
[    8.932445] usb 1-1: new high-speed USB device number 2 using ambarella-ehci                                                                                                                        
[    8.939779] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)                                                                                            
[    8.949437] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)                                                                                                            
[    8.958683] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)                                                                                                             
[    8.966966] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)                                                                                                            
[    9.096449] wlcore: ERROR could not get configuration binary ti-connectivity/wl18xx-conf.bin: -2                                                                                                    
[    9.107116] usb 1-1: New USB device found, idVendor=0424, idProduct=2514                                                                                                                            
[    9.115052] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0                                                                                                                       
[    9.122236] wlcore: WARNING falling back to default config                                                                                                                                          
[    9.136315] hub 1-1:1.0: USB hub found                                                                                                                                                              
[    9.153940] hub 1-1:1.0: 4 ports detected                                                                                                                                                           
         Starting Login Service...                                                                                                                                                                     
[  OK  ] Started Restore Sound Card State.                                                                                                                                                             
[  OK  ] Started Permit User Sessions.                                                                                                                                                                 
[  OK  ] Sta[    9.383240] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)                                                                                                                          
rted Sound Service.                                                                                                                                                                                    
[  OK  ] Reached target Sound Card.                                                                                                                                                                    
         Starting Serial Getty on ttyS0...                                                                                                                                                             
[  OK  ] Started Serial Getty on ttyS0.                                                                                                                                                                
[  OK  ] Reached target Login Prompts.                                                                                                                                                                 
[  OK  ] Started Login Service.                                                                                                                                                                        
[  OK  ] Started Network Manager.                                                                                                                                                                      
[  OK  ] Reached target Network.                                                                                                                                                                       
         Starting Busybox inetd...                                                                                                                                                                     
[  OK  ] Started Busybox inetd.                                                                                                                                                                        
         Starting Lightning Fast Webserver With Light System Requirements...                                                                                                                           
[    9.761227] wlcore: loaded                                                                                                                                                                          
[  OK  ] Started Lightning Fast Webserver With Light System Requirements.                                                                                                                              
[    9.782597] wlcore: driver version:                                                                                                                                                                 
[  OK  ] Reached target Multi-User System.                                                                                                                                                             
[   10.364626] net eth0: adv: sym 0, asym: 0                                                                                                                                                           
                                                                                                                                                                                                       
                                                                                                                                                                                                       
Welcome to Ambarella                                                                                                                                                                                   
Ambarella login: [   11.186176] wlcore: PHY firmware version: Rev 8.2.0.0.233                                                                                                                          
[   11.295116] wlcore: firmware booted (Rev 8.9.0.1.55)                                                                                                                                                
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:



 ifconfig wlan0 up                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                                                                                        
 iw wlan0 connect Reizer                                                                                                                                                                              
 [   52.518039] wlan0: authenticate with e0:91:f5:ea:9e:ee                                                                                                                                            
[   52.525121] wlan0: send auth to e0:91:f5:ea:9e:ee (try 1/3)                                                                                                                                         
[   52.601521] wlan0: authenticated                                                                                                                                                                    
[   52.612859] wlan0: associate with e0:91:f5:ea:9e:ee (try 1/3)                                                                                                                                       
[   52.626260] wlan0: RX AssocResp from e0:91:f5:ea:9e:ee (capab=0x401 status=0 aid=5)                                                                                                                 
[   52.637663] wlcore: Association completed.                                                                                                                                                          
[   52.642780] wlan0: associated                                                                                                                                                                       
                                                                                                                                                                                                       
 udhcpc -i wlan0                                                                                                                                                                                      
udhcpc (v1.22.1) started                                                                                                                                                                               
Sending discover...                                                                                                                                                                                    
Sending select for 192.168.100.23...                                                                                                                                                                   
Lease of 192.168.100.23 obtained, lease time 86400                                                                                                                                                     
deleting routers                                                                                                                                                                                       
route: SIOCDELRT: No such process                                                                                                                                                                      
adding dns 192.168.100.1                                                                                                                                                                               
wpa_supplicant -v                                                                                                                                                                                    
wpa_supplicant v2.5-devel                                                                                                                                                                              
Copyright (c) 2003-2015, Jouni Malinen <j@w1.fi> and contributors                                                                                                                                      
                                                                                                                                                                                                      
ping 192.168.100.1                                                                                                                                                                                   
PING 192.168.100.1 (192.168.100.1): 56 data bytes                                                                                                                                                      
64 bytes from 192.168.100.1: seq=0 ttl=64 time=27.799 ms                                                                                                                                               
64 bytes from 192.168.100.1: seq=1 ttl=64 time=62.558 ms                                                                                                                                               
64 bytes from 192.168.100.1: seq=2 ttl=64 time=14.129 ms                                                                                                                                               
64 bytes from 192.168.100.1: seq=3 ttl=64 time=24.525 ms                                                                                                                                               
                                                                                                                                                                                                      
--- 192.168.100.1 ping statistics ---                                                                                                                                                                  
5 packets transmitted, 4 packets received, 20% packet loss                                                                                                                                             
round-trip min/avg/max = 14.129/32.252/62.558 ms                                                                                                                                                       

Demo Guide[edit]

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

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 (Hawthorn) 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 (Hawthorn) 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 (Hawthorn) 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 (Hawthorn) 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 (Hawthorn) 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 (Hawthorn) 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 (Hawthorn) 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 (Hawthorn) 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 (Hawthorn) 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