How do I use Fastboot? - Desire Q&A, Help & Troubleshooting

Hello, I have my HTC Desire running the following:
AlphaRev Oxygen r2
Oxygen 2.1.6
S-Off
HBOOT 6.93.1002
Radio: 32_54_00.32U_5.14.05.17
Now, I have always flashed radios, ROMS, HBOOT etc... inside of my phone, so using images in recovery and so on. But, now, apparently you can no longer flash radios inside of Clockwork Recovery because apparently the cache memory isn't large enough to handle them.
As such, you have to use Fastboot and "fastboot flash radio radio.img". How do I do this? Has anyone got a guide on how to do this? I want to update my radio to 5.17.05.23 but cannot at the moment.
Any advice?

you need to connect your phone to the computer and reboot into fastboot mode (hold down Vol down + back button).
you'll need to have the android SDK installed prior.
navigate to fastboot mode.
head on to CMD on your pc, navigate to C:\program files\android\android-sdk\[i think its tools or platform-tools, use the command dir to list the directory. make sure fastboot.exe is in tht folder].
once in there, type "fastboot flash radio radio.img". (radio.img can be the name of the .img file you downloaded)
make sure your img is in the same folder too.

do0b said:
you need to connect your phone to the computer and reboot into fastboot mode (hold down Vol down + back button).
you'll need to have the android SDK installed prior.
navigate to fastboot mode.
head on to CMD on your pc, navigate to C:\program files\android\android-sdk\[i think its tools or platform-tools, use the command dir to list the directory. make sure fastboot.exe is in tht folder].
once in there, type "fastboot flash radio radio.img". (radio.img can be the name of the .img file you downloaded)
make sure your img is in the same folder too.
Click to expand...
Click to collapse
Excellent. So I need to get the SDK first. Is that something I can grab from Google's site or... ?

everything you need to know here for sdk

Nice guide about adb and fastboot by suroot:
http://androidforums.com/desire-all...fastboot-windows-updated-1st-june-2011-a.html
Sent from Oxygen

Or you can use the Android Flasher tool:
http://forum.xda-developers.com/showthread.php?t=794638

So... I installed the Java SE JDK in order to run the Android SDK... but... when ever I try and run the latter it just won't recognise that I have the JDK installed. Any ideas?

I'm wondering if it is because I installed the 64bit JDK, not the 32bit.

Works great now. Had to install the 32bit JDK and then took me a while to work out where adbwinapi.dll was

i had problem with fastboot.exe not able to find adbwinapi.dll so i moved fastboot.exe into the folder where adbwinapi.dll was (platform-tools i think). and it worked.

Related

Fastboot problem

Hi all
I have a problem with fastboot. I installed the drivers and sdk files. Stored the sdk files in my C:/.. I tried to flash oxygen hboot but it gave a error like: can't load (the name of the img file)
Anyone can help?
Sent from my HTC Desire using XDA App
1. Have you got adb downloaded as it's not in the SDK be default
2. Is the IMG file in the same folder as adb?
Are you s-off?
Sent from my HTC Desire using Tapatalk
EddyOS said:
1. Have you got adb downloaded as it's not in the SDK be default
2. Is the IMG file in the same folder as adb?
Click to expand...
Click to collapse
Not true, its in by default.
Make sure the image is in the same folder as fastboot.exe.
adb is not in the SDK v8 pack, you have to then download the Tools pack. Fastboot is, though
First off al thank you for ur reactions
Yes im s off.. the img file is in de sdk folder. Can someone give me the link where I can download adb?
Sent from my HTC Desire using XDA App
Start SDK Manager (in your start menu) and then download the SDK Tools from the available packages. Thing is, you don't need adb to do what you want to do. Just put the IMG file in the android-sdk-windows/tools/ folder (or where ever you have it installed) and then do the following:
(from AlphaRev website)
1) Nandroid backup in recovery.
2) Verify the MD5SUM of the file you downloaded against the one in the table.
3) Flash HBOOT with your phone in fastboot mode (Back+POWER) -> 'fastboot flash hboot bravo_alphaspl.img' (change into the correct filename for the HBOOT you downloaded)
4) 'Fastboot reboot-bootloader'
5) 'Fastboot erase cache'
6) Boot recovery, wipe everything and restore.
EddyOS said:
Start SDK Manager (in your start menu) and then download the SDK Tools from the available packages. Thing is, you don't need adb to do what you want to do. Just put the IMG file in the android-sdk-windows/tools/ folder (or where ever you have it installed) and then do the following:
(from AlphaRev website)
1) Nandroid backup in recovery.
2) Verify the MD5SUM of the file you downloaded against the one in the table.
3) Flash HBOOT with your phone in fastboot mode (Back+POWER) -> 'fastboot flash hboot bravo_alphaspl.img' (change into the correct filename for the HBOOT you downloaded)
4) 'Fastboot reboot-bootloader'
5) 'Fastboot erase cache'
6) Boot recovery, wipe everything and restore.
Click to expand...
Click to collapse
I think i'm doing something wrong with step 3. On cmd
also i dont understand step 2
downloading now all available packages, then i will give it another try
EDIT: still no succes what am i doing wrong?
i did the folowing on cmd
c:\Users\Murtaza> cd c:/android/tools (thats were fastboot.exe, adb etc. and my IMG file were in.)
c:\android\tools> fastboot flash hboot bravo_alphaspl.img
error: can't load bravo_alphaspl.img
Click to expand...
Click to collapse
the img file in the folder is named like this
anyone?
and if I check it:
c:\Users\Murtaza> adb devices
list of devices attached
Click to expand...
Click to collapse
it starts no daemon server or something :S
Anyone?
Sent from my HTC Desire using XDA App
Google adb commands and read up - Google has all the answers
If you still don't get it go back to stock as it's not for you
MurtazaY said:
I think i'm doing something wrong with step 3. On cmd
also i dont understand step 2
downloading now all available packages, then i will give it another try
EDIT: still no succes what am i doing wrong?
Click to expand...
Click to collapse
if you cant do that then i would advise you back off from it
flashing a hboot wrongly will kill it perminently its not like a bootloop, it will be dead completely with no life. only htc can fix it and usually means a new mainboard
you must always check the md5 against the one on the website as if its wrong it will brick your device. download winmd5 from the net as its free
step 3 is pretty self explanitory, if thats not working its likely you are booted into hboot/bootloader not fastboot (you must select fastboot from hboot)
EDIT: SOLVEDDDD!
Sent from my HTC Desire using XDA App

