Thursday, October 6, 2011

Bionic development notes


Hotkeys
* Power+Volume Down: Fastboot
* Power+Volume Up+Volume Down: Boot menu
* Hold both volume buttons at boot animation: Safe mode

EMMC Partition table (mmcblk1)
Device Boot      Start         End      Blocks   Id  System
                                                                 mbr
       1   *         256         511         128   83  Linux     mbmloader
       2            1024        2047         512   83  Linux     mbm
       3            2048        3071         512   83  Linux     mbmbackup
       4            3072    31105023    15550976    5  Extended  ebr
       5            4096        5119         512   83  Linux     bploader (empty ff)
       6            5120        6143         512   83  Linux     cdt.bin
       7            6144       14335        4096   83  Linux     pds
       8           14336       15359         512   83  Linux     lbl
       9           15360       16383         512   83  Linux     lbl_backup
      10           16384       18431        1024   83  Linux     logo.bin
      11           18432       22527        2048   83  Linux     sp
      12           22528       23551         512   83  Linux     devtree
      13           23552       24575         512   83  Linux     devtree_backup (empty ff)
      14           24576       32767        4096   83  Linux     bpsw (empty ff)
      15           32768       49151        8192   83  Linux     boot
      16           49152       67583        9216   83  Linux     recovery
      17           67584       92159       12288   83  Linux     cdrom (iso9660)
      18           92160       93183         512   83  Linux     misc
      19           93184       94207         512   83  Linux     cid (empty ff)
      20           94208      102399        4096   83  Linux     kpanic (empty ff)
      21          102400     1085439      491520   83  Linux     system (ext3, ro)
      22         1085440     2559999      737280   83  Linux     cache (ext3)
      23         2560000     3182591      311296   83  Linux     preinstall (ext3)
      24         3182592     5912575     1364992   83  Linux     webtop (ext3)
      25         5912576    14301183     4194304   83  Linux     userdata (ext3)
      26        14301184    31104767     8401792   83  Linux     emstorage (vfat)
      27        31104768    31105023         128   83  Linux     sgpt (empty ff)

CDT
CG_num: 64
CG_name: mbr
signature_type: 1
start_addr: 0x00000000
end_addr: 0x00020000
 + base address: 0x82400000
signature_start_addr: 0x82403800
signature_end_addr:  0x82403fff

CG_num: 63
CG_name: mbmloader
signature_type: 0
start_addr: 0x00020000
end_addr: 0x00040000
 + base address: 0x86400780
signature_start_addr: 0x8641ff80
signature_end_addr:  0x8642077f

CG_num: 30
CG_name: mbm
signature_type: 0
start_addr: 0x00080000
end_addr: 0x00100000
 + base address: 0xbff00000
signature_start_addr: 0xbff3f800
signature_end_addr:  0xbff3ffff

CG_num: 55
CG_name: mbmbackup
signature_type: 0
start_addr: 0x00100000
end_addr: 0x00180000
 + base address: 0xbff00000
signature_start_addr: 0xbff3f800
signature_end_addr:  0xbff3ffff

CG_num: 65
CG_name: ebr
signature_type: 1
start_addr: 0x00180000
end_addr: 0x00200000
 + base address: 0x82410000
signature_start_addr: 0x82413800
signature_end_addr:  0x82413fff

CG_num: 56
CG_name: bploader
signature_type: 0
start_addr: 0x00200000
end_addr: 0x00280000
 + base address: 0xffffffff
signature_start_addr: 0xffffffff
signature_end_addr:  0xffffffff

CG_num: 31
CG_name: cdt.bin
signature_type: 1
start_addr: 0x00280000
end_addr: 0x00300000
 + base address: 0xbfe80000
signature_start_addr: 0xbfe83800
signature_end_addr:  0xbfe83fff

CG_num: 38
CG_name: pds
signature_type: 0
start_addr: 0x00300000
end_addr: 0x00700000
 + base address: 0xffffffff
signature_start_addr: 0xffffffff
signature_end_addr:  0xffffffff

CG_num: 34
CG_name: lbl
signature_type: 1
start_addr: 0x00700000
end_addr: 0x00780000
 + base address: 0x80100000
signature_start_addr: 0x80103800
signature_end_addr:  0x80103fff

CG_num: 57
CG_name: lbl_backup
signature_type: 1
start_addr: 0x00780000
end_addr: 0x00800000
 + base address: 0x80100000
signature_start_addr: 0x80103800
signature_end_addr:  0x80103fff

CG_num: 42
CG_name: logo.bin
signature_type: 0
start_addr: 0x00800000
end_addr: 0x00900000
 + base address: 0x86270000
signature_start_addr: 0x8636f800
signature_end_addr:  0x8636ffff

CG_num: 41
CG_name: sp
signature_type: 0
start_addr: 0x00900000
end_addr: 0x00b00000
 + base address: 0x884b0000
signature_start_addr: 0x886af800
signature_end_addr:  0x886affff

CG_num: 61
CG_name: devtree
signature_type: 1
start_addr: 0x00b00000
end_addr: 0x00b80000
 + base address: 0x88490000
signature_start_addr: 0x8850f800
signature_end_addr:  0x8850ffff

CG_num: 62
CG_name: devtree_backup
signature_type: 1
start_addr: 0x00b80000
end_addr: 0x00c00000
 + base address: 0x88490000
signature_start_addr: 0x8850f800
signature_end_addr:  0x8850ffff

CG_num: 45
CG_name: bpsw
signature_type: 2
start_addr: 0x00c00000
end_addr: 0x01000000
 + base address: 0x64100000
signature_start_addr: 0x644ff800
signature_end_addr:  0x644fffff

CG_num: 35
CG_name: boot
signature_type: 1
start_addr: 0x01000000
end_addr: 0x01800000
 + base address: 0x80500000
signature_start_addr: 0x80cff800
signature_end_addr:  0x80cfffff

CG_num: 47
CG_name: recovery
signature_type: 1
start_addr: 0x01800000
end_addr: 0x02100000
 + base address: 0x80500000
signature_start_addr: 0x80dff800
signature_end_addr:  0x80dfffff

CG_num: 33
CG_name: cdrom
signature_type: 5
start_addr: 0x02100000
end_addr: 0x02d00000
 + base address: 0x80000000
signature_start_addr: 0x80bbf800
signature_end_addr:  0x80bbffff

CG_num: 44
CG_name: misc
signature_type: 0
start_addr: 0x02d00000
end_addr: 0x02d80000
 + base address: 0xffffffff
signature_start_addr: 0xffffffff
signature_end_addr:  0xffffffff

CG_num: 43
CG_name: cid
signature_type: 0
start_addr: 0x02d80000
end_addr: 0x02e00000
 + base address: 0xffffffff
signature_start_addr: 0xffffffff
signature_end_addr:  0xffffffff

CG_num: 53
CG_name: kpanic
signature_type: 0
start_addr: 0x02e00000
end_addr: 0x03200000
 + base address: 0xffffffff
signature_start_addr: 0xffffffff
signature_end_addr:  0xffffffff

CG_num: 39
CG_name: system
signature_type: 5
start_addr: 0x03200000
end_addr: 0x21200000
 + base address: 0x80000000
signature_start_addr: 0x9dfbf800
signature_end_addr:  0x9dfbffff

CG_num: 40
CG_name: cache
signature_type: 0
start_addr: 0x21200000
end_addr: 0x4e200000
 + base address: 0xffffffff
signature_start_addr: 0xffffffff
signature_end_addr:  0xffffffff

CG_num: 66
CG_name: preinstall
signature_type: 0
start_addr: 0x4e200000
end_addr: 0x61200000
 + base address: 0xffffffff
signature_start_addr: 0xffffffff
signature_end_addr:  0xffffffff

CG_num: 68
CG_name: webtop
signature_type: 5
start_addr: 0x61200000
end_addr: 0xb4700000
 + base address: 0x80000000
signature_start_addr: 0xd34bf800
signature_end_addr:  0xd34bffff

