Installing CM7 7.1.2 (2.3.7) on a Motorola Milestone

Since, I got a new phone, I decided to upgrade my old Motorola Milestone with the latest cyanogenmod. CyanogenMod 7 for Milestone A853 is not officially supported by CyanogenMod, however, since I don’t need the phone to be working, I installed it.

As my phone is already rooted, I did not need to follow these instructions.

Preparation

  • Download OpenRecovery
  • Copy the extracted files (directory OpenRecovery, file update.zip, file vulnerable_recovery.sbf) to the sdcard of your phone.
  • Reboot into recovery (Press Camera button, then press Power. Hold them both untill you see the recovery screen. Then, press Volume Up and Camera button at the same time untill you see the recovery menu)
  • Apply the update.zip -> You are now in Open Recovery
  • Download latest google apps and place them on the sdcard of your phone in the folder OpenRecovery/updates
  • Before building CM7, you should download repo from here. Once you have the file, make it executable chmod a+x repo.
  • Make sure you have installed the following dependencies (Ubuntu) bison flex g++-multilib gcc-multilib gperf lib32ncurses5-dev lib32z1-dev libc6-dev-i386 libx11-dev mesa-common-dev openjdk-6-jdk

Compiling CM7

Depending on your CPU and bandwidth, this may take some hours.

mkdir cm4mm
cd cm4mm
repo init -u git://github.com/nadlabak/android.git -b gingerbread
repo sync
vendor/cyanogen/get-rommanager
. build/envsetup.sh && brunch umts_sholes

Flashing

  • Copy the update-cm-7...-Milestone-signed.zip from out/target/product/umts_sholes to OpenRecovery/updates
  • Factory Reset / Wipe Cache Partition AND Dalvik Cache
  • Flash the Cyanogen update-cm-7...-Milestone-signed.zip file
  • Flash the Google Apps zip file
  • Reboot