[Desire Android Development] korri:
Did that and the phone boots fine.

However, the problem was wiping the dalvik cache (and the cache) before flashing. So when not wiping the caches, everything went fine. When wiping, the phone gets stuck. I installed Android SDK and here's a piece of logcat when wiping the dalvik and Android fails to start:

D/dalvikvm( 867): creating instr width table
E/dalvikvm( 867): Can't open dex cache '/data/dalvik-cache/system@framework@core.jar@classes.dex': No such file or directory
I/dalvikvm( 867): Unable to open or create cache for /system/framework/core.jar (/data/dalvik-cache/system@framework@core.jar@classes.dex)
D/dalvikvm( 867): Unable to process classpath element '/system/framework/core.jar'
E/dalvikvm( 867): Can't open dex cache '/data/dalvik-cache/system@framework@bouncycastle.jar@classes.dex': No such file or directory
I/dalvikvm( 867): Unable to open or create cache for /system/framework/bouncycastle.jar (/data/dalvik-cache/system@framework@bouncycastle.jar@classes.dex)
D/dalvikvm( 867): Unable to process classpath element '/system/framework/bouncycastle.jar'
E/dalvikvm( 867): Can't open dex cache '/data/dalvik-cache/system@framework@ext.jar@classes.dex': No such file or directory
I/dalvikvm( 867): Unable to open or create cache for /system/framework/ext.jar (/data/dalvik-cache/system@framework@ext.jar@classes.dex)
D/dalvikvm( 867): Unable to process classpath element '/system/framework/ext.jar'
E/dalvikvm( 867): Can't open dex cache '/data/dalvik-cache/system@framework@framework.jar@classes.dex': No such file or directory
I/dalvikvm( 867): Unable to open or create cache for /system/framework/framework.jar (/data/dalvik-cache/system@framework@framework.jar@classes.dex)
D/dalvikvm( 867): Unable to process classpath element '/system/framework/framework.jar'
E/dalvikvm( 867): Can't open dex cache '/data/dalvik-cache/system@framework@android.policy.jar@classes.dex': No such file or directory
I/dalvikvm( 867): Unable to open or create cache for /system/framework/android.policy.jar (/data/dalvik-cache/system@framework@android.policy.jar@classes.dex)
D/dalvikvm( 867): Unable to process classpath element '/system/framework/android.policy.jar'
E/dalvikvm( 867): Can't open dex cache '/data/dalvik-cache/system@framework@services.jar@classes.dex': No such file or directory
I/dalvikvm( 867): Unable to open or create cache for /system/framework/services.jar (/data/dalvik-cache/system@framework@services.jar@classes.dex)
D/dalvikvm( 867): Unable to process classpath element '/system/framework/services.jar'
E/dalvikvm( 867): Can't open dex cache '/data/dalvik-cache/system@framework@core-junit.jar@classes.dex': No such file or directory
I/dalvikvm( 867): Unable to open or create cache for /system/framework/core-junit.jar (/data/dalvik-cache/system@framework@core-junit.jar@classes.dex)
D/dalvikvm( 867): Unable to process classpath element '/system/framework/core-junit.jar'
E/dalvikvm( 867): No valid entries found in bootclasspath '/system/framework/core.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/core-junit.jar'
W/dalvikvm( 867): JNI_CreateJavaVM failed
E/AndroidRuntime( 867): JNI_CreateJavaVM failed