wiki:Android/HTC/Vision/Virgin

Virgin Vision

Documenting the U.K. HTC Desire Z contents as shipped.

Photo Tear-Down

Before the device had been switched on I did a complete tear-down and photographed the process.

The big important integrated circuits

Micro-SD card

The device arrived with an 8GB Samsung Class 2 micro-SD card installed. The layout of the device is:

fdisk -lu /dev/sdj

Disk /dev/sdj: 7958 MB, 7958691840 bytes
151 heads, 15 sectors/track, 6862 cylinders, total 15544320 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdj1            8192    15544319     7768064    b  W95 FAT32

I did a raw copy of the entire device to two files:

sudo dd if=/dev/sdj of=micro-SD-card-8GB-sectors-0_to_8191.bin bs=512 count=8192
sudo dd if=/dev/sdj of=micro-SD-card-8GB-sectors-8192_to_15544319.bin bs=512 skip=819

I was suspicious of the first partition starting at sector 8192 so I examined the first 8,192 sectors but they are empty (apart from sector 0, the partition table):

hexdump -C micro-SD-card-8GB-sectors-0_to_8191.bin 
00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000001b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 82  |................|
000001c0  03 00 0b 96 cf c7 00 20  00 00 00 10 ed 00 00 00  |....... ........|
000001d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00000200  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00400000

I've attached a list of all the files Download contained on the device.

HBoot Power-On

Press and hold the volume-down rocker, press and release the power button, when the display lights up release the volume-down rocker. The screen displays:

VISION PVT SHIP S-ON
HBOOT-0.85.0005
MICRO-P-0425
RADIO-26.03.02.26_M
eMMC-boot
Oct 11 2010,20:10:38

HBOOT

<VOL-UP> to previous item
<VOL DOWN> to next item
<POWER> to select item

FASTBOOT
RECOVERY
FACTORY RESET
SIMLOCK
IMAGE CRC

Connect the USB cable to the device and the PC. On the PC check the USB ID of the device:

lsusb | grep 0bb4
Bus 001 Device 025: ID 0bb4:0c94 High Tech Computer Corp. 

Load the USB serial driver to support this ID:

sudo modprobe usbserial vendor=0x0BB4 product=0x0C94

Check the kernel log to confirm the device was recognised and a serial port (ttyUSB) created:

tail /var/log/kern.log | awk '$0 ~ /serial|ttyUSB|new high/ {$1=$2=$3=$4=$5=$6=""; print $0}'
      usbcore: registered new interface driver usbserial
      usbcore: registered new interface driver usbserial_generic
      usbserial: USB Serial Driver core
      usb 1-2: new high speed USB device using ehci_hcd and address 25
      usbserial_generic 1-2:1.0: generic converter detected
      usb 1-2: generic converter now attached to ttyUSB0

HBoot remote over USB

Start a screen session with logging to use remote hboot:

screen -L /dev/ttyUSB0

Initially there is a blank screen. Press the Enter (Return) key once to obtain the prompt. Press ? to get a list of commands:

hboot>?

command list
keytest
heap
boot
reset
powerdown
rebootRUU
heap_test
rtask
task
enableqxdm
gencheckpt
list_partition_emmc
load_emmc
check_emmc
check_emmc_mid
read_emmc
get_wp_info_emmc
send_wp_info_emmc
get_ext_csd_emmc
get_sector_info_emmc

hboot>get_ext_csd_emmc
============ EXT_CSD REG [511 : 0] ============
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 01 01 01 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 80 14 00 C2 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 01 01 EC 00 00 
03 00 01 00 00 00 04 1F 01 00 00 00 00 00 00 01 
00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 
05 00 02 00 07 00 02 01 00 00 00 00 00 0A 0A 0A 
0A 0A 0A 00 00 80 45 00 00 11 00 07 08 04 01 01 
04 06 08 00 07 96 96 15 02 00 00 00 00 00 00 00 
00 0A 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 01 01 00 00 00 00 00 00 00 
================= EXT_CSD REG ==================

hboot>get_wp_info_emmc
eMMC write protection group size = 16384

hboot>get_sector_info_emmc

Available eMMC Sector = 4554751

hboot>list_partition_emmc
index, type, start, num
0, 0x4D, 0x1, 0x3E8
1, 0x45, 0x3E9, 0x80
2, 0x46, 0x469, 0x2328
3, 0x5, 0x2791, 0x45586E

hboot>read_emmc 0 1 1 1
reading sector 0 ~ 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 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