[EVO 4G Android Development] joeykrim:
Disclaimer:These tools and instructions can EASILY permanently brick your phone if you do not know what you're doing. This is for developers ONLY.

Background: Some of the images below have been successfully flashed to our EVO, some have not.

A PC36IMG.zip is the same as a rom.zip extracted from an RUU.exe.

Goal: Understand and confirm successful flash of the images from the files released/leaked by HTC to the partitions on our EVO.

Tools: As far as I know there are basically two tools we have access to flash individual partitions with: flash_image and fastboot.

Downloads:

flash_image.zip (extract from .zip please!)

eng-PC36IMG.zip (eng build rom.zip root part 2)

ud-PC36IMG.zip (userdebug rom.zip root part 1)

rom.zip from RUU .1

rom.zip from RUU .6

EVO Partition Structure:

the phone reports its partition information as:

cat /proc/mtd

dev: size erasesize name

mtd0: 00c00000 00020000 "wimax"

mtd1: 000a0000 00020000 "misc"

mtd2: 00500000 00020000 "recovery"

mtd3: 00280000 00020000 "boot"

mtd4: 15e00000 00020000 "system"

mtd5: 0a000000 00020000 "cache"

mtd6: 1aba0000 00020000 "userdata"

EVO Partition Size:

cat /proc/partitions

major minor #blocks name

7 0 2111 loop0

7 1 14585 loop1

31 0 12288 mtdblock0

31 1 640 mtdblock1

31 2 4608 mtdblock2

31 3 3072 mtdblock3

31 4 358400 mtdblock4

31 5 163840 mtdblock5

31 6 437888 mtdblock6

254 0 2110 dm-0

254 1 14584 dm-1

rom.zip File Structure:

All the files located within a PC36IMG.zip or RUU rom.zip - Same file structure, different names (PC36IMG.zip or rom.zip) depending on the tool being used to flash it.

Example - Eng Build PC36IMG.zip

ls -l

size	image name	confirmed partition
75	android-info.txt
2168832	boot.img	(mtd3 - kernel and ramdisk)
524288	hboot_0.76.2000.img	(SPL)
6892	microp_v04.img
655360	NV.img	(PRI)
22282240radio_1.36.00.04.02.img	(radio)
131072	rcdata.img
3561472	recovery.img	(mtd2 - recovery)
786432	splash1.nb0	(initial boot graphic)
215548608system.img	(mtd4 - /system)
73081	tp_atmel224_16ab.img	[url=http://xdaforums.com/showpost.php?p=6848555&postcount=2]Atmel maXTouch 224-channel touchscreen[/url] - [url=http://www.shipped-roms.com/shipped/Incredible/]HTC Incredible[/url]
71761	tp_atmelc03_16ac.img
24178176userdata.img	(mtd6 - /data)
8781824	wimax_24722.img	(mtd0 - wimax)

Confirmed Working with flash_image:

flash_image boot boot.img (custom/stock kernel boot.img flashed to mtd3)

flash_image recovery recovery.img (custom/stock recovery recovery.img flashed to mtd2)

Confirmed Working with fastboot:

fastboot flash recovery recovery-RA-evo-v1.7.0.1.img

fastboot flash zimage zImage

fastboot boot boot.img

fastboot flash splash1 splash1.nb0

UPDATED FASTBOOT INFO - from toastcfh

By going into supercid mode on fastboot, we are able to flash our own PC36IMG.zip files w/o having HTC signed keys through the bootloader.

Entering supercid mode is done through two commands:

fastboot oem h

fastboot oem changeCid 00000000

INFO[hboot]:(RAW) block start=497, size=6 (768 KB)
INFO[misc3]:(RAW) block start=503, size=7 (896 KB)
INFO[mfg]:(RAW) block start=510, size=6 (768 KB)
INFO[sp1]:(RAW) block start=516, size=9 (1152 KB)
INFO[wifi]:(RAW) block start=525, size=5 (640 KB)
INFO[recovery]:(RAW) block start=530, size=40 (5120 KB)
INFO[boot]:(RAW) block start=570, size=20 (2560 KB)
INFO[system]:(YAFFS) block start=590, size=2800 (369600 KB)
INFO[cache]:(YAFFS) block start=3390, size=1280 (168960 KB)
INFO[userdata]:(YAFFS) block start=4670, size=3421 (451572 KB)
INFO[wimax]:(RAW) block start=8091, size=96 (12288 KB)
INFO[misc]:(RAW) block start=8187, size=5 (640 KB)
INFO[rcdata]:(OTHER) block start=0, size=0 (0 KB)
INFO[cpld]:(OTHER) block start=0, size=0 (0 KB)
INFO[microp]:(OTHER) block start=0, size=0 (0 KB)
INFO[a1026]:(OTHER) block start=0, size=0 (0 KB)
INFO[tp]:(OTHER) block start=0, size=0 (0 KB)
INFO[nv]:(OTHER) block start=0, size=0 (0 KB)
OKAY [ 0.089s]

Directions:

Please post your successful and unsuccessful experiences here! I will keep this thread updated until we've been able to flash everything possible to every possible partition!

Toast recommends having the phone in recovery mode as the safest state to flash from.

Use either flash_image or fastboot to flash any of the image files located within any of the PC36IMG/rom.zip files.

Please post back

Name of PC36IMG.zip/rom.zip package:

Name of .img file flashed:

Method used to flash: fastboot or flash_image

Command used to flash:

Results: Successful/Unsuccessful (errors)