CG_num: 37
CG_name: userdata
signature_type: 0
start_addr: 0xb4700000
end_addr: 0x1b4700000
 + base address: 0xffffffff
signature_start_addr: 0xffffffff
signature_end_addr:  0xffffffff

CG_num: 67
CG_name: emstorage
signature_type: 0
start_addr: 0x1b4700000
end_addr: 0x3b53e0000
 + base address: 0xffffffff
signature_start_addr: 0xffffffff
signature_end_addr:  0xffffffff

CG_num: 68
CG_name: sgpt
signature_type: 0
start_addr: 0x3b53e0000
end_addr: 0x3b5400000
 + base address: 0xffffffff
signature_start_addr: 0xffffffff
signature_end_addr:  0xffffffff

LTE CDT
CG_num: 30
CG_name: mldr.bin.ift
signature_type: 0
start_addr: 0x00000000
end_addr: 0x00020000
 + base address: 0x402049d0
signature_start_addr: 0x402241d0
signature_end_addr:  0x402249cf

CG_num: 60
CG_name: mbm.bin
signature_type: 0
start_addr: 0x00020000
end_addr: 0x000c0000
 + base address: 0x81fc0000
signature_start_addr: 0x81fff800
signature_end_addr:  0x81ffffff

CG_num: 55
CG_name: mbmbackup
signature_type: 0
start_addr: 0x000c0000
end_addr: 0x00160000
 + base address: 0xffffffff
signature_start_addr: 0xffffffff
signature_end_addr:  0xffffffff

CG_num: 31
CG_name: cdt.bin
signature_type: 1
start_addr: 0x00160000
end_addr: 0x001c0000
 + base address: 0x81f80000
signature_start_addr: 0x81f83800
signature_end_addr:  0x81f83fff

CG_num: 41
CG_name: SP
signature_type: 0
start_addr: 0x001c0000
end_addr: 0x00360000
 + base address: 0xffffffff
signature_start_addr: 0xffffffff
signature_end_addr:  0xffffffff

CG_num: 33
CG_name: atags.bin
signature_type: 1
start_addr: 0x00360000
end_addr: 0x003e0000
 + base address: 0x81400000
signature_start_addr: 0x81403800
signature_end_addr:  0x81403fff

CG_num: 38
CG_name: pdsfs.img
signature_type: 0
start_addr: 0x003e0000
end_addr: 0x00640000
 + base address: 0xffffffff
signature_start_addr: 0xffffffff
signature_end_addr:  0xffffffff

CG_num: 35
CG_name: umts_wrigleyref_build.bin
signature_type: 2
start_addr: 0x00640000
end_addr: 0x00980000
 + base address: 0x80000000
signature_start_addr: 0x8027f800
signature_end_addr:  0x8027ffff

CG_num: 36
CG_name: vmlinux.bin
signature_type: 1
start_addr: 0x00980000
end_addr: 0x01520000
 + base address: 0x81408000
signature_start_addr: 0x81e67800
signature_end_addr:  0x81e67fff

CG_num: 42
CG_name: system.img
signature_type: 5
start_addr: 0x01520000
end_addr: 0x02aa0000
 + base address: 0x82000000
signature_start_addr: 0x8339f800
signature_end_addr:  0x8339ffff

CG_num: 37
CG_name: userdata.img
signature_type: 5
start_addr: 0x02aa0000
end_addr: 0x04d00000
 + base address: 0x82000000
signature_start_addr: 0x83fff800
signature_end_addr:  0x83ffffff

CG_num: 52
CG_name: logdata
signature_type: 0
start_addr: 0x04d00000
end_addr: 0x07fa0000
 + base address: 0xffffffff
signature_start_addr: 0xffffffff
signature_end_addr:  0xffffffff

CG_num: 53
CG_name: kpanic
signature_type: 0
start_addr: 0x07fa0000
end_addr: 0x08000000
 + base address: 0xffffffff
signature_start_addr: 0xffffffff
signature_end_addr:  0xffffffff