[G1 General] ANtiHazarD:
Hello!

Yesterday I found myself in a very terrible situation. I spend about 6-7 hours...

It just happened that I deleted the recovery (through fastboot), and before that deleted firmware of the phone. That is, there remained only mode HBOOT (fastboot). Around the internet and google there are no guides on how to return

recovery by the alternative methods or how to flash a new ROM through

fastboot.

Thats why i want to present to you my little guide... Coz i think it will be very useful for some ppls like me with the same trouble.

So, if you're in a situation where you do not have Recovery, and the phone is not started in boot ROM

then first

try a standard way to flash a new Recovery through fastboot mode

Standart way of flashing new recovery via fastboot​

1.Connect your phone with PC via USB and power off your phone (if it up).

2.Than start up in fastboot mode - (in my situation, fastboot mode is CAMERA+POWER, then button "send") in all other (as i know) this is starting the phone while pressing button BACK.

3.Open -> Start->Run->cmd (open command prompt in windows*) and write:

fastboot devices

Than you must see your device serial number like this:

H94XTGAMSHDY

and should say "fastboot".

If all right - go next. If not - check fastboot mode (is on?) and USB cable.

4.Than change directory via cmd to where you have saved your recovery image (NEW recovery.img !!! ALWAYS CHECK MD5 SUM)

5. Than type this :

fastboot flash recovery recovery.img [enter]

(while you are stay in the same dir where you saved recovery.img)

(if you got some error about previously version or smth like this you can try to use this: fastboot erase recovery and only than try to flash new recovery from step №5)

6.Check your phone's display, as recovery is being sent and flashed to your device. And check your command prompt/shell to make sure the process is over.

7.Reboot into recovery by holding Home and Power (before it power off device).

Thats all! You can use any recovery, all what you like. I use Amon_RA's recovery.

IF WHILE FLASHING YOU GOT :

sending 'recovery' <4594kb>... OKAY [ 1.734s]
writing 'recovery'... INFOsignature checking...
FAILED <remote: signature verigy fail>
finished. total time: 3.125

Use next steps (my Alternative method)

And IF you can't flash recovery by this method it is not big trouble as you think now :-)

Alternative way of BOOTING new recovery via fastboot​

checked and founded by me

Everything here is much easier and faster! ;)

Do not be scared as I did it yesterday

Only what you need it :

Change directory via cmd to where you have saved your recovery image (NEW recovery.img !!! ALWAYS CHECK MD5 SUM)

And than TYPE:

fastboot boot recovery recovery.img

And your phone will be rebooted about 2 seconds in RECOVERY MODE. Yes!

After this you can use your old Nand Back up (restore it) and start up your old ROM. Or you can wipe all and try to flash new ROM and many operations what you can use via recovery. When you will get working ROM and flash it - you can flash recovery via adb. Or Use Rom Manager (Not recommended!)

Why we use this method? Because if you got error while flashing - FAILED <remote: signature verigy fail> you CAN'T FLASH ANY .img. Why? I Don't know, i hope some android guru's help us with it theory :-)

(ALL AFTER THIS LINE ALL TEXT COPYED FROM WIKI.CYANOGEN.COM CREDITS GOES TO Cyanogen. Thx you, god)

If you want to flash recovery via adb (using power on phone with working firmware) (This method working 100% but strongly need working phone with working ROM)

Working only with HTC DREAM (G1) - Attention.

adb method

by cyanogen version

Restoring the custom recovery image

Download the flash_image tool (HERE LINK

Next, place the file on your desktop

Change the directory to where "flash_image" is located, e.g. in Windows: cd C:\<path-to-flash_image-location>, in Linux: cd /home/USERNAME/path/to/flash_image on a Mac: cd /Users/USERNAME/path/to/flash_image)

IMPORTANT: Turn on USB debugging. Settings -> Applications -> Development -> check the box "USB Debugging"

Open up and adb shell

With your phone booted, type the following command

s:

adb root

This will start ADB as root, or notify if it is already running as root.

adb remount

This will mount the system partition (/system) as writable, allowing the following

adb push flash_image /system/bin

This will send the flash_image script into the /system/bin, so we can use it from within the shell

adb shell chmod 0755 /system/bin/flash_image

Finally, change the permissions of the script to allow it to perform the desired action.

Now that the script is installed, we are ready to proceed with flashing the custom recovery, saved on the root of the SD card earlier:

adb shell flash_image recovery /sdcard/recovery.img

P.S. If you want i can post here method by flashing original 1.6 ADP Rom via fastboot (but as i think it is on htc dev web... But i can post here cut version of this - coz original version have many not needed things.)

Credits:

Cyanogen

all xda cool ppls :-)

ANtiHazarD