Full Update Guide - Nexus One Firmware to CyanogenMod
From CyanogenMod Wiki
[edit] Prior to doing anything - back up
Don't forget to think about backing up your data. Contacts and Google data will not be lost and will come back after the next sync but you should backup everything else:
- ringtones
- SMS/MMS messages
- applications themselves - use the Astro file manager, for example
- any application data not on the SD card
[edit] Prerequisites
In order to flash a fully stock Nexus One with any ROM, you must first unlock the bootloader of your Nexus One and flash a Recovery Image. If your Nexus One's bootloader is already unlocked, and you already have a Recovery Image installed, skip this section.
WARNING: UNLOCKING THE NEXUS ONE'S BOOTLOADER WILL VOID YOUR WARRANTY!
You will need the fastboot shell on your computer to use the commands to unlock the bootloader. Follow the Install the Latest Android sdk guide, to get the ADB and Fastboot shell on your computer.
- Before continuing, you should first copy all the necessary files to your SD Card. Doing so will make the entire process much easier and faster.
Files you will need:
- Download the latest release of CyanogenModfor the Nexus One and the Google Addon from http://www.mediafire.com/file/hy2yj42my3i/gapps-passion-ERE36B-2-signed.zip
- Download the latest release of Amon_Ra's Nexus One Recovery Image from http://forum.xda-developers.com/showthread.php?t=611829
- Rename Amon_Ra's recovery file "Recovery.img", and copy all three files to the root of your SD Card.
- Power off your phone.
- Boot into Bootloader Mode.
- Hold down the trackball, and press the power button. Do not let go of the trackball until the phone boots into bootloader mode (You will see a white screen with three skating bugdroids).
-
Unlock the Bootloader.
- Make sure your phone is connected to your PC.
- On your PC, navigate to the AndroidSDK\tools folder.
- Hold down the Shift key, Right click on an empty space inside the folder, and press "Open command window here". (note: on Windows XP, this might not work. Instead, you may need to open the command window by going to Start - Run - Type "cmd" - press Enter, then type c:\AndroidSDK\tools, press Enter)
- Inside the command prompt that opens up, type in the following command:
fastboot oem unlock
- On your phone, a prompt will open up, asking you if you are sure you want to unlock your bootloader, and again warning you that doing so will void your warranty. If you agree to these terms, press Volume Up to select Yes, and then press the Power button to confirm.
- Your phone will restart. Let the phone boot into Android. Switch the phone back to usb debugging (unlocking bootloader causes a wipe, reseting settings), and then Power Off the phone.
- Once again, boot into bootloader mode.
-
Flash Recovery.
- Note: The Recovery.img does NOT need to be on the SD Card, in my case, it had to be in the current working directory.
- On the command prompt you opened earlier, type in the following command:
fastboot flash recovery Recovery.img
The recovery image should now be installed on your Nexus One.
[edit] Flash CyanogenMod
- Copy the CyanogenMod update (update-cm-XXXXXXXXXX.zip) and gapps-passion-XXXXXX-signed.zip to the root of your SD card.
-
Boot into Recovery Mode
- Once the Recovery flash is complete (should be almost instant), press the Power Button. The highlighted blue text should now say HBOOT. If that doesn't work, try holding the trackball and Volume Down buttons while you press the Power button.
- Press Volume Down once to highlight Recovery, and press the Power Button again. The phone should reboot into Recovery Mode (this will take about 10-20 seconds)
-
OPTIONAL: Create a Nandroid Backup (This is not needed to flash CyanogenMod but is highly recommended!)
- Once in Recovery Mode, use the trackball to scroll down to "Backup/Restore" and press the trackball three times, and wait until the backup is complete.
- Once backup is complete, wipe, since you're coming from stock (even fastboot oem unlock may not fully wipe, do it just in case) many users report the phone not booting properly without a wipe at this point.
- Scroll down to "Flash zip from sdcard", and press the trackball.
- Select the CyanogenMod update (update-cm-XXXXXXXXXX.zip), and press the trackball again to confirm. Wait until the flash is complete.
- Once again, Scroll down to "Flash zip from sdcard", and press the trackball.
- This time, select the Google Apps File (gapps-passion-XXXXX-signed.zip), and press the trackball again to confirm. Wait until the flash is complete.
- Once you are back in the main menu, press the trackball select the first option (Reboot system now) and reboot the phone.
If everything was done correctly, the phone should boot into CyanogenMod!
