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.

OMAP Wireless Connectivity AM18x Operating the WLAN

From Texas Instruments Wiki
Jump to: navigation, search

Use of Terminal & GUI[edit]

For the current release in order to operate the WLAN, one have to use the serial port in order to rus a script that brings up the WLAN, and then additional script to get the DHCP runing. the rest of the WLAN control will be done using the GUI, that is Scaning for WiFi networks and connect to specific Access Point. that will be fixed in future release to have all the WLAN fanctions from GUI only.
the following step will guide through the basic WLAN bring up.

  1. Booting the EVM
  2. Verify Release vertion (Terminal command)
  3. Booting the WLAN (Terminal command)
  4. Scan for WiFi network and connect to Access Point (using GUI)
  5. Getting IP Adress using DHCP protocol (Terminal command)
  6. Web Bowsing (using GUI)


Boot Params[edit]

first stage is to connect the serial port to the PC and use TeraTerm (or any oter Utility) to control the EVM through a serial Terminal. after Power cycle hit a key when the message "Hit any key to stop autoboot" appears, and then press "printenv" to verify the Boot params. the main commands are:

  1. bootcmd - which in that case indicates that the uImage is boot up from the SD Card
  2. bootargs - which in that case indicates that the file system is in SD card in Sector 2, and the serial consule paramaters
Booting with TI UBL
Device OPP (300MHz, 1.2V)SD/MMC Boot failed.

U-Boot 2009.11 (Dec 22 2010 - 00:27:22)

I2C:   ready
DRAM:  64 MB
MMC:   davinci: 0
In:    serial
Out:   serial
Err:   serial
ARM Clock : 300000000 Hz
DDR Clock : 132000000 Hz
Net:   Ethernet PHY: GENERIC @ 0x00

Hit any key to stop autoboot:  0
U-Boot > printenv
bootdelay=3
baudrate=115200
bootfile="uImage"
ethaddr=192.168.1.90
bootcmd=mmc rescan 0; fatload mmc 0 c0700000 uImage ; bootm c0700000
bootargs=console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw ip=off rootwait
stdin=serial
stdout=serial
stderr=serial
ver=U-Boot 2009.11 (Dec 22 2010 - 00:27:22)

Environment size: 292/65532 bytes
U-Boot > after Power cycle


then reboot the EVM and let it boot till the linux prompt, you will see the following on the screen:

Booting with TI UBL
Device OPP (300MHz, 1.2V)SD/MMC Boot failed.


U-Boot 2009.11 (Oct 15 2010 - 11:29:24)

I2C:   ready
DRAM:  64 MB
MMC:   davinci: 0
In:    serial
Out:   serial
Err:   serial
ARM Clock : 300000000 Hz
DDR Clock : 132000000 Hz
Net:   Ethernet PHY: GENERIC @ 0x00

Hit any key to stop autoboot:  0 
U-Boot > pri
bootdelay=3
baudrate=115200
ethaddr=00:08:ee:03:dd:6d
bootcmd_flsh=sf probe 0; sf read 0xc0700000 0x80000 0x280000; bootm 0xc0700000
bootargs_flsh=bootargs=mem=64M console=ttyS2,115200n8 noinitrd root=/dev/mmcblk0p1 rootfstype=ext2 r
w rootdelay=1
bootargsmmc=mem=32M console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw rootwait ip=off
bootcmd_flash=sf probe 0; sf read 0xc0700000 0x80000 0x280000; bootm 0xc0700000
bootargs_flash=bootargs=mem=64M console=ttyS2,115200n8 noinitrd root=/dev/mmcblk0p1 rootfstype=ext2 
rw rootdelay=1
bootfile=192.168.13.52:uImage
filesize=2169A0
fileaddr=C0700000
gatewayip=192.168.15.1
netmask=255.255.255.0
ipaddr=192.168.13.107
serverip=192.168.13.52
dnsip=192.168.10.51
dnsip2=192.168.10.54
bootcmd_mmc=fatload mmc 0 0xc0700000 uImage; bootm c0700000
bootargs_old=init=/init console=ttyS2,115200n8 ip=off rw root=/dev/mmcblk0p2 rootfstype=ext3 rootwai
t mem=128M mpurate=450 androidboot.console=ttyS2
bootcmd_old=sf probe 0; sf read C0700000 C0000 300000; bootm c0700000
bootargs=mem=32M console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw rootwait ip=off
bootcmd=if mmc rescan 0; then if fatload mmc 0 0xc0600000 boot.scr; then source 0xc0600000; else fat
load mmc 0 0xc0700000 uImage; bootm c0700000; fi; else sf probe 0; sf read 0xc0700000 0x80000 0x2200
00; bootm 0xc0700000; fi
stdin=serial
stdout=serial
stderr=serial
ver=U-Boot 2009.11 (Oct 15 2010 - 11:29:24)

