Notes on building Android Gingerbread for the Samsung Origen Board

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 (Oneiric).

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 android
    cd android

Get the LEB manifest file for Origen

  • repo init -u git://android.git.linaro.org/platform/manifest.git -b linaro_android_2.3.7 -m staging-origen.xml

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

Build the Source

With the arm compiler in your path

  • make -j4 TARGET_PRODUCT=origen boottarball systemtarball  userdatatarball showcommands

To specify the path to your arm compiler

  • make -j4 TARGET_PRODUCT=origen 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

Boards/Origen/Android (last modified 2011-11-25 19:24:51)