Application Development Kit for Android Installation Guide



Similar documents
Pwn Plug Community Edition 1.1 Installation Guide

VoIP Laboratory B How to re flash an IP04

Enterprise Erase LAN

The embedded Linux quick start guide lab notes

PBX DIGITAL TELEPHONE EXCHANGE MAINTENANCE GUIDE

Dell DR4000 Disk Backup System. Introduction to the Dell DR4000 Restore Manager A primer for creating and using a Restore Manager USB flash drive

Updates Click to check for a newer version of the CD Press next and confirm the disc burner selection before pressing finish.

Accessing I2C devices with Digi Embedded Linux 5.2 example on Digi Connect ME 9210

Digi Connect Wan 3G Application Guide Update the firmware, backup and restore the configuration of a Digi Connect Wan 3G using a USB flash drive.

Lizard Standalone Mode Guide Version 1.0:

InfoPrint 4247 Serial Matrix Printers. Remote Printer Management Utility For InfoPrint Serial Matrix Printers

Mobile Printing. User's Guide

SecureLinx Spider Duo Quick Start Guide

Adapting the PowerPC 403 ROM Monitor Software for a 512Kb Flash Device

Network/IP Camera Set up and Re-programming. Leopard Imaging Inc. Jan, 2013.

Track One Building a connected home automation device with the Digi ConnectCore Wi-i.MX51 using LinuxLink

Installing Microsoft Windows Server 2008R2 with EasyStartup

UltraBac Documentation. UBDR Gold. Administrator Guide UBDR Gold v8.0

Management Software. Web Browser User s Guide AT-S106. For the AT-GS950/48 Gigabit Ethernet Smart Switch. Version Rev.

Configuring and Using AMT on TS140 and TS440

EDS1100/2100. VMware Image for Linux Software Developers Kit (SDK) Quick Start Guide

CUSTOMER RELEASE NOTES

Reboot the ExtraHop System and Test Hardware with the Rescue USB Flash Drive

Ultra Thin Client TC-401 TC-402. Users s Guide

Vess A2000 Series. NVR Storage Appliance. Windows Recovery Instructions. Version PROMISE Technology, Inc. All Rights Reserved.

VoIP Zone Controller: 4-Port Audio Out Operations Guide

Device Installer User Guide

Google Drive. Administrator's Guide

Movie Cube. User s Guide to Wireless Function

Apple Server Diagnostics User Guide. For Version 3X106

ADP CollectAll Manager v2.4 User s Guide

Deployment Guide: Transparent Mode

IDDERO TOUCH PANELS. Video door phone configuration

Amcrest 960H DVR Quick Start Guide

PGP Portable Quick Start Guide Version 10.2

AT-S84 Version ( ) Management Software for the AT-9000/24 Gigabit Ethernet Switch Software Release Notes

3.1 Connecting to a Router and Basic Configuration

En Wireless Mobile Utility (Android) User s Manual. D610, D600, D7100, D5300, D5200, D3300, Df

Moxa Device Manager 2.0 User s Guide

Sharp Remote Device Manager (SRDM) Server Software Setup Guide

How To Use 1Bay 1Bay From Awn.Net On A Pc Or Mac Or Ipad (For Pc Or Ipa) With A Network Box (For Mac) With An Ipad Or Ipod (For Ipad) With The

ALOHA Load Balancer Quickstart guide

User Guide for Windows 10

Migrating a Windows PC to Run in VMware Fusion VMware Fusion 2.0

Section 5: Installing the Print Driver

ShareLink 200 Setup Guide

JUSTOP Smart TV Player With Android 4.0. User Manual

Asterisk on Alvis-PBX

Getting Started. rp5800, rp5700 and rp3000 Models

IPMI Firmware Update (AMI) In WEB-GUI/DOS/WIN/Linux

Configuring ThinkServer RAID 100 on the TS140 and TS440

Microsoft BackOffice Small Business Server 4.5 Installation Instructions for Compaq Prosignia and ProLiant Servers

Downtime Reports. Administrator's Guide

SSD Guru. Installation and User Guide. Software Version 1.4

User Guide Software Version 2.1.0

Additional Requirements for ARES-G2 / RSA-G2. One Ethernet 10 Base T/100 Base TX network card required for communication with the instrument.

RCC2 Test Proceedures

Appendix B Lab Setup Guide

Before You Begin You must have at least the following: Web Browser Wired Hub/Switch/Router OR Wireless b Router CD-ROM Drive

IBM Security QRadar Version Installing QRadar with a Bootable USB Flash-drive Technical Note

