You are here

CM6 for Milestone - build

I'd like to ask all the interested developers to join the CyanogenMod Port forum to coordinate and discuss the future development of the CM port. Thanks.

3.11.2010: the github repos are finally in a useful state again -
(feedback is welcome, I'd be glad for any hints to fix any stupidity encountered there ;) )
separation: the prebuilt/custom/modified files are in the device repo (prebuilt), files directly extracted from the beta 2.2.1 firmware in the vendor repo (proprietary)

To prepare and build:
mkdir cm4mm
cd cm4mm
repo init -u git:// -b froyo
repo sync
. build/
lunch cyanogen_umts_sholes-eng
make -j2 otapackage

More detailed instruction can be found e.g here: (but take account of the differences in the instructions published here.)

The will be built in out/target/product/umts_sholes, ready to be installed via OpenRecovery/updates.
You will also want the Google apps.

Repos and important commits (this list is now old, it's for the 0.01/0.02 versions based on the 2.6.29 kernel):
to be able to build OTA without boot.img:
device config files
let a part of the storage notifications to be handled by Usb.apk:
build also shared libcamera_client and libsurfaceflinger_client for the proprietary libvendorOMX_ti_omx...:
old 2.6.29 kernel needs one revert for dspbridge:
added umts_sholes (milestone)
proprietary files etc


Awesome work! Already forked. Are you accepting diffs?

I will surely welcome any input from the developers.
Hopefully, this project will not be left to suffer from my limited time and abilities :)


For those (like me) for whom this is the first foray into the wonderful world of android building, required environment for building can be found in the cyanogenmod wiki here

ps. Awesome work!

What about Windows users?

Upgrade to linux OS?

how much disk space required to do full build (approximate)?

.... at least, after full build is done, 9.1 GB ;)

I'm not really used to linux...can anyone tell me what packages do I need to install in order to build this?

You can roughly follow this guide:
But take account of the instructions published here.

Thanks. Got it.


Are these instructions still valid? I ask because after trying them (using Ubuntu 10.04 amd64) I got some errors and am not able to build an

Maybe I mixed up the original and your instructions a little to bit..
For example: Is the step "Extract Proprietary Files" a need for this build? I tried to get them from my Milestone running your Mod already but some files are not found.


All the needed proprietary files are already in the vendor_motorola_umts_sholes repo.
You should follow the instructions published here, the link to the official build guide for Droid is mentioned because of the prerequisites, if your environment is not yet set up for android building.
Although the majority of the proprietary files is extracted from the 2.36.0 official firmware, some needs to be taken from another official firmware (Droid, M2) as they need to be compiled for 2.2, not 2.1 system. The Usb.apk is altered to work with 2.2 specific classes (baksmali/edit/smali).


i tried to build with mac os x. for the tools i use MacPorts but I stuck at the make process: it does not recognize my java-sdk ... any suggestions? thanks :)

I get various compile errors. When i do "repo sync" some days later i get other compile errors.
Is it possible to do something like

repo sync "cm-6.1.0-RC0-Milestone-signed-10-10-07"

to get exactly the same software state as you used for building a given release?

i am new to repo. Is there something like tags/branches?


i success with cm but after i update google app i have a problem with google app.

in boot screen it's appear touch android to begin. I can touch android but nothing happen.

any idea to fix it?

this happens when the phone.apk is not running correctly (e.g. when it is not using the correct certificate)

i m having the same problem..can u give specific details to fix it??i m an idiot in programming..thx a lot

like i cant use any program from google(market,gmail,and goole talk..)
by the way this room is awesome i like the outlook of it i just hope that i could fix it!!!:)

I am having exactly the same, can you please give us some light?

Android without google apps is not a complete Android

Thank you!!!

do a wipe from Open recovery and it would work just fine.

Anyone can help?

I have flashed the G.O.T 2.2.1 image and works without any problems, 100% ok.

I have installed the latest Cyagenmod ( 8.11.2010 0.03-10.11.08), and it works 100%, but has not google apps.

