Notes on building Android for the SMDKV310


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


  • 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
    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 landing team manifest file for SMDK

  • repo init -u git:// -b lt-smdkv310 -m LT-smdkv310.xml

Get the landing team manifest file for Origen

  • repo init -u git:// -b origen -m LT-origen.xml

Copy all of the git trees to your system

  • repo sync

Source the in order to get some additional shell cmds:

  • . build/

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 SMDKV310 support

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

Build the bootable SD card

  • ./linaro-image-tools/linaro-android-media-create --mmc /dev/sdc --dev smdkv310 --system out/target/product/smdkv310/system.tar.bz2 --boot out/target/product/smdkv310/boot.tar.bz2 --userdata out/target/product/smdkv310/userdata.tar.bz2

Boards/SMDKV310/Android (last modified 2011-08-01 15:28:45)