Android/Building: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
Line 35: Line 35:
== Source code ==
== Source code ==


XO4 source code for building Android has 4 parts.
source code for building Android is a combination of 4 parts.


* OLPC Android kernel for XO4 [[Android/Kernel]]
* OLPC Android kernel for XO4 [[Android/Kernel]]
* source code from google AOSP project branch "android-4.3.1_r1". [http://source.android.com/source/downloading.html "Downloading the Source" guide]
* source code from google AOSP project branch "android-4.3.1_r1". [http://source.android.com/source/downloading.html "Downloading the Source" guide]
* patches for AOSP project.
* patches for AOSP project.
{| class="wikitable"

|-
| frameworks/base
|-
|[http://dev.laptop.org/git/users/ben/android_frameworks_av/] git repository
|}
* source code from vendor Marvell/OLPC
* source code from vendor Marvell/OLPC



== See Also ==
== See Also ==

Revision as of 10:38, 16 July 2014

How to build an Android image for XO-4.

We provide in this directory changes to the Android 4.3.1 source so that Android can be built for the XO-4 laptop, and then merged with an OLPC OS build to create a dual-boot image.

Ingredients

  • a well connected development system,
  • about 20 GB of download capability,

Method

$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.3.1_r1
$ repo sync
  • in the same working directory, expand our file xo4-android-source-release-20131220.tar.gz and merge the changes,
  • start the build:
$ . build/envsetup.sh
$ lunch 13
$ make -j8
  • ensure you have a copy of the OLPC OS Linux, Sugar and Gnome build file, e.g. 32013o4.zd,
  • edit mkzd.sh to match file names,
  • prepare a .zd file for the XO-4:
$ cd vendor/olpc/xo4/mkzd
$ ./mkzd.sh

Alternative Method

To merge an already published Android build with an already published OLPC OS derived build:

  • download the system.img, ramdisk.img, and kernel files from the Android build directory,
  • download the build derived from OLPC OS, e.g. 32013xx4.zd or 4_0b125.zd,
  • download the mkzd.sh tool, and edit it to match file names,
  • run mkzd.sh

Source code

source code for building Android is a combination of 4 parts.

frameworks/base
[1] git repository
  • source code from vendor Marvell/OLPC

See Also