[Q] Can't flash img-files. Need tips!

I want to update radio and clockwork mod recovery but I can't flash image files. I tried two ways the below one being the first:
"1. Extract the contents of the radio zip package. You should have radio.img file in it.
2. Copy/move the radio.img file to “Tools” directory of the Android SDK setup. Fastboot.exe will also be located in the same folder.
3. Connect the Phone to computer via USB cable.
5. Open the command prompt and run the following command:
adb reboot bootloader
fastboot flash radio radio.img
6. Wait for the radio flash to complete.
After flashing is completed, reboot your Android phone. It should boot with the new Radio ROM! That’s it. You have successfully installed Radio.img on your Android Phone."
I couldn't run the fastboot command. After reboot to bootloader I couldn't connect to the desire. All I got was an error message saying "device not found". What's up with that? I do have the right drivers (at least i think so). Before the reboot the device was found all right. I rebooted via the command prompt and it worked just fine. USB debugging was activated all the time.
The second method I tried was using android terminal (trying to flash the new recovery) like this:
su
flash_image recovery /sdcard/recovery.img
The super user command worked fine but the next one didn't. Another error message "flash_image not found"
This has nothing to do with the recovery image not being in the right place or me misspelling. Tried it many times belive me. What seems to be the case is that I don't have flash_image on my phone.
Am I missing something here. I'm new to rooting and installing ROMs so I figure I might
Background:
I just recently rooted my Desire. I wanted more space for apps and to get rid of many apps included in the stock ROM.
I searched all over the place and figured Redux to be the ROM for me. I used the unrevoked method too root and Alpharev 1.8 to S-off. I use the Oxygen HBOOT flashed via the zip-file from Alpharev. I don't think I've ever used adb to flash images since I never had to.
Any ideas?
1. Install the HBOOT drivers form unrevoked site (From here.)
2. Download android SDK from their site and install it + platform tools, revision 3 (from SDK MANAGER).
3. Reboot the phone into fastboot (POWER + BACK key). Should say FASTBOOT USB.
4. Run CMD.EXE and navigate to your folder where is fastboot.exe is located (android-sdk-\tools) on your hard drive.
5. run command (e.g. fastboot flash radio xyz.img)
6. run command reboot-bootloader
Sorry, for the noobish instructions, but this should work, I just did it yesterday.
Don't worry, I'm a noob
I have already done 1 and 2. All drivers are up to date. I do get to FASTBOOT USB when doing 3 but then I can't execute any adb commands due to my device not being found.
Weirdly I can see Android Phone 1 on my laptop where you unmount en externel drive.
I might just do steps 1 and 2 over again.
For now I managed flashing the new Clockwork Mod Recovery using a guide suggesting to download a flash_image file extracted from one of the cyanogenmod ROMs and pushing it to the system/bin directory on the phone. adb commands works fine when the phone is completely rebooted so I could do that. Then I just used Terminal Emulator to flash the recovery image.
Thanks for your instructions!

No more recovery