Environment size: 1387/65532 bytes
U-Boot > boot
reading boot.scr

** Unable to read "boot.scr" from mmc 0:1 **
reading uImage

2187532 bytes read
## Booting kernel from Legacy Image at c0700000 ...
   Image Name:   Arago/2.6.32+2.6.33-rc4-psp03.20
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2187468 Bytes =  2.1 MB
   Load Address: c0008000
   Entry Point:  c0008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 2.6.33-rc4 (schuyler_2@neo) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #1 PRE
EMPT Wed Jan 12 00:43:46 CST 2011
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: DaVinci DA850/OMAP-L138/AM18xx EVM
Memory policy: ECC disabled, Data cache writeback
DaVinci da850/omap-l138 variant 0x0
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: mem=32M console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw rootwait ip=off
PID hash table entries: 128 (order: -3, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 32MB = 32MB total
Memory: 27816KB available (4164K code, 319K data, 148K init, 0K highmem)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:245
Console: colour dummy device 80x30
Calibrating delay loop... 149.50 BogoMIPS (lpj=747520)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
DaVinci: 144 gpio irqs
regulator: core version 0.5
NET: Registered protocol family 16
da850_evm_init: mmcsd2 registration failed: -1bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
regulator: VDCDC1: 3200 <--> 3300 mV at 3300 mV 
regulator: VDCDC2: 1750 <--> 3300 mV at 3300 mV 
regulator: VDCDC3: 950 <--> 1375 mV at 1200 mV 
regulator: LDO1: 1800 mV 
regulator: LDO2: 1150 <--> 1300 mV at 1200 mV 
pca953x 1-0020: failed reading register
i2c-gpio i2c-gpio.1: using pins 20 (SDA) and 21 (SCL)
Bluetooth: Core ver 2.15
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Switching to clocksource timer0_1
musb_hdrc: version 6.0, cppi4.1-dma, host, debug=0
Waiting for USB PHY clock good...
musb_hdrc: USB Host mode controller at fee00000 using DMA, IRQ 58
musb_hdrc musb_hdrc: MUSB HDRC host driver
musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
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 udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
EMAC: MII PHY configured, RMII PHY will not be functional
JFFS2 version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.
msgmni has been set to 54
io scheduler noop registered (default)
da8xx_lcdc da8xx_lcdc.0: GLCD: Found Sharp_LK043T1DG01 panel
Console: switching to colour frame buffer device 60x34
Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25) is a AR7
serial8250.0: ttyS1 at MMIO 0x1d0c000 (irq = 53) is a AR7
serial8250.0: ttyS2 at MMIO 0x1d0d000 (irq = 61) is a AR7
console [ttyS2] enabled
brd: module loaded
ahci ahci: forcing PORTS_IMPL to 0x1
ahci ahci: AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
ahci ahci: flags: ncq sntf pm led clo only pmp pio slum part ccc 
scsi0 : ahci
ata1: SATA max UDMA/133 irq 67
spi_davinci spi_davinci.1: DaVinci SPI driver in EDMA mode
Using RX channel = 18 , TX channel = 19 and event queue = 1
m25p80 spi1.0: m25p64 (8192 Kbytes)
Creating 4 MTD partitions on "m25p80":
0x000000000000-0x000000040000 : "U-Boot"
0x000000040000-0x000000050000 : "U-Boot Environment"
0x000000050000-0x0000007f0000 : "Linux"
0x0000007f0000-0x000000800000 : "MAC Address"
Read MAC addr from EEPROM: ff:ff:ff:ff:ff:ff
spi_davinci spi_davinci.1: Controller at 0xfef0e000 
console [netcon0] enabled
netconsole: network logging started
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci ohci.0: DA8xx OHCI
ohci ohci.0: new USB bus registered, assigned bus number 2
ohci ohci.0: irq 59, io mem 0x01e25000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
input: TPS6507x Touchscreen as /devices/platform/i2c-gpio.1/i2c-1/1-0048/input/input0
omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
omap_rtc: RTC power up reset detected
omap_rtc: already running
i2c /dev entries driver
Linux video capture interface: v2.00
usbcore: registered new interface driver uvcvideo
USB Video Class driver (v0.1.0)
watchdog watchdog: heartbeat 60 sec
Bluetooth: HCI UART driver ver 2.2
Bluetooth: HCI H4 protocol initialized
Bluetooth: HCI BCSP protocol initialized
Bluetooth: HCILL protocol initialized
cpuidle: using governor ladder
cpuidle: using governor menu
davinci_mmc davinci_mmc.0: Using DMA, 4-bit mode
davinci_mmc davinci_mmc.1: Using DMA, 4-bit mode
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.21.
usbcore: registered new interface driver snd-usb-audio
No device for DAI tlv320aic3x
ALSA device list:
  No soundcards found.
TCP cubic registered
NET: Registered protocol family 17
Bluetooth: L2CAP ver 2.14
Bluetooth: L2CAP socket layer initialized
Bluetooth: SCO (Voice Link) ver 0.6
Bluetooth: SCO socket layer initialized
ata1: SATA link down (SStatus 0 SControl 300)
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM ver 1.11
Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Bluetooth: BNEP filters: protocol multicast
Bluetooth: HIDP (Human Interface Emulation) ver 1.2
Clocks: disable unused emac
Clocks: disable unused aemif
Clocks: disable unused spi0
regulator_init_complete: incomplete constraints, leaving LDO2 on
regulator_init_complete: incomplete constraints, leaving LDO1 on
regulator_init_complete: incomplete constraints, leaving VDCDC3 on
regulator_init_complete: incomplete constraints, leaving VDCDC2 on
regulator_init_complete: incomplete constraints, leaving VDCDC1 on
davinci_emac_probe: using random MAC addr: 2a:99:cf:25:47:cd
emac-mii: probed
omap_rtc omap_rtc: setting system clock to 2011-01-25 12:24:31 UTC (1295958271)
Waiting for root device /dev/mmcblk0p2...
mmc0: new high speed MMC card at address 0001
mmcblk0: mmc0:0001  1.87 GiB 
 mmcblk0: p1 p2
EXT2-fs (mmcblk0p2): warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem) on device 179:2.
Freeing init memory: 148K
INIT: version 2.86 booting
Please wait: booting...
Starting udev
udev: starting version 141
Remounting root file system...
Caching udev devnodes
Populating dev cache
NET: Registered protocol family 10
logger: mount: mount point /proc/bus/usb does not exist
ALSA: Restoring mixer settings...
/usr/sbin/alsactl: load_state:1610: No soundcards found...
Configuring network interfaces... eth0: attached PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr
=1:00, id=7c0f1)
ADDRCONF(NETDEV_UP): eth0: link is not ready
udhcpc (v1.13.2) started
Sending discover...
Sending discover...
Sending discover...
No lease, forking to background
done.
Setting up IP spoofing protection: rp_filter.
INIT: Entering runlevel: 5
Starting system message bus: dbus.
Starting Dropbear SSH server: dropbear.
Starting telnet daemon.
Starting syslogd/klogd: done
Starting thttpd.
Starting Matrix GUI application.

 _____                    _____           _         _   
|  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_ 
|     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
|__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
              |___|                    |___|            

Arago Project http://arago-project.org am180x-evm ttyS2

Arago 2010.12 am180x-evm ttyS2

am180x-evm login:


in the login press "root" to enter main manue

verify the release version[edit]

then to verify the release version that is runing use "cat /proc/version" command

root@am180x-evm:~# cat /proc/version 
Linux version 2.6.33-rc4 (schuyler_2@neo) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #1 PRE
EMPT Wed Jan 12 00:43:46 CST 2011


Use Terminal to Bring up the WLAN[edit]

next step is to bring up the WLAN:

root@am180x-evm:~# 
root@am180x-evm:~# cd /usr/share/wl1271-demos/
root@am180x-evm:/usr/share/wl1271-demos# cd wlan/
root@am180x-evm:/usr/share/wl1271-demos/wlan# ./install-wlan.sh 

Then note the WLAN booting stage on the screen

Installing WL1271-WLAN kernel modules...
TI WiLink 1271 SDIO: Driver loaded
  Success
TIWLAN: driver init
TIWLAN: 3511.485900: 
Zoom2 use external board configuration as well
wifi_probe: got wlan irq 207
wifi_probe: got wlan irq trigger falling flag
  Success
Loading firmware...
Success
Bringing-up the WLAN interface...
pInitParams->RoamingScanning_2_4G_enable 0 
mmc1: card claims to support voltages below the defined range. These will be ignored.
mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
mmc1: new SDIO card at address 0001
TIWLAN: Found TI/WLAN SDIO controller (vendor 0x97, device 0x4076, class 0x0)
TIWLAN: 3513.071048: CHIP VERSION... set 1273 chip top registers
TIWLAN: 3513.102119: Working on a 1273 PG 2.0 board.
TIWLAN: 3513.109458: Starting to process NVS...
TIWLAN: 3513.117670: No Nvs, Setting default MAC address
TIWLAN: 3513.122847: pHwInit->uEEPROMCurLen: 1c
TIWLAN: 3513.138410: ERROR: If you are not calibating the device, you will soon get errors !!!
TIWLAN: 3513.153334: Chip ID is 0x4030111.
TIWLAN: 3513.169656: FEM Type 1 
TIWLAN: 3513.328713: Firmware successfully downloaded.
TIWLAN: 3513.333705: FW download OK...
TIWLAN: 3513.383558: Firmware successfully downloaded.
TIWLAN: 3513.406670: FW download OK...
TIWLAN: 3513.411916: Firmware successfully downloaded.
TIWLAN: 3513.426012: FW download OK...
TIWLAN: 3513.437068: Firmware successfully downloaded.
TIWLAN: 3513.442062: FW download OK...
TIWLAN: 3513.450233: Firmware successfully downloaded.
TIWLAN: 3513.455226: FW download OK...
TIWLAN: 3513.463903: Finished downloading firmware.
TIWLAN: 3513.470211: Firmware running.
TIWLAN: 3513.490863: Firmware successfully downloaded.
TIWLAN: 3513.495857: FW download OK...
TIWLAN: 3513.514303: 
TIWLAN: 3513.526577: --------------------------------------------------------------------
TIWLAN: 3513.534642: Driver Version  : WiLink_Driver_6.1.0.0.144
TIWLAN: 3513.548168: Firmware Version: Rev 6.1.0.0.335
TIWLAN: 3513.553179: Station ID      : 08-00-28-12-34-56
TIWLAN: 3513.563412: --------------------------------------------------------------------
TIWLAN: 3513.586563: 
ADDRCONF(NETDEV_UP): tiwlan0: link is not ready
Success
Starting wpa_supplicant...
TIWLAN: 3513.630273: Interrogate TX/RX parameters
Success

Now you may run the application "wlan_cu"


use the GUI for WLAN commands[edit]

now the EVM is ready to start working with the WLAN. the WLAN control can be perform by the GUI, starting in the Wi-Fi button

WiFi GUI.jpg

connect to WiFi Access Point[edit]

in order to connect to WiFi Access point please refer to the the link: <AM18x connect to non secured network>

Get IP Address - DHCP[edit]

after connecting to Access point, please use the Terminal to get IP address by using DHCP protocol

root@am180x-evm:/usr/share/wl1271-demos/wlan# udhcpc -i tiwlan0
udhcpc (v1.13.2) started
Sending discover...
Sending select for 192.168.13.146...
Lease of 192.168.13.146 obtained, lease time 14400
adding dns 192.168.10.51
adding dns 192.168.10.54
root@am180x-evm:/usr/share/wl1271-demos/wlan#


Perform Web Browsing[edit]

then in order to perform web browsing please refer to the link: <Web Browsing>


HomepageIcon.jpgHOME

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 OMAP Wireless Connectivity AM18x Operating the WLAN 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 OMAP Wireless Connectivity AM18x Operating the WLAN here.

C2000=For technical support on the C2000 please post your questions on The C2000 Forum. Please post only comments about the article OMAP Wireless Connectivity AM18x Operating the WLAN here. DaVinci=For technical support on DaVincoplease post your questions on The DaVinci Forum. Please post only comments about the article OMAP Wireless Connectivity AM18x Operating the WLAN here. MSP430=For technical support on MSP430 please post your questions on The MSP430 Forum. Please post only comments about the article OMAP Wireless Connectivity AM18x Operating the WLAN here. OMAP35x=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article OMAP Wireless Connectivity AM18x Operating the WLAN here. OMAPL1=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article OMAP Wireless Connectivity AM18x Operating the WLAN here. MAVRK=For technical support on MAVRK please post your questions on The MAVRK Toolbox Forum. Please post only comments about the article OMAP Wireless Connectivity AM18x Operating the WLAN here. For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article OMAP Wireless Connectivity AM18x Operating the WLAN 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