yashsingh1/xdaforums huggingface dataset:
[Desire HD Q&A, Help & Troubleshooting] fairsimple:
Welcome to the club:)

Since your phone went brick step by step (more and more flashing error) so I got a feeling that the eMMC wore out. If this is true, even JTAG can't help since it is hw faulty. Actually this is the biggest concern of my phone also.

Anyway it doesn't make anything worse to stay tuned and try whatever we attempt here. Good luck all!
[Desire HD Q&A, Help & Troubleshooting] mickeyasamoah:
The partition.mbn file i uploaded isnt for the desire hd specifically. So maybe we should edit it before we use it.

What do you think?
[Desire HD Q&A, Help & Troubleshooting] fairsimple:
After adding the command 0x19(partitionTable command) to the perl script, our partition.mbn is accepted by the phone, but loading 7x30_msimage.mbn still failed.

$ ./fixdhd.pl -fixdhd
fixdhd.pl version 20140228.
This function is for HTC Desire HD which is in QDLoader mode only.
!! You are running it on your own risk!!
Please plugin your DHD and press enter...
Qualcomm device is (05c6:9008/9025): Bus 001 Device 007: ID 05c6:9008 Qualcomm, Inc. Gobi Wireless Modem (QDL mode)

Please input lower case 'y' if you confirm to move forward.
Device found, load ARMPRG.bin? y
Opening ttyUSB port...
Loading ARMPRG.bin ...
...
..Executing file...
..So far so good, load emmc? y
Opening ttyUSB port...
Sending MAGIC...
..Good magic response from DHD
Sending secureMode...
SENDING: 7e 17 01 57 c6 7e
RECEIVED: 18 b1 6c
Checking partition table...
SENDING: 7e 19 00 aa 73 ee 55 db bd 5e e3
...00 00 00 d1 c2 7e
RECEIVED: 1a 00 a6 67
Partition table accepted.
Write partition table? y
Writing partition table...
SENDING: 7e 19 01 aa 73 ee 55 db bd 5e...
66 a9 7e
RECEIVED: 1a 00 a6 67
Partition table accepted.
Loading 7x30_msimage.mbn ...
Writing 1024 bytes to 0x00000000; 1981480 bytes left.
SENDING: 7e 07 00 00 00 00 0a ...
ae 7e
RECEIVED: 0e 57 72 69 74 65 20 75 6e 73 75 63 63 65 73 73 66 75 6c 0a 65 ac
Invalid Response: 0e 57 72 69 74 65 20 75 6e 73 75 63 63 65 73 73 66 75 6c 0a

[57 72 69 74 65 20 75 6e 73 75 63 63 65 73 73 66 75 6c: Write unsuccessful]
[Desire HD Q&A, Help & Troubleshooting] mickeyasamoah:
I am going to try other mbns over night.

Would give my conclusion tomorrow afternoon.

I have also been PMing [MENTION=1602851]connexion2005[/MENTION] for him to pay us a visit hope he does.
[Desire HD Q&A, Help & Troubleshooting] fairsimple:
To test other MBN, you can either edit line 1317 of the script or rename your new MBN file to "7x30_msimage.mbn". Thanks.
[Desire HD Q&A, Help & Troubleshooting] Gussta:
f**k, i was writing reply to you for about 2 hours and wanted to delete one word but instead i suddenly press back for whole page. lets try again but this time unfortunately wouldn't be that amply

You said that whan you push some hex through Qualcomm software your phone was recognized like motorola (obviously you push something to it what is for motorola phone and not for HTC), android or something. And when you pulled out your battery (disconect your phone) and return it back, conect your phone, you were at begining? Pc recognized it again like QHSUSB_DLOAD?

If you have a working phone but with burned eMMC controler, every time you change something on mobile phone that supposed to be changed on eMMC (change alarm, delete contacts or mesage, putt something on it, change date) when you turn off the phone pull out battery (or you don't have to pull out battery, just turn it off) when you turn it on, You have every thing as if you din't do any changes. Because your phone what ever you do first put it in permanent memory because is fastest than eMMC and than when he get time he do the changes on eMMC, but if he can't do the changes on eMMC, when you turn it off and on, you get stack where you bin before.

Classical example in witch case eMMC got burned is when you pull out battery when the phone is still working and put it back in less than a half minute. it's just like you disconnect usb flash memory from pc without doing safely remove. You can do it 1,2,3,10 or 20 time but one day you will defenetly f**ked up something.

When you turn on your phone processor first load Primary Boot Loader placed on the ROM (read only memory) on the phone. Then load FSBL (when you order a new eMMC, you can buy it with or without FSBL witch must be for your phone) and than load hboot (operating system boot loader). After that hboot load android.

If you want to put something on your eMMC you only nead to put FSBL and hboot, because, after that, when you go too hboot you can do what ever you want.

My opinion for you that you first try pull something form eMMC to see if he working at all. Than to try push FSBL and Hboot to it to see if he remember anything.

P.S. The same bug doesn't allways mean that the problem is the same. when your PC recognise your phone like it is in QHSUSB_DLOAD mode, that only means that he only recognise qualcomm processor and don't recognise hboot (especially not android). This can be for some reason. It's problem with eather FSBL, hboot, or eMMC not working so he can not see it, or can be problem with something else what i can't think of, but can be.
[Desire HD Q&A, Help & Troubleshooting] mickeyasamoah:
Hey guys.... I found this and i think its worth reading.

LINK
[Desire HD Q&A, Help & Troubleshooting] Gussta:
Wow!!! I really had a hard time reading that.

Anyways, What is your conclusion....What are u trying to say?

If the emmc were actually dead, all these Hex programmers and mbns would have failed to load.

I am pretty sure they are all sent to the emmc by QPST.

So if the emmc was actually f**ked up as you saying, we wouldnt be able to send anything to the device in the first place.

Correct me if am wrong.[/QUOTE]

First sorry for my bad english and hard time reading.

QPST connect through usb to qualcomm let say directly. You don't need eMMC. For these reason you use it in the first place. But that's not important very much.

I didn't say that your's eMMC's not working at all or that controler for saving data in it not working.

I just said that maybe it's possible. You two, three or four have to find out. And to say again, the same error doesn't mean that the problem is the same.

Your phone goes to that mode because he definitely can not read hboot from eMMC. And I definitely don't now why. I give you and others how read this tread some guidelines and advice in maybe witch directions go first and eliminate hardware problem.

It's stupid to waste your time on software fix if it's hardware problem. If It's not a hardware problem you are on a horse because do not exist software problem that it's not fixable.
[Desire HD Q&A, Help & Troubleshooting] fairsimple:
Thanks for the link. This is really a development doc. The original post is all-in-one-page at here. However looks most code and tools it mentions have to be downloaded from https://support.cdmatech.com/login/.
[Desire HD Q&A, Help & Troubleshooting] fairsimple:
I think darkspr1te used some info from there before. See the post #13 on this page
[Desire HD Q&A, Help & Troubleshooting] fairsimple:
Do you know if there is a way to identify the emmc controlor is burned or other hw issue, or there is anyway to confirm emmc is good (just data got messy). Thanks.
[Desire HD Q&A, Help & Troubleshooting] mickeyasamoah:
I am really confused right now.

Reason is after putting into consideration the emmc failure option, i begun to think it might be the emmc's fault.

When i try to flash an mbn file through QPST software download, it loads the ARMPRG.HEX, then it gets stuck at "setting up emmc device".

That got me thinking that it might be the emmc....Not saying but just thinking.

Another reason is that, before the phone got into this state, i was able to get into bootloader. But when i tried to flash anything (for example a recovery via renaming it to PDxxxIMG.zip, and placing it on the memory card, the bootloader finds the file, loads it but when its about to flash it onto the device, it skips it and says finnish. Same applies to roms, hboots etc).

I dont know, maybe it could be a corrupt partition or something.

I PMed [MENTION=1602851]connexion2005[/MENTION] and he said

Right now what i am searching for as [MENTION=5407209]fairsimple[/MENTION] said, a way to test and see whether the emmc is still functional or not.
[Desire HD Q&A, Help & Troubleshooting] mickeyasamoah:
I found a program which can test emmc but it needs some kind of file called a scatter file for our device.

If we can get one one, i think we could use it to test the emmc.
[Desire HD Q&A, Help & Troubleshooting] Gussta:
Can you read anything from eMMC with QPSD or any other software?
[Desire HD Q&A, Help & Troubleshooting] mickeyasamoah:
I havent tried it because i dont know of any software to do so.

Am now searching for some.

Could you give me names of softwares that can read emmc?

---------- Post added at 08:08 PM ---------- Previous post was at 07:15 PM ----------

Hello.

How is the .hex and mbn files coming?
[Desire HD Q&A, Help & Troubleshooting] darkspr1te:
I've not found it yet, cannot remember what medium it came in via and nothing in my backups, i will keep looking though

darkspr1te
[Desire HD Q&A, Help & Troubleshooting] mickeyasamoah:
I have done some research and i am almost sure that its actually a hardware fault.(eMMc Fault to be precise.)

The reason why i am saying this is i was able to do some tests. Thanks to [MENTION=5719152]Gussta[/MENTION]a for his help.

First, when i open QPST Download, and select the first tab.

I select an mbn file for the phone image and click start.

It loads the ARMPRG.HEX file and executes it, then it gets stuck at setting up eMMC Device.

Secondly, when i open QPST eMMC Software download, and click on Qfuse.

Then select the ARMPRG.HEX file and select send image.

After the image has been sent successful, click read .... from phone. It then gives out an error like 0x004500023.(I think those numbers are sectors on the mmc and for some reason can not be read or written to.)

Same thing happens when you open the QPST eMMC SOftware Download and click switch to Dload, it gives those 0x20032113 error.

This has got me wondering that it might be the emmc thats causing all these problems.

As it is said that this problem (Dead or Corrupted eMMC) is common with the Desire HD.

I might be wrong.:confused::confused:
[Desire HD Q&A, Help & Troubleshooting] Jengo:
Is there a way of checking the health status of the eMMC with Linux?
[Desire HD Q&A, Help & Troubleshooting] Bacchione:
Please help me!!! i'm italian and i don't speak very well english Language

My HTC Desire hd don't start!!!!!!!!

I have CWM TOUCH 5.8.0.0

In starting my HTC Desire HD is blocked in white screen with green logo HTC

When i start RUU....... .exe (much version) the installation fail: error 140

I hope in you!!!!!!!!!

I have too Asus Padfone 2: with FRAMAROOT :good::good::good::good::good::good:

Please help me for my HTC Desire HD

I append in this post 4 images of my HTC DHD
[Desire HD Q&A, Help & Troubleshooting] Gussta:
This thread is definitely not for You.

Go on this thread:

http://xdaforums.com/showthread.php?t=821973&page=263

And start to read from that page to the end.

When you are done, if you have further question ask there (in threde that I gave You).
[Desire HD Q&A, Help & Troubleshooting] mickeyasamoah:
With linux..i dont really know.

But with windows i think you can use QPST emmcsoftware download.
[Desire HD Q&A, Help & Troubleshooting] fairsimple:
QPST doesn't give error in details so we don't know what step fails. With fixdhd.pl, both of us CAN write the partition.mbn successfully so I think the emmc still function, at lease for the partition part. I still think we need the right MBN file to make the phone to SD mode.
[Desire HD Q&A, Help & Troubleshooting] mickeyasamoah:
Do you have the files for creating the mbn file?

The tutorials at anyclub said we need files like partitioningtool.py and other files for creating it.
[Desire HD Q&A, Help & Troubleshooting] fairsimple:
You can go to HBOOT so your phone is not bricked. Since you have CWM install so I assume your phone is unlocked. Can you boot to recovery? Anyway, you have S-ON so must be careful. If you can make it S-OFF so you are much safer.
[Desire HD Q&A, Help & Troubleshooting] fairsimple:
I have no file. The best way to get MBN is searching (both on internet and from friends/developers), like you did with the partition.mbn.

Another way is build from backup file (I think that is how darkspr1te did with his phone).

I remember I read several posts which mention no one can follow the anyclub instruction since only qualcomm developer can have those files.
[Desire HD Q&A, Help & Troubleshooting] Gussta:
I found this pdf.

If this are correct information and I think they are, You have problem with at least "radio partition" and maybe either with "hboot partition".

But I think it's need to go step by step.

I will try to find out how to flash radio partition through QPST, in witch format it has to be, and find the right file.
[Desire HD Q&A, Help & Troubleshooting] Bacchione:
SOLVED!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

BY MYSELF!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

downgrade by dos, relock, upgrade with stock rom by HTC.

:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D
[Desire HD Q&A, Help & Troubleshooting] mickeyasamoah:
Good for you,pal:good:

---------- Post added at 04:29 PM ---------- Previous post was at 04:14 PM ----------

Wow!!!

I guess the person who wrote this PDF had no idea of QPST.

Also before the radio,hboot and stuff comes in, there should be the mbn files which are the fsbl,osbl,amss and partition.

The OSBL is also known as the bootloader or hboot.

These mbn files are like the basefiles for android devices before the bootloader,radio,recovery and stuff come in.

Any way thanks for not giving up cause i almost did.
[Desire HD Q&A, Help & Troubleshooting] mickeyasamoah:
Guys i have found all the mbn files. It doesnt belong to the desire hd, it belongs to a device called HP Pre 3.

Good thing is that, they both have the same CPU MSM8255

I havent tried it yet. I just found it and taught i should share it first. Am going to try it after the upload.

[MENTION=5407209]fairsimple[/MENTION] can you re-create ur fixdhd with these files?

The amss.mbn is too big to upload here so i am uploading it to my 4shared account. I would add the link once its done.

My 4shared is refusing to open so i have uploaded it to my google drive.

Here is the Link to my Google Drive
[Desire HD Q&A, Help & Troubleshooting] Gussta:
Congratulations!!! :)

If you have time it would be great that you go to thread that i gave You before and try to explaine [MENTION=1663277]renedrive[/MENTION] how you did it because he have the exactly the same problem.

If you have a problem with writing in english you can pm him and explain him in Italian because he is Italian to.
[Desire HD Q&A, Help & Troubleshooting] fairsimple:
Congratulations! Are you going to root your DHD. If yes then you could make a backup of your phone, that will help recovery your phone in the future if there is anything goes wrong, and if you'd like to share the backup with us, that will help us a lot;)

You are really amazing on searching and finding stuffs!! :) Maybe we should try with the QPST-multi tab since there are multiple MBN files. the idea of fixdhd.pl is by loading one MBN file to switch the phone to SD device, then we can write to it by copy (e.g. dd command on linux). Another question for the fixdhd.pl, as you mentioned before is to what address we should write the mbn file to.
[Desire HD Q&A, Help & Troubleshooting] Gussta:
1) You said: before hboot (+ others) comes in there should be the mbn files which are hboot (+ others) and these mbn files are like the basefiles for android devices before hboot (+ others).

2) You thalking about QPST and sending files through QPST. Pdf that i attach has nothing about QPST.

But that's all irelevant.

In pdf that some one make. He is explaining that when you press power button and start to power on mobile phone after FSBL it's loading recovery partition, than hboot and so on. In the end of pdf guy is saying that if radio partition is broken you have the exactly the same problem as your's, and if hboot is broken you get stuck on HTC logo.

Maybe that all isn't true but in many threads that I was reading in witch people have the same problem (not only about DHD), in many of them the conclusion was that radio partition is broken. That's what I found for now.

My opinion is that you even don't try to flash files that aren't for your mobile phone.

You are not flashing drivers for CPU. You are flashing files witch are not compatibile with your phone and thats never good.
[Desire HD Q&A, Help & Troubleshooting] fairsimple:
I think the HEX file is good since "08:08:44.786 Finish switching to streaming download mode". As my understanding, loading then run the HEX moves the phone to streaming download mode, which we should send the partitionTable.MBN and then 'another MBN' to make the phone goes to SD mode.

I dig out my log with our old partition.mbn, same like fixdhd.pl, the phone accepted the partition.mbn, failed after that.

2014/02/20 15:52:51.454 Sent Write: Address: 0x80024600	Size: 0x8C
2014/02/20 15:52:51.458 Response: 0x2 : Ticks: 15
2014/02/20 15:52:51.458 Wait For Download Response Succeeded.
2014/02/20 15:52:51.459 Sending Go Command 0x80000000
2014/02/20 15:52:51.460 Response: 0x2 : Ticks: 0
2014/02/20 15:52:51.460 Wait For Download Response Succeeded.
2014/02/20 15:52:51.460 Finish switching to streaming download mode
2014/02/20 15:52:51.462 SynchronizeConnection starting...
2014/02/20 15:52:51.462 Sending Hello to flash programmer...
2014/02/20 15:52:53.868 Disabling automatic polling.
2014/02/20 15:52:53.919 Try Hello with polling disabled...
2014/02/20 15:52:53.925 Try Hello with polling disabled...
2014/02/20 15:52:53.931 Try Hello with polling disabled...
2014/02/20 15:52:53.937 SynchronizeConnection succeeded.
2014/02/20 15:52:53.937 Sending Hello Packet
2014/02/20 15:52:53.944 Version info = 3 2
2014/02/20 15:52:53.944 Block size = 400
2014/02/20 15:52:53.944 Flash base = 0
2014/02/20 15:52:53.944 Device Name=eMMC:
2014/02/20 15:52:53.944 Flash ID size= 4
2014/02/20 15:52:53.944 Sectors = 128
2014/02/20 15:52:53.944 Feature mask = 0x09
2014/02/20 15:52:53.944 Sending Close 0
2014/02/20 15:52:53.945 Cannot close when not previously opened
#2014/02/20 15:52:53.946 ARMPRG error: 15, text: Cannot close when not previously opened
2014/02/20 15:52:53.946 CloseDownloader error
2014/02/20 15:52:53.947 Sending Security Mode 0
2014/02/20 15:52:53.949 Decoding partition file
2014/02/20 15:52:53.958 Sending partition file
2014/02/20 15:52:53.958 Sending Partition Table
2014/02/20 15:52:54.769 Sending Reset Packet
2014/02/20 15:52:57.769 Timeout
2014/02/20 15:53:00.769 Timeout
2014/02/20 15:57:03.002 Download end, status 103, error 143
2014/02/20 15:57:03.002 Exit SB 2.0 download with status 0x00000000

BTW, the 80-N2967-1_C_eMMC_Software_Download_Tool.pdf (in darspr1te's post#88 at http://xdaforums.com/showpost.php?p=50671743&postcount=88) section 4.2 mentions how to build mbn from partition.xml and osbl.mbn/dbl.mbn, but we still need to know how to prepare the partition.xml from our partition.mbn (assume our partition.mbn is good).
[Desire HD Q&A, Help & Troubleshooting] mickeyasamoah:
Okay then.

Has anyone volunteered his or her backup in the other thread?

---------- Post added at 08:05 PM ---------- Previous post was at 08:00 PM ----------

Okay then.

Has anyone volunteered his or her backup in the other thread?
[Desire HD Q&A, Help & Troubleshooting] mickeyasamoah:
Hey.... I also found this SIte. Maybe it would be of help.

I dont know much about coding so..... Pls take a glance.
[Desire HD Q&A, Help & Troubleshooting] mickeyasamoah:
Looks like everyone has almost given up....

I was thinking of sending the device for JTAG repairs as this Unbrick has come to a halt.
[Desire HD Q&A, Help & Troubleshooting] fairsimple:
Sorry for the late reply, I was going to customer office to support (will also next week) so can't do any of our own reading/testing.

The link you posted above is quite like the doc darkspr1te posted before, as my understanding, that is for qualcomm developers since it needs lots of their files (or download from qualcomm site after login).
[Desire HD Q&A, Help & Troubleshooting] mickeyasamoah:
I have being able to sign up to this Qualcomm site.

If its the site which holds the files we need, then gimme the names that those files bear on the site so that i can download them.

Pls Reply ASAP.
[Desire HD Q&A, Help & Troubleshooting] fairsimple:
I am reading the development doc now. In the same time, can you try to signup at https://support.cdmatech.com/login/ and https://silver.arm.com/browse. We may not be able to sign up if it requests a vendor contact or pay first.
[Desire HD Q&A, Help & Troubleshooting] fairsimple:
Can you see a folder like AMSS/products/7x30/tools/jsdcc in the download section? Thanks.

Or something like AMSS/products/7x30/core/bsp/build/scripts/mbn_builder.py, or AMSS/products/7x30/core/bsp/tools/emmcbld/build, or AMSS/products/7x30/core/boot/secboot2/dbl/shared/src/dbl.s

If there is any C files, please search all files to find if string 'dbl_main_ctl' can be found.

Or is there any SVN access like http://172.20.127.15/repositories/TD1014/trunk/modem-M76XXTSNCJNLYM6050/
[Desire HD Q&A, Help & Troubleshooting] Gussta:
Htc use Qualcomm MSM 8255 snapdragon SoC.

You need 8x55 files, or I miss something?

http://www.neowin.net/news/guide-to-smartphone-hardware-17-processors?page=2
[Desire HD Q&A, Help & Troubleshooting] fairsimple:
Yes, HTC DHD has 8255 SoC. However, there are some internet posts/docs mention that the code name of 8255 is 7x30.

Also as the diagram in the page you posted, the S2 has 7230, 7630, 8255, 8655 so assuming the 8xxx is backward compatible with older one like 7230, it makes sense that the 7x30 file will work on both 7x30 and 8x55.

Anyway those folder name/SVN path I posted are just samples (which are mentioned in the dev doc), if we can find a path as ' AMSS/products/8255', or ' AMSS/products/825x/' then it will be better than the ' AMSS/products/7x30'.
[Desire HD Q&A, Help & Troubleshooting] Gussta:
I found this thread:

http://xdaforums.com/showthread.php?t=2197265

Maybe @onejay09 wish to help?

In his thread I found this:

http://faq.riffbox.org/index.php?action=artikel&cat=10&id=53&artlang=en

It wouldn't help with easy solve but maybe can explain some thing because they explaining how it works on DHD.

Principles perhaps can be similar (?????).
[Desire HD Q&A, Help & Troubleshooting] fairsimple:
Thanks for the links.

As I posted in post#31 on page 4, Fuses (who was part of the HTC unbrick project) mentioned that riffbox can unbrick DHD by USB only (no need of jtag). This is confirmed by the link you posted. That link is also looking forward a pure software unbrick way, which the fixdhd.pl is our implement/attempt to do so with DHD.

Riffbox must have the file for DHD, but I guess they are in the box. Reason: I don't have a riffbox but have the riffbox sw installed on my PC, there is no file under the installation directory. It make sense the files are in the box since it is a commercial production.

Another point in the link is that if the emmc or other hardware is broken, nothing (even riffbox) can help. As the post#3 mention, 'the bad side is 98% of emmc fault is due to Hardware'. That is why I hope we know a sure way to check emmc hw as I was ask in post #107 on page 11. For a 3/4 years old phone like DHD, it won't worth to find and replace any part I think. However, by contributing our free time, searching the free internet, hopefully we can find the files and test as much sw fix as we can, till either recovery our phone or hit the wall (confirm the hw is broken).