Hello! First of all sorry for my explanations but i'm not English. I'm S-off and tried to flash a new recovery through Android Flasher but since I can't acces the recovery anymore ! Please help me I would be grateful
Try it via fastboot.
1.Download the desired recovery .img file from the site.
2. Download android SDK from official site, and run SDK Manager. When it is running, then install the platform-tools (revision 3 ATM), too.
3. Copy the file (.img) you downloaded into the android SDK folder, where fastboot.exe is located.
4. Reboot your phone into fastboot (holding down BACK+POWER keys when the phone is switched off) - it should show FASTBOOT USB.
4a. Make sure you have the USB drivers installed (for me HTC sync is not needed, i used the UNREVOKED USB drivers instead)
5. Fastboot flash. navigate to your android SDK directory in Command Promt (CMD.EXE) then run these commands:
a, fastboot flash recovery clockworkmod2518.img (or whatever is the name of the file)
b, fastboot reboot-bootloader
c, fastboot erase cache
6. You have now the recovery installed.
You don't have to have access to the recovery to flash anything that uses fastboot. For fastboot do what davebugyi said, if you want to use the Android Flasher, just boot into the rom or even better, boot into the bootloader. It works a charm. Fastboot has never worked for me for some weird reason, never have gotten it to work but the Android Flasher works.

FAILED S-OFF with AlphaRev

Hello evrybody,
Let me explain you the problem
Current configuration: HTC Desire (Bravo) PVT1 (ship s-on)
Baseband/Radio 32.54.00.32U_5.14.05.17
Rooted with unrEVOked v3
ROM LeeDroid v2.4.1
HBOOT v0.80.0000
I tryed to s-off my phone with AlphaRev v1.8 using VirtualBox v4.0.6 (with usb 2.0 support add-on installed) under Windows 7 Pro x86 with SP1.
For some (unknown to me) reasons it didn't worked for me....
Current situation:
- Impossible to boot the OS - blank htc screen
- In Bootloader menu ("Power"+"Volume down") when trying to enter Clockwork Recovery Mod sometimes phone rebooting 4 times and sometimes it make 7 fast vibrations but anyways dropes me to blank htc screen...
- While I'm in Bootloader and connected through USB to PC, I can see that in Device Manager - Android Phone - Bootloader Interface detected (drivers OK)
Please help me.....
Did you ask on the alpha rev irc channel?
Since your phone is still able to start the bootloader, you should be able to get it back up running using fastboot.
Step1: Download some stuff.
- An image of your favorite recovery tool. I'm using clockworkmod recovery.
http://forum.xda-developers.com/showthread.php?t=1039954&highlight=clockworkmod
You want the .img file.
- The Android SDK. Use Google =)
Step2:
Start the SDK Manager and download the SDK Tools and SDK Platform Tools. You now should have a "fastboot.exe" in the "tools"-folder.
Step3:
Connect your phone via usb, boot up the bootloader, and enter fastboot mode.
Step4:
Open a command line window using shift+right click in the folder where fastboot is. Launch "fastboot.exe devices". This should list your device. If not, Download the USB Driver Package using the SDK Manager and install the fastboot drivers. Windows might start whining about not being able to find the driver, but its definitely there. If fastboot.exe fails to start, you might need to copy it to the platform-tools folder and/or run cmd.exe using administrator privileges.
Step5:
Copy your recovery image to where fastboot.exe is and execute "fastboot.exe flash recovery <yourrecoveryimage>"
Further Steps:
You should now be able to boot into recovery and install roms.
You can also try to flash hboot using fastboot. If this fails, you got a handy $400 mirror to put in your pocket. You've been warned
Download a suitable image from alpharev (i think you want to go with the stock s-off hboot - that one with 250MB system) and flash it using "fastboot.exe flash hboot <hbootimage>" like described above.
Hope that helps.
godutch said:
Did you ask on the alpha rev irc channel?
Click to expand...
Click to collapse
Thank you for you advice!
Yes, they provided me a huge support and despite my desperate case I will probably solve my problem very soon ----> GOLDCARD
I tryed to get back to original stock rom with a zip file but failed because didn't found my rom zip on google (ver.1.22.73.1)
when tryin to s-off use cyanogenmod 7 rom to s-off thats wat i was told and worked a charm
rearwheeldriver said:
Since your phone is still able to start the bootloader, you should be able to get it back up running using fastboot.
Step1: Download some stuff.
- An image of your favorite recovery tool. I'm using clockworkmod recovery.
http://forum.xda-developers.com/showthread.php?t=1039954&highlight=clockworkmod
You want the .img file.
- The Android SDK. Use Google =)
Step2:
Start the SDK Manager and download the SDK Tools and SDK Platform Tools. You now should have a "fastboot.exe" in the "tools"-folder.
Step3:
Connect your phone via usb, boot up the bootloader, and enter fastboot mode.
Step4:
Open a command line window using shift+right click in the folder where fastboot is. Launch "fastboot.exe devices". This should list your device. If not, Download the USB Driver Package using the SDK Manager and install the fastboot drivers. Windows might start whining about not being able to find the driver, but its definitely there. If fastboot.exe fails to start, you might need to copy it to the platform-tools folder and/or run cmd.exe using administrator privileges.
Step5:
Copy your recovery image to where fastboot.exe is and execute "fastboot.exe flash recovery <yourrecoveryimage>"
Further Steps:
You should now be able to boot into recovery and install roms.
You can also try to flash hboot using fastboot. If this fails, you got a handy $400 mirror to put in your pocket. You've been warned
Download a suitable image from alpharev (i think you want to go with the stock s-off hboot - that one with 250MB system) and flash it using "fastboot.exe flash hboot <hbootimage>" like described above.
Hope that helps.
Click to expand...
Click to collapse
Thank you for this solution it could resolve my problem but I can't push .img files to my phone through fastboot because my device still S-ON...
daddyspud said:
when tryin to s-off use cyanogenmod 7 rom to s-off thats wat i was told and worked a charm
Click to expand...
Click to collapse
Ok. So I will try install cyanogen after rooting my phone. And then try s-off.
Thank you
Use Cd method, it's the better method
Sent from my HTC Desire using XDA Premium App
SOLVED!
---> http://forum.xda-developers.com/showthread.php?t=1087164

