Difference between revisions of "Android Tutorials Unbox to App"
(Added title to third sections.) |
|||
(15 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | == 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 == | ||
+ | |||
{| style="color:green; background-color:lavender;" cellpadding="10" cellspacing="0" border="1" | {| style="color:green; background-color:lavender;" cellpadding="10" cellspacing="0" border="1" | ||
|[[File:All Panda Hardware.jpg|400px]] | |[[File:All Panda Hardware.jpg|400px]] | ||
Line 59: | Line 73: | ||
|Install android's SDK | |Install android's SDK | ||
− | Run ./android-sdk-linux/tools/android and select the | + | 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) | ||
|- | |- | ||
|[[File:Disable suspend.png|400px]] | |[[File:Disable suspend.png|400px]] | ||
− | | | + | |Get DisableSuspend [[File:DisableSuspend.tgz]] and open it. This app stops the unit from suspending using an Activity and a Service. |
|- | |- | ||
|[[File:Panda ADB Cable.jpg|400px]] | |[[File:Panda ADB Cable.jpg|400px]] | ||
Line 69: | Line 87: | ||
|- | |- | ||
|[[File:ADB USB Board Connection.jpg|400px]] | |[[File:ADB USB Board Connection.jpg|400px]] | ||
− | |Connect the Mini-B | + | |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 |
+ | |- | ||
+ | |[[File:Adb shell ls.png|400px]] | ||
+ | |Run ./android-sdk-linux/platform-tools/adb shell ls to check that ADB is working. | ||
+ | |- | ||
+ | |[[File:Build and Run disablesuspend.png|400px]] | ||
+ | |Click on Run DisableSuspend. Congratulations! You can now do development on your Panda. | ||
|- | |- | ||
|} | |} | ||
+ | ==More Information== | ||
+ | For more information please visit Linaro's site at http://www.linaro.org. | ||
+ | |||
+ | We also have a blog at http://www.linaro.org/linaro-blog/. Some interesting topics have been: | ||
+ | * [http://www.linaro.org/linaro-blog/2011/10/26/using-markets-with-linaro-android-builds Using App Markets with Linaro Android builds] | ||
+ | * [http://www.linaro.org/linaro-blog/2011/10/25/compiler-flags-used-to-speed-up-linaro-android-2011-10-and-future-optimizations/ Compiler flags used to speed up Linaro Android 2011.10, and future optimizations] | ||
+ | * [http://www.linaro.org/linaro-blog/2011/10/12/angry-birds-panda-board/ Bored? Try Angry Birds Rio on the Panda board!] | ||
+ | * [http://www.linaro.org/linaro-blog/2011/09/15/building-a-linaro-android-build-from-source/ Building a Linaro Android Build from Source] | ||
+ | |||
+ | == Current Release Test Results == | ||
+ | The current 11.10 release test results are listed at [https://docs.google.com/a/linaro.org/spreadsheet/ccc?key=0AnpUtxWjZbP9dGFDUk5kNXBoeWZDb3MyUmJ4cnBHTEE&hl=en_US#gid=0|Android Release Candidate Test Results]. See "11.10 Release Candidate." | ||
+ | |||
+ | Against this [https://wiki.linaro.org/Platform/QA/TestCases/Android test set]. | ||
+ | |||
[[Category:Android]] | [[Category:Android]] |
Latest revision as of 07:35, 7 November 2011
Contents
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
* HDMI 1080p monitor * USB keyboard and mouse * 5V, 2A Power Supply * HDMI Cable * Monitor Power Supply | |
A close up of the power supply. | |
Unpack the Panda Board and connect the HDMI cable and the USB keyboard and mouse. | |
Optionally connect a serial-to-USB converter. | |
Connect an SD card reader | |
Insert your SD card. | |
Download a release from android-build.linaro.org. | |
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 | |
At the bottom of the build page is the build artifacts referenced in the instructions listed above. | |
Everything running. | |
Go to android.com and click on Developers. | |
Save android-sdk_r15-linux.tgz and untar it
tar -zxvf android-sdk_r15-linux.tgz | |
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'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) | |
Get DisableSuspend File:DisableSuspend.tgz and open it. This app stops the unit from suspending using an Activity and a Service. | |
Panda uses a Mini-B plug for ADB | |
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 | |
Run ./android-sdk-linux/platform-tools/adb shell ls to check that ADB is working. | |
Click on Run DisableSuspend. Congratulations! You can now do development on your Panda. |
More Information
For more information please visit Linaro's site at http://www.linaro.org.
We also have a blog at http://www.linaro.org/linaro-blog/. Some interesting topics have been:
- Using App Markets with Linaro Android builds
- Compiler flags used to speed up Linaro Android 2011.10, and future optimizations
- Bored? Try Angry Birds Rio on the Panda board!
- Building a Linaro Android Build from Source
Current Release Test Results
The current 11.10 release test results are listed at Release Candidate Test Results. See "11.10 Release Candidate."
Against this test set.