PDA

View Full Version : How to Root Your EVO 4G – Part 2



Genuwine1976
06-19-2010, 10:46 PM
[TUTORIAL] How To Unlock Nand Protection ~ Part-2 [Gaining RW Access/Full Root]

THIS IS PART 2 OF A 2 PART GUIDE TO ROOTING THE EVO AND UNLOCKING NAND PROTECTION. YOU MUST FOLLOW THE STEPS IN THE PART 1 OF ROOTING TO BE ABLE TO PROCEED WITH THIS GUIDE. IF YOU HAVENT ROOTED USING MY METHOD, THEN FOLLOW THE LINK BELOW AND DO SO.

[Only registered and activated users can see links]

THANX:
- keishou (for the rooted build. without it none of this would be possible)
- Behnaam (my good friend and awesome dev. he tip me off on how to downgrade to older main versions)
- maejrep (for compiling us a recovery from Amon's source)
- Flipz (for being awesome :P)
- Stericson (for hosting the files for me)
- Amon RA (for his awesome recovery source on github that we used)

FILES NEEDED:

- PC36IMG.zip ~> [Only registered and activated users can see links]
PC36IMG.zip md5sum~ fe8aba99893c766b8c4fd0a2734e4738 -LINK:
- mtd-eng.zip -LINK:[Only registered and activated users can see links]
- flash_image.zip -LINK: [Only registered and activated users can see links]
- recovery.img ~> [Only registered and activated users can see links]

STEP 1~NANDROID BACKUP:

- go into the recovery provided in the PART 1 root method and do a nandroid backup before u begin this. we will use this nandroid at the end of this tutorial to get u back where u were.

STEP 2~FLASHING MTD PARTITION TO ENABLE DOWNGRADE:

- down;oad all files posted above
- unzip the flash_image.zip and the mtd-eng.zip
- put the flash_image and mtd-eng.img on the root of your sdcard
- go into shell on ur pc and do:
Code:


adb shell
cat /sdcard/flash_image > /data/flash_image
chmod 755 /data/flash_image
/data/flash_image misc /sdcard/mtd-eng.img

- this should only take a second or two
- now put the PC36IMG.zip on the root of your sdcard
- power off the phone

STEP 3~FLASHING ENG BUILD:

- hold volume down + power to boot into hboot
- it should now find and verify the PC36IMG.zip on the root of your sdcard. itll show a blue status bar on the top right of the screen.
- after a minute or so it will ask u if u wanna flash SAY YES
- affter it flashes the PC36IMG.zip it will ask if you wanna reboot. SAY YES
- once booted into Android put the recovery.img linked above on the root of you sdcard
- on your PC open a shell again and do:
Code:


adb shell
cat /sdcard/flash_image > /data/flash_image
chmod 755 /data/flash_image
/data/flash_image recovery /sdcard/recovery.img
reboot recovery

- you should now be in recovery mode
- do a wipe of data and dalvik cache
- navigate to nandroid restore and restore the previous rom setup
- come here to the forum, get and flash the latest radio
- enjoy... you can now reboot into recovery, write to system and other partitions while in Android. Also you now have a Engineering SPL so you can fastboot and much more.

Genuwine1976
06-19-2010, 10:47 PM
KNOW ERRORS AND FIXES

Problem:
Quote:

I can't download the files / They are corrupted / etc!!!!1!!!!1
How to fix:
Here's a mirror, thanks to lewi3069.
Quote:

Originally Posted by lewi3069 View Post
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
----------------------------------------------------

Error:
Code:


adb shell
# cat /sdcard/flash_image > /data/flash_image
cat /sdcard/flash_image > /data/flash_image
cat: can't open ' /sdcard/flash_image' : No such file or directory

How to fix:
Your sdcard isn't mounted properly. You can use ADB to push the files:
Code:


adb push /path/to/flash_image /sdcard/flash_image
adb push /path/to/mtd-eng.img /sdcard/mtd-eng.img

or try to mount the card: (*note, this command only works from recovery. If you are inside the android OS you have to use adb remount. This is also how you test system r/w access, which is what this whole process gives you
Code:


adb shell mount /sdcard

----------------------------------------------------

Error:
Code:


mtd: erase failure at 0x00000000 (I/O error)
mtd: skipping write block at 0x00000000
mtd: erase failure at 0x00020000 (I/O error)
mtd: erase failure at 0x00020000 (I/O error)
mtd: skipping write block at 0x00020000
mtd: erase failure at 0x00040000 (I/O error)
mtd: erase failure at 0x00040000 (I/O error)
mtd: skipping write block at 0x00040000
mtd: erase failure at 0x00060000 (I/O error)
mtd: erase failure at 0x00060000 (I/O error)

(note: probably a lot longer than that)

How to fix:
You are using the wrong PC36IMG.zip file. Its not the same one from part one. Download the file listed in Toast's post, above.

----------------------------------------------------

Error:
Something about "Main version is older" ...not sure of exact syntax

How to fix:
You need to redo the mtd-eng.img step. Check and make sure you didn't get the sdcard mounting error.

----------------------------------------------------

Question:
Quote:

Can I delete these files from my sdcard, now that I have finished?
Answer:
Sure. Alternatively, you can just throw them into a folder named whatever you want (example folder name: "files for rooting") and leave them there in case you need the later! Totally up to you, but yes they are safe to remove.

----------------------------------------------------

Question:
Quote:

Do I have to backup/restore my nandroid? Can't I just flash a new ROM?
Answer:
Yep. The advantage of restoring your nandroid is I believe you get your radio back. Maybe not. It takes like 3 seconds to restore your radio anyway. I just flashed my ROM back over clean and used Titanium Backup which I strongly recommend to restore all my apps.


HERE IS THE ORIGINAL LINK TO BOTH POSTS JUST IN CASE: [Only registered and activated users can see links]

reekotubbs
06-23-2010, 11:24 PM
Does this fully unlock security on the phone (EFS, NVM folders)?
I used the "open sesame door" on my EVO and my NVM folder appears to be unlocked but usual files are still hidden.

Genuwine1976
06-24-2010, 02:33 AM
Not sure as I have not personally tried this yet, but it should as it fully unlocks the file system of the phone.. So it is really worth a shot.... Let me know if you have any issues... or if it works for ya

Shooten69
11-07-2010, 07:58 PM
I am still running into problems with "update fail" PC36IMG.zip, will not root, can not do anything, please help

thesmitty68521
11-07-2010, 08:41 PM
I am still running into problems with "update fail" PC36IMG.zip, will not root, can not do anything, please help

Please tell us a little bit more. What is the software version of your phone currently? Also, what end result are you expecting?

Thanks