[Q]Now what?

So, I have succesfuly gained the AlphaRev HBOOT (thanks guys!).
But...now what?
How do I root and install CM7?
see attn1's guide with complete steps.
http://forum.xda-developers.com/showthread.php?t=1122694
---------------------------------------------------------------------------------
I will also try to explain it.
Just download the wildfire buzz recovery from the above link (attn1's guide). Then extract the recovery img file. Rename it to "recovery.img" for simplifying the method. Then u need the working android sdk (along with google usb driver installed. Better just install HTC DRIVER). Keep this img file in the fastboot.exe folder of sdk. Then connect wildfire to pc via usb cable in fastboot mode. Then open command prompt and CD into the fastboot.exe folder. Then enter the command fastboot flash recovery recovery.img where the file name is recovery.img as said above. That's all u now have the clockworkmod custom recovery.
Then if u want to use the same stock 2.2.1 rom , then u can root it by downloading "su-2.3.6.1-ef-signed.zip" from the same above attn1's guide. U should put that zip file in the memory card and install it from the custom recovery.....(install zip from sdcard > Choose zip from sdcard). That's all. Then install rom manager from market. This step is completely not necessary if u want to flash a custom rom. And custom rom can be flashed from the custom recovery with the same method...(install zip from sdcard > Choose zip from sdcard).
---------------------------------------------------------------------------------------
Actualy, I figured it out on my own, but thanks for helping
Okej, please can someone explain EVERYTHING. And i mean EVERYTHING, from step to step. My english isn't the best and i haven't got a masters exam in rooting.
"Then open command prompt and CD into the fastboot.exe folder."
..."and cd into the fastboot.exe folder?" Please explain this. CD= command?
And how do i do that? Gaaah, im getting crazy! And how to install the HTC Android USB Driver for Microsoft PC when all i get is some crazy files?
zagorje said:
Okej, please can someone explain EVERYTHING. And i mean EVERYTHING, from step to step. My english isn't the best and i haven't got a masters exam in rooting.
"Then open command prompt and CD into the fastboot.exe folder."
..."and cd into the fastboot.exe folder?" Please explain this. CD= command?
And how do i do that? Gaaah, im getting crazy! And how to install the HTC Android USB Driver for Microsoft PC when all i get is some crazy files?
Click to expand...
Click to collapse
CD = change directory in command prompt. Pls make a google search or see this.
Assuming the path of fastboot.exe in C:\android-sdk-windows\tools of ur computer. And assuming that u have already downloaded android sdk.
Then type the command cd.. and press enter untill u get to root of c drive
Then type the command cd android-sdk-windows and press enter
Then type the command cd tools and press enter.
Then u can use the fastboot flash recovery recovery.img command. And remember to keep the recovery.img in the path C:\android-sdk-windows\tools
"Then u can use the fastboot flash recovery recovery.img command."
after this says waiting for device....any suggestions? tx
gogusteliade said:
"Then u can use the fastboot flash recovery recovery.img command."
after this says waiting for device....any suggestions? tx
Click to expand...
Click to collapse
U need the google usb driver. Find hboot drivers and install. Try to install htc driver (simple method) which will be 13MB in size.
If u get that even after doing so, then just connect wildfire in fastboot mode and wait for sometime till it detects the phone. Something like within 2min.
Sent from my HTC Wildfire using XDA App

Categories

Resources