Build Eclair aka Android 2.1 for Hero from source28 Jan 2010
First of all let met thank (loxK, kiall, jnwhiteh and Behnaam) because those guys are doing a very good job buy creating rom’s for Hero and posting there information on the net. This post is all about eclair and Hero. What you will see here is how to build eclair for Hero and how to create an update.zip so you can flash your Hero.
To do this you need couple of things, a workspace, eclair sources, hero vendor settings from the github (provided by loxK, kiall and jnwhiteh) and you need the HERO21 rom (provided by loxK and Behnaam).
Let’s start by creating an workspace, to make it easy for you guys I made an script that will do everything for you. You can download it HERE. Be CAREFULL if you already have used my other script you will already have an folder called myandroid in your home directory. If so then you have two choices you can delete the myandroid folder
or you could replace the words “myandroid” to “myeclair” in the script.
So what does the script do, It installs required packages, setups folders, initializes the eclair repo, it initializes github repo (Hero vendor). Now that you have your workspace initialized it’s time to proceed.
Before we can compile we need to do two more things.
I found some problems with the Hero vendor settings so I had to modify them, this is what I did.
Now remove community_hero_eu.mk:
Download the HERO21 rom from HERE and save it in “~/myandroid” as “update-hero.zip”. Now unzip the files needed by doing:
If everything worked well you are ready to build your eclair for Hero. Do the following:
You will have to wait for some time, but if it all goes right you have just created eclair for Hero. Bear in mind that this is an clean Android no HTC no Google stuff!
It’s time to build an update.zip. There are two methods for that, you could run the following:
but this did not work for me.
Or you could create an update.zip from system.img as I did. I already have explained how to do this here.
There are some changes, use this update-script, copy the boot.img from “~/myandroid/out/target/product/hero/system.img” to “~/update”
and as last don’t run this:
but run this instead:
When you finish signing your update.zip upload it to your phone, but DO NOT forget to make an backup with nandroid.
Also BE AWARE that booting could take some time, for instance I had to wait 1 minute before the screen changed from “Hero” to “Android” and after that I needed to wait another minute for the phone to show login screen.