| Version 24 (modified by anonymous, 3 years ago) |
|---|
The openAOS Android project (ArchDruid)
As no other open effort to bring Android 2.2 to gen7 (A5IT) exists to our knowledge we have decided to bundle the interested people and help them work together on this.
Please use this page to document overall progress and feel free to create new pages (preferably starting with 'Android…' so like AndroidFooBar )
List of people working on Android 2.2 :
- Gr8K
- Gaap
- janis605
- and many others subscribed to the openaos-android mailing list (see below!)
- dm8tbr (moral support and general openAOS help)
online chat
On IRC we currently meet on the #openaos channel on Freenode (redirecting to #openpma). Details and WebChat see here: http://www.openaos.org/chat
Mailing-list
There is now a mailing list you can subscribe to:
http://www.openpma.org/cgi-bin/mailman/listinfo/openaos-android
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
How to download the Android source code and compile it succesfully
- Needed Applications
In order to build android we nedd some Apps, so type for:
-ubuntu 32bit:
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
-ubuntu 64bit:
sudo apt-get install git-core gnupg 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
you will also need the Java 5 JDK (and if this entery in on the android site or not), we can't download from the ubuntu sources, so you go to java.sun.com/javase/downloads/5u22/jdk select the version you need and download it. After that you will be asked if you want the rpm.bin or the .bin file, and have to download the .bin file. After the Download open up a terminal and cd to the download directory and type chmod +x jdk-1_5_0_22-linux-[i586 or amd64].bin , after that you can extract the included files with . /jdk-1_5_0_22-linux[i586 or amd64].bin. later we will have to put the bin folder in there to the $PATH...
- Directory
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. In order to be able to compile it you will need the jdk you downloaded before and place the bin folder of the jdk in the $PATH with typing "export PATH=[path to jdk]/bin:$PATH".
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.
Links/Useful? References
EiNSTeiN's Page about Gen6 Archos devices - Flashing Information, Other HOW-TOs. Especially some of the technical information also applies also to Gen7 devices. Flashing does not apply.
