Jump to content


Photo

USB brick/rickrolled/b0rked -> FIXED!


  • Please log in to reply
342 replies to this topic

#41
IEFtm

IEFtm

    Newbie

  • Members
  • Pip
  • 32 posts
  • Devices:Desire / AlphaRev S-OFF 0.93
  • Twitter:@@ieftm

From the phone througha terminal emulator, though you could use adb and type:
adb shell <command>

All works the same in the end :(


usb-brickees can't use adb :( So you'd either need 'Terminal Emulator' or 'Better Terminal Emulator' from the Market.

  • 0
HTC Desire
-ShadowSense 2.0 (HTC 2.10 base, not yet released..)
-World's first HBOOT S-OFF Desire by AlphaRev.

Proud project initiator for the AlphaRev project, bringing S-OFF to all the HTC devices that need it!

If you feel like supporting our device fund (which enables us to do more S-OFF hacks!) - then please do so here: Paypal donation

#42
nico1375

nico1375

    Newbie

  • Members
  • Pip
  • 34 posts
  • Gender:Male
  • Devices:Galaxy Nexus, Nexus 7

From the phone througha terminal emulator, though you could use adb and type:
adb shell <command> (Unless of course you're bricked and can't :()

All works the same in the end :(


It says "cannot create /sdcard/mtd0.img: read-only file system"

What do I miss?

  • 0

#43
SonicArt77

SonicArt77

    Newbie

  • Members
  • Pip
  • 15 posts
  • Devices:HTC Desire
crap... I just sent my phone back to HTC a couple of days ago! If I could've just waited two days.........
now that this is fixed, we can all continue flashing without any worries!

  • 0

#44
IEFtm

IEFtm

    Newbie

  • Members
  • Pip
  • 32 posts
  • Devices:Desire / AlphaRev S-OFF 0.93
  • Twitter:@@ieftm

It says "cannot create /sdcard/mtd0.img: read-only file system"

What do I miss?


Try flashing the rooted image from Step 1 from the rooting guide.

Go into fastboot mode, and do step1.

Then, you can 'su' in a terminal to get root.

Edited by IEFtm, 30 May 2010 - 02:50 PM.

  • 0
HTC Desire
-ShadowSense 2.0 (HTC 2.10 base, not yet released..)
-World's first HBOOT S-OFF Desire by AlphaRev.

Proud project initiator for the AlphaRev project, bringing S-OFF to all the HTC devices that need it!

If you feel like supporting our device fund (which enables us to do more S-OFF hacks!) - then please do so here: Paypal donation

#45
StuMcBill

StuMcBill

    Diehard

  • MoDaCo Gold
  • PipPipPipPip
  • 379 posts
  • Gender:Male
  • Devices:HTC One M8

It would be best to pull a misc.img if you're not bricked right now. It would also be best if a nandroid backup would pull misc.img during a normal backup.

To get your own misc.img out of a working device, use

cat /dev/mtd/mtd0 > /sdcard/misc.img

And pull the misc.img off of your SD card next time you link up. :(


OK I have done this successfully, and I now have an misc.img file, so if I was to become usb bricked, I could just run the commands in the first post substituting mtd0.img for misc.img.

And I would achieve the same results?

Thanks

Stu

  • 0
HTC One M8 & Nexus 7 (2013)

#46
IEFtm

IEFtm

    Newbie

  • Members
  • Pip
  • 32 posts
  • Devices:Desire / AlphaRev S-OFF 0.93
  • Twitter:@@ieftm

OK I have done this successfully, and I now have an misc.img file, so if I was to become usb bricked, I could just run the commands in the first post substituting mtd0.img for misc.img.

And I would achieve the same results?

Thanks

Stu


Yes, it would. So keep a backup!! :(

To the people who donated using the link in the topicstart: Thank you!!! *takes a bow*. This will go towards getting hardware for hacking this POS even more :(

Edited by IEFtm, 30 May 2010 - 02:51 PM.

  • 0
HTC Desire
-ShadowSense 2.0 (HTC 2.10 base, not yet released..)
-World's first HBOOT S-OFF Desire by AlphaRev.

Proud project initiator for the AlphaRev project, bringing S-OFF to all the HTC devices that need it!

If you feel like supporting our device fund (which enables us to do more S-OFF hacks!) - then please do so here: Paypal donation

#47
SonicArt77

SonicArt77

    Newbie

  • Members
  • Pip
  • 15 posts
  • Devices:HTC Desire

1) first post says you need ROOT to flash this repair - so what happens if you 'brick' first time during the root, can you still apply the fix??


As long as you're able to complete step 1 of the rooting process, you'll be rooted.

Edited by SonicArt77, 30 May 2010 - 02:57 PM.

  • 0

#48
StuMcBill

StuMcBill

    Diehard

  • MoDaCo Gold
  • PipPipPipPip
  • 379 posts
  • Gender:Male
  • Devices:HTC One M8

Yes, it would. So keep a backup!! :(

To the people who donated using the link in the topicstart: Thank you!!! *takes a bow*. This will go towards getting hardware for hacking this POS even more :(


Thanks, and yes, it is safely tucked away on my computer :o

  • 0
HTC One M8 & Nexus 7 (2013)

#49
ZiCoN

ZiCoN

    Enthusiast

  • Members
  • PipPipPip
  • 247 posts
  • Location:Denmark
  • Devices:HTC Desire
  • Twitter:@ZiCoN_dk
This is just about the happiest day for a loooong time!! IEF... THANK YOU!!

  • 0
HTC Desire
MCR Custom :)

#50
MIYU-G

MIYU-G

    Regular

  • Members
  • PipPip
  • 52 posts
  • Devices:HTC Desire
  • Twitter:@miyug

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:

board_bravo.disable_uart3=0
board_bravo.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, do 'fastboot oem enableqxdm 0' in fastboot mode.



Steps involved:

1. Find out your CID. Go into fastboot mode, and do 'fastboot oem boot'.

The log will say something like the following:

#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.

Move this to /data/ , and flash the modified image using:

"/data/flash_image misc /data/mtd0.img"

You can move both mtd0.img and flash_image by putting it on your sdcard, and issueing the following command in a terminal emulator:

'cat /sdcard/flash_image > /data/flash_image'
'cat /sdcard/mtd0.img > /data/mtd0.img'

You might have to do 'chmod u+x /data/flash_image' before you run the commands (or chmod 755 /data/flash_image)



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.
Credits:

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

Click here to DONATE :(

if my desire cid is also HTC__E11,should I edit the misc.img again? or I can flash it directly without edit

  • 0

#51
DrMon

DrMon

    Newbie

  • Members
  • Pip
  • 17 posts

if my desire cid is also HTC__E11,should I edit the misc.img again? or I can flash it directly without edit


You shouldn't need to edit it if your CID is also HTC__E11.

Edited by DrMon, 30 May 2010 - 03:12 PM.

  • 0

#52
Mikael1711

Mikael1711

    Newbie

  • Members
  • Pip
  • 20 posts
  • Devices:HTC Desire

It would be best to pull a misc.img if you're not bricked right now. It would also be best if a nandroid backup would pull misc.img during a normal backup.

To get your own misc.img out of a working device, use

cat /dev/mtd/mtd0 > /sdcard/misc.img

And pull the misc.img off of your SD card next time you link up. :(


From where do i run the commandline? From the phone? Or from a windows computer?

Thanks...

Mikael

  • 0

#53
StuMcBill

StuMcBill

    Diehard

  • MoDaCo Gold
  • PipPipPipPip
  • 379 posts
  • Gender:Male
  • Devices:HTC One M8

From where do i run the commandline? From the phone? Or from a windows computer?

Thanks...

Mikael


From a terminal emulator on the phone, I used connectbot off the market.

  • 0
HTC One M8 & Nexus 7 (2013)

#54
Nrond

Nrond

    Newbie

  • Members
  • Pip
  • 12 posts
still can not access my sdcard to copy file

with estrong explorer i see them at smb://192.168.1.42/software/

how to copy?

cat smb://192.168.1.42/software/ > /data/flash_image >>> no such file

  • 0

#55
Atomicman

Atomicman

    Newbie

  • Members
  • Pip
  • 34 posts
  • Devices:Samsung Galaxy S2
Hey Guys - even i'm not bricked... but YOU ARE THE BEST!! Not i can try the FROYO ROM without any concerns!
GREAT WORK!

  • 0
Goodbye LG Optimus 2X, hello Samsung Galaxy S2 ;-)

#56
PaRallaXX

PaRallaXX

    Newbie

  • Members
  • Pip
  • 7 posts
Sorry guys, i didn't understand what to do with my desire (not bricked).

I got the CID from fastboot:

INFOCID is HTC__405

Then with Better Terminal with the command 'cat /dev/mtd/mtd0 > /sdcard/misc.img' i got the image attached.

What have i got to do now to make my desire brick-proof?

Thanks

Attached Files


  • 0

#57
RiotRick

RiotRick

    Newbie

  • Members
  • Pip
  • 29 posts
  • Gender:Male
  • Location:The Netherlands
  • Devices:Sony Xperia S
  • Twitter:@rickschippers
This is great news! Even though my phone isn't bricked, this issue kept me from flashing new roms. Now we can flash all we want again :(

  • 0

#58
Need_A_Username

Need_A_Username

    Regular

  • Members
  • PipPip
  • 124 posts
  • Devices:Samsung Galaxy S
YOU GUYS ARE HEROES!

I am not bricked,
but now I can go and flash roms without any worries :( thx!!

  • 0

#59
slamslugeren

slamslugeren

    Newbie

  • Members
  • Pip
  • 6 posts
  • Devices:HTC Desire
When i try to download the flash_image file, i just get a new window with a lots of signs in? are the link broken? what size should the file have?

  • 0

#60
StuMcBill

StuMcBill

    Diehard

  • MoDaCo Gold
  • PipPipPipPip
  • 379 posts
  • Gender:Male
  • Devices:HTC One M8

Sorry guys, i didn't understand what to do with my desire (not bricked).

I got the CID from fastboot:

INFOCID is HTC__405

Then with Better Terminal with the command 'cat /dev/mtd/mtd0 > /sdcard/misc.img' i got the image attached.

What have i got to do now to make my desire brick-proof?

Thanks


From what I understand is you cannot make it brick proof, but if you do ever get bricked, you can just restore misc.img to your phone and it will be back up and running again?

Stu

  • 0
HTC One M8 & Nexus 7 (2013)




2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users