|Version 1 (modified by Gr8K, 3 years ago)|
How to set up the build environment
Put links to existing resources here, no need to reinvent the wheel.
- Build from sources: http://source.android.com/source/download.html
- OmapPedia has lots of info about Android on OMAP http://www.omappedia.org/wiki/OMAP_Android_Main
- Setting up a build environment for debian SID - http://linuxclues.blogspot.com/2010/04/building-android-debian-sid.html
How to download the Android source code and compile it succesfully (tested on Ubuntu 10.04)
- Adding Java 1.5 JDK Repository (only 1.6 is included in Ubuntu 10.04)
Put the following lines in your /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu/ jaunty multiverse deb http://archive.ubuntu.com/ubuntu/ jaunty-updates multiverse
Then do sudo apt-get update.
- Needed Applications
In order to build android we need some Apps, so type for:
sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev
sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev
We need a directory in which we can work, you can use whatever you want ( i this guide i used /usr/src/android ). So you (in ubuntu) : sudo mkdir /usr/src/android Now you would ever need to be the root to make changes, so simply type : sudo chown [username] /usr/src/android With this modifiction the owener of the directory is your username and you won't need root any more.
- Source Download
Now you have to create the source download tool, this one is normaly in a /bin directory in the working folder,so in our case: /usr/src/android/bin (just "cd /usr/src/android" then "mkdir bin") to download the download tool type: curl http://android.git.kernel.org/repo > /usr/src/android/bin/repo
So now if we type "repo" there will be an errer which sais that there is no such command, to tix this you include the path to repo in your $PATH (this is a variable, which knows the cmd paths) to do this you simply type into the terminal: export PATH=/usr/src/android/bin:$PATH now the computer finds repo, to be sure make the test with: echo $PATH if the repo directory is in the terminal answer, everything is fine.
Now to the real download: First we need a working folder so "cd /usr/src/android" and "mkdir mydroid" now get cd to mydroid and initialise repo in there with "repo init -u git://android.git.kernel.org/platform/manifest.git -b froyo" it will now initialize the client but not download the whole source so we need to sync it with the server with "repo sync" this will take a long time. When this step is completed, we can modify the Android sources for the archos device.
Now we are able to compile with a simpe "make"command (don't forget that you have to be in the mydroid folder with your terminal).
What to modify so it will boot on an A5IT
How to package it up and boot it on an A5IT
Currently the easiest way is to just put everything in an loop-mounted ext3 image. (Compare further the ArchDruid PoC image)
Later it would be wiser to put things directly into ubi0:system (NAND storage partition where usually the Archos Android cramfs files reside) as then access also on harddisk models will be a lot faster and performance in general will improve.