I have downloaded the Google apps from [url][/... ( HDPI 20101025 )

I do the install over the Openrecovery, installing google apps etc. All goes good.

When I boot again I get the screen " Welcome to Milestone" but If I click on the android nothing happens at all, so I cannot boot my phone.

Anyone knows how to overcome this issue?

Thank you

I had the same problem.
The Google Setup Wizard started and touching the android brought no reaction.
So I did the following:
1. Wipe Dalvik Cache
2. Wipe user-data / factory reset.

This worked for me.

you can skip activation process by pressing on the screen:

top left corner, top right corner, bottom right corner, bottom left corner.

try and see what happens


well i modified the framework and got a nice reboot loop
is there any way to run the images on the emulator first?

The problem is not in the modified code, so no ide whats wrong

Hi please Help after I upgraded to the latest rc4 release my handset has stopped tethering my internet connection via wifi, it used to WORK perfect on the previous version, love your releases pleased help

is possible make a custom build with google apps included in the update?
I can not download the GAPPS with. / get-google-files-v HDPI

Thanks a lot for this guide.
A little question, i've compiled and generated the .zip following your instructions and it's ok, but after the compiling instructions, there is some other details,
Do you use these instructions for something? or it's only reference?

Thanks, and sorry for my baaaaaad english.


The link to the cyanogen wiki is there mainly because it covers the topics I didn't want to tackle here - it contains also the instructions how to setup the build environment, how to install the repo tool etc.

3g toggle cant set it off and use the apndroid also can't to stop it .always connect to the internet.

Can this be used for XT720? What are the steps to install this mod?

Forgot to add that I am using windows 64 bit, can I still install this mod on my XT720?

Hi, I am getting error below. It was working on Dec, 28th, only change here was kernel update from 2.6.32-26 to 2.6.32-27.

TIA for any clue

Install: out/target/product/umts_sholes/system/bin/audioloop
target SharedLib: libopencore_player (out/target/product/umts_sholes/obj/SHARED_LIBRARIES/libopencore_player_intermediates/LINKED/
out/target/product/umts_sholes/obj/lib/ file not recognized: File format not recognized
collect2: ld returned 1 exit status
make: *** [out/target/product/umts_sholes/obj/SHARED_LIBRARIES/libwebcore_intermediates/LINKED/] Error 1


I followed your little instruction. make -j2 otapackage does not work. Rule not found. there is just otatools and otacerts.
Help please? :-)

find: "drm/java": not found

Greetings! Keep 'em coming, I like it.

instead of 'make -j2 otapackage' cmd, do this cmd instead

'make -j3 otapackage'

then go get coffee :)

-j [jobs], --jobs[=jobs]
Specifies the number of jobs (commands) to run simultaneously. If there is more than
one -j option, the last one is effective. If the -j option is given without an argu‐
ment, make will not limit the number of jobs that can run simultaneously.

make: *** Keine Regel, um »otapackage« zu erstellen. Schluss.

-j3 just runs 3 jobs/threads. There is still no rule to create otapackage. Thanks anyway.
I think I imported something the wrong way.. but w00t?


I've made these hacks to the build to enable the otapackage target when TARGET_NO_KERNEL is defined:

So I suppose that you are not using my build repo , right?

Yes you were right. I init`ed and sync`ed the repo again. This time, when I make`ed, it compiled for half an hour. And this time Android version 2.3.2. Just one problem, no update*.zip was created. Could this be caused by my 32Bit system? Thanks for your work again, I'm looking forward to future updates.


find: `drm/java': No such file or directory
find: `drm/java': No such file or directory
build/core/ warning: overriding commands for target `out/target/product/generic/recovery/root/sbin/tune2fs'
bootable/recovery/ warning: ignoring old commands for target `out/target/product/generic/recovery/root/sbin/tune2fs'
make: *** No rule to make target `otapackage'. Stop.

not trying to sound rude, but you did not follow the instructions.

'make -j2 otapackage' does NOT work for me. (if anyone has had success with this command, please advise)


'make -j3 otapackage' DOES work. I've done multiple successful builds with this command.

try that and let us know if it works for you :)





Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.