Document the Story of Your Social Life with 8tory

The different forms of social media are growing every day. It’s hard to imagine a day … more

Make Calling Your Loved Ones Easier and Cheaper this Diwali

Diwali, or Deepawali as some Indians call it, is the pride and joy of Indian … more

Big Android BBQ 5.0 Recap – XDA TV

This fifth annual Big Android BBQ has come and gone. The speakers have spoke, the sponsors have … more

Microsoft to Counter “OK Google” with Bing Torque

When Microsoft is making apps for Android, users should be aware that something … more
Post Reply

[HOWTO] USB Unbrick

OP ilos

11th August 2010, 09:25 AM   |  #1  
ilos's Avatar
OP Senior Member
Flag Lyon
Thanks Meter: 70
 
1,030 posts
Join Date:Joined: Jun 2007
Donate to Me
More
First of all many thanks to IEFtm from Modaco forum for the solution and the how to !!

Here a copy/paste of instructions with some additions ( i can't be more clear than him :P )

/!\ IMPORTANT /!\ : only your device will see your sdcard before the end of the unbrick process !!!

As most of you know, people have been hard at work to fix the USB issues we've been seeing due to recovery setting us into USB debugmode.

After unsuccessful attempts to change the kernel commandline , eg. to:

disable_uart3=0
usb_h2w_sw=0

we've been successful in discovering (with the help of XDA-developers) that these switches are stored in the first NAND partition, mtd0, or 'misc'.

You must be rooted to try the following, it seems you can't write to mtd0 without root.
Do step 1 again if you have to.


Also, SD card functionality has to work. For this, go into fastboot mode ( device off : volume down + power, select FASTBOOT) , and do:

fastboot oem enableqxdm 0

( you must have android sdk installed, open a command prompt MSDOS under windows, navigate into 'tools' folder and type this command )


Steps involved:

1. Find out your CID. Go into fastboot mode ( device off : volume down + power, select FASTBOOT) , and do :

fastboot oem boot

( you must have android sdk installed, open a command prompt MSDOS under windows, navigate into 'tools' folder and type this command )

The log will say something like the following:

Code:
#INFOTAG:Ramdisk OK
#INFOTAG:smi ok, size = 0
#INFOTAG:hwid 0x0
#INFOTAG:skuid 0x21F04
#INFOTAG:hero panel = 0x0
#INFOTAG:engineerid = 0x0
#INFOMCP dual-die
#INFOMCP dual-die
#INFOTAG:mono-die = 0x0
#INFODevice CID is not super CID
#INFOCID is HTC__E11
In this specific case, the CID is HTC__E11.

2. Get the following mtd0.img from here or from here: mirror provided by SgtDavePwnage.

Edit this image to the CID you found above with a hex editor.

3. Get flash_image from here or from here: mirror provided by SgtDavePwnage.

You can move both mtd0.img and flash_image by putting it on your sdcard, and issueing the following command in a terminal emulator ( you must do this on your device with Connecbot for exemple ) :

In the terminal emulator ( like connecbot ) you will be at prompt beginning with a $ , type 'su' ( without the quote ) 2 times and you will normally see # at the beginning of the ligne ( or anything else with # ). In this case you are logged as root. You can check it with this command : ls ( check screenshoot to see what's look like )

Now type the following

cat /sdcard/flash_image > /data/flash_image "type enter"
cat /sdcard/mtd0.img > /data/mtd0.img "type enter"
chmod 755 /data/flash_image "type enter"
/data/flash_image misc /data/mtd0.img "type enter"

( repeat last command 2 times to be sure and ignore output errors that you will see )


4. Repeat step 3 a couple of times if it doesn't seem to work well.

5. All done! Reboot, you should have normal usb connectivity. Post your 'fastboot oem boot' log and intermediate steps if it fails.

In case of you get 'permission denied' for 'su' command , you can try to do the same thing as Deffe on modaco forum :

Quote:

P.S.
before i have reroot my legend make step1 and use fake-flush and not step2. So the phone became rooted and i can use connectbot!

Credits:

-kubino @ XDA for providing us with the 'misc' information
-TheProfessor @ irc.freenode.net #modaco for being the first test subject + debugging
-adam235 @ irc.freenode.net #modaco for being a test subject as well + debugging
-SgtDavePwnage @ irc.freenode.net #modaco -> moral support + debugging
-DrMon @ irc.freenode.net #modaco -> being brave enough to test on his non-bricked device!

You can also check this :

http://forum.xda-developers.com/showthread.php?t=747030
and
http://forum.xda-developers.com/showthread.php?t=748813
and here
http://forum.xda-developers.com/showthread.php?t=733713

to get some information on your situation.

You can go to the original thread http://android.modaco.com/content/ht...-b0rked-fixed/

to get your mtd0.img already modified for your CID ( if someone has posted it )


Click here to DONATE for them !
Attached Thumbnails
Click image for larger version

Name:	device.png
Views:	1461
Size:	3.3 KB
ID:	377828   Click image for larger version

Name:	device2.png
Views:	2051
Size:	7.4 KB
ID:	377829  
Last edited by TheDeadCPU; 11th August 2010 at 05:16 PM. Reason: Edited [HOW TO] to [HOWTO]
The Following 4 Users Say Thank You to ilos For This Useful Post: [ View ]
11th August 2010, 11:18 AM   |  #2  
Learners Lisence's Avatar
Senior Member
Thanks Meter: 3
 
180 posts
Join Date:Joined: Jun 2010
Thumbs up
Thank You, Ilos. Was waiting for this. Your effort is much appreciated.
Hope our Moderator Sir will put a link to this thread in the first post in this section.

I read through the remedy everyday so I understand a little more each day but I sure hope you will be around when get usb bricked !

Can I practise this on my good device to get a hang of it or will it mess up things big time !
Last edited by Learners Lisence; 11th August 2010 at 11:21 AM.
11th August 2010, 05:43 PM   |  #3  
egzthunder1's Avatar
Member Advocate Admin - Spirit of XDA
Flag At The Good End Of My Hammer, Likes: My Family & XDA, Dislikes: Incompetence
Thanks Meter: 5,008
 
18,530 posts
Join Date:Joined: Jul 2005
More
Thread Stuck.
11th August 2010, 07:13 PM   |  #4  
Member
Thanks Meter: 6
 
90 posts
Join Date:Joined: Jul 2010
Hi Ilos,
Thanks for the better detailed information so far, about usb problems.

After obtaining super user access i wrote the following commands as you said.
cat /sdcard/flash_image > /data/flash_image
cat /sdcard/mtd0.img > /data/mtd0.img

After writing the above commands in connectbot and giving the enter, the terminal mentioned that they could not find the files.

I placed them om my sd card. is it necessary to place them in a certain file?
The other commands went well and I rebooted but my telephone was not recognized by the computer.
in the below line you mention that the output errors should be ignored, what do you mean with that, because I receive errors.
" repeat last command 2 times to be sure and ignore output errors that you will see )"

I also wrote the last command two times but with no success.

Thanks in advance.
11th August 2010, 08:42 PM   |  #5  
ilos's Avatar
OP Senior Member
Flag Lyon
Thanks Meter: 70
 
1,030 posts
Join Date:Joined: Jun 2007
Donate to Me
More
you must put both files at / of your sdcard and you received error at the end of the process ( 0X0000112331 or something like that )
Last edited by ilos; 11th August 2010 at 08:46 PM.
11th August 2010, 09:17 PM   |  #6  
Member
Thanks Meter: 6
 
90 posts
Join Date:Joined: Jul 2010
Quote:
Originally Posted by ilos

you must put both files at / of your sdcard and you received error at the end of the process ( 0X0000112331 or something like that )

No error like that but can't find the flash_image and mtd0.img file.
11th August 2010, 09:32 PM   |  #7  
ilos's Avatar
OP Senior Member
Flag Lyon
Thanks Meter: 70
 
1,030 posts
Join Date:Joined: Jun 2007
Donate to Me
More
when your logged as root under connecbot, please type that

ls


and tell me what you see
11th August 2010, 09:36 PM   |  #8  
Member
Thanks Meter: 6
 
90 posts
Join Date:Joined: Jul 2010
more or less what you see in img. device2 in one of your comments above posted on today 10.25am
11th August 2010, 09:47 PM   |  #9  
ilos's Avatar
OP Senior Member
Flag Lyon
Thanks Meter: 70
 
1,030 posts
Join Date:Joined: Jun 2007
Donate to Me
More
you must see your sdcard when you type ls

if you see it, type :

cd sdcard

and type again ls

check if you see flash_image and mtd0.img that you put on your sdcard
12th August 2010, 08:43 AM   |  #10  
Member
Thanks Meter: 6
 
90 posts
Join Date:Joined: Jul 2010
Ilos I managed it with your great help.
I unfortunately had renamed the file mtd0.img which gave the output in the terminal ls mtd0.img.img. and therefore the command could not be read correctly. So I changed the filename and repeated the steps with SUCCESS.
Thanks again.

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

Advanced Search
Display Modes