5,594,748 Members 36,105 Now Online
XDA Developers Android and Mobile Development Forum

[HOWTO] USB Unbrick

Tip us?
 
ilos
Old
(Last edited by TheDeadCPU; 11th August 2010 at 05:16 PM.) Reason: Edited [HOW TO] to [HOWTO]
#1  
ilos's Avatar
Senior Member - OP
Thanks Meter 64
Posts: 1,004
Join Date: Jun 2007
Location: Lyon

 
DONATE TO ME
Default [HOWTO] USB Unbrick

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:	1406
Size:	3.3 KB
ID:	377828   Click image for larger version

Name:	device2.png
Views:	1980
Size:	7.4 KB
ID:	377829  
Galaxy S3 : Rom Omega JB V36
Kernel : Boeffla-Kernel
Baseband: BUELK1
Sorry for my bad english... i try to do my best...
The Following 4 Users Say Thank You to ilos For This Useful Post: [ Click to Expand ]
 
Learners Lisence
Old
(Last edited by Learners Lisence; 11th August 2010 at 11:21 AM.)
#2  
Learners Lisence's Avatar
Senior Member
Thanks Meter 3
Posts: 180
Join Date: Jun 2010
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 !
Device: HTC Legend
Status: Rooted and S-Off
Rom: Customed
OC - Yes, slightly
 
egzthunder1
Old
#3  
egzthunder1's Avatar
Member Advocate Admin - Spirit of XDA
Thanks Meter 4230
Posts: 17,816
Join Date: Jul 2005
Location: At The Good End Of My Hammer, Likes: My Family & XDA, Dislikes: Incompetence
Thread Stuck.

"As I walk through the Valley of the Shadow of Death, I fear no evil for I am the God of Death... and this is my valley"



I have ORD

Want to see my devices? Click Below

 
HTC Blue Angel
ROM: WM 6.5.3 Build 23698 by d-two
Radio: 1.15

HTC Vogue (Verizon Touch)
ROM: Froyo Android (NAND) by incubus26j
Radio: 3.42.50

HTC EVO 3D
ROM: YAS4 v9 by howpathetic (ICS 4.0.4)
PRI: 1.43_003
Radio: 1.09.00.0706
HBOOT: Eng HBOOT (S-OFF)

Sony Xperia T LT30p
ROM: Stock, 91.A.0.148 (Jelly Bean 4.1.2)
Bootloader: Locked

Sony Xperia Z Ultra - GPE
ROM: Stock, Unrooted (KitKat 4.4.2)
Bootloader: Locked

Huawei Premia 4G
ROM: Stock, Rooted (ICS 4.0.4)





Learn how to flash: CDMA Rapahel, Vogue
 
zorro12010
Old
#4  
Member
Thanks Meter 6
Posts: 79
Join Date: 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.
 
ilos
Old
(Last edited by ilos; 11th August 2010 at 08:46 PM.)
#5  
ilos's Avatar
Senior Member - OP
Thanks Meter 64
Posts: 1,004
Join Date: Jun 2007
Location: Lyon

 
DONATE TO ME
you must put both files at / of your sdcard and you received error at the end of the process ( 0X0000112331 or something like that )
Galaxy S3 : Rom Omega JB V36
Kernel : Boeffla-Kernel
Baseband: BUELK1
Sorry for my bad english... i try to do my best...
 
zorro12010
Old
#6  
Member
Thanks Meter 6
Posts: 79
Join Date: Jul 2010
Quote:
Originally Posted by ilos View Post
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.
 
ilos
Old
#7  
ilos's Avatar
Senior Member - OP
Thanks Meter 64
Posts: 1,004
Join Date: Jun 2007
Location: Lyon

 
DONATE TO ME
when your logged as root under connecbot, please type that

ls


and tell me what you see
Galaxy S3 : Rom Omega JB V36
Kernel : Boeffla-Kernel
Baseband: BUELK1
Sorry for my bad english... i try to do my best...
 
zorro12010
Old
#8  
Member
Thanks Meter 6
Posts: 79
Join Date: Jul 2010
more or less what you see in img. device2 in one of your comments above posted on today 10.25am
 
ilos
Old
#9  
ilos's Avatar
Senior Member - OP
Thanks Meter 64
Posts: 1,004
Join Date: Jun 2007
Location: Lyon

 
DONATE TO ME
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
Galaxy S3 : Rom Omega JB V36
Kernel : Boeffla-Kernel
Baseband: BUELK1
Sorry for my bad english... i try to do my best...
 
zorro12010
Old
#10  
Member
Thanks Meter 6
Posts: 79
Join Date: 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.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Motorola Droid RAZR HD and M to Receive KitKat in a “Few More Weeks”

Verizon and Motorola shocked us all back in November when … more

[APK] YouTube Update to 5.6 Now Lets You Cast Live Video to Your Chromecast

Earlier today, we talked about how Google brought two new apps to … more

[OTA Captured] Android 4.4.2 Now Rolling Out to the AT&T Galaxy S 4 Active

A little under two months ago, AT&T started rolling out … more