yashsingh1/xdaforums huggingface dataset:
[Touch Diamond, MDA Compact IV ROM Development] krishnasty:
Urgent help needed

SORRY GUYS...ITS WORKING PROPERLY..WAS OVER LOOKING A SIMPLE STEP..

THANK U GUYS..

I was trying to install custom ROM on my Diamond and now, all i am seeing the standard Touch Diamond black screen and nothing beyond that.

Here are the steps which i followed:

1. Downloaded HARD SPL from http://xdaforums.com/showthread.php?t=416211 and ran ROMUpdateUtility.exe on the phone. It was successfull

2. Then downloaded custom Radio 1.09.25.23 and installed on the phone jst as the previous step. Even that was successful.

3. Downloaded MTTY from http://xdaforums.com/showthread.php?t=540290 and tried flashing from USB (post #4).

3.1 in the bootloader, selected USB and left every other configuration like original.

3.2 in the cmd :

--------------------------

Cmd>set 14 0

HTCST ÚÈÒHTCE

--------------------------

then,

--------------------------

Cmd>task 29

Format BINFS start

Fill RSVD information for block 288 to 321

CE start sector=0x14, total sector of CE and TFAT=0x14

CE start start block=321, total block=1727

ERASE block 75 FAIL !!!

ERASE block 123 FAIL !!!

ERASE block 138 FAIL !!!

ERASE block 1075 FAIL !!!

ERASE block 1667 FAIL !!!

Write 0xFF start page=0x5040, total page=0x1AFC0

Format BINFS end

------------------------------

then,

---------------------

Cmd>task 8

Cmd>

---------------------

disconencted my device and held the vol down key and was navigated to the bootloader screen with USB connection.

4. dowloaded 'Energy' ROM from http://xdaforums.com/showthread.php?t=517300

and then tried running it.. but then the custom RUU says that cant connect.

Now i am really worried..did i brick my cell? is there any way to come out of this??

Loads of thanks in advance..
[Touch Diamond, MDA Compact IV ROM Development] teddyorsetto:
thanks so much!!
[Touch Diamond, MDA Compact IV ROM Development] aftashokz:
works great for me using xp virtual pc on windows 7 ultimate good work
[Touch Diamond, MDA Compact IV ROM Development] 4D3:
WOW!!! There are still people using the Diamond!!

Thanks for the comments!!
[Touch Diamond, MDA Compact IV ROM Development] RASEVEN:
I tried installing the USB drivers...and it shows year 2003. So thats ok, but when i load MTTY i cant select USB.. ;-(
[Touch Diamond, MDA Compact IV ROM Development] 4D3:
you have loaded the drivers wrong! uninstall all drivers and take it from the top!
[Touch Diamond, MDA Compact IV ROM Development] RASEVEN:
Ok i got MTTY working on my old laptop

This is what i did:

info 8

--- 2K bytes sector version ---

DEVICE NAME=hynix_h8BES0UQ0MCP

DEVICE ID=0xBC

DEVICE MAKER ID=0xAD

PAGE SIZE=0x800

TOTAL PAGE SIZE=0x840

BLOCK COUNT=0x1000

BLOCK PAGE=0x40

Checking block information

OS NOT FOUND !!!

Cmd>task 2a

Format ALL start

backup SPL OK

backup MISC configuration OK

SPL start start block=497, total block of CE=3599

Write 0xFF start page=0x7C40, total page=0x383C0

restore SPL OK

restore MISC configuratoin OK

restore MFG configuratoin OK

Format ALL end

Cmd>task 29

Format BINFS start

Fill RSVD information for block 497 to 530

CE start start block=530, total block=3566

TAG NOT FOUND !!! NOT CLEAR STORAGE !!!

Format BINFS end

Cmd>

So i checked for bad blocks fixed them and tried task 29. But there MTTY fails to do so. Any ideas? Or other commands i can try?
[Touch Diamond, MDA Compact IV ROM Development] yuiop0:
I use it so far...

I recently got the issue with copying files to Internal Storage. I fail to copy a new file from PC if the amount of data in Internal Storage is above 3Gb. Read some posts about bad blocks in NAND flash - could be my issue...

Flashed a number of ROM's (incl. the original) - the same issue is everywhere. HR with formatting flash did not help.

I'm currently on custom ROM. I flashed it on XP. First I did mtty task 29, got no errors than flashed the ROM using CustomRUU.exe.

Are there any way to re-format "Internal Storage"/mark bad block there? Am I right the tasks 28/29/2a are for "ROM" but not for "Flash Card"?
[Touch Diamond, MDA Compact IV ROM Development] xxdadashov:
When the computer is restarted, the previous configurations of the program (MTTY program) are lost.

how to make the app open automatically and restore its previous settings?
[Touch Diamond, MDA Compact IV ROM Development] AgentSmith:
I am wondering now if mtty can be used for other devices too like the TD2 and the Sony Xperia. I guess it can but I want to be sure. ;)
[Touch Diamond, MDA Compact IV ROM Development] 4D3:
I would say yes to the TD2, and not sure for the Xperia!! (I dont have either so cant say for definite!!)

I think MTTY is ok for HTC devices as it has been used on kaiser, hermes etc etc

MG
[Touch Diamond, MDA Compact IV ROM Development] alienao:
+1 to make this post sticky ;)
[Touch Diamond, MDA Compact IV ROM Development] y2kreamy:
Great Work

Hi MG,

Many thx !! great work indeed.

I am new to xda dev,MTTY n all, ur guide is fantastic though to follow.

I have been flashin rom like mad as i have discovered XDA-Dev a month ago only, otherwise was thinking to sell my diam.

did mtty to know whethr bad blocks left in d device.

got following output.

Cmd>set 14 0

HTCST ÚÈÒHTCE

Cmd>task 28 55aa

Format start

Fill RSVD information for block 288 to 321

Storage start sector=0xD340, total sector=0xD580

Storage start block=878, total block=854

Total Bad Block in CE: 0

Erase physical block from 1168 to 2048

Format end

Cmd>task 0

Cmd>

now i hav a ques, aftr firing set 14 0 cmd

result is HTCST ÚÈÒHTCE

but what u hav mentioned is HTCST ÚÈÒHTCEUSB

why this diff, also block num are different

Excuse me, i am asking this ques, cud b a stupid ques, but request u to reply.

also is it ok to run mtty, bfr every new rom flash?

thank you!
[Touch Diamond, MDA Compact IV ROM Development] 4D3:
the bad blocks seem to be random!! I get bad blocks when i use MTTY, others in the thread have also reported different bad blocks too, but from what i understand these make no difference.

there has been some mention about this but i cant remember where i saw it, the only thing i would look for is bad CE blocks as these can give an indication that the NAND chip is about to break, but even then there has been a post previously stating 1 bad CE block, but the device still flashed!!

Unfortunately i cannot find more info about this!

Doesnt matter as long as you "set 14 0" this forces an OS boot after format.

I have no idea lol, sometimes when i run MTTY instead of CMD> i get USB>

block numbers could be dependant on your device!! dont worry bout it!

yeah EVERYTIME! (also you should flash from Internal Storage not via USB from your PC)

Hope that helps

MG
[Touch Diamond, MDA Compact IV ROM Development] y2kreamy:
Thank you for your help & promptness.

Always do the internal flashing as u suggest.

You guys are great!!! Keep up the good work:):):)
[Touch Diamond, MDA Compact IV ROM Development] guylich:
thanks I'am sure it would be really helpfull
[Touch Diamond, MDA Compact IV ROM Development] Riel:
Well not if it is of any importance to the tread, but I can say that I am 100% sure that this does NOT solve the lag of GPS. That is a completedly other issue.
[Touch Diamond, MDA Compact IV ROM Development] truszek:
Thanks!

@MysticGenius, first of all - thank You. I got question - if i wanna flash from internal storage, can i skip Post 4: MTTY Instructions For FLASHING FROM YOU SYSTEM, and do only Post3?

Thanks again.
[Touch Diamond, MDA Compact IV ROM Development] 4D3:
Yeah, " MTTY Instructions For FLASHING FROM YOU SYSTEM" is the instructions if you want to flash from your system.

If you want to flash from your device follow post 2 and 3

MG
[Touch Diamond, MDA Compact IV ROM Development] FrAsErTaG:
Many Many Thanks!!!
[Touch Diamond, MDA Compact IV ROM Development] 4D3:
no problem,vote for sticky!!

Im Putting a pole uo now!!

MG
[Touch Diamond, MDA Compact IV ROM Development] 4D3:
All who subscribe to this thread please make a vote!!!

Sticky! Sticky! Sticky!
[Touch Diamond, MDA Compact IV ROM Development] katakgoreng:
my g sensor seems to stop working..in teeter, the ball only roll left and right but cannot roll up and down, is it have to do with the driver or the hardware? can mtty be used to format the rom to solve the problem or i can just flash new rom using conventional method (ruu)?
[Touch Diamond, MDA Compact IV ROM Development] emton:
Um.. could you describe more about MTTY, I would think if you want this to be the definitive MTTY thread, then someone donno about MTTY should be able to understand MTTY from your thread. Just a suggestion.

thanks:p
[Touch Diamond, MDA Compact IV ROM Development] 4D3:
Im not being funny but what exactly do you think the first 4 posts do?

if you want to "learn" about MTTY use google!

this thread is devoted to a buggy device using MTTY, not to teach you the finer points of MTTY.

MG
[Touch Diamond, MDA Compact IV ROM Development] 4D3:
No, MTTY is for completely removing the rom from the NAND so it is free for a new rom, it will not fix a broken rom, you need to contact the rom cheif for that!!

Sorry

MG
[Touch Diamond, MDA Compact IV ROM Development] sandervanzijl:
immediately pressing vol down and up did not work for me.

you could change this to the easier:

press volume down and back, then press the red reset button on the back of the phone.

keep pressing vol down and back until rom screen starts.

you will see a message about loading the rom image etc.
[Touch Diamond, MDA Compact IV ROM Development] 4D3:
at no point in my instructions do i mention ANYWHERE to press vol down and up!!

you are cheeky telling me that i need to read my own instructions, i know what they say because i wrote them.

can i suggest that you actually get a grasp of my instructions before you criticise them.

also i will be making no edit at all based on your suggestion because these instructions work.

why would i do this when it is completely wrong? what you suggest it a rom flash then no hard reset, which is kinda stupid.

after every rom flash you are supposed hard reset, this is common knowledge.

to invoke a Hard-Reset you press vol down + circle, when its complete you get a message saying "Vol Up to Boot"

to flash from internal storage you press vol down + back.

these instructions are not up for debate, they work, i use them on a daily basis.

MG
[Touch Diamond, MDA Compact IV ROM Development] y2kreamy:
It is as simple as entering bootloader in other cases or flashing rom from internal device.

We have a great thread, which must b a sticky!!!! Kindly appreciate!!!

Hi MG,

I have a question. sry if noob, when we press vol dwn + circle and then Vol up to restore and then when that finishes vol up to boot and immediately vol down + back key to flash rom.

y double hard reset, can't that be done directly flashing rom with single hard reset.

in first hard reset, we are reloading the existing rom and in second step, we flash reqd rom/new rom.

now when we reload existing rom, dont they again occupy nand? and there is no mtty run run in between?

hope im clear?

thx
[Touch Diamond, MDA Compact IV ROM Development] 4D3:
Thanks muchly!!

I think you are a little confused, ill try and clear it up, this is whats actually happening throughout the process:

1: Enter bootloader

2: MTTY

3: Hard-Reset

4: Flash ROM

5: Hard Reset

the effect of this process is:

1: Bootloader gives access to the NAND

2: MTTY formats the NAND (removes the existing rom)

3: Hard-Reset clears the device and partition

4: Flash sends ROM to NAND

5: Hard Reset cleans out the files left over from the flash.

does that make it clearer?

If not i can try again!! :o

MG
[Touch Diamond, MDA Compact IV ROM Development] empds:
"does that make it clearer?"

"If not i can try again!! :o"

"which is kinda stupid"

I must say I read the last few posts and like your nickname you must be a really genious and you must think all the rest are stupid and ignorant.

Do a favor to the community and stop being a really jerk and the most arrogant guy at XDA developers, otherwise you will be only talking to yourself.
[Touch Diamond, MDA Compact IV ROM Development] y2kreamy:
does that make it clearer?

MG[/QUOTE]

Nicely detailed...Thank you...:):):)
[Touch Diamond, MDA Compact IV ROM Development] 4D3:
Firstly, i was trying to make it clearer, and the sentiment in my statement was that if i didnt hit the mark id try explaining it again!!

whats wrong with that? also if you look at the response i got to the message i would say that i satisfied the questions asked of me:

three smiley faces!!!

genious? GENIUS!!

If you are going to attempt to insult me use correct spellings for a start!

as for the last few posts, when someone hasnt read the instructions correctly, made incorrect assumptions and then suggests that i make incorrect alterations to the instructions that have been proven to work time and time again.

this is a stupid thing to do. especially if someone who is new to this reads the incorrect instructions thinking that they are an improvement on the original and screws their phone, the blame will be passed to this thread and me.

You have no idea about me, you have no idea about anything really!! you have been on this forum for 20 days, made absolutely no contribution to anything, you have only posted 16 times ALL of which have been to gain information for yourself and not to help ANYONE out.

I have to say my favourite is this one:

Admittedly i gave schaps a bit of a hard time with the whole touchXperience thing but we reconciled and i have to say his apps are worth the money.

I really love this bit:

where did you get this garbage from?

when YOU contribute SOMETHING maybe then you can have a voice!!!

but you who expect everything to be given out for free are moaning. if you want the apps donate, if you dont want to donate dont moan!!

MG
[Touch Diamond, MDA Compact IV ROM Development] sandervanzijl:
you are completely right. I made a mistake. let me quote you from your manual.

this will not work. first you give instructions for a hard reset, then a rom flash. when you have formatted your phone with mtty, a hard reset is useless, because there is nothing to reset. so after mtty you first need to fill the rom area with a new rom, then do a hard reset.

what you want to do is:

8a flash rom from internal storage

8b do a hard reset.

(just as you said in your comments to my post)

to do this you need to press:

8a vol down + back + pen reset (hold vol down + back until you enter bootloader)

wait until the device has flashed the rom. ( if needed follow instructions on screen.)

8b then hard reset again by pressing vol down + circle + pen reset (hold vol down + circle until you are in bootloader)

then press vol up (as instructed on the screen) to do the hard reset.

press vol up again to reboot.

I think this is a very good thread, but you also need to see comments as positive feedback on how to improve a good thing. not as an attack on what you are doing.
[Touch Diamond, MDA Compact IV ROM Development] 4D3:
No offence taken, i just wanted you to re-read and make sure you understood, 95% of problems with MTTY is people not understanding what they are doing.

also the hard-reset after the MTTY does have an effect, it may not affect your particular diamond, but on mine it is the difference between it working and not, the step is harmless to your device, but it just makes it easier to have one set of instructions that will work on all devices.

also when the NAND is formatted there are some artefacts left in memory, the hard-reset after MTTY removes these.

the hard-reset as you know is to restore the default settings of the rom, so if your flashing the NAND the files to do so are held in memory, the hard-reset removes these.

(or the reading i did pointed me to that conclusion, if you know different im more than happy to learn!!)

MG
[Touch Diamond, MDA Compact IV ROM Development] sandervanzijl:
I can agree. And viewed that way your instructions seem to make sense, but are not complete.

after a rom flash you need another hard reset.

that is why I interpreted your instructions as wrong.

the complete procedure after mtty should be:

8a hard reset

8b flash rom from internal storage

8c do a hard reset.

to do this you need to press:

8a hard reset by pressing vol down + circle + pen reset (hold vol down + circle until you are in bootloader)

then press vol up (as instructed on the screen) to do the hard reset.

press vol up again to reboot.

8b vol down + back + pen reset (hold vol down + back until you enter bootloader)

wait until the device has flashed the rom. ( if needed follow instructions on screen.)

8c then hard reset again by pressing vol down + circle + pen reset (hold vol down + circle until you are in bootloader)

then press vol up (as instructed on the screen) to do the hard reset.

press vol up again to reboot.

would you agree?

By the way, i never needed to do a hard reset after mtty and my diamond works perfect. I do use mtty to make sure i do not get any problems after flashing. for example unexpected hard resets.

another step to prevent this is to first flash a stock rom, then flash the cooked rom, then do a hard reset. and maybe using mtty in between.
[Touch Diamond, MDA Compact IV ROM Development] upm15:
"95% of problems with MTTY is people not understanding what they are doing"

I think i'm one of them. Sorry asking a noob question, doing MTTY will it format my Internal storage? If yes, that means I need to backup all my internal storage data?
[Touch Diamond, MDA Compact IV ROM Development] y2kreamy:
Some ppl don't read forum rules...one can argue when they have a point. Just criticising does not make sense, it needs a valid point.

Dont wry MG, your thread has helped many, included in links of many rom devs, ya some got confused like me, never mind.
[Touch Diamond, MDA Compact IV ROM Development] 4D3:
no MTTY only affects the device, not the internal storage! your internal storage will be left in tact

Hope that helps

MG
[Touch Diamond, MDA Compact IV ROM Development] alienao:
Hi MG, i just wanted to mention that i've found the meaning of the "task 29" command, thanks to another guy who has posted the link to the wiki (i don't remember where, i think i've found it in a google search). It is in http://wiki.xda-developers.com/index.php?pagename=Diamond_Bootloader. That task actually formats the BinFS, which from my understanding is part of the NAND as well, but not the whole NAND... I've searched for more info about

that binfs and although is documented, is too low-level to me. Something about "Binary ROM image File System", which i guess is where the rom itself is held in the NAND...

only wanted to let you know, don't know if it helps...
[Touch Diamond, MDA Compact IV ROM Development] upm15:
Thanks. Just another question:

"7: Exit MTTY, Hard-Reset (POWER + Circle Button + Pen Reset) then being the device back to bootloader and connect to USB, finally run ROM Flasher and flash via USB"

Hard-reset should be Circle Button+Vol Down+Pen reset? I tried Power+Circle button+Pen reset it is just a normal reset. Sorry I quite new in this.
[Touch Diamond, MDA Compact IV ROM Development] Brav0:
Vol Down + Circle Button + Pen Reset = Hard Reset

:)
[Touch Diamond, MDA Compact IV ROM Development] 4D3:
No, after MTTY, pen reset, then press and hold vol down and Circle.

ill swap it round in the instructions for clarity.

EDIT: changed the instructions to: (Pen Reset, then Press and Hold Vol Down and Circle)

thanks for the heads up

MG
[Touch Diamond, MDA Compact IV ROM Development] 4D3:
Thanks for the info, really useful!

task 29 seems to format the CE block, which is the place on the NAND where the ROM is held, but it is between 2 specific points on the NAND.

what we want to do is COMPLETELY format the NAND.

Really nice info, thanks alot :):)

MG
[Touch Diamond, MDA Compact IV ROM Development] 4D3:
Important update

Hi,

just to let you all know that i have revised the last 3 steps of these instructions in light of some new information.

you will notice that "task 0" has changed to "task 8" and the last 2 steps have been revamped for efficiency.

PLEASE PLEASE read and use these NEW additions.

Thanks for your time

MG
[Touch Diamond, MDA Compact IV ROM Development] hudytheone:
Many thanks MG

just want to say many thanks for a great thread simply followed MG's instructions mi diamond works perfectly again thanks again
[Touch Diamond, MDA Compact IV ROM Development] 4D3:
Glad to help!!

Vote Sticky!!

MG
[Touch Diamond, MDA Compact IV ROM Development] BB88:
The x86 drivers are dated 10/6/2004, not 2003 nor 2007. What is wrong?

Anyway, USB was not showing in MTTY after I installed the driver. So I go back to the device and set it to Active Sync instead of USB when I plug in my cable, and disable USB connection in Active Sync on PC. USB is then showing up in MTTY.
[Touch Diamond, MDA Compact IV ROM Development] 4D3:
doesnt matter bout driver year, as long as its not 2007.

ive swapped drivers about and not changed pics.

MG
[Touch Diamond, MDA Compact IV ROM Development] :
Should try this, what a great job man! Ty!
[Touch Diamond, MDA Compact IV ROM Development] deathgod1989:
is there a way to do this with a mac?
[Touch Diamond, MDA Compact IV ROM Development] 4D3:
dont think so, its kinda counter productive to have a WM device and a MAC, surely if you had a mac you would be using an i-Pants-Phone?

(Sorry I HATE Apple!!)

i guess you could but you would need a MAC version of MTTY, mac HTC USB AS Drivers.

Other than that, the other things that will probably be different is the driver install method.

The commands issued to MTTY will not change so you can use the instructions from post 2 and 3.

(I have a question, why? WM & mac? :confused::rolleyes:;))

MG
[Touch Diamond, MDA Compact IV ROM Development] okoto:
MTTY

MG, Thank you for putting this together, it's very helpful and informative.

I follows all the steps and was successful 9 (I think). Here is what I did:

Cmd>set 14 0

HTCST ÚÈÒHTCE

Cmd>task 28 55aa

Format start

Fill RSVD information for block 288 to 321

Storage start sector=0xD340, total sector=0xD580

Storage start block=878, total block=854

Total Bad Block in CE: 0

Erase physical block from 1168 to 2048

Format end

Cmd>task 8

If MTTY formats the divice, why then after I did hard reset ( after MTTY and before flashing the new rom) the old rom was still there and started installing. My understanding is that it was suppose to be gone - that was the whole point of MTTY.:confused:
[Touch Diamond, MDA Compact IV ROM Development] 4D3:
This has already been covered in the thread.
[Touch Diamond, MDA Compact IV ROM Development] flitzjoy:
There´s a project named HTCFlasher that aims to create a rom flashing utility to run on Linux. It its opensource (so can be portable to Mac or any other system) and it do more than just flashing a rom like extract a rom from the device or enter in bootloader serial prompt and execute commands (mtty).

I never tested and the project seems to be a little stopped, anyway is something worth looking.
[Touch Diamond, MDA Compact IV ROM Development] shendere:
Sorry, but I have Windows XP and I have not USB title.

What to do ????:mad::mad::mad:
[Touch Diamond, MDA Compact IV ROM Development] 4D3:
Dont know, this thread if for Vista and Win 7.

Win XP has no issue with MTTY so i dont know y ur posting :mad: here, I guess your issue is because YOU are not using MTTY correctly.

As far as im aware on XP you just put the phone into bootloader and run MTTY

MG
[Touch Diamond, MDA Compact IV ROM Development] y2kreamy:
Yes!! confirmed by me as i have XP (SP2 32) no probs in running MTTY
[Touch Diamond, MDA Compact IV ROM Development] 4D3:
Thanks muchly!!

MG:D
[Touch Diamond, MDA Compact IV ROM Development] Zinken:
Uncheck the box "allow USB-connections" in active sync.

At least that solved it for me.