Call for developers: investigating USB bricked desires - Desire Android Development

I have a Desire (NOT BRICKED), and I'm looking into this, amongst misc android stuff.
I have this line in my dmesg output:
[0.000000] Kernel command line: board_bravo.disable_uart3=0 board_bravo.usb_h2w_sw=0 board_bravo.disable_sdcard=0 diag.enabled=0 board_bravo.debug_uart=0 smisize=0 userdata_sel=0 androidboot.emmc=false androidboot.baseband=4.06.00.02_2 androidboot.cid=HTC__001 androidboot.carrier=HTC-WWE androidboot.mid=PB9920000 androidboot.keycaps=qwerty androidboot.mode=normal androidboot.serialno=HT03XXXXXXX androidboot.bootloader=0.75.0000 no_console_suspend=1 msmsdcc_sdioirq=1 wire.search_count=5
Click to expand...
Click to collapse
I wonder what does it look like to a USB bricked phone. Can a bricked owner provide this output? My theory is that since the bootloader might be in some sort of a test/fallback mode, it might be feeding other options to the booting kernel (hence the lack of SD, FM radio, etc.).
Just a thought.

Tell me what to do, i test it !
Stupid Question maybe. But found with Rootexplorer in /sys/module/msm_serial_debugger/parameters a file named "enable" in ther is only a "Y" and in /sys/module/serial/parameters two files named "serial_enabled" and "modem_enabled" in both is only a "0". Could this have anything to do with the "brick"?

bricked usb have board_bravo.usb_h2w_sw=1
u can find more info here http://android.modaco.com/content/h...sues-with-usb-connectivity-etc-and-root-a2sd/

Stupid Question: With root access we cannot specify the kernel options ?
Maybe it is due to HTC bootloader locking thing

xtcislove said:
Tell me what to do, i test it !
Click to expand...
Click to collapse
reboot the phone normally (turn off and back on) and then type in "dmesg" on a terminal screen. the kernel command line is near the top, probably in the first 10-15 lines.
Stupid Question: With root access we cannot specify the kernel options ?
Maybe it is due to HTC bootloader locking thing
Click to expand...
Click to collapse
Yes, I think we have very limited bootloader access, and less ways of changing boot parameters (as opposed to Nexus One users, for instance). But there are probably commands we can try to type in fastboot, and the boot command line might give us hints for that.

we really need to sort this its gona kill development ... were loosing more and more desires every day

were on about 1/10 rooted devices is bricked

From mine, bricked yesterday:
/ $ dmesg | grep -i kernel
[ 0.000000] Linux version 2.6.29-97da29ed ([email protected]) (gcc version 4.4.0 (GCC) ) #1 PREEMPT Mon Mar 15 20:17:52 CST 2010
[ 0.000000] Kernel command line: board_bravo.disable_uart3=1 board_bravo.usb_h2w_sw=1 board_bravo.disable_sdcard=0 diag.enabled=0 board_bravo.debug_uart=0 smisize=0 userdata_sel=0 androidboot.emmc=false androidboot.baseband=4.05.00.11 androidboot.cid=HTC__E11 androidboot.carrier=HTC-Dutch androidboot.mid=PB9920000 androidboot.keycaps=qwerty androidboot.mode=normal androidboot.serialno=HT03Yxxxx androidboot.bootloader=0.75.0000 no_console_suspend=1 msmsdcc_sdioirq=1 wire.search_count=5
Click to expand...
Click to collapse

this is the issue
board_bravo.disable_uart3=1
board_bravo.usb_h2w_sw=1
but this was posted on modaco about a week ago
but how can we change them back
I don't understand HOW the recovery image can do this?
or is HTC just trying to make our life difficult

*never touch a running system xD*
btw...
have you tried to upgrade your phone with a original WWE upgrade from HTC (upgrade/overwrite, bootloader, spl, radio rom etc), so the bootloader must be repaired.....
http://shipped-roms.com/shipped/Bra...00.28U_4.06.00.02_2_release_126984_signed.zip
1. Make a Goldcard Klick Here
2. Rename the PB99IMG_Bravo_HTC_WWE_1.21.405.2_Radio_32.36.00.28U_4.06.00.02_2_release_126984_signed.zip to PB99IMG.zip
3. Copy the PB99IMG.zip to the SD-Card Root
4. Boot your Phone with BACK+POWER
5. Go into "Bootloader" with POWER-Button
6. Wait and Accept the Flash with VOL-UP
7. Phone iss Rebooting into Fastboot again, do Step 5+6 again
8. Now your Phone is Flashing

Not tried will try tonight if someone doesn't try it before

PsYDoX said:
*never touch a running system xD*
btw...
have you tried to upgrade your phone with a original WWE upgrade from HTC (upgrade/overwrite, bootloader, spl, radio rom etc), so the bootloader must be repaired.....
http://shipped-roms.com/shipped/Bra...00.28U_4.06.00.02_2_release_126984_signed.zip
1. Make a Goldcard Klick Here
2. Rename the PB99IMG_Bravo_HTC_WWE_1.21.405.2_Radio_32.36.00.28U_4.06.00.02_2_release_126984_signed.zip to PB99IMG.zip
3. Copy the PB99IMG.zip to the SD-Card Root
4. Boot your Phone with BACK+POWER
5. Go into "Bootloader" with POWER-Button
6. Wait and Accept the Flash with VOL-UP
7. Phone iss Rebooting into Fastboot again, do Step 5+6 again
8. Now your Phone is Flashing
Click to expand...
Click to collapse
JDouce said:
not tried...
Click to expand...
Click to collapse
so try it please!

dont have a bricked desire handy ... friends is bricked mine is fine and im at university atm will try tonight but i expect someone will have tried it by then ... if this works .... ppl will be kicking themselves lol

JDouce said:
dont have a bricked desire handy ... friends is bricked mine is fine and im at university atm
Click to expand...
Click to collapse
ok, but please test it, it update or overwrite all systems (bootloader, spl, radio, radio_v2, rom .....) with HTC original files, if this dont work i think its a other problem... maybe hardware lock or something

PsYDoX said:
ok, but please test it, it update or overwrite all systems (bootloader, spl, radio, radio_v2, rom .....) with HTC original files, if this dont work i think its a other problem... maybe hardware lock or something
Click to expand...
Click to collapse
I Have Try It,had upgrade to the 1.21 version,but still usb bricked

what if you use the .exe WWE upgrade.... does this completly overwrite the bootloader/spl? or just upgrade it if necessary if it jsut urgardes it ... is there a way to make it think its a newer version and overwrite the bootloader and spl
the guy who reflased get your
/ $ dmesg | grep -i kernel
for me ... if it hasn't fixed the values then it didn't re write the bootloader

Bevor the update i have bootloader 0.75 and some usb problems, only loading over usb no hdd mount or sync etc.... then i installed the orignal WWE image from htc... usb now works fine but bootloder 0.80 and no root, only original htc system...

if the birck already has bootloader 0.8 will it overwrite

Flashing a stock RUU over a USB bricked device was tried already, I think...
I have another two far fetched theories for discussion regarding the cause of this:
I think we already established the cause of this is loading the custom recovery script or shell. So the brick might happen:
1 - When pushing the files to the device (adb push files): If this is the case, could it be that the Desire recovery kernel has a bug and the MTD devices memory region is overlapping some protected memory area such as NVRAM settings or other stuff?
2 -When executing Amon RA's recovery: could this binary be executing some illegal instruction or overwritting NVRAM in some way? It would be nice if someone pointed out to the source code of this particular version thats being used in Paul's rooting method.
Point 1 could be resolved by pushing the files to the sd card instead, chrooting and running recovery from the sd card, or another safe partition;
Point 2 could be resolved by investigating Amon Ra's recovery, probably using an emulator or stracing the binary or checking the source so that suspicious instructions could be investigated.
Regarding this last point, it must be noted that the bricking seems to happen only by _running_ the recovery, its not necessary to execute any operation. So the amount of code to check should be fairly small.

JDouce said:
what if you use the .exe WWE upgrade.... does this completly overwrite the bootloader/spl? or just upgrade it if necessary if it jsut urgardes it ... is there a way to make it think its a newer version and overwrite the bootloader and spl
the guy who reflased get your
/ $ dmesg | grep -i kernel
for me ... if it hasn't fixed the values then it didn't re write the bootloader
Click to expand...
Click to collapse
yes bootload has upgraded to 0.8,radio also upgraded

Related

My HTC Magic is on RUU mode ONLY!?

Hi,
I was doing a ROM update from an official HTC Magic unbranded ROM, it got stuck on 40% for about 3 hours, and I had to unplug, now all I get is the RUU or if the USB is mounted RUU USB.
Now, it just hangs @ 61% and nothing else.
Please see attachment.
Any help would be appreciated.
Andreo
Same problem with an htc hero and the official RUU.
Stop during update and nothing to do after.
I am interresting if you find a solution, else my hero will go to htc support...
I have even tried a flashing a HERO ROM, it goes through everything and says Installation complete, but back to that same screen in the picture!
I'm not an expert but sounds like a rom flash wont be enough by itself.
Looks like it failed when flashing the radio since ir got an RUU (Radio Unit Upgrade) mode only.
So something tells me that you're either forced to try to flash a new radio into it or send it to HTC support :S
But again i'm far from an expert in this matter!!!
You may restart the phone if it is not responding, do you have downloaded the latest update you should be able to unpack it usin 7zip and there will be a zip file in it with all images run
Code:
fasboot -w
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash userdata data.img
fastboot flash radio radio.img
this is not a guide so look around on xda if you don't know what the stuff above are.
Thanks! . . . also, it seems as though it used to hang just because the battery was not full enough, although, it didn't warn me and I couldn't tell the level.
A full charge and the rom went through and the phone is back on!
Again thanks.
Chers,
Andreo
PASS RUU
andreo1964 said:
I have even tried a flashing a HERO ROM, it goes through everything and says Installation complete, but back to that same screen in the picture!
Click to expand...
Click to collapse
You have to make yourself a GoldCard. Take the CID string using a Windows CE phone. But DON'T reverse the CID in Qmat. Worked fine for me after 2 days of despair...
andreo1964 said:
Hi,
I was doing a ROM update from an official HTC Magic unbranded ROM, it got stuck on 40% for about 3 hours, and I had to unplug, now all I get is the RUU or if the USB is mounted RUU USB.
Now, it just hangs @ 61% and nothing else.
Please see attachment.
Any help would be appreciated.
Andreo
Click to expand...
Click to collapse
i andreo i have the same problem with my magic, can you tell me how can i save my phone please
Make sure to get sappimg.nbh file and place it in the tools dir.
Run this command.
fastboot flash nbh sappimg.nbh
This will take you back to stock everything version 1.5.
Unfortunatly this doesnt work I get a Custom ID issue
henghim said:
Make sure to get sappimg.nbh file and place it in the tools dir.
Run this command.
fastboot flash nbh sappimg.nbh
This will take you back to stock everything version 1.5.
Click to expand...
Click to collapse
gymmy said:
Unfortunatly this doesnt work I get a Custom ID issue
Click to expand...
Click to collapse
hello, I had the same problem with the help of my colleagues from the Bulgarian, I fixed it without gold for cadets karta.Chek you just made the phone had such a site where you are setting up your serial number and go to where it e.sled enter the site and the HTC looking for old phone si.Download to update it if you go with the serial number if you do not poke around the net, Russians are brothers powwow original RUU, most important is to find for your original RUU telefon.Shtom find it, you put the USB cable and it puskash.This of me I hope I helped you
did you try this : http://forum.xda-developers.com/showthread.php?t=831044

Need help!!! installed 32A radio on 32B phone

I installed 32A (6.35.10.18) radio on my Tmobile mytouch 32B by mistake.
Before doing this I had my phone rooted and SPL (1.33.2005 i think). Now fast boot shows its a 32A device . Now not able to run recovery mode.
I am not able to revert it back to 32B radio.
Tried to unroot but it says version is older(with gold card).
Some one please help me......
betaboy said:
I installed 32A (6.35.10.18) radio on my Tmobile mytouch 32B by mistake.
Before doing this I had my phone rooted and SPL (1.33.2005 i think). Now fast boot shows its a 32A device . Now not able to run recovery mode.
I am not able to revert it back to 32B radio.
Tried to unroot but it says version is older(with gold card).
Some one please help me......
Click to expand...
Click to collapse
You should be able to flash a radio image from fastboot. All you would need is to connect via USB. The phone will show 'fastboot usb' instead of 'fastboot'. You'll need the android sdk in order to go any further. Place the radio you want in the tools folder of the sdk so that it's easier to get to. Bring up a command prompt and navigate to the tools folder.
For me it looks like this:
cd\
cd androidSDK/tools
From there you'll need to make sure that the android drivers are installed properly. You can do this just by typing this:
fastboot devices
This will bring up a serial number if the drivers are installed correctly. If not you'll need to get the appropriate drivers. I believe I found mine during the gold card root process on the Unlockr's site.
As soon as your computer is talking to your phone it's simple.
In your command prompt simply type the following:
fastboot update <radio.img>
fastboot reboot
This will reboot the phone and it should reflash the radio. I've never had to do this so I don't know if it is going to work. Take these words with a grain of salt though... this could still brick your phone. Who knows? Next time just make sure you have the appropriate files. Especially when dealing with radio and spl. You're lucky your phone even turns on.
Good luck!
yeah i did the same last night, but mine is stuck with RUU USB and since the SPL is perfect i cant do anything as i get a signature verify fail or remote: can not do message
If you find a solution id be very interested.
Cheers.
Hi phantommusik,
Thanks for your response. This what I get when I do update radio.imp
"EOCD not found, not Zip
error: failed to access zipdata in '☺'"
No clue what it means
I am by no means an expert on the 32B Magic, but...
Try creating a Goldcard. There are instructions on this forum.
Then, even if your phone is stuck in RUU mode, you should be able to apply this RUU for the 32B Vodafone Magic.
http://forum.xda-developers.com/showthread.php?t=640283
I warn you though, you might end up with an unrootable phone. But at least it will work.
EDIT: Pay careful attention to these steps. Make sure a goldcard is in your phone before starting.
- Download and run the RUU executable
- When the wizard is at step 1, open a file search dialog
- Look for a file named rom.nbh (should be in %temp% folder)
- Copy the rom.nbh to another folder and rename it to SAPPIMG.NBH
- Close the wizard
- Copy the sappimg.nbh to the root of your SDCard
- Power down your phone
- Boot your phone while pressing "volume down"
- It will ask you to update (wait a bit till the question pops up)
- Press trackball to start update
- After update press trackball again to reboot
Sorry!
betaboy said:
Hi phantommusik,
Thanks for your response. This what I get when I do update radio.imp
"EOCD not found, not Zip
error: failed to access zipdata in '☺'"
No clue what it means
Click to expand...
Click to collapse
I know exactly what that means!!! It means I didn't give you complete instructions! My bad! When you are flashing anything from recovery or fastboot it has to be a .zip file or .nbh. I'm not entirely sure what needs to happen in order to get it to read it but you could try sticking that radio in a .zip file with NO COMPRESSION. You might want to take a look at some of the other threads in here to see what they have to say about putting just a radio in a zip file! I would suggest downloading a radio update that is already a zip file!
Hope this helps!
One friend of mine did exactly the same thing. I used the instructions on this post and I managed to get him his 32B Magic back.
becareful flashing this rom, it is perfected and you cant root it and if you can i wanna know how !
I tried updating the new RUU when in fastboot, but there was an error saying incorrect id.
Then I coppied rom.zip file and renames it to sappimg.zip, hboot hung when updating RADIO_V2.
Please help me, its ok even if cant root the phone.
gymmy said:
becareful flashing this rom, it is perfected and you cant root it and if you can i wanna know how !
Click to expand...
Click to collapse
Listen. If you really don't know, stop misleading people. You can't root this ROM, but you can install one that is already rooted. This ROM has the kernel fault that allows flashrec to install a custom recovery ROM. From then on you can do whatever you like with your phone, even revert it back to 32B. Amon_Ra's ROM for 32B Magic is a good place to start. Read here the post my friend wrote to thank me about getting his Magic back (It's translated from Greek, hence the bad English).
betaboy said:
I tried updating the new RUU when in fastboot, but there was an error saying incorrect id.
Then I coppied rom.zip file and renames it to sappimg.zip, hboot hung when updating RADIO_V2.
Please help me, its ok even if cant root the phone.
Click to expand...
Click to collapse
You' ll need a goldcard to use this. Stop doing things that can mess up your phone even more (like sappimg.zip etc). Just use the instructions in the link I posted before. About rooting please read my reply @gummy just above.
When I ran "RUU Sapphire HTC Arabic Etisalat" the installation got sturck at 77% (updating radio).
I removed the batter and plugged it back, now the phone got struck in RUU mode couldnt go to fastboot....... does it mean its bricked?
betaboy said:
When I ran "RUU Sapphire HTC Arabic Etisalat" the installation got sturck at 77% (updating radio).
I removed the batter and plugged it back, now the phone got struck in RUU mode couldnt go to fastboot....... does it mean its bricked?
Click to expand...
Click to collapse
Repeat the process with the RUU. It did the same thing, when I used it and after 1 or 2 tries the ROM was flashed properly.

Stuck on fastboot caused by RUU error - SOLVED!!

FIRST OF ALL:
These steps are NOT official/universal, these steps worked for me, and I followed several steps form several threads. READ them (bottom of this post) entirely to be sure you can do it without problems, and to be sure how to do it (use of fastboot, adb, etc...)
Also, here is only explained for Europe, search the proper files for other parts of the world.
Story:
I wanted to revert to stock my phone, so I followed this thread instructions:
http://forum.xda-developers.com/showthread.php?t=1460713
I downloaded the RUU_Saga_Europe_1.28..., I followed the thread that used "Android Flash" system. Opened it, selected engHBootOverARX.img, select "actually in fastboot" and Android Flash did its work, flashed the hboot.
Then I started RUU. In the middle of the process it gave me the "Wrong Bootloader Error" and closed. Now my phone is S-ON, HBoot 0.98.0000, I can only load fastboot.
I posted a question here hoping somebody help me.
Solution:
Ok guys, if you are in this situation, dont panic as I did, surely the way I solved this could help you.
If you tried the above, and now you are stuck on bootloader like this:
HBOOT 0.98.0000 (or .0002)
S-ON
fastboot.exe getvar version-main gives 12.10.401.5 (or so)
and RUU wont let you actualize your phone.
I did the following:
1) First of all I needed to upgrade the hboot. Since I had no adb nor recovery, I had to do it via fastboot. In order to do that I needed an hboot that comes algon a higher version than 12.xx..., otherwise it wouldnt let me flash it... In thread [1] there is a .zip OTA in post number 41 (thanks to chargetw) with an IP dir. Download it, and get the firmware.zip from inside. Now I had to flash that firmware from fastboot, in thread [1] jneapan explain how to flash it:
example:
fastboot.exe erase cache
fastboot.exe oem rebootRUU
fastboot.exe flash zip path\to\firmware.zip
2) Ok, I noticed the 2.00.0000 (or .0002) hboot version in fastboot. From here, I could go thru the HTCDev.com solution to unlock the bootloader. Easy steps flashing an auto-generated email-sended Unlock_code.bin, you will understand it when you get thru it.
3) Nice, I had an unlocked bootloader, I could flash a custom recovery. Choose one (I used [2], but you can use the one that you prefer). And flashed it with fastboot:
example:
fastboot.exe flash recovery path\to\custom\recovery.img
4) Once I had the custom recovery, it gave me several errors when trying to mount /cache. At first my heart stopped for a while, but then I read thread [3]. I followed that thread and noticed that the "dmesg | grep mmc0" command gave me no error, so I followed step 2 form that thread to restore my cache partition.
5) Then, I could flash safely any custom ROM. I chose a prerooted stock one. Search [4] for one of your like, flash whatever you want.
6) Aafter all that things, I wanted to get my phone reverted to stock, so I needed to use a RUU. Unfortunately, all RUUs gave me a bootloader version errors because my main-version was then 13.xx... In order to do that I followed the misc_version steps form [5]. Since my ROM was already rooted, I only followed step 2 from that thread's first post, then the step 5 to relock the bootloader, and finally the step 6.
After all this, the RUU finally finished installing, and now I have a complete stock ROM.
Thanks in first place to foX2delta for his fast response. Couldnt make it without him
Thanks to all the listed threads participants. Without reading their wiseness surely I would be with a stoneage phone.
Last of all thanks to the entire xda community, for letting this forums being the best of the world
Final words:
I have learned a thing: NEVER, EVER, follow the steps of ANY GUIDE (included THIS) without reading EVERYTHING very carefully. One bad thing and BOM!, you are screwed.
Threads list:
[1] http://forum.xda-developers.com/showthread.php?t=1412398
[2] http://forum.xda-developers.com/showthread.php?t=1484753
[3] http://forum.xda-developers.com/showthread.php?t=1284196
[4] http://forum.xda-developers.com/showthread.php?t=1146601
[5] http://forum.xda-developers.com/showthread.php?t=1318919
Can't seem to find the thread right now...... The thread goes...
What you need to do is flash a custom ota firmware.zip which has a main version higher than 12, it will then give you the 2. hboot which you can unlock , install a ROM,then change your main version etc.
Will find the thread in the morning.
Ok, I think that the thread you were looking for is this: http://forum.xda-developers.com/showthread.php?t=1412398
I read it all several times. I flashed the firmware.zip as you said, thanks to the chargetw post nº41, and now I have HBOOT 2.00.0002. So I went thru HTCDev.com and the unlocking process concluded successfully. Now what? I still cant boot to use adb and misc_version, and fastboot.exe getvar version-main is 13.10.401.8.
@Rostwildch
To to be sure, you hboot now says UNLOCKED right?
Now you have two routes...
They all start with flashing a custom recovery have a look here at section 1 Step 2 to install a recovery via fastboot. If you want 4ext you will have to find the image on this site somewhere.
Next will have to install a custom ROM.
Now you have a working phone and can now change your misc version and can downgrade (then s-off) to a older RUU or you can carry on using you Unlocked phone.
Phewww that was close :S
At last I could flash a custom recovery via fastboot (my fear of a bricked phone clouded my view so I didnt realize I had an unlocked bootloader... what a noob), then flashed a custom ROM, so now I have it functional.
I want it fully stock, so I think I should now use misc_version to use an old RUU, isnt it?
Thanks foX2delta, wouldnt fixed it without your help I'm going to edit first post to make a pseudoguide to help ppl in my situation.
Rostwildch said:
Phewww that was close :S
At last I could flash a custom recovery via fastboot (my fear of a bricked phone clouded my view so I didnt realize I had an unlocked bootloader... what a noob), then flashed a custom ROM, so now I have it functional.
I want it fully stock, so I think I should now use misc_version to use an old RUU, isnt it?
Thanks foX2delta, wouldnt fixed it without your help I'm going to edit first post to make a pseudoguide to help ppl in my situation.
Click to expand...
Click to collapse
Spot on, since you rooted already all you need to do is change the misc version, then install the RUU. Glad it all worked out. You also may need to lock your bootloader to install the RUU
foX2delta said:
Spot on, since you rooted already all you need to do is change the misc version, then install the RUU. Glad it all worked out. You also may need to lock your bootloader to install the RUU
Click to expand...
Click to collapse
Yep. Thanks foX2delta .
I have detailed all my process in first post so everybody can read it. Hope it helps someone. Let me know if I misspelled a word, or you dont agree with something.
I dont want this thread to get down. Seriously, and with more reasons now ICS is officialy being developed by HTC, a lot of people is going to do what I did. I just dont want them to make the same mistakes.
BUMP!!!
Thank you!
I followed your guide, and managed to recover my phone!
With me, the firmware.zip (extracted from OTA_Saga_S_HTC_Europe_2.10.401.8-1.47.401.4_release_225210uj1q93xrps74xzje) didn't flash via fastboot, so I copied it to my micro sd and renamed it to PG88IMG.zip.
Now with my (officially) unlocked bootloader, I have now flashed [4 FEB 2012]HTC_Europe_2.10.401.9_Prerooted_Deodexed and will try to sell this phone to go back to WP7. (withdrawal symptoms )
Many, many thanks, Rostwildch!!!
[edit]
I decided to do step six, and have now managed to relock the bootloader + flash the original T-Mobile UK RUU.
Once again, thanks!
Rostwildch said:
I dont want this thread to get down. Seriously, and with more reasons now ICS is officialy being developed by HTC, a lot of people is going to do what I did. I just dont want them to make the same mistakes.
BUMP!!!
Click to expand...
Click to collapse
With the official ICS on its way, all you'd really need is to use any of the available Sense 3.0 RUUs to return to Stock.
Or wait 24 hours. I'd dare day that's the maximum lag time before an official/unofficial version becomes freely available for download on any number of Desire S forums clouding the web.
Perhaps another 24 hours for a fully rooted version to appear.
Hi guy´s I really got a huge problem.
I have the same situation like others in this thread, but I have an o2 branded device. So i could not flash recovery.zip because it´s the completely wrong version.
Any ideas I´m now stuck on HBOOT-0.98.0002 and s-on.
Please help me.
Thanks a lot
@coolbook1
M u s t m m m m a k e g o l d c a r d.... (said in a slow dying voice).
So yeah that's about it, you need to make a goldcard, if you have another android phone make it on that, or if you have a memory card reader you can use that on your PC.
Things you will need and to do
-A memory card (preferable a spare one), and also preferable smaller that 2GB
-A Phone/card reader
-Backup all the info on the memory card, we will be formatting it!
Creating a Goldcard on a working phone
Step 1) Get memory card CID and goldcard image
-Insert the memory card you wish to make into a goldcard into the phone.
-Go to Settings/SD and Phone storage on the phone and select 'unmount SD card'. Once the card is unmounted select 'Erase SD card'.
-Download and install 'Goldcard Helper' from the market.
-The app will run and give two CID's which are all ready reversed, write down the mmc2 number.
-Go to psas.revskills.de website here and enter your mmc2 CID and download the goldcard image (goldcard.img).
Step 2) Create the Goldcard
-Download 'HxD-Hex-Editor' from here and install it on your PC.
-Connect the phone to the PC in 'disk mode' i.e. view your SD card on the PC (Removable Disk).
-Open the Hex Editor (Run as Administrator if Vista/Windows 7)
-Select the 'Extra' tab and then 'Open Disk'. Under Physical Disk select your Removable Disk (your SD cad) and ensure 'Open as Read Only' is not selected and then select OK.
-Now goto the 'Extra' tab again and select 'Open Disk Image' and select the 'goldcard.img' file you downloaded early (Step 1). Press OK when prompted for Sector Size 512.
-You will now have two tabs open, one the SD card and the other the goldcard image, now to merge the two
-Go to the the goldcard.img tab and select 'Edit' then 'Select All' then 'Edit' and 'Copy'.
-Now go the you SD card tab and highlight offset 00000000 to 000000170 , and then 'Edit' and 'Paste'
-Lastly goto 'File' and select 'Save'
Allll Done......
You can also have a look here for a more modern/complex method
Or here (has a video).
Section 2 - Creating a Goldcard on the PC (Card reader)
Check here, kashoulis post 11 and you can also check here
foX2delta said:
@coolbook1
M u s t m m m m a k e g o l d c a r d.... (said in a slow dying voice).
Allll Done......
Click to expand...
Click to collapse
Excellent guide.
Couldn't have put it better myself.
I finally killed my Desire S after hours of restoring it. At the end I made the OTA Update and it freezes in Recovery Mode.
I pulled out the battery and now it´s death. I couldn´t even get any life sign.
So RIP Desires S.
Thanks fox2delta for your help...
Rostwildch: BIG THANKS for great description step-by-step. I believe no only me, but lots of users with the same issue, have problems to gather and apply informations from many topics.
One note for branded phones:
- before any action prepare golcard (with GoldCaldHelper.exe and standard card reader, method with Hex editing didn't work for me - card was not visible),
- do step 1 with goldcard inserted,
- after this - unmount it and keep safe for future use,
- like for step 6, when installing non-branded RUU.
It's a shame that it's easier to root the phone than it is to return it to stock..
HTC Desire S~Tapatalk
Think there's a easier way because RUU erase the recovery so re-flashing it might work as it didi to me:
http://forum.xda-developers.com/showthread.php?t=1488672
I have the exact same problem of this post, my main doubt is I think I can resolve anything with a GoldCard, but all the methods send me to http://psas.revskills.de/?q=goldcard, which is not working anymore, is there anyway to solve it?
neonoafs said:
I have the exact same problem of this post, my main doubt is I think I can resolve anything with a GoldCard, but all the methods send me to http://psas.revskills.de/?q=goldcard, which is not working anymore, is there anyway to solve it?
Click to expand...
Click to collapse
just checked and it still working
if you have problem with this link, you can post your CID here so other may help you to get goldcard.img

So what do I do now?

firstly, Im not asking for a detailed explanation of what to do here.. I can read up on various sections, but I do need steps to follow. This phone is the most complicated thing to flash, give me ODIN and a galaxy S any day.
Im trying to upgrade to the latet open Europe.HTC-SAGA 401_9 not a custom rom, my DS is the same Radio Version so thats ok.
After following the various guides, What I have so far is:
1) the Stock HTC 401_9 Rom from File Factory.
2) Ive downloaded Goldcard Helper, fitted my 2GB SD and gotten the reverse ID
3) Ive d/l'd the GoldCard Image for my DS reverse ID
4) Ive d/l'd the HexD editor for making the goldcard.
5) I know about having FastBoot OFF, USB debugging ON and the phone USB set to Disk Mode for making the Goldcard and the USB to "Charge only" when flashing.
So, now what. Can I just flash the HTC Stock 401, or do I root it first. My Hboot is 2.000.002 and its S-ON.
The phone has Virgin UK Software, but its not Locked.. Ive had both O2 and Orange sim cards in and they work fine.
I just need to know the 1, 2, 3 .. steps for flashing this stock rom
Thanks in advance
Always helps to write your full bootloader screen.
ben_pyett said:
Always helps to write your full bootloader screen.
Click to expand...
Click to collapse
Im all for protecting your product against time wasting "bricked" returns, but Whoever at HTC thought of this system wants slapped... hard, Bootloader says:
### Locked ###
SAGA PVT SHIP S-ON RL
HBOOT-2.00.0002
RADIO-3822. 10. 08. 04_M
eMMC-boot
Aug 22 2011, 15:22:11
HBOOT
Then it lists on screen:
FASTBOOT
RECOVERY
FACTORY RESET
SIMLOCK
IMAGE CRC
Hope that helps and hope you can give some steps. Seriously, Ive looked on here for days but there seems to be so many questions about different aspects and parts of the flashing, its confusing.
Thanks in advance
First of all, forget all about radios you know from Samsung.
At htc you can use every radio on every rom, there are only 3 possibilities you need to change radio:
It is shipped with a ruu you want to use
You face issues with radio related hardware
You want to be up to date
Ok, now to your question.
At HTC the bootloader version is important (only at stock roms).
If your bootloader has the same or a smaller version than the one from the ruu and your device had no branding, just reboot to bootloader plug it to your pc, enable fastboot usb and start the ruu.
If a branding is present and you want to stay with it, do the same with the fitting ruu.
If your version is higher or you want to remove a branding , you need a goldcard first and maybe the extracted rom.zip from the ruu, if the ruu fails with goldcard only, because you need to put it at the root of your sd renamed to PG88IMG.zip and flash it directly with your bootloader.
(also to change misc_version can be needed, but i guess not here because you don't want to downgrade)
For both cases are guides at the index (see my or bens signature).
Tectas said:
If your version is higher or you want to remove a branding , you need a goldcard first and maybe the extracted rom.zip from the ruu, if the ruu fails with goldcard only, because you need to put it at the root of your sd renamed to PG88IMG.zip and flash it directly with your bootloader.
(also to change misc_version can be needed, but i guess not here because you don't want to downgrade)
For both cases are guides at the index (see my or bens signature).
Click to expand...
Click to collapse
Ok I used this guide for the goldcard:
http://www.addictivetips.com/mobile...gold-card-for-htc-desire-without-hex-editing/
So, because Im not changing anything about the kernel, just debranding to an offical ROM, once I set up my Goldcard, I activate debugging, copy the RUU 401_9 to SD Root of my Goldcard, click "Image CRC" from bootloader menu and it should install it.
Is that correct?.
Ive just checked..
Wait and It detects the new ROM "update" automatically in bootloader menu
Yes?
NightOrchid said:
Ive just checked..
Wait and It detects the new ROM "update" automatically in bootloader menu
Yes?
Click to expand...
Click to collapse
Image crc just checks your rom, got nothing to do with updating.
The ruu itself is a exe, means a windows program , do the steps i described before with fastboot, the only difference is that you need to create the goldcard before, otherwise the bootloader won't allow (if your lucky) you to flash the ruu with the different branding.
If it fails that way run the ruu without attached device as far as you can go without closing, don't close it and search for the rom.zip at your temp folder, copy it to another folder and close the ruu, rename it, copy it to the root of your sd and reboot to bootloader and let it flash it directly, just to say it, you also need a goldcard before you do it this way.
One additional thing, be sure you got a ruu for the desire s, i just say it, because your goldcard guide is for the desire, what is no real problem there, but a wrong ruu will always fail and if it won't lead to a brick at worst case.
Sorry Tectas.. Just wont work.. I created my goldcard, extracted the RUU, changed the rom name from "disk1" to PG88IMG as you said, copied to root of goldcard, selected Fastboot then bootloader, but it just doesnt detect any image or file.
I am struggling a little with your english because you are telling me too many different ideas, Im confused... instead of telling me.. just 1, then do 2, then do.. 3, but Thank you for trying, i appreciate your help..
I will try again later..
Small thing the file you copy to the sd card must be called (case sensitive) PG88IMG.zip
Swyped form ym Dersie S unsig XAD Permuim
First method:
1. Create goldcard
2. plug in your device
3. Reboot to bootloader and enable fastboot
4. Start the ruu at your desktop and follow the instructions
5. Enjoy
If it fails make sure the drivers are installed, by downloading and installing htc sync, but uninstall it straight after you installed it, the drivers will still be present but the program itself can cause problems with ruus and/or adb.
If it still fails, try the second method.
Second method:
1. Create goldcard
2. Start the ruu without attached device
3. Go on till the only remaining possibility is to close the program, but don't close it
4. hit the windows button + r, a window should pop up
5. Type %TEMP% into the textbox of this window and hit enter, the explorer should open up and show your temporary folder
6. Search for the rom.zip (make sure hidden files are down if you can't find it)
7. Copy it to another folder i.e. the desktop
8. Close the ruu
9. Rename the rom.zip to PG88IMG.zip (case sensitive)
10. Copy it to the root of your sd
11. Reboot to bootloader
12. Choose bootloader
13. Confirm the update with vol +
14. Let it update
15. Reboot by hitting power
16. remove the PG88IMG.zip, otherwise it will update your device every time you access the bootloader
17. Enjoy
Thank you very much tectas for taking the time to sort and explain this. The 2nd methord worked just fine. However, at the end of the update flash, bootloader said:
"image on device is newer, update aborted"..
It does say that my virgin software is 2.13.351... the image is 2.10.401, so, in computer world, the numbers 2.13 is newer than 2.10. This may not be the case of the ROM itself, becasue the date is 22 Aug 11, but theyve engineered it that way probably so you cant flash it Open Europe.
The great thing is, youve taught me about the desire s and how the flash updater works, plus I have a 2GB goldcard out of it for future custom roms.. so all is not lost.. thanks for the lesson, its much appreciated.. Im gonna have a go at routing next.
It would be great to sticky this or copy it as a very Basic guide to flashing an HTC Rom.
Many Thanks again Tectas
This can also be solved, you need to change the misc_version for it as first step and afterwards do the same as this time.
About customs, you need to unlock or s-off your bootloader first.
For all three things are guides in the index thread.
I have now found that my phone is actually Locked to Virgin Mobile (has a Virgin media splash screen on boot up). Sorry for the confusion about that:
I followed the advice of Tectas and followed this:
http://forum.xda-developers.com/showthread.php?t=1399331
everything went great until I got to the end of the procedure and I only go the
"$" which after typing line 5: adb shell /data/local/tmp/misc_version -s
said "access denied" then mentioned "blue flames".
On page 6 or 7 of that thread, someone mentions this "blue flames" as being a new security mod that HTC have implemented to stop modding at all.
Is this true?.
Also, Virgin mobile and other places have quoted me £15 to unlock my DS. £15 seems alot of money, but would an unlock help (would it be worth it) for me being able to flash both Stock and custom ROMS.
I do enjoy the challenges of modding, so to me this is frustrating.
cheers
The $ indicates you have no root access, i must confess i never heard about the blue flame before, but also have to say, i never got deep into the downgrade stuff, because i used xtc clip to unlock my device, which made my device s-off and debranded.
If those Sellers use the same method, your good to go and spend the money, it saves you from a few traps you can run into with other methods (i paid €20 about a year ago), but you need to be aware that this is a hardware unlock which is irreversible, what can bring problems at warranty purpose (but must not).
Your second choice would be to use htcdev at first step and get root and so on afterwards, the downside here is also warranty, because your device is stated as unlocked at the htc database and if you leave it this way and won't use it to gain full s-off you also need to flash the kernel for each new ROM yourself with fastboot, because the recovery got no write permissions there.
If the seller would also use htcdev, safe the money, you can do it yourself, at xtc i can recommend it, but it's your choice.
Thanks for the advice Tectas. The guy in the street said it would take about 1 hour.. not sure if that helps to know. I suppose with Virgin, theyll be removing their own locks, so the virgin way might be better.
Also, the phone was bought from a 2nd hand shop, it was an unwanted upgrade someone just traded in without using it, the box it came in and the outer shell of the phone has no branding whatsoever.. thats why i was confused about it being locked.
Anyway, Ill have a think about who to go with and ill ask which methord they use before I hand it over.
Thanks again.
Tectas said:
This can also be solved, you need to change the misc_version for it as first step and afterwards do the same as this time.
About customs, you need to unlock or s-off your bootloader first.
For all three things are guides in the index thread.
Click to expand...
Click to collapse
Its Done.. phew.. hehe. After I got back to Virgin 1.31, just used the goldcard with rom.zip and it worked fine. 1 thing though, doing it this way flashes the rom in 7 stages, so what ever you do, when it reboots after the 1st install, do not think its repeating itself.. leave it. i Nearly did that, anyway, I sorted things using this thread:
http://forum.xda-developers.com/showthread.php?t=1443636
As long as you follow it to the letter, it all goes fine, the whole thread is really good support as well, so if anyones interested, read through the whole 13 pages (so far).
Also had access to the phones Recovery menu, so wiped Cach partition and did a factory reset, also probably not necessary, but backed up my SD card and formated it under the new OS.. I find this is always good on a new rom, for the file table and prevents app errors.
Happy i now know how to flash a rom, didnt quite root it yet, just flashed a stock RUU first.. which is what you should do if, like me, your new to this.
Anyway, Open Eu 2.10.401.9 is sweet and slick smooth.
Have a good one all, Thanks Tectas.

[Solved] Corrupted mid and serialno

Help, I need some [body] help! (sung to the Beatles song "Help")
Here are the symptoms:
Flashing PG88IMG file that I've used before now says "Model ID incorrect"
The serial number is now some corrupted text (see last bullet point)
If I install a ROM (I'm using CM9) after formatting all partitions (using 4EXT Touch) plus GAPPS, then Play comes up with a "Server Error". Also TB will not properly reload its settings. So I basically can't install new ROMs cleanly anymore.
ADB (with latest HTC drivers) cannot see my device. Yes, USB Debug is on.
Running 'cat /proc/cmdline' shows CID is TELST001, but some corruption in other fields. If I write it out to a file, the file is full of Chinese characters (using ES Text editor)
androidboot.batt_poweron=good_bat`#ry
androidboot.mid=uA}f
androidboot.serialno=].&_
androidboot.cid=TELST001
When did this all start?
I discovered that I could create a flashable zip file for the boot.img (looking at the updater-script for the ROM zip file.
I tried to do the same for recovery, but it - obviously - didn't work.
So I tried to copy the recovery file over the partition from the terminal emulator.
And that's where I think I screwed up.
What's working?
I'm currently running CM9 0611 with no problems. I can recover previous backups with no issues. I can update my recovery partition with no problems.
How can I get my phone back to normal?
What is it that I've screwed up?
All help will be most thankfully accepted.
Edit: Solution
The corrupted mid and serialno were the cause of all my problems. Once I'd fixed them, everything was back to normal
Things that I had to learn on the way
ADB, RUU, PG88IMG will not work if you have corrupted carrier id (cid), model id (mid) or serial number. Having a goldcard makes no difference.
A goldcard lets you flash PG88IMG files even if your cid is not in the android-info.txt file in the zip.
The simplest way to create a goldcard is this described here: http://forum.xda-developers.com/showpost.php?p=18748766&postcount=6
You can connect to ADB over WiFi. I needed this because my USB connection wouldn't work. Search for ADB Wifi in Google or Play. I used Wifi ADB. It worked like a charm. This allowed me to upgrade my hboot to an engineering version.
You need an engineering hboot (one that has the fastboot oem commands) to be able to set a serial number and model id. It took me a while to realise what the warning about it only working on an ENG hboot meant (see http://forum.xda-developers.com/showthread.php?t=1724475). I assumed that ENG meant English!
Set /Settings/Developer options/Root access to allow ADB to run su commands
To run fasboot commands you have to be in bootloader! It took me quite a while to realize this. I kept trying fastboot commands when phone had booted normally
How I fixed the problem
Installed ADB WiFi. I sourced it from http://androiddev.orkitra.com/downl...7663795511&download=com.ttxapps.wifiadb_v1.17 because I couldn't download apps from Play.
Connected to the phone using ADB over WiFi.
Flashed the engineering hboot (sourced from http://forum.xda-developers.com/showthread.php?t=1113820).
Rebooted into fastboot and executed the following commands:
fastboot oem writemid PG8810000
fastboot oem writeserialno xxxx (sourced from the number under the phone's battery)
Rebooted into Recovery and flashed a backed up ROM (I could have just wiped cache and dalvik)
Root Cause
I've finally discovered what caused the problem.
It was my writing to the recovery partition. I used this command:
dd if=<input file> of=</dev/block/mmcblk0p23
I got the information about partitions from http://forum.xda-developers.com/showthread.php?t=1545911, but those are for an HTC Amaze and, I now know, they are incorrect for a Desire S!
Just goes to show what a bit of knowledge and some ignorance can do. I have yet to come across an accurate and complete list of the partitions for the HTC Desire S.
Create goldcard, flash whichever PG88IMG you want.
Jack_R1 said:
Create goldcard, flash whichever PG88IMG you want.
Click to expand...
Click to collapse
Thanks, I'm looking into this. But that won't solve the issues I have with doing clean installs of new ROMs, will it?
Sent from my HTC Desire S using Tapatalk 2
Flashing RUU erases everything from the phone, replacing it with factory image.
It will solve everything but HW issues. Your issue doesn't look like one.
Right! I can see I've got a bit of work ahead of me. Thanks.
Sent from my HTC Desire S using Tapatalk 2
Jack_R1 said:
Create goldcard, flash whichever PG88IMG you want.
Click to expand...
Click to collapse
I used attn1's script to create the gold card, except that I ran it on my phone since I can't get ADB to work.
It seemed to work, but I still can't flash a PG88IMG - keep getting invalid id.
How can I tell if I have a gold card?
By the way, I started with an sdcard that already had files on it.
Sent from my HTC Desire S using Tapatalk 2
go here for my new guide on this issue http://forum.xda-developers.com/showthread.php?p=27713795#post27713795
htc-phones said:
go here for my new guide on this issue http://forum.xda-developers.com/showthread.php?p=27713795#post27713795
Click to expand...
Click to collapse
Thanks. I read your post, but I currently can't get ADB or fastboot on my PC to see my phone.
Is there a way of running the fastboot commands on the phone itself, just like you can run ADB?
Sent from my HTC Desire S using Tapatalk 2
Jack_R1 said:
Flashing RUU erases everything from the phone, replacing it with factory image.
It will solve everything but HW issues. Your issue doesn't look like one.
Click to expand...
Click to collapse
I downloaded an RUU, installed the HTC drivers (in HTC Sync from the HTC support web site), and ran RUU.
RUU gets an error 170 because it can't connect.
So, gold card doesn't work, RUU doesn't work, and ADB doesn't work.
Any other suggestions?
Sent from my HTC Desire S using Tapatalk 2
The only suggestion is - get one of them, or better all of them, to work. It's not rocket science, and there are zillions of guides how to make ADB work, and there are enough of them that show how to create a goldcard and how to flash RUU. If that proves to be too difficult for you - the next best advice is to leave your phone alone or to turn to paid phone service labs.
Wow! I agree it's not rocket science. The gold card process worked, but the phone still complains about an invalid id.
ADB installation worked just fine and I'm running the right drivers, but it can't see the device.
I've spent the last few days reading up on gold card and ADB installation.
I appreciate your help and suggestions as I hadn't come across gold cards before and hadn't thought of flashing RUU.
But let's please not make this personal and let's just stick to factual things.
Sent from my HTC Desire S using Tapatalk 2
It's not personal. But you've exhausted the possibilities of skipping things because they don't work for you - so the only thing that remains, is making one of the things you skipped actually work. Otherwise, I can't see how you can progress from the current situation.
Well, I finally managed to get things fixed again. I've updated the OP. Thanks for your nudging and help along the way.

Categories

Resources