Images in D16010D_00.kdz ======================== # all of these have gaps inbetween (of significant size) (even the system_* images) # so i suspect that the target partitions ought to be zero'ed before writing # obviously don't zero out the gaps where the device has filesystems which don't # ship with the kdz... offset (B) name size (B) ================================================ 0 PrimaryGPT_0.bin 4.067 4.194.304 modem_8192.bin 17.173.918 71.303.168 sbl1_139264.bin 183.530 72.351.744 rpm_141312.bin 84.598 72.876.032 tz_142336.bin 149.039 73.400.320 sdi_143360.bin 9.958 73.924.608 aboot_144384.bin 264.687 76.021.760 rpmb_148480.bin 84.598 76.546.048 tzb_149504.bin 149.039 77.070.336 abootb_150528.bin 264.687 (device has pad, modemst1, modemst2, misc in this gap) 104.857.600 persist_204800.bin 23.287 138.412.032 laf_270336.bin 14.664.695 163.577.856 boot_319488.bin 8.675.271 186.646.528 recovery_364544.bin 9.246.279 (device has fsg, fsc, ssd, DDR, encrypt, rct, drm, sns in this gap) 243.269.632 factory_475136.bin 10.765.883 (device has fota in this gap) 297.795.584 sbl1b_581632.bin 183.530 301.989.888 cust_589824.bin 10.511.663 (device has eksst in this gap) 360.710.144 system_704512.bin 69.344.534 #these all belong together 497.356.800 system_971400.bin 97.550.539 #these all belong together 631.177.216 system_1232768.bin 81.540.163 #these all belong together 765.792.256 system_1495688.bin 72.955.573 #these all belong together 899.612.672 system_1757056.bin 65.383.387 #these all belong together 1.034.227.712 system_2019976.bin 84.745.839 #these all belong together 1.168.048.128 system_2281344.bin 79.615.866 #these all belong together 1.302.663.168 system_2544264.bin 73.047.323 #these all belong together 1.436.483.584 system_2805632.bin 65.305.036 #these all belong together 1.571.098.624 system_3068552.bin 80.509.269 #these all belong together 1.704.919.040 system_3329920.bin 14.778.610 #these all belong together 1.837.105.152 system_3588096.bin 2.323 #these all belong together (device has cache, userdata, grow in this gap) 3.908.567.040 BackupGPT_7633920.bin 4.052 Situation on actual device (D160): These numbers were obtained by actually locating the mmcblk0p* images inside mmcblk0 Offsets of all-zero partitions were identified by temporarily writing a marker to them, then searching mmcblk0 for that marker. TODO: check these numbers vs what the GPT entries say! offset (Bytes) name size (B) comment ================================================================================== 0 512 # GPT protective MBR 512 512 # GPT primary header 1.024 16.384 # GPT partition array (34 entr.) 17.408 4.176.896 # unallocated, all-zero 4.194.304 01_modem 67.108.864 # DATA: starts with an MBR !? 71.303.168 02_sbl1 1.048.576 72.351.744 03_rpm 524.288 # DATA: ELF exec 72.876.032 04_tz 524.288 # DATA: ELF exec 73.400.320 05_sdi 524.288 73.924.608 06_aboot 2.097.152 76.021.760 07_rpmb 524.288 # DATA: ELF exec 76.546.048 08_tzb 524.288 # DATA: ELF exec 77.070.336 09_abootb 2.097.152 79.167.488 10_pad 2.097.152 # all-zero, not in KDZ 81.264.640 11_modemst1 3.145.728 # not in KDZ 84.410.368 12_modemst2 3.145.728 # not in KDZ 87.556.096 13_misc 16.777.216 # not in KDZ 104.333.312 524.288 # unallocated 104.857.600 14_persist 33.554.432 # DATA: ext4 138.412.032 15_laf 23.068.672 # DATA: bootimg 161.480.704 2.097.152 # unallocated 163.577.856 16_boot 23.068.672 # DATA: bootimg 186.646.528 17_recovery 23.068.672 # DATA: bootimg 209.715.200 18_fsg 3.145.728 # all-zero, not in KDZ 212.860.928 1.048.576 # unallocated 213.909.504 19_fsc 524.288 # all-zero, not in KDZ 214.433.792 20_ssd 524.288 # all-zero, not in KDZ 214.958.080 3.145.728 # unallocated 218.103.808 21_DDR 524.288 # all-zero, not in KDZ 218.628.096 3.670.016 # unallocated 222.298.112 22_encrypt 524.288 # all-zero, not in KDZ 222.822.400 23_rct 524.288 # not in KDZ 223.346.688 3.145.728 # unallocated 226.492.416 24_drm 8.388.608 # not in KDZ; DATA: ext4 234.881.024 25_sns 8.388.608 # not in KDZ; DATA: ext4 243.269.632 26_factory 20.971.520 # DATA: bootimg 264.241.152 27_fota 33.554.432 # all-zero, not in KDZ 297.795.584 28_sbl1b 1.048.576 298.844.160 3.145.728 # unallocated 301.989.888 29_cust 52.428.800 # DATA: ext4 354.418.688 2.097.152 # unallocated 356.515.840 30_eksst 524.288 # not in KDZ 357.040.128 3.670.016 # unallocated 360.710.144 31_system 1.553.465.344 1.914.175.488 32_cache 314.572.800 # not in KDZ; DATA: ext4 2.228.748.288 33_userdata 1.644.167.168 # not in KDZ; DATA: ext4 3.872.915.456 2.621.440 # unallocated 3.875.536.896 34_grow 33.537.536 # all-zero 3.909.074.432 16.384 # GPT backup partition array 3.909.090.816 512 # GPT backup header 3.909.091.328 [end of device]