Host PC Setup

From OMAPpedia

Jump to: navigation, search
Ubuntu logo small.jpg
How to get started with Ubuntu using pre-built binaries on your OMAP Platform
Overview Step 1 Step 2 Step 3 Step 4 Step 5 Step 6 Step 7 Step 8 Step 9


Step 1

Host Environment

Ubuntu is the recommended Linux distribution for this setup. Other distributions are available, however the configurations listed in this wiki currently only covers Ubuntu. Ubuntu is available for download at:

Note: Around 10GB of hard disk space is required to build one release of Android.


Below is a list of packages needed for building, testing, and/or debugging a OMAP development platform. These packages can be download from host's distribution package management system or through "apt-get install command".

[edit] Working around Ubuntu's Firewall

"Git" is a great tool and does work behind proxy's / firewalls with a little help. There are many ways to do this however this section will only cover "corkscrew".


Download "corkscrew" at Corkscrew and un-tar it.

cd corkscrew-2.0
cp corkscrew ~/bin/corkscrew

This can be placed anywhere as long as it is in PATH. Next create the following simple shell script called git-proxy in ~/bin directory (or some place listed in PATH).Replace items inbetween "<...> with the correct information.

exec <path_to_corkscrew>/corkscrew <proxy_name> <proxy port> $*

Save the file and give it execute permissions

chmod u+x git-proxy

Run it to test it. It should give the usage statement for corkscrew.

Now tell git you want to use a proxy. Replace the stuff between the "<...>" and don't leave out the single quotes.

git config --global core.gitproxy '<path_to_proxy>/git-proxy'

This will setup "git" to always use the proxy for all git commands, with all git trees. To set the proxy for just a specific git tree execute instead something similar to the following. The below command configures "git" to use the proxy for all URLs with a suffix.

git config --global core.gitproxy '"<path to proxy>/git-proxy"; for' 'for$'

Ubuntu's Firewall setting

Configure Ubuntu's "Network Proxy" appropriately to get access to source code

Configure the Proxy for the package manager:

Configure "http_proxy" and "ftp_proxy" environmental variable: If there is a need to use a proxy server to access the web set the environment variables "http_proxy" and "ftp_proxy". This will allow "apt-get" etc. to use this environment variable value. Below would be the ideal way of assigning values for "http_proxy":

export http_proxy=”<proxy-server>:<port>”  
export https_proxy="<proxy-server>:<port>"
export ftp_proxy="<proxy-server>:<port>"

Add this to ~/.bashrc so that everytime the machine is rebooted this variable does not have to be exported.

[edit] ARM Cross Compiler

CodeSourcery ARM Compiler version 2009q3-67 is used for building different distributions on OMAP platforms. Visit for more information.

The current Code Sourcery release may cause an internal error. If this is the case, download the following release: 2010q1-202

A previous cross compiler build release can be downloaded 2009q3-67. Different versions may be required depending on build requirements.

Another previous cross compiler build release can be downloaded 2008q3-72.

Add Compiler directory to PATH:

export PATH=$PATH:/<toolchain_folder>/bin/

Left arrow1.png Ubuntu logo small.jpg Right arrow1.png
Previous Home Next
Personal tools