Cisco FlexFlash: Use and Manage Cisco Flexible Flash Internal SD Card for Cisco UCS C-Series Standalone Rack Servers

Moxa Device Manager 2.3 User s Manual

ROM Monitor. Entering the ROM Monitor APPENDIX

Using TViX Network. NFS mode : You must install the TViX NetShare utility in to your PC, but you can play the TP or DVD jukebox without stutter.

QOS 8 High-Speed RAID System Guide

Dell EqualLogic Red Hat Enterprise Linux 6.2 Boot from SAN

Updating MNS-BB CUSTOMER SUPPORT INFORMATION PK012906

USER MANUAL GUIMGR Graphical User Interface Manager for FRM301/FRM401 Media Racks

DKTCOMEGA AONode Management Module User Documentation

TFTP Firmware upgrade

1 Axis camera configuration IP configuration Setting up date and time Installing an IPS Analytics Application...

INSTALLATION GUIDE. Assign an IP Address and Access the Video Stream

1-Port Wireless USB 2.0 Print Server Model # APSUSB201W. Quick Installation Guide. Ver. 2A

USER MANUAL ITV101E v.1.0. PlayXtreme INTERNET TV HUB

Symantec Database Security and Audit 3100 Series Appliance. Getting Started Guide

Installing Software and Options for the Polycom RealPresence Group Series and Accessories

ReadyNAS Setup Manual

Operating System Installation Guidelines

Linux flash file systems JFFS2 vs UBIFS

Installing Software and Options for Polycom HDX Systems and Accessories

M100 System File Manager Help

NI InsightCM Server Version 1.0

USER MANUAL. FLASH DUPLICATOR CopyKing II CPY220

AT-UWC Wireless LAN Controller. Installation Guide. Software Version

To perform Ethernet setup and communication verification, first perform RS232 setup and communication verification:

Fiery Clone Tool For Embedded Servers User Guide

Boot Camp Installation & Setup Guide

Intel Unite Solution. Standalone User Guide

c. Securely insert the Ethernet cable from your cable or DSL modem into the Internet port (B) on the WGT634U. Broadband modem

How to Install Applications (APK Files) on Your Android Phone

Boot Camp Installation & Setup Guide

System Area Manager. Remote Management

Application Notes for Configuring Yealink T-22 SIP Phones to interoperate with Avaya IP Office - Issue 1.0

[HOW TO RECOVER AN INFINITI/EVOLUTION MODEM IDX ] 1

Operating Instructions

Seagate Media Sync User Guide

RSA Authentication Manager 8.1 Virtual Appliance Getting Started

VERITAS Backup Exec TM 10.0 for Windows Servers

Transcription:

Application Development Kit for Android Installation Guide 90001280_B 3/12/2012

2012 Digi International Inc. All rights reserved. Digi, Digi International, the Digi logo, the Digi website, a Digi International Company, Digi ESP, and ConnectCore Wi-MX51 are trademarks or registered trademarks of Digi International, Inc. in the United States and other countries worldwide. All other trademarks mentioned in this document are the property of their respective owners. Specifically, Android is a trademark of Google Inc. Information in this document is subject to change without notice and does not represent a commitment on the part of Digi International. Digi provides this document as is, without warranty of any kind, either expressed or implied, including, but not limited to, the implied warranties of fitness or merchantability for a particular purpose. Digi may make improvements and/or changes in this manual or in the product(s) and/or the program(s) described in this manual at any time. This product could include technical inaccuracies or typographical errors. Changes are periodically made to the information herein; these changes may be incorporated in new editions of the publication. 2012 Digi International, Inc. 2

Installation Instructions This document will guide you through the process of downloading and installing the Digi Application Development Kit for Android, and preparing your hardware to boot prebuilt Android firmware images. The instructions within this document are valid for ConnectCore for i.mx51 and ConnectCore for i.mx53 targets. 1. Download software Based on the product you are using, download the Digi Application Development Kit for Android DVD ISO image from one of the following locations: ConnectCore for i.mx51 users: http://ftp1.digi.com/support/patches/i.mx51/cc_i.mx51_updates.htm ConnectCore for i.mx53 users: http://ftp1.digi.com/support/patches/i.mx51/cc_i.mx53_updates.htm 2. Install software from the DVD To install the software from the DVD perform the following steps: 1. Burn the downloaded ISO image onto a DVD, or mount it in a virtual unit. 2. Run the appropriate installer for your operating system within the installers folder on the DVD. For Windows: <DVD>:\installers\windows\setup.exe For Linux: <DVD>/installers/linux/aadk_installer.run 3. Follow the instructions on the installer to complete the installation. Notes for Linux users: - The DVD might be mounted without execution permissions which will prevent you from running the installer. Make sure you remount the DVD with execution permissions, or copy the installer to a local folder and give it execution permissions. - It is recommended to install the software as a standard user, not as root. - By default, the software will be installed at /opt/ folder. You must create the install folder with the appropriate permissions for the user, prior to the installation: # install -m 0755 <your_user> -g <your_group> -d /opt/digi/android/aadk-x.y 2012 Digi International, Inc. 3

where: <your_user> is your user name <your_group> is your user s group name X.Y is the version of the Digi Application Development Kit for Android. 3. Prepare hardware with Android firmware This section will guide you through the process of writing Android firmware images to the flash of your hardware platform. NOTE: In order to update the firmware, it is required that a TFTP server is running on your host computer. For Windows users, a TFTP server can be downloaded from the same URL you selected in Section 1 - Download software on the previous page. For Linux users, use your package administrator tool to install any available TFTP server, like tftpd-hpa. 3.1 Locate firmware images for your hardware Software is installed to the following paths by default: For Windows: C: \Program Files\Digi\Android\aadk-X.Y (where X.Y is the software version number) For Linux: /opt/digi/android/aadk-x.y (where X.Y is the software version number) Navigate to the appropriate default folder for your operating system (or any alternative folder you may have specified) and locate the subfolder called images. Within this folder, locate the folder for your hardware platform (depending on the platform an additional board version folder may exist). Copy the following image files to your TFTP server exposed folder (typically called tftpboot): Firmware Image Filename Pattern Example Name U-Boot boot loader u-boot-platform.bin u-boot-ccwmx51js.bin Android Kernel uimage-android-platform uimage-android-ccwmx51js Android Root File System android-platform-eraseblock.ubifs 1 android-ccwmx51js-128.ubifs 1 If you don t know the erase block size of the Flash memory of your module, run the command nand info in U-Boot to find it. 2012 Digi International, Inc. 4

3.2 Configure the network settings of your platform Connect a serial cable between the hardware platform and your PC and open a serial terminal. Power up the target and press any key to stop the auto-boot process and break into U-Boot monitor. Configure the appropriate network settings using U-Boot commands: where: # setenv ipaddr AAA.AAA.AAA.AAA # setenv netmask BBB.BBB.BBB.BBB # setenv serverip EEE.EEE.EEE.EEE # saveenv AAA.AAA.AAA.AAA is the IP address of the target's wired Ethernet (it must be in the same subnet as the host computer's IP). BBB.BBB.BBB.BBB is the target's subnet mask. EEE.EEE.EEE.EEE is the IP address of the host computer. The last command, saveenv, saves the target's network settings in NVRAM. Connect your hardware platform to the network using an Ethernet cable. 3.3 Update U-Boot boot loader Do not power off the module during this process or your device may become un-bootable. Run the following command to update the U-Boot boot loader (when asked for confirmation press y for yes): # update uboot tftp Partition marked read-only/fixed. Do you want to continue? (y/n) y TFTP from server 192.168.103.2; our IP address is 192.168.103.51 Filename u-boot-ccwm51js.bin. Load address: 0x94000000 Loading: ############################ done Bytes transfered = 402672 (624f0 hex) Calculated checksum = 0xecdd466c Do you really want to overwrite U-Boot flash partition? (y/n) y Updating partition U-Boot Erasing: complete Writing: complete Verifying: complete Root system to update takes effect Update successful After the update completes successfully, reset the module to boot with the new boot loader. 2012 Digi International, Inc. 5

3.4 Setup the partition table for Android firmware Break again into U-Boot monitor and run the flpart command to modify the Flash partition table. At the prompt, type the following keys, in order: r for Reset partition table a for Android default partition table q for Quit y for saving changes CCWMX51 # flpart Nr Name Start Size Type FS Flags 0 U-Boot 0 768 KiB U-Boot fixed 1 NVRAM 768 KiB 512 KiB NVRAM fixed 2 Splash 1280 KiB 1 MiB Splash-Screen 3 Kernel 2304 KiB 3 MiB Linux/Android-Kernel 4 RootFS 5376 KiB 120 MiB Filesystem JFFS2 rootfs 5 UserFS 128256 KiB 396032 KiB Filesystem JFFS2 Commands: a) Append partition d) Delete partition m) Modify partition p) Print partition table r) Reset partition table q) Quit Cmd (? for help) > r OS Types: n) None l) Linux a) Android w) WinCE o) NET+OS OS (? for help)> a Partition table reset Nr Name Start Size Type FS Flags 0 U-Boot 0 768 KiB U-Boot fixed 1 NVRAM 768 KiB 512 KiB NVRAM fixed 2 Splash 1280 KiB 1 MiB Splash-Screen 3 Kernel 2304 KiB 3 MiB Linux/Android-Kernel 4 RootFS 5376 KiB 120 MiB Filesystem UBIFS rootfs 5 UserFS 128256 KiB 396032 KiB Filesystem UBIFS rootfs Cmd (? for help)> q Partition table has been modified. Save? (y/n): y Writing Parameters to NVRAM Warning: The following UBI partitions were modified: - RootFS - UserFS A firmware update of the listed partitions is needed to recreate their UBI volumes. CCWMX51 # 2012 Digi International, Inc. 6

3.5 Write the Android Kernel Run the following command to update the Android kernel partition from U-Boot: # update android tftp TFTP from server 192.168.103.2; our IP address is 192.168.103.51 Filename uimage-android-ccwmx51js. Load address: 0x94000000 Loading: ################################################################# ################################################################# ################################################### done Bytes transfered = 2689420 (29098c hex) Calculated checksum = 0x91b899f0 Erasing: complete Writing: complete Verifying: complete Update successful 3.6 Write the Android Root File System Run the following command to update the Android root file system partition from U-Boot (remember to pass the filename with the appropriate platform and erase block size): # update androidfs tftp Creating 1 MTD partitions on nand0 : 0x000000540000-0x000008540000 : mtd=4 Removing all user volume All volumes removed Creating dynamic volume RootFS of size 130314240 Using FEC0 device TFTP from server 192.168.103.2; our IP address is 192.168.103.51 Filename android-ccwmx51js-128.ubifs. Load address: 0x91000000 Loading: ################################################################# #################################################################... ################################################################# ################################################################# ################################################### done Bytes transfered = 79994880 (4c4a000 hex) Calculated checksum = 0x2da7a85a Writing UBI image Volume RootFS found at volume id 0 Volume RootFS found at volume id 0 read 79994880 bytes from volume 0 to 91000000 (buf address) Update successful 2012 Digi International, Inc. 7

4. Setup the video Run the U-Boot command video to setup the video interface that's connected to your hardware. If you have an LCD, the device can be controlled using the touch screen. If you have a VGA or HDMI monitor, you will need a USB mouse and keyboard to interface with it. The first time it boots, Android firmware launches a touch screen calibration utility that cannot be operated except with a touch screen interface. Therefore, you must (at least for the first time) setup the video for the LCD and connect the LCD to your hardware board: # video Video interface 1) Video 1 2) Cancel Select interface: 1 Displays/video mode 1) VGA 2) HDMI 3) LCD display 4) Cancel Select displays/video mode: 3 LCD display 1) LQ070Y3DG3B (800x480 JumpStart Kit display) 2) LQ064V3DG01 (640X480) 3) LQ121K1LG11 and LQ121K1LG52(1280X800) 4) LQ121K1LG52 (1280X800) 5) LQ106K1LA05 (1280X768) 6) LQ104V1DG62 (640X480) 7) custom1 configuration 8) custom2 configuration 9) cancel Select LCD display: 1 Setting variable: video=displayfb:lcd@lq070y3dg3b Remember to save the configuration with saveenv # saveenv Execute the command saveenv to save the video configuration. The maximum supported resolution for HDMI for the ConnectCore for i.mx51 is 1280x720. The maximum supported resolution for HDMI for the ConnectCore for i.mx53 is 1920x1080 (Full HD). 2012 Digi International, Inc. 8

5. Setup default boot command Run the following commands from U-Boot to make the Android firmware auto-boot from the Flash: # setenv bootcmd dboot android flash # saveenv 6. Start Android firmware and calibrate the touch screen Reset your target and let it auto-boot the Android firmware. The first time it boots, the Touchscreen Calibration utility will run. Touch at the cross (shown below) to calibrate the touch screen. After the touch screen is calibrated wait a few some seconds for the Android firmware to boot completely. 7. What s next? On your host computer, run Digi ESP for Android. Within Digi ESP navigate to the Help > Welcome menu. From the Welcome page, click on the First Steps icon (as shown). Within the First Steps page click on the Getting Started with the Android Application Development Kit link. The instructions displayed will guide you through the process of creating, downloading and running your first Android application. 2012 Digi International, Inc. 9