Difference between revisions of "Android Tutorials Unbox to App"

From eLinux.org
Jump to: navigation, search
(Unbox to Application Development)
Line 92: Line 92:
 
|Run ./android-sdk-linux/platform-tools/adb shell ls to check that ADB is working.
 
|Run ./android-sdk-linux/platform-tools/adb shell ls to check that ADB is working.
 
|-
 
|-
|[[Build and Run disablesuspend.png|400px]]
+
|[[File:Build and Run disablesuspend.png|400px]]
 
|Click on Run DisableSuspend. Congratulations! You can now do development on you Panda.
 
|Click on Run DisableSuspend. Congratulations! You can now do development on you Panda.
 
|-
 
|-

Revision as of 04:12, 28 October 2011

Linaro Makes Development Boards Easy to Use

Many people think they need to do Android application development on a phone. This approach has a few drawbacks including:

 * No standard development tools
 * Phone must be rooted for certain developent
 * Schematics for the phone are not available
 * The code may not be completely open

Fortunately Linaro has created many images that developers can use to get the boards Linaro supports up and running quickly without searching through Wiki's, hanging out on IRC channels to get best-effort support or searching mailing lists.

These steps have been done against Panda, similar steps will work on Linaro's iMX53, Origen, Beagle, Beagle xM and Snowball.

Unbox to Application Development

All Panda Hardware.jpg
 * HDMI 1080p monitor
 * USB keyboard and mouse
 * 5V, 2A Power Supply
 * HDMI Cable
 * Monitor Power Supply
Panda Board Power Supply.jpg A close up of the power supply.
Panda Cables Connected.jpg Unpack the Panda Board and connect the HDMI cable and the USB keyboard and mouse.
Panda Serial to USB.jpg Optionally connect a serial-to-USB converter.
Panda SD Card Reader Writer.jpg Connect an SD card reader
Panda Insert SD Card.jpg Insert your SD card.
Android-build.png Download a release from android-build.linaro.org.
Android-build-staging-10.png The build page contains all the information necessary to program the build on an SD card. The following commands can be used to get and program a build.
 wget --no-check-certificate https://android-build.linaro.org/jenkins/job/linaro-android_staging-panda-11.10-release/4/artifact/build/out/target/product/pandaboard/boot.tar.bz2
 wget --no-check-certificate https://android-build.linaro.org/jenkins/job/linaro-android_staging-panda-11.10-release/4/artifact/build/out/target/product/pandaboard/system.tar.bz2
 wget --no-check-certificate https://android-build.linaro.org/jenkins/job/linaro-android_staging-panda-11.10-release/4/artifact/build/out/target/product/pandaboard/userdata.tar.bz2
 bzr branch lp:linaro-image-tools
 ./linaro-image-tools/linaro-android-media-create --mmc /dev/sdc --dev panda --system system.tar.bz2 --userdata userdata.tar.bz2 --boot boot.tar.bz2

A serial console thats logged to a file can be started to record boot:

 minicom -D /dev/ttyUSB0 -w -C minicom.txt
Android-build-staging-bottom.png At the bottom of the build page is the build artifacts referenced in the instructions listed above.
Panda Full Set Up.jpg Everything running.
Android com.png Go to android.com and click on Developers.
Download the sdk.png Save android-sdk_r15-linux.tgz and untar it
 tar -zxvf android-sdk_r15-linux.tgz
Android Ubuntu Linux Notes.png Follow the steps listed at http://developer.android.com/sdk/installing.html for installing the SDK prerequisite and configuring the SDK to point to the tools that were just downloaded.
Install android tools.png Install android's SDK

Run ./android-sdk-linux/tools/android and select the items shown in the clip. After installing open eclipse by typing

 eclipse

(after adding eclipse to your path)

Disable suspend.png Open Disable Suspend.
Panda ADB Cable.jpg Panda uses a Mini-B plug for ADB
ADB USB Board Connection.jpg Connect the Mini-B end to the board and the standard USB connector to the host. Run ./android-sdk-linux/platform-tools/adb shell ls
Adb shell ls.png Run ./android-sdk-linux/platform-tools/adb shell ls to check that ADB is working.
Build and Run disablesuspend.png Click on Run DisableSuspend. Congratulations! You can now do development on you Panda.