5,593,793 Members 46,098 Now Online
XDA Developers Android and Mobile Development Forum

Stock HBoot Partition Table

Tip us?
 
kozmikkick
Old
#1  
Senior Member - OP
Thanks Meter 1214
Posts: 1,276
Join Date: Nov 2010
Location: Seattle, WA
Default Stock HBoot Partition Table

Here is the stock Partititon Table for HTC One (M7)

Code:
major   minor    #blocks  name

 179        0   30535680 mmcblk0
 179        1        128 mmcblk0p1   sbl1
 179        2        256 mmcblk0p2   sbl2
 179        3     130671 mmcblk0p3   pg1fs
 179        4          1 mmcblk0p4   ?
 179        5         16 mmcblk0p5   board_info
 179        6        256 mmcblk0p6   mfg
 179        7      15577 mmcblk0p7   pg2fs
 179        8        256 mmcblk0p8   sbl2_update
 179        9       1024 mmcblk0p9   sbl3
 179       10        256 mmcblk0p10  rpm
 179       11       2048 mmcblk0p11  tz
 179       12       2080 mmcblk0p12  hboot
 179       13       5120 mmcblk0p13  sp1
 179       14       1024 mmcblk0p14  wifi
 179       15       1024 mmcblk0p15  dsps
 179       16      61441 mmcblk0p16  adsp
 179       17       8190 mmcblk0p17  radio_config
 179       18      32768 mmcblk0p18  reserve_1
 179       19       1022 mmcblk0p19  misc
 179       20       4096 mmcblk0p20  modem_st1
 179       21       4096 mmcblk0p21  modem_st2
 179       22      20480 mmcblk0p22  devlog
 179       23          4 mmcblk0p23  debug_config
 179       24        256 mmcblk0p24  pdata
 179       25         16 mmcblk0p25  control
 179       26       1280 mmcblk0p26  local
 179       27         64 mmcblk0p27  extra
 179       28       1024 mmcblk0p28  cdma_record
 179       29      98727 mmcblk0p29  reserve
 179       30      54270 mmcblk0p30  reserve_2
 179       31      76800 mmcblk0p31  radio
 179       32      98303 mmcblk0p32  ?
 179       33      16384 mmcblk0p33  boot
 179       34      16383 mmcblk0p34  recovery
 179       35    1900543 mmcblk0p35  system
 179       36     655359 mmcblk0p36  cache
 179       37   27262976 mmcblk0p37  userdata
The Following 5 Users Say Thank You to kozmikkick For This Useful Post: [ Click to Expand ]
 
kozmikkick
Old
(Last edited by kozmikkick; 10th June 2013 at 03:26 AM.)
#2  
Senior Member - OP
Thanks Meter 1214
Posts: 1,276
Join Date: Nov 2010
Location: Seattle, WA
Now interestingly enough I've found that the Engineering bootloader posted on the DNA forums that is questionably compatible with our device has this partition table:

Code:
major   minor    #blocks  name

 179        0   30535680 mmcblk0
 179        1        128 mmcblk0p1   sbl1
 179        2        256 mmcblk0p2   sbl2
 179        3     130671 mmcblk0p3   pg1fs
 179        4          1 mmcblk0p4   ?
 179        5         16 mmcblk0p5   board_info
 179        6        256 mmcblk0p6   mfg
 179        7      15577 mmcblk0p7   pg2fs
 179        8        256 mmcblk0p8   sbl2_update
 179        9       1024 mmcblk0p9   sbl3
 179       10        256 mmcblk0p10  rpm
 179       11       2048 mmcblk0p11  tz
 179       12       2080 mmcblk0p12  hboot
 179       13       5120 mmcblk0p13  sp1
 179       14       1024 mmcblk0p14  wifi
 179       15       1024 mmcblk0p15  dsps
 179       16      61441 mmcblk0p16  adsp
 179       17       8190 mmcblk0p17  radio_config
 179       18      32768 mmcblk0p18  reserve_1
 179       19       1022 mmcblk0p19  misc
 179       20       4096 mmcblk0p20  modem_st1
 179       21       4096 mmcblk0p21  modem_st2
 179       22      20480 mmcblk0p22  devlog
 179       23          4 mmcblk0p23  debug_config
 179       24        256 mmcblk0p24  pdata
 179       25         16 mmcblk0p25  control
 179       26       1280 mmcblk0p26  local
 179       27         64 mmcblk0p27  extra
 179       28       1024 mmcblk0p28  cdma_record
 179       29      98727 mmcblk0p29  reserve
 179       30      21502 mmcblk0p30  reserve_2
 179       31      76800 mmcblk0p31  radio
 179       32      16384 mmcblk0p32  boot
 179       33      16383 mmcblk0p33  recovery
 179       34    1900543 mmcblk0p34  system
 179       35     655359 mmcblk0p35  cache
 179       36   27394048 mmcblk0p36  userdata
As you can see this bootloader is missing our mmcblk0p32. And has slightly different #blocks in the userdata partition and even more different #blocks in the reserve_2 partition.

I was able to put piece together the names for the blacks by using
Code:
fastboot oem listpartition
while in the engineering bootloader. Doing this resulted in:

Code:
(bootloader) [merge_mfg]:(MERGEMFG, 10) block start=0, size=0 (0 KB)
(bootloader) [merge_emmc]:(RAW, 4) block start=0, size=4849663 (2424831 K
(bootloader) B)
(bootloader) [sbl1]:(RAW, 4) block start=1, size=256 (128 KB)
(bootloader) [sbl2]:(RAW, 4) block start=257, size=512 (256 KB)
(bootloader) [pg1fs]:(PGFS, 4) block start=769, size=261342 (130671 KB)
(bootloader) [board_info]:(RAW, 4) block start=262112, size=32 (16 KB)
(bootloader) [rfg_0]:(RAW, 4) block start=442370, size=2048 (1024 KB)
(bootloader) [rfg_1]:(RAW, 4) block start=444418, size=2048 (1024 KB)
(bootloader) [rfg_2]:(RAW, 4) block start=446466, size=2048 (1024 KB)
(bootloader) [rfg_3]:(RAW, 4) block start=448514, size=2048 (1024 KB)
(bootloader) [rfg_4]:(RAW, 4) block start=450562, size=2048 (1024 KB)
(bootloader) [rfg_5]:(RAW, 4) block start=452610, size=2048 (1024 KB)
(bootloader) [rfg_6]:(RAW, 4) block start=454658, size=2048 (1024 KB)
(bootloader) [mdmsmem]:(RAW, 4) block start=456706, size=2045 (1022 KB)
(bootloader) [dzsystem]:(DEZERO, 8) block start=1048577, size=3801086 (19
(bootloader) 00543 KB)
(bootloader) [dzdata]:(DEZERO, 8) block start=6160384, size=54788096 (273
(bootloader) 94048 KB)
(bootloader) [security_record]:(RAW, 1) block start=0, size=0 (0 KB)
(bootloader) [wcnss]:(RAW, 1) block start=0, size=0 (0 KB)
(bootloader) [wimax]:(RAW, 7E01) block start=0, size=0 (0 KB)
(bootloader) [felica]:(RAW, 1) block start=0, size=0 (0 KB)
(bootloader) [udata_wimax]:(RAW, 7E01) block start=0, size=0 (0 KB)
(bootloader) [spcustom]:(RAW, 1) block start=0, size=0 (0 KB)
(bootloader) [fat]:(RAW, C01) block start=0, size=0 (0 KB)
(bootloader) [imc]:(OTHER, 1) block start=0, size=0 (0 KB)
(bootloader) [nfc_record]:(EXT3, 8301) block start=0, size=0 (0 KB)
(bootloader) [microp]:(OTHER, 1) block start=0, size=0 (0 KB)
(bootloader) [cpld]:(OTHER, 1) block start=0, size=0 (0 KB)
(bootloader) [a1026]:(OTHER, 1) block start=0, size=0 (0 KB)
(bootloader) [nfc]:(OTHER, 1) block start=0, size=0 (0 KB)
(bootloader) [tp]:(OTHER, 1) block start=0, size=0 (0 KB)
(bootloader) [cs]:(OTHER, 1) block start=0, size=0 (0 KB)
(bootloader) [gauge]:(OTHER, 1) block start=0, size=0 (0 KB)
(bootloader) [cir]:(OTHER, 1) block start=0, size=0 (0 KB)
(bootloader) [rcdata]:(OTHER, 1) block start=0, size=0 (0 KB)
(bootloader) [mfg]:(RAW, 7301) block start=262145, size=512 (256 KB)
(bootloader) [pg2fs]:(PGFS, 21) block start=262658, size=31155 (15577 KB)
(bootloader) [sbl2_update]:(RAW, 1) block start=293814, size=512 (256 KB)
(bootloader) [sbl3]:(RAW, 4501) block start=294327, size=2048 (1024 KB)
(bootloader) [rpm]:(RAW, 4701) block start=296376, size=512 (256 KB)
(bootloader) [tz]:(RAW, 4601) block start=296889, size=4096 (2048 KB)
(bootloader) [hboot]:(RAW, 4C01) block start=300986, size=4161 (2080 KB)
(bootloader) [sp1]:(RAW, 3401) block start=305148, size=10240 (5120 KB)
(bootloader) [wifi]:(RAW, 3601) block start=315389, size=2048 (1024 KB)
(bootloader) [dsps]:(RAW, 1) block start=317438, size=2048 (1024 KB)
(bootloader) [adsp]:(RAW, 7A01) block start=319487, size=122882 (61441 KB
(bootloader) )
(bootloader) [radio_config]:(RAW, 7401) block start=442370, size=16381 (8
(bootloader) 190 KB)
(bootloader) [reserve_1]:(RAW, 1) block start=458752, size=65536 (32768 K
(bootloader) B)
(bootloader) [misc]:(RAW, 7601) block start=524289, size=2045 (1022 KB)
(bootloader) [modem_st1]:(EXT3, 4A01) block start=526335, size=8192 (4096
(bootloader)  KB)
(bootloader) [modem_st2]:(EXT3, 4B01) block start=534528, size=8192 (4096
(bootloader)  KB)
(bootloader) [devlog]:(EXT3, 1901) block start=542721, size=40960 (20480 
(bootloader) KB)
(bootloader) [debug_config]:(RAW, 1) block start=583682, size=8 (4 KB)
(bootloader) [pdata]:(RAW, 2301) block start=583691, size=512 (256 KB)
(bootloader) [control]:(RAW, 1) block start=584204, size=32 (16 KB)
(bootloader) [local]:(RAW, 1) block start=584237, size=2561 (1280 KB)
(bootloader) [extra]:(RAW, 1) block start=586799, size=128 (64 KB)
(bootloader) [cdma_record]:(RAW, 1) block start=586928, size=2048 (1024 K
(bootloader) B)
(bootloader) [reserve]:(RAW, 1) block start=588977, size=197455 (98727 KB
(bootloader) )
(bootloader) [reserve_2]:(RAW, 1) block start=786433, size=43004 (21502 K
(bootloader) B)
(bootloader) [radio]:(RAW, 7701) block start=829438, size=153601 (76800 K
(bootloader) B)
(bootloader) [boot]:(RAW, 4801) block start=983040, size=32768 (16384 KB)
(bootloader) [recovery]:(RAW, 7101) block start=1015809, size=32767 (1638
(bootloader) 3 KB)
(bootloader) [system]:(EXT3, 8301) block start=1048577, size=3801086 (190
(bootloader) 0543 KB)
(bootloader) [cache]:(EXT3, 8301) block start=4849664, size=1310719 (6553
(bootloader) 59 KB)
(bootloader) [userdata]:(EXT3, 8301) block start=6160384, size=54788096 (
(bootloader) 27394048 KB)
While I was able to use this bootloader for testing. It will not boot an OS in its current form.

And here are two photos I took while in this engineering bootloader:





This engineering bootloader was found at http://forum.xda-developers.com/show....php?t=2155214

I do NOT recommend flashing it unless you know what you are doing. This is a true engineering bootloader and it WILL brick your device very easily if you make a mistake.
The Following 2 Users Say Thank You to kozmikkick For This Useful Post: [ Click to Expand ]
 
mike1986.
Old
#3  
mike1986.'s Avatar
Recognized Developer / Recognized Contributor
Thanks Meter 65560
Posts: 35,951
Join Date: Mar 2009
Location: XDA-Developers

 
DONATE TO ME
Quote:
Originally Posted by kozmikkick View Post
Here is the stock Partititon Table for HTC One (M7)

Code:
major   minor    #blocks  name

 179        0   30535680 mmcblk0
 179        1        128 mmcblk0p1   sbl1
 179        2        256 mmcblk0p2   sbl2
 179        3     130671 mmcblk0p3   pg1fs
 179        4          1 mmcblk0p4   ?
 179        5         16 mmcblk0p5   board_info
 179        6        256 mmcblk0p6   mfg
 179        7      15577 mmcblk0p7   pg2fs
 179        8        256 mmcblk0p8   sbl2_update
 179        9       1024 mmcblk0p9   sbl3
 179       10        256 mmcblk0p10  rpm
 179       11       2048 mmcblk0p11  tz
 179       12       2080 mmcblk0p12  hboot
 179       13       5120 mmcblk0p13  sp1
 179       14       1024 mmcblk0p14  wifi
 179       15       1024 mmcblk0p15  dsps
 179       16      61441 mmcblk0p16  adsp
 179       17       8190 mmcblk0p17  radio_config
 179       18      32768 mmcblk0p18  reserve_1
 179       19       1022 mmcblk0p19  misc
 179       20       4096 mmcblk0p20  modem_st1
 179       21       4096 mmcblk0p21  modem_st2
 179       22      20480 mmcblk0p22  devlog
 179       23          4 mmcblk0p23  debug_config
 179       24        256 mmcblk0p24  pdata
 179       25         16 mmcblk0p25  control
 179       26       1280 mmcblk0p26  local
 179       27         64 mmcblk0p27  extra
 179       28       1024 mmcblk0p28  cdma_record
 179       29      98727 mmcblk0p29  reserve
 179       30      54270 mmcblk0p30  reserve_2
 179       31      76800 mmcblk0p31  radio
 179       32      98303 mmcblk0p32  ?
 179       33      16384 mmcblk0p33  boot
 179       34      16383 mmcblk0p34  recovery
 179       35    1900543 mmcblk0p35  system
 179       36     655359 mmcblk0p36  cache
 179       37   27262976 mmcblk0p37  userdata
mmcblk0p4 or mmcblk0p32 can be for CIR.


Archived devices and my other threads:

Join Android Revolution HD community

Facebook | Twitter | IRC chat | Visit my blog | Google+

If you appreciate my work, you can buy me a beer
Every donation is greatly appreciated and it helps the development!


 
kozmikkick
Old
#4  
Senior Member - OP
Thanks Meter 1214
Posts: 1,276
Join Date: Nov 2010
Location: Seattle, WA
Quote:
Originally Posted by mike1986. View Post
mmcblk0p4 or mmcblk0p32 can be for CIR.
I could see that for mmcblk0p4 but would seem odd that 32 would be that with it being so large.

Though 32 does seem important as it's missing in the eng hboot and that's the only missing partition that could make it not boot.

Any thoughts on a workaround?

Sent from my HTC One using xda premium
 
mike1986.
Old
#5  
mike1986.'s Avatar
Recognized Developer / Recognized Contributor
Thanks Meter 65560
Posts: 35,951
Join Date: Mar 2009
Location: XDA-Developers

 
DONATE TO ME
Quote:
Originally Posted by kozmikkick View Post
I could see that for mmcblk0p4 but would seem odd that 32 would be that with it being so large.

Though 32 does seem important as it's missing in the eng hboot and that's the only missing partition that could make it not boot.

Any thoughts on a workaround?

Sent from my HTC One using xda premium
True, mmcblk0p4 seems better candidate for CIR.

Maybe dzdata for 32?

BTW how comes DNA has EXT3 partitions by default?


Archived devices and my other threads:

Join Android Revolution HD community

Facebook | Twitter | IRC chat | Visit my blog | Google+

If you appreciate my work, you can buy me a beer
Every donation is greatly appreciated and it helps the development!


 
kozmikkick
Old
#6  
Senior Member - OP
Thanks Meter 1214
Posts: 1,276
Join Date: Nov 2010
Location: Seattle, WA
Quote:
Originally Posted by mike1986. View Post
True, mmcblk0p4 seems better candidate for CIR.

Maybe dzdata for 32?

BTW how comes DNA has EXT3 partitions by default?
No clue about DNA. I only have the m7.

The 3rd codeset that I posted is from the eng hboot. It's what I used to figure out the labels for the partitions. Combined with the adb partition list.

It'd be nice if our stock hboot had the fastboot oem listpartitions option.



Sent from my HTC One using xda premium
 
kozmikkick
Old
#7  
Senior Member - OP
Thanks Meter 1214
Posts: 1,276
Join Date: Nov 2010
Location: Seattle, WA
Quote:
Originally Posted by mike1986. View Post
True, mmcblk0p4 seems better candidate for CIR.

Maybe dzdata for 32?

BTW how comes DNA has EXT3 partitions by default?
Had some free time. So I dumped 32. And its a completely empty partition. Not sure why they added it to our partition table in final release but it is completely unused.

I also dumped 30. Which I noted to be a bit different in block size between the eng and ship hboots.

This paritition was interesting. There is a lot of memory text as well as text regarding the modem/lte/wdma. I'm thinking this could be a cache partition for the radio? Though I could be easily wrong. May try and get a bump of this partition from butterfly and see what it does on m7.

Also did a hexdiff between the eng and stock hboot. It looks like the stock hboot has all of the commands that the eng hboot has, its just that they aren't unlocked for a SHIP hboot.
 
kozmikkick
Old
#8  
Senior Member - OP
Thanks Meter 1214
Posts: 1,276
Join Date: Nov 2010
Location: Seattle, WA
One other thing I just noticed on the ENG HBoot is that even though it picks up that my device is M7_UL it assigns it as PN07200 which is for M7_WLS. It should be PN07100.

I believe that this is the reason why it won't boot on OS on our device.
 
Riyal
Old
(Last edited by Riyal; 12th June 2013 at 05:24 AM.)
#9  
Senior Member
Thanks Meter 1281
Posts: 2,699
Join Date: Dec 2011
Location: Iloilo City

 
DONATE TO ME
hboots won't work if it fails the assertion of partition tables. A single partition missing or at the very least an incorrect block size on a specific partition. I already worked on this when I ported the engineering hboot of HTC Sensation to Mytouch 4g slide and it took me weeks just reverse engineering the block sizes.

And yeah... The issue I had to solve was only an mismatched block size of the cache partition. Now I don't know how hard it is reverse engineeering it by snipping a single partition and mapping all the partitions above mmcblk0p33 and up. Plus I'm not even sure about the block sizes.

It would be easier if we could at least get the eng hboot of those htc one which was distributed before release.


And ohh messing with it without a jtag box is like walking in a rope crossing a 100meter building lol!
 
kozmikkick
Old
#10  
Senior Member - OP
Thanks Meter 1214
Posts: 1,276
Join Date: Nov 2010
Location: Seattle, WA
Quote:
Originally Posted by Riyal View Post
hboots won't work if it fails the assertion of partition tables. A single partition missing or at the very least an incorrect block size on a specific partition. I already worked on this when I ported the engineering hboot of HTC Sensation to Mytouch 4g slide and it took me weeks just reverse engineering the block sizes.

And yeah... The issue I had to solve was only an mismatched block size of the cache partition. Now I don't know how hard it is reverse engineeering it by snipping a single partition and mapping all the partitions about mmcblk0p33 and up. Plus I'm not even sure about the block sizes.

It would be easier if we could at least get the eng hboot of those htc one which was distributed before release.


And ohh messing with it without a jtag box is like walking in a rope crossing a 100meter building lol!
Indeed. I've dug into it a bit. But theres no way I'll flash a modified hboot lol. Quick way to brick for sure!

It did boot once into the off. Not sure how but it did finish loading. Slow as help. I hard booted back into fastboot and reverted hboots.

Sent from my HTC One using xda premium

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes