Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[GUIDE] Root, flash a custom recovery and/or S-OFF your Desire HD the "easy" way!

OP sfjuocekr

11th November 2010, 01:52 AM   |  #1  
OP Senior Member
Thanks Meter: 72
 
608 posts
Join Date:Joined: Jun 2008
Donate to Me
More
PLEASE DO NOT HOST MY FILES ELSEWHERE ALSO REPORT ERRORS ABOUT IT HERE AND NOT IN ANY OTHER THREADS!

UPDATE: Uploaded a new version with a temporary fix for if not working properly on the latest OTA?

!!!WARNING!!!

ONLY flash the bootloader (HBOOT) aka "S-OFF" if you understand what it is, what it does, what it can do and how it can brick your phone if flashing it fails.

I can not be held responsible if your phone bricks, makes nukes drop from the sky and/or makes your wife pregnant.

Assuming you have the Android SDK (adb) in working order, some basic knowledge of how to use it and experience using the console for those cases something does go tits up.

=====

Requirements: Android Terminal Emulator (from market), the archive attached to this post and a way to extract it to your SD card (file manager, PC, etc).

VISIONairy+ r12 (or higher) is as of v0.5 ONLY needed for rooting your phone, if you already have root you can skip this!

Download and extract the archive to the root of your SD card and read the included instructions (RTFM.txt).


If the first and second MD5 sums match, HBOOT is flashed correctly.
If the first and third MD5 sums match, HBOOT is not flashed at all and your phone still works like nothing happened.
If the first does not match second or third, something went wrong and you should NOT reboot your phone but seek help on the forums here!

In the last case, you could first try the hboot script again if that doesn't work something went awfully wrong and you should report back here ASAP but whatever you do ... DO NOT TURN OFF YOUR PHONE


=====

Credits goto all who made this possible: Scotty, tmzt (eMMC write), Paul (MoDaCo) (VISIONairy+ root) and adwinp (first working S-OFF post).
(If I left some person out of it just sent me a message and I will correct it)
Attached Files
File Type: zip DHD-v0.6-tempfix.zip - [Click for QR Code] (558.0 KB, 59679 views)
Last edited by sfjuocekr; 24th November 2010 at 02:02 AM.
The Following 10 Users Say Thank You to sfjuocekr For This Useful Post: [ View ]
11th November 2010, 01:53 AM   |  #2  
OP Senior Member
Thanks Meter: 72
 
608 posts
Join Date:Joined: Jun 2008
Donate to Me
More
CHANGELOG (new to old):

Revised scripts.
Failproof way of making kernel module.
Added check to see if the kernel module actually loaded correctly.
Reworked the scripts, more fail and fool proof
Updated the check script to check the kernel module first.
Added scripts to flash/restore recovery.
Got rid of not found errors for good?
Reflected the error message from loading the module is actually ok, polished the first post and RTFM.
Changed the way md5sum is invoked, now trough busybox and this should work for people who had problems with "md5sum: not found".
Fixed a major typo.
Updated with versioning, corrected some textual output and added some extra info to RTFM.
Cleaned up the first post.
Changed hboot script to reflect the original MD5 sum.
Removed recovery, get it yourself.
Revised scripts to be more fail proof.


TODO:

Polish textual output properly.
Proper check to see if kernel module loaded or is loaded already.
Last edited by sfjuocekr; 17th November 2010 at 01:05 AM.
Thyrus
11th November 2010, 05:50 AM   |  #3  
Guest
Thanks Meter: 0
 
n/a posts
Good morning

What recovery.img are you flashing in the process btw?! care to let us know?

since you take a backup of the original bootloader, maybe it would be handy to create a "revert" script also, where you flash back the original recovery and original bootloader in the event that we may need to you know...

the script would then go like this

Code:
dd if=/sdcard/DHD/hboot_orig.bin of=/dev/block/mmcblk0p18
dd if=/dev/block/mmcblk0p18 of=/sdcard/DHD/hboot_check.nb0

dd if=/sdcard/DHD/recovery_orig.bin of=/dev/block/mmcblk0p21

md5sum /sdcard/DHD/hboot_orig.bin
md5sum /sdcard/DHD/hboot_check.nb0
at least thats what i think... unless the file .nb0 and .bin matters in the if=-- of--- command
Last edited by Thyrus; 11th November 2010 at 06:12 AM.
The Following User Says Thank You to For This Useful Post: [ View ]
11th November 2010, 07:53 AM   |  #4  
afrcom15's Avatar
Senior Member
Flag Cornwall
Thanks Meter: 24
 
370 posts
Join Date:Joined: Sep 2010
More
EDIT**

Read and check everything at least 4 times, ask before you reboot your DHD if unsure about absolutely anything. This process worked for me after some stupidity on my part.

Again, this works but CHECK everything step of the way.
Last edited by afrcom15; 14th November 2010 at 08:18 AM.
11th November 2010, 08:15 AM   |  #5  
Member
Thanks Meter: 3
 
69 posts
Join Date:Joined: Jun 2009
Quote:
Originally Posted by afrcom15

FFS guys, read this carefully and double check everything you do B4 you reboot.
I've ended up with a 450 quid paperweight.
Dunno what I can do, probably nothing

did that happen using this guys script? or another way?

im holding off flashing hboot till things are a bit more settled. its hard to resist though.
Thyrus
11th November 2010, 08:21 AM   |  #6  
Guest
Thanks Meter: 0
 
n/a posts
i have modified the script used by sfjuocekr (so that it doesnt flash the recovery, as I see no point in that at the moment) and would rather flash from fastboot

and the script works and I can confirm s-off success
11th November 2010, 08:40 AM   |  #7  
Senior Member
Flag Maidenhead
Thanks Meter: 82
 
2,247 posts
Join Date:Joined: Apr 2009
More
I think it's safer doing it via the VISIONary method. That's how I.did mine, and zero issues. I don't like how this says don't reboot if the checksums don't match. That's just asking for trouble.

Sent from my Desire HD using XDA App
11th November 2010, 08:44 AM   |  #8  
dr.m0x's Avatar
Senior Member
Flag Auckland
Thanks Meter: 750
 
3,279 posts
Join Date:Joined: Oct 2010
More
Quote:
Originally Posted by afrcom15

FFS guys, read this carefully and double check everything you do B4 you reboot.
I've ended up with a 450 quid paperweight.
Dunno what I can do, probably nothing

Yeah too many people rush into dangerous stuff like flashing to hboot without understanding the risks properly. I was one of those people. I am very lucky that my flash went smoothly. Feel for you.
Thyrus
11th November 2010, 08:51 AM   |  #9  
Guest
Thanks Meter: 0
 
n/a posts
Quote:
Originally Posted by madindehead

I think it's safer doing it via the VISIONary method. That's how I.did mine, and zero issues. I don't like how this says don't reboot if the checksums don't match. That's just asking for trouble.

Sent from my Desire HD using XDA App

actually, thats BS, excuse my french.

The checksum is an extra security measure implemented to verify that the data flashed and the data that should have been flashed remain integrity. this way, you can verify in 2 steps:

1. The file you downloaded is not currupted in any way
2. The file (bootloader) flashed has flashed correctly, prior to reboot.

so actually, it is something ON TOP of the usual scripts seen here to ensure you dont brick. I need to side with the creator here.
11th November 2010, 10:45 AM   |  #10  
insty's Avatar
Senior Member
Flag Melbourne
Thanks Meter: 63
 
155 posts
Join Date:Joined: Jun 2010
More
Quote:
Originally Posted by afrcom15

FFS guys, read this carefully and double check everything you do B4 you reboot.
I've ended up with a 450 quid paperweight.
Dunno what I can do, probably nothing

Take it back to the shop saying it died and get a replacement :3?

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes