Featured Posts

  • Prev
  • Next

Building a Donut Rom Part 1

Posted on : 07-03-2010 | By : xillius200 | In : Uncategorized

0

Setting Up

First Thing before we start is the need to have the right tools so open terminal and type this:

$ sudo apt-get install git-core gnupg sun-java6-jdk flex bison
 gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip
curl libncurses5-dev zlib1g-dev

Now we download the repo using a tool already provided by google:

$ cd ~
$ mkdir bin
$ export PATH=$PATH:~/bin
$ curl http://android.git.kernel.org/repo >~/bin/repo
$ chmod +x ~/bin/repo

Downloading

$ mkdir donut-build
$ cd donut-build
$ repo init -u git://android.git.kernel.org/platform/manifest.git -b donut
$ repo sync

If repo init or repo sync is not recognised as a command try putting ~/bin/ before every repo command may fix your problem.

This will take a while depending on your internet connection as the android source is around 2gb.

Building

Head over to the HTC developer’s site and grab the files specified below:

  • htc-adp1.sfx.tgz – HTC Proprietary Binaries for ADP1.  Put this file in vendor/htc/dream-open
  • signed-google_ion-ota-14721.zip – Recovery image for Sapphire (click on Google I/O Device).  Put this file in your main donut-build directory.
  • signed-dream_devphone_userdebug-ota-14721.zip – Recovery image for ADP1 (click on Android Dev Phone 1).  Put this file in your main donut-build directory.

After you have done that we can move on:Make sure you do this from already inside your donut directory.

$ cd vendor/htc/dream-open
$ tar zxf htc-adp1.sfx.tgz
$ ./htc-adp1.sfx

Extract the files:

$ ./unzip-files.sh

Then sapphire:

$ cd ../sapphire-open
$ ./unzip-files.sh
$ cd ../../../

Now we set it up ready to build with a simple command:


$ source build/envsetup.sh
$ lunch aosp_dream_us-eng
or if you have a sapphire:(MT3G/Mytouch/Magic)
$ lunch aosp_sapphire_us-eng

To finish off:

$ make -j4

This will now build :)  - Next guide will show how to customize this
 then guide after that will show how to build the kernel ;) 

Welcome To A New Android Blog =)

Posted on : 06-03-2010 | By : xillius200 | In : Uncategorized

0

Hi, this is my first post of the Android Help Blog and I would just like to say Welcome and hope you enjoy your stay at http://www.androidhelpblog.tk/ hope you have a nice time and don’t forget to say hi below :)