[HD2 Android NAND Development] unsinkable2:
Clean Installation Step by Step

I thought it might just be helpful to post step by step installation instructions for newbies and folks with stability problems. Please let me know what you think about this. I can always edit the posting to incorporate corrections and other suggestions. If everything is OK, it might be useful to place a link to these instructions in the OP.

I'll post instructions for combined ROM/CWM updates and ROM/Kernel-only updates as soon as this piece is fleshed out.

Clean Installation

A clean installation resets your phone to a state without any personal data on it. This means you lose your current phone operating system, settings, applications and data. The first installation of an Android ROM obviously is a clean installation. On subsequent installations a clean installation may help avoid problems caused by bad data.

Prerequisites:

HSPL 2.08.HSPL installed

Instructions for HD2 with 512 MB ROM

Instructions for HD2 with 1024 MB ROM (T-Mobile US)

Radio Leo 2.15.50.14 installed

Steps:

Preparation

Load battery to 100% (to avoid running out of power in case of problems)

Backup contents of your phone using tools appropriate for your system

Backup contents of your SD card (copy files to a directory on the PC)

Power off phone

Erase phone memory (ROM and data) completely

Power on phone, hold <Volume down> button until the boot loader appears (a screen with red/green/blue/white rectangles)

Connect phone to PC via USB (use a direct USB link, avoid USB hubs) until "USB" appears in the white rectangle

Run task29.exe on the PC

Power off phone (remove and reinsert battery if necessary, reconnect to USB)

Install MAGLDR

Power on phone, hold <Volume down> button until the boot loader appears, "USB" should appear in the white rectangle

From the PC, flash MAGLDR 1.13 (run ROMUpdateUtility.exe)

Power off phone (remove and reinsert battery if necessary, reconnect to USB)

Install CWM (ClockworkMod Recovery)

Power on phone, hold <Power> button until the MAGLDR boot menu appears

Select option "USB Flasher" (press <Volume down>, <Volume up> buttons to change menu option, press <Call> button to select)

From the PC, flash ClockworkMod Recovery v1.3 135M System/44M Cache/Recovery v3.0.1.9 (run DAF.exe)

Use CWM to partition your SD card (this will erase all data on your SD card)

Select option "AD Recovery" (this will start CWM)

Wait until ClockworkMod Recovery menu appears

Select option "advanced"

Select option "Partition SD Card"

Choose Ext Size = 1024M, Swap Size = 0M

Press <Back> button to return to CWM main menu

Use CWM to copy ROM and packages to your SD card

Select option "mounts and storage"

Select option "format sd-ext"

Select option "mount USB storage" (If a message requesting you to install a driver for "ADB" appears on the PC, dismiss it.)

If the SD card does not appear as a drive on your PC, unplug the phone’s USB connection, then reconnect it

Copy the zip files for ROM and optional packages to SD card root directory, for example:

ROM (TyphooN_CM7_v*.zip)

Google Apps (gapps-gb-20110120-signed.zip)

On the PC, use "Safely remove hardware" function to disconnect the SD card

On the phone, select "Unmount"

Press <Back> button to return to CWM main menu

Use CWM to install ROM and packages to your SD card

Select option "install zip from sdcard"

Starting with the ROM, for each package do:

Select option "choose zip from sdcard"

Select the package’s zip file

Press <Back> button to return to CWM main menu

Select option "advanced"

Select option "Fix Permissions"

Press <Back> button to return to CWM main menu

Select option "reboot system now"

As the Android system boots for the first time, you may experience messages stating that several applications cannot start. Select "force close" for each of them until the messages repeatedly occur for the same application. Then reboot the phone by pulling and reinserting the battery. The next boot should start cleanly.