[Nexus One Q&A, Help & Troubleshooting] GuestX0019:
shiyou,

You are having too many problems from the beginning. I posted some tips on your first thread, but never heard back. Also, a member recommended doing more research before going forward. The N1 is different from other phones as far as flashing roms.

I would recommend you do this assuming you have a working rom or working backup and sdcard backup. Depending what you have or don't have the below order may vary. Maybe someone can help us there:

1. Take your sd card out of phone--believe you said you have a backup--format it with sdformatter: http://panasonic.jp/support/global/cs/sd/download/sd_formatter20.html

You can dl manual also--mainly select full erase on and size adj on as format options.

Put your backup back on sdcard while still outside phone. Put card back in phone and boot into Amon recovery. Go thru the partition steps to get 1gb ext3 and 0swap.

At this point you need to have a working rom to boot into. If not other steps may be needed.

I use Titanium Backup to manage apps, the paid version. After I flash a new rom, I open TB, or get it from Market if not part of rom. Then I restore all apps with data. NOT system data. Then I delete any old rom apps and do a refresh and then backup all apps and data.

At some point you need to get rid of Rom manager and Clockwork and flash a fresh Amon_Ra 2.2.1 from his site: http://xdaforums.com/showthread.php?t=611829 Before flashing make sure the install recovery file from old revovery is deleted thru Root Explorer, see this link: http://xdaforums.com/showthread.php?p=9414097#post9414097. You don't have to use adb, just Root Explorer. Change permission first to R/W.

You can push the 2.2.1 .img after, downloading to root of sdcard, with Terminal Emulator using these commands:

Open TE and type:

SU

at # type flash_image recovery /sdcard/recovery-RA-passion-v2.2.1.img then hit enter. I usually check md5's with a file explorer. The recovery-RA-passion-v2.2.1.img part above should be the exact name of the img file you downloaded.

2. Before flashing an update to a rom wipe dalvik cache and cache in recovery

3. If flashing a new rom wipe Phone's System with Temasek's System Wipe zip 3X by flashing from recovery. It should be in your download folder.

http://xdaforums.com/showthread.php?t=723844&page=1767

Then wipe Dalvik Cache and anything else that wasn't wiped with System Wipe zip 5X

4. You probably already know, but you can't restore a CWMod backup using Amon_RA or vice versa.

5. Read all the OP pages on the links I posted carefully

This is the way I been doing this for a long time--and rarely need any help or have problems. The system wipe is critical as old files can be left on phone even after a phone data wipe and flashing new rom.

Hope this helps and I haven't left anything out. Not a good typer. If I did--someone will correct me and some things are personal preference. But these have worked well for me.

BTW: If you have no good rom, you may want to dl the latest CM7 RC or nightly to pc and put it on sdcard after you format and put your sdcard backup from pc to phone. Then it is there to flash after card is ready and good recovery installed. You can always put the 2.2.1 on I mentioned after you get rest worked out. But, you gotta get off CWMod 3.0.

You should not use the beta Dark Tremor either, Would dl the the latest non beta.

Also, want the correct gapps for CM7 from OP page, and flashing order is rom/gapps/DT

Ken