Notes on building Android Ice Cream Sandwich for the Samsung Origen Board

These notes are a WIP and the linaro android branch is constant you may find these instructions won't work at times. Please send an email or file a bug if that is the case

Building

  • Since Gingerbread Android requires a x86_64 build system, 32bit isn't supported anymore. I'm using the 64bit version of Ubuntu 11.11 (Origen).

Prerequisites

  • sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev libc6-dev libncurses5-dev x11proto-core-dev libx11-dev libreadline5-dev libz-dev libgl1-mesa-dev default-jdk
    sudo apt-get install ia32-libs lib32z1-dev lib32bz2-dev g++-4.5-multilib gcc-4.5-multilib lib32ncurses5-dev libncurses5-dev lib32readline6-dev libstlport5.2-dev
    get the repo utility (git wrapper) and add it to your PATH:
  • mkdir bin
    wget -O bin/repo https://dl-ssl.google.com/dl/googlesource/git-repo/repo
    chmod a+x bin/repo
    export PATH="`pwd`/bin:$PATH"

Get the Source

Create a directory to hold the git repositories and the build output

  • mkdir ics
    cd ics

Get the LEB manifest file for Origen

  • repo init -u https://android.googlesource.com/platform/manifest

Copy all of the git trees to your system

  • repo sync

Source the envsetup.sh in order to get some additional shell cmds:

  • . build/envsetup.sh
    lunch origen-eng
    make fastboot

Build the Source

With the arm compiler in your path

  • make -j4 boottarball systemtarball userdatatarball showcommands

To specify the path to your arm compiler

  • make -j4 TARGET_TOOLS_PREFIX=<toolchain_path> boottarball systemtarball  userdatatarball showcommands

Create a bootable SD card

Get a version of linaro-android-image-create that has Origen support in Natty

  • bzr branch lp:~linaro-landing-team-samsung/linaro-image-tools/add-origen-android-support

Get a version of linaro-android-image-create that has Origen support in Oneiric

  • apt-get install linaro-image-tools

Build the bootable SD card

  • <path to>/linaro-android-media-create --mmc /dev/sdc --dev origen --system out/target/product/origen/system.tar.bz2 --boot out/target/product/origen/boot.tar.bz2 --userdata out/target/product/origen/userdata.tar.bz2


CategoryAndroidTips

Boards/Origen/AndroidICS (last modified 2011-11-27 04:26:28)