• Announcements

    • Reminder - MoDaCo position on illegal content

      ILLEGAL CONTENT I'd like to just reaffirm MoDaCo's position regarding piracy and illegal content in the light of some recent questions / postings. Posts will be censored by myself or my moderation team if the contain or link to: Illegal / pirated / cracked software or sites that host such software
      Nintendo emulators / ROMs or sites hosting them (in light of Nintendo's legal stance)


      CUSTOM ROMS

      You may discuss and post links to custom device ROMs on MoDaCo, provided the following rules are adhered to: ROMs must not be hosted directly in topic via the MoDaCo attachment system
      ROMs must not contain any illegal 3rd party software (this includes trial versions included without permission)
      ROMs must give full credit to the original author
      This decision has been taken in light of the huge amount of interest in this area of device customisation within the community, and member feedback! Please note that custom ROM discussion should be kept in specific device sub-areas, (e.g. Kaiser.MoDaCo.com for Kaiser based devices). ISSUES If you have any issues with this policy, please contact me directly via PM. P
    • Support MoDaCo by signing up to a MoDaCo Silver or Gold membership

      To sign up to an annual MoDaCo Silver subscription which will eliminate all ads from the site (as well as giving you access to the MoDaCo Online Kitchens for Android) for only £9.99 using PayPal, Credit or Debit Card, ensure you are logged in to the site, and then click the link below, which will take you directly to the subscription store! You can also sign up to an annual MoDaCo Gold subscription for £29.99, which adds the benefits listed below! PURCHASE A MODACO SUBSCRIPTION - FREE Titanium Backup Mobile for Android worth $5.99! - FREE 1 year PrivateInternetAccess.com worth $39.95! - FREE 1 year LastPass Premium worth $12! - FREE CalcConvert for Pocket PC from Binaryfish worth $17.95! - FREE Calendar Bar for Pocket PC from OmegaOne worth $9.99! - FREE CamerAware for Pocket PC and Smartphone from MoDaCo worth £19.99 / $30! - FREE Chronos for Pocket PC from ActiveKitten worth $14.95! - FREE CodeWallet Pro for Smartphone and Pocket PC from DeveloperOne worth up to $24.95! - FREE Concentrix for Pocket PC from eSoft Interactive worth $9.95! - FREE FlexMail for Pocket PC and Smartphone from WebIS worth up to $59.90! - FREE FTouchSL for Pocket PC from Vekoff s.r.o. worth 10 euro / $12.50! - FREE Jewel Challenge for Pocket PC from eSoft Interactive worth $9.95! - FREE John Cody's Alerts Pro for Smartphone from Omnisoft worth $14.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Dutch for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> French for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> German for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Italian for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Spanish for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Dutch for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> French for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> German for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Russian for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Turkish for Smartphone from Lingvosoft worth $49.95! - FREE Note2Self for Pocket PC and Smartphone from WebIS worth up to $19.90! - FREE Opera 8.60 for Pocket PC and Smartphone from Opera Software worth up to $48! - FREE Pocket Informant for Pocket PC and Smartphone from WebIS worth up to $59.90! - FREE Pocket Launcher for Pocket PC and Smartphone from Conduits worth $9.95! - FREE PTab for Pocket PC and Smartphone from z4soft worth up to $60! - FREE Resco Explorer for Pocket PC and Smartphone from Resco worth up to $49.90! - FREE Safemode for Pocket PC from monocube worth $12.95 - FREE SplashPhoto for Pocket PC and Smartphone from SplashData worth up to $59.90! - FREE Sprite Backup for Pocket PC and Smartphone from Sprite Software worth $29.95! - FREE Teksoft Glyphs UI for Pocket PC and Smartphone from Teksoft €9.95! - FREE Teksoft HeadsetRemote for Pocket PC and Smartphone from Teksoft €4.95! - FREE Traffic Jam for Pocket PC from eSoft Interactive worth $9.95! - FREE unlock (1 per year) from imei-check.co.uk - DISCOUNT of 10% at MoDaCo FairDeal - DISCOUNT of 10% at Semsons.com - FORUM - AD FREE SITE - FORUM - custom rank / title - FORUM - double competition entries - FORUM - double post attachment space - FORUM - no search flood control - FORUM - priority event registration - FORUM - triple PM space
    • Reminder: Selling items on the forum directly is not allowed

      Please note that selling items on the forum directly is not allowed by the forum rules. There is a forum for eBay auctions whereby you can list the items on eBay and link to them there. This is the ONLY forum for this type of activity. You may also advertise links to the eBay forum in your signature. Please note that selling directly in contravention of these rules will result in a warning / suspensions / ban.

USB brick/rickrolled/b0rked -> FIXED!

52 posts in this topic

Posted (edited) · Report post

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, 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.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!

Click here to DONATE :(

Edited by IEFtm
1

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

the best info :(

thnx :(

my legend non-bricked img:

INFOCID is HTC__032

INFOsetting->cid::HTC__032

mtd0.img

Edited by vib_
0

Share this post


Link to post
Share on other sites

Posted · Report post

Hi, when i try to 'chmod u+x /data/flash_image' i get "bad mode",

if i try 'chmod 755 /data/flash_image' i get "No such file or directory...

Doing something wrong? :(

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

IT WORKED :( thanks

Edited by ricky812
0

Share this post


Link to post
Share on other sites

Posted · Report post

HTC__A07

mtd0.img

big thx for all =)

0

Share this post


Link to post
Share on other sites

Posted · Report post

Do we know why the devices are getting bricked and how to stop it happening now?

0

Share this post


Link to post
Share on other sites

Posted · Report post

Do we know why the devices are getting bricked and how to stop it happening now?

yep,there is explenation :(

0

Share this post


Link to post
Share on other sites

Posted · Report post

yep,there is explenation :(

I was about to ask that too but didn't quite get your response.

0

Share this post


Link to post
Share on other sites

Posted · Report post

Ok ok ok... so.. IT WORKS!!

If there's someone with a mac out there that need the steps i followed, just ask!!!

So, thank you all for your great work, i was going to send the phone to htc soon, but, they can wait :(

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

God damn me! I've rolled back to the HTC ROM that l lost the root.

Can I flash this img in fastboot?

Edited by KL君
0

Share this post


Link to post
Share on other sites

Posted · Report post

God damn me! I've rolled back to the HTC ROM that l lost the root.

Can I flash this img in fastboot?

Redo step 1 of the rooting process. This will give you the required access :(

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

Redo step 1 of the rooting process. This will give you the required access :(

Thx man. Mine was done.

Thanks all guys who provided this solution.

My CID: HTC__044

mtd0.img

Edited by KL君
0

Share this post


Link to post
Share on other sites

Posted · Report post

Thanks a lot guyz.... i was thinking of selling my Legend for another symbian phone.... :(

luckily i've found this guide... THNXXX!!!

My CID : HTC_044

i did it thru terminal emulator.... i redo step 3 like 3 or 4 times... and it's done!!

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

For this, do 'fastboot oem enableqxdm 0' in fastboot mode.

can please someone explain how to do this ?

i can enter the recovery but get :

error: device not found

as a result

Edited by borgfather
0

Share this post


Link to post
Share on other sites

Posted · Report post

i can enter the recovery

Doesn't it say "in fastboot mode"? You tried to enable fastboot in the menu?

0

Share this post


Link to post
Share on other sites

Posted · Report post

in the fastboot menu :

bootloader

reboot

reboot bootloader

power down

but no "fastboot oem enableqxdm 0"

i also cant het into the recovery boot

it says

Legedimg.nbh

no image or wrong image!

hope you can help me

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

Fastboot is enabled as soon as you start the phone with back key held down. Make sure ist says "fastboot usb" (which means the device is connected). You then need the fastboot binary to execute the above command.

To get into recovery-mode you have to launch the script provided with the rooting-package (e.g. recovery-windows). Currently there is no recovery mode, not even for rooted Legends, without pushing some files (which is done by recovery-*).

Edited by Ale Baba
0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

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)

Click here to DONATE :)

do i have to do this in recovery mode ?

i cant get into it i get an error

Legedimg.nbh

no image or wrong image!

after that i get an alert symbol on the screen

any sugestions ?

PS : i can startup the device and run connectbot

can these command be run in a terminal in connectbot app ??

Edited by borgfather
0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

I get an : [1] segmentation fault

what can i do ?

edit extra : i did some testing , the command flash_image couses an crash ( [1] segmentation fault )

even without parameters

is there an other way to flash the mtd0 ?

Edited by borgfather
0

Share this post


Link to post
Share on other sites

Posted · Report post

I keep on getting an segmentation fault when i try to run the flash_image

I'm affraid ther is more wrong with my mtd0 and it is influencing the behavior of the system

is there an ather way to get this fixed ?

0

Share this post


Link to post
Share on other sites

Posted · Report post

in the disire section it is asked to mpost the "fastboot oem boot" log if the flash fails

here it is:

~/htclegend/ANDROID/r4-legend-root$ ./fastboot-linux oem boot

... INFOsetup_tag addr=0x60000100 cmdline add=0x9D078D14

INFOTAG:Ramdisk OK

INFOTAG:smi ok, size = 0

INFOTAG:hwid 0x0

INFOTAG:skuid 0x22F00

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

INFOsetting->cid::HTC__E11

INFOserial number: HT039NX00037

INFOcommandline from head: no_console_suspend=1 console=null

INFOcommand line length =441

INFOactive commandline: board_legend.disable_uart3=1 board_legen

INFOd.usb_h2w_sw=1 board_legend.disable_sdcard=0 diag.enabled=0 

INFOboard_legend.debug_uart=0 smisize=0 userdata_sel=0 androidbo

INFOot.emmc=false  androidboot.baseband=7.05.35.26L androidboot.

INFOcid=HTC__E11 androidboot.carrier=HTC-Dutch androidboot.mid=P

INFOB7610000 androidboot.keycaps=qwerty androidboot.mode=normal 

INFOandroidboot.serialno=HT039NX00037 androidboot.bootloader=0.4

INFO3.0001 no_console_suspend=1 console=null

INFOaARM_Partion[0].name=misc

INFOaARM_Partion[1].name=recovery

INFOaARM_Partion[2].name=boot

INFOaARM_Partion[3].name=system

INFOaARM_Partion[4].name=cache

INFOaARM_Partion[5].name=userdata

INFOpartition number=6

INFOValid partition num=6

INFOmpu_nand_acpu_rw 8F2 1000

FAILED (status read failed (Protocol error))

if someone has an idear why I get the segmentation fault please tell

thanks

0

Share this post


Link to post
Share on other sites

Posted · Report post

OK so finally i got it working

PFfff you cant Imagen how happy I am :)

I would like to thank every body involved for making this fix and in special thanks to IEFtm for providing some extra help

Thanks !!

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

Can anyone post a step by step guide for mac? I am still having trouble getting this to work.

Thanx

ok. Here is the fix i used, step by step. works every time.

if your phone can't even see the memory card, enable first with:

fastboot oem enableqxdm 0

Do the above step in Recovery mode.

Once the memory card is visible, transfer the files "flash_image" and "mtd0.img" to the memory card

howevor is possible.

Restart the phone, and install connectbot from the market.

Open connectbot, and through terminal (local) issue the following commands:

su

cat /sdcard/flash_image > /data/flash_image "then press enter"

cat /sdcard/mtd0.img > /data/mtd0.img "then press enter"

chmod 755 /data/flash_image "then press enter"

/data/flash_image misc /data/mtd0.img "then press enter"

It will give you an error, on the last command, but ignore it and restart the phone

It should be fixed.

Edited by gutter
0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

HELPPPP PLEASE

when i digit on connectbot cd /sdcard/flash_image > /data/flash_image appairs : cannot create /data/flash_image : permission denied

What can I do?

HELP PLEASE AND SORRY FOR MY BAD ENGLISH

Edited by HappyLegend
0

Share this post


Link to post
Share on other sites

Posted · Report post

Hi, when i try to 'chmod u+x /data/flash_image' i get "bad mode",

if i try 'chmod 755 /data/flash_image' i get "No such file or directory...

Doing something wrong? :lol:

Sorry man can you helo me???

also to me by the same errors

thank you very much and sorry for my bad english

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2015. MoDaCo uses IntelliTxt technology.