summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Dechesne <nicolas.dechesne@linaro.org>2019-07-26 00:05:32 +0200
committerNicolas Dechesne <nicolas.dechesne@linaro.org>2019-07-26 00:09:25 +0200
commit61ac31f022a83111e0d2caa01ea359b43c72ed94 (patch)
tree2b15dd0514199374c19055eeec320017abb27abe
parent6ac6bb2b39c11ceb2d75441e0d6434433695b829 (diff)
downloaddb-boot-tools-61ac31f022a83111e0d2caa01ea359b43c72ed94.tar.gz
dragonboard410c: switch to partition.xml for android and aosp
Now that ptool is avaiable, let's switch the ptable definition to partition.xml instead of partitions.txt which is now only needed when running the SD installer, but we don't support installing android with the SD installer. Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
-rwxr-xr-xdragonboard410c/android/partition.xml48
-rw-r--r--dragonboard410c/android/partitions.txt31
-rwxr-xr-xdragonboard410c/aosp/partition.xml49
-rw-r--r--dragonboard410c/aosp/partitions.txt32
4 files changed, 97 insertions, 63 deletions
diff --git a/dragonboard410c/android/partition.xml b/dragonboard410c/android/partition.xml
new file mode 100755
index 0000000..e7ef012
--- /dev/null
+++ b/dragonboard410c/android/partition.xml
@@ -0,0 +1,48 @@
+<?xml version="1.0"?>
+<configuration>
+ <parser_instructions>
+ <!-- NOTE: entries here are used by the parser when generating output -->
+ <!-- NOTE: each filename must be on it's own line as in variable=value-->
+ WRITE_PROTECT_BOUNDARY_IN_KB = 65536
+ GROW_LAST_PARTITION_TO_FILL_DISK= true
+ </parser_instructions>
+
+ <!-- NOTE: "physical_partition" are listed in order and apply to devices such as eMMC cards that have (for example) 3 physical partitions -->
+ <!-- This is physical partition 0 -->
+ <physical_partition>
+ <!-- NOTE: Define information for each partition, which will be created in order listed here -->
+ <!-- NOTE: Place all "readonly=true" partitions side by side for optimum space usage -->
+ <!-- NOTE: If OPTIMIZE_READONLY_PARTITIONS=true, then partitions won't be in the order listed here -->
+ <!-- they will instead be placed side by side at the beginning of the disk -->
+ <partition label="modem" size_in_kb="65536" type="EBD0A0A2-B9E5-4433-87C0-68B6B72699C7" bootable="false" readonly="true" filename="NON-HLOS.bin"/>
+ <partition label="fsc" size_in_kb="1" type="57B90A16-22C9-E33B-8F5D-0E81686A68CB" bootable="false" readonly="false" filename=""/>
+ <partition label="ssd" size_in_kb="8" type="2C86E742-745E-4FDD-BFD8-B6A7AC638772" bootable="false" readonly="false" filename=""/>
+ <partition label="sbl1" size_in_kb="512" type="DEA0BA2C-CBDD-4805-B4F9-F428251C3E98" bootable="false" readonly="false" filename="sbl1.mbn"/>
+ <partition label="sbl1bak" size_in_kb="512" type="EBD0A0A2-B9E5-4433-87C0-68B6B72699C7" bootable="false" readonly="false" filename="sbl1.mbn"/>
+ <partition label="rpm" size_in_kb="512" type="098DF793-D712-413D-9D4E-89D711772228" bootable="false" readonly="false" filename="rpm.mbn"/>
+ <partition label="rpmbak" size_in_kb="512" type="EBD0A0A2-B9E5-4433-87C0-68B6B72699C7" bootable="false" readonly="false" filename="rpm.mbn"/>
+ <partition label="tz" size_in_kb="512" type="A053AA7F-40B8-4B1C-BA08-2F68AC71A4F4" bootable="false" readonly="false" filename="tz.mbn"/>
+ <partition label="tzbak" size_in_kb="512" type="EBD0A0A2-B9E5-4433-87C0-68B6B72699C7" bootable="false" readonly="false" filename="tz.mbn"/>
+ <partition label="hyp" size_in_kb="512" type="E1A6A689-0C8D-4CC6-B4E8-55A4320FBD8A" bootable="false" readonly="false" filename="hyp.mbn"/>
+ <partition label="hypbak" size_in_kb="512" type="EBD0A0A2-B9E5-4433-87C0-68B6B72699C7" bootable="false" readonly="false" filename="hyp.mbn"/>
+ <partition label="modemst1" size_in_kb="1536" type="EBBEADAF-22C9-E33B-8F5D-0E81686A68CB" bootable="false" readonly="false" filename=""/>
+ <partition label="modemst2" size_in_kb="1536" type="0A288B1F-22C9-E33B-8F5D-0E81686A68CB" bootable="false" readonly="false" filename=""/>
+ <partition label="DDR" size_in_kb="32" type="20A0C19C-286A-42FA-9CE7-F64C3226A794" bootable="false" readonly="true"/>
+ <partition label="fsg" size_in_kb="1536" type="638FF8E2-22C9-E33B-8F5D-0E81686A68CB" bootable="false" readonly="true" filename=""/>
+ <partition label="sec" size_in_kb="16" type="303E6AC3-AF15-4C54-9E9B-D9A8FBECF401" bootable="false" readonly="true" filename="sec.dat"/>
+ <partition label="aboot" size_in_kb="1024" type="400FFDCD-22E0-47E7-9A23-F16ED9382388" bootable="false" readonly="true" filename="emmc_appsboot.mbn"/>
+ <partition label="abootbak" size_in_kb="1024" type="EBD0A0A2-B9E5-4433-87C0-68B6B72699C7" bootable="false" readonly="true" filename="emmc_appsboot.mbn"/>
+ <partition label="boot" size_in_kb="32768" type="20117F86-E985-4357-B9EE-374BC1D8487D" bootable="false" readonly="true" filename="boot.img"/>
+ <partition label="recovery" size_in_kb="32768" type="9D72D4E4-9958-42DA-AC26-BEA7A90B0434" bootable="false" readonly="true" filename="recovery.img"/>
+ <partition label="devinfo" size_in_kb="1024" type="1B81E7E6-F50D-419B-A739-2AEEF8DA3335" bootable="false" readonly="true" filename="" sparse="true"/>
+ <partition label="system" size_in_kb="1258292" type="97D7B011-54DA-4835-B3C4-917AD6E73D74" bootable="false" readonly="true" filename="system.img" sparse="true"/>
+ <partition label="cache" size_in_kb="262144" type="5594C694-C871-4B5F-90B1-690A6F68E0F7" bootable="false" readonly="false" filename="cache.img" sparse="true"/>
+ <partition label="persist" size_in_kb="32768" type="6C95E238-E343-4BA8-B489-8681ED22AD0B" bootable="false" readonly="false" filename="persist.img" sparse="true"/>
+ <partition label="misc" size_in_kb="1024" type="82ACC91F-357C-4A68-9C8F-689E1B1A23A1" bootable="false" readonly="false" filename="" />
+ <partition label="keystore" size_in_kb="512" type="DE7D4029-0F5B-41C8-AE7E-F6C023A02B33" bootable="false" readonly="false" filename="" />
+ <partition label="config" size_in_kb="512" type="91B72D4D-71E0-4CBF-9B8E-236381CFF17A" bootable="false" readonly="false" filename="" />
+ <partition label="oem" size_in_kb="65536" type="7db6ac55-ecb5-4e02-80da-4d335b973332" bootable="false" readonly="false" filename="" />
+ <partition label="userdata" size_in_kb="1817040" type="1B81E7E6-F50D-419B-A739-2AEEF8DA3335" bootable="false" readonly="false" filename="userdata.img" sparse="true"/>
+ </physical_partition>
+
+ </configuration>
diff --git a/dragonboard410c/android/partitions.txt b/dragonboard410c/android/partitions.txt
deleted file mode 100644
index 3b67ff7..0000000
--- a/dragonboard410c/android/partitions.txt
+++ /dev/null
@@ -1,31 +0,0 @@
-#name,size,align,type,format,file
-,65536,,,
-modem,65536,,EBD0A0A2-B9E5-4433-87C0-68B6B72699C7,,NON-HLOS.bin
-fsc,1,,57B90A16-22C9-E33B-8F5D-0E81686A68CB,
-ssd,8,,2C86E742-745E-4FDD-BFD8-B6A7AC638772,
-sbl1,512,,DEA0BA2C-CBDD-4805-B4F9-F428251C3E98,,sbl1.mbn
-sbl1bak,512,,EBD0A0A2-B9E5-4433-87C0-68B6B72699C7,,sbl1.mbn
-rpm,512,,098DF793-D712-413D-9D4E-89D711772228,,rpm.mbn
-rpmbak,512,,EBD0A0A2-B9E5-4433-87C0-68B6B72699C7,,rpm.mbn
-tz,1024,,A053AA7F-40B8-4B1C-BA08-2F68AC71A4F4,,tz.mbn
-tzbak,1024,,EBD0A0A2-B9E5-4433-87C0-68B6B72699C7,,tz.mbn
-hyp,512,,E1A6A689-0C8D-4CC6-B4E8-55A4320FBD8A,,hyp.mbn
-hypbak,512,,EBD0A0A2-B9E5-4433-87C0-68B6B72699C7,,hyp.mbn
-modemst1,1536,,EBBEADAF-22C9-E33B-8F5D-0E81686A68CB,
-modemst2,1536,,0A288B1F-22C9-E33B-8F5D-0E81686A68CB,
-DDR,32,65536,20A0C19C-286A-42FA-9CE7-F64C3226A794,
-fsg,1536,,638FF8E2-22C9-E33B-8F5D-0E81686A68CB,
-sec,16,,303E6AC3-AF15-4C54-9E9B-D9A8FBECF401,
-aboot,1024,,400FFDCD-22E0-47E7-9A23-F16ED9382388,,emmc_appsboot.mbn
-abootbak,1024,,EBD0A0A2-B9E5-4433-87C0-68B6B72699C7,,emmc_appsboot.mbn
-boot,32768,,20117F86-E985-4357-B9EE-374BC1D8487D,,boot.img
-recovery,32768,,9D72D4E4-9958-42DA-AC26-BEA7A90B0434,,recovery.img
-devinfo,1024,,1B81E7E6-F50D-419B-A739-2AEEF8DA3335,
-system,1258292,,97D7B011-54DA-4835-B3C4-917AD6E73D74,fastboot,system.img
-cache,262144,65536,5594C694-C871-4B5F-90B1-690A6F68E0F7,fastboot,cache.img
-persist,32768,,6C95E238-E343-4BA8-B489-8681ED22AD0B,fastboot,persist.img
-misc,1024,,82ACC91F-357C-4A68-9C8F-689E1B1A23A1,
-keystore,512,,DE7D4029-0F5B-41C8-AE7E-F6C023A02B33,
-config,512,,91B72D4D-71E0-4CBF-9B8E-236381CFF17A,
-oem,65536,,7db6ac55-ecb5-4e02-80da-4d335b973332,
-userdata,0,,1B81E7E6-F50D-419B-A739-2AEEF8DA3335,fastboot,userdata.img
diff --git a/dragonboard410c/aosp/partition.xml b/dragonboard410c/aosp/partition.xml
new file mode 100755
index 0000000..5d56a18
--- /dev/null
+++ b/dragonboard410c/aosp/partition.xml
@@ -0,0 +1,49 @@
+<?xml version="1.0"?>
+<configuration>
+ <parser_instructions>
+ <!-- NOTE: entries here are used by the parser when generating output -->
+ <!-- NOTE: each filename must be on it's own line as in variable=value-->
+ WRITE_PROTECT_BOUNDARY_IN_KB = 65536
+ GROW_LAST_PARTITION_TO_FILL_DISK= true
+ </parser_instructions>
+
+ <!-- NOTE: "physical_partition" are listed in order and apply to devices such as eMMC cards that have (for example) 3 physical partitions -->
+ <!-- This is physical partition 0 -->
+ <physical_partition>
+ <!-- NOTE: Define information for each partition, which will be created in order listed here -->
+ <!-- NOTE: Place all "readonly=true" partitions side by side for optimum space usage -->
+ <!-- NOTE: If OPTIMIZE_READONLY_PARTITIONS=true, then partitions won't be in the order listed here -->
+ <!-- they will instead be placed side by side at the beginning of the disk -->
+ <partition label="modem" size_in_kb="65536" type="EBD0A0A2-B9E5-4433-87C0-68B6B72699C7" bootable="false" readonly="true" filename="NON-HLOS.bin"/>
+ <partition label="fsc" size_in_kb="1" type="57B90A16-22C9-E33B-8F5D-0E81686A68CB" bootable="false" readonly="false" filename=""/>
+ <partition label="ssd" size_in_kb="8" type="2C86E742-745E-4FDD-BFD8-B6A7AC638772" bootable="false" readonly="false" filename=""/>
+ <partition label="cdt" size_in_kb="2" type="A19F205F-CCD8-4B6D-8F1E-2D9BC24CFFB1" bootable="false" readonly="true" filename="sbc_1.0_8016.bin"/>
+ <partition label="sbl1" size_in_kb="512" type="DEA0BA2C-CBDD-4805-B4F9-F428251C3E98" bootable="false" readonly="false" filename="sbl1.mbn"/>
+ <partition label="sbl1bak" size_in_kb="512" type="EBD0A0A2-B9E5-4433-87C0-68B6B72699C7" bootable="false" readonly="false" filename="sbl1.mbn"/>
+ <partition label="rpm" size_in_kb="512" type="098DF793-D712-413D-9D4E-89D711772228" bootable="false" readonly="false" filename="rpm.mbn"/>
+ <partition label="rpmbak" size_in_kb="512" type="EBD0A0A2-B9E5-4433-87C0-68B6B72699C7" bootable="false" readonly="false" filename="rpm.mbn"/>
+ <partition label="tz" size_in_kb="512" type="A053AA7F-40B8-4B1C-BA08-2F68AC71A4F4" bootable="false" readonly="false" filename="tz.mbn"/>
+ <partition label="tzbak" size_in_kb="512" type="EBD0A0A2-B9E5-4433-87C0-68B6B72699C7" bootable="false" readonly="false" filename="tz.mbn"/>
+ <partition label="hyp" size_in_kb="512" type="E1A6A689-0C8D-4CC6-B4E8-55A4320FBD8A" bootable="false" readonly="false" filename="hyp.mbn"/>
+ <partition label="hypbak" size_in_kb="512" type="EBD0A0A2-B9E5-4433-87C0-68B6B72699C7" bootable="false" readonly="false" filename="hyp.mbn"/>
+ <partition label="modemst1" size_in_kb="1536" type="EBBEADAF-22C9-E33B-8F5D-0E81686A68CB" bootable="false" readonly="false" filename=""/>
+ <partition label="modemst2" size_in_kb="1536" type="0A288B1F-22C9-E33B-8F5D-0E81686A68CB" bootable="false" readonly="false" filename=""/>
+ <partition label="DDR" size_in_kb="32" type="20A0C19C-286A-42FA-9CE7-F64C3226A794" bootable="false" readonly="true"/>
+ <partition label="fsg" size_in_kb="1536" type="638FF8E2-22C9-E33B-8F5D-0E81686A68CB" bootable="false" readonly="true" filename=""/>
+ <partition label="sec" size_in_kb="16" type="303E6AC3-AF15-4C54-9E9B-D9A8FBECF401" bootable="false" readonly="true" filename="sec.dat"/>
+ <partition label="aboot" size_in_kb="1024" type="400FFDCD-22E0-47E7-9A23-F16ED9382388" bootable="false" readonly="true" filename="emmc_appsboot.mbn"/>
+ <partition label="abootbak" size_in_kb="1024" type="EBD0A0A2-B9E5-4433-87C0-68B6B72699C7" bootable="false" readonly="true" filename="emmc_appsboot.mbn"/>
+ <partition label="boot" size_in_kb="32768" type="20117F86-E985-4357-B9EE-374BC1D8487D" bootable="false" readonly="true" filename="boot.img"/>
+ <partition label="recovery" size_in_kb="32768" type="9D72D4E4-9958-42DA-AC26-BEA7A90B0434" bootable="false" readonly="true" filename="recovery.img"/>
+ <partition label="devinfo" size_in_kb="1024" type="1B81E7E6-F50D-419B-A739-2AEEF8DA3335" bootable="false" readonly="true" filename="" sparse="true"/>
+ <partition label="system" size_in_kb="1258292" type="97D7B011-54DA-4835-B3C4-917AD6E73D74" bootable="false" readonly="true" filename="system.img" sparse="true"/>
+ <partition label="cache" size_in_kb="262144" type="5594C694-C871-4B5F-90B1-690A6F68E0F7" bootable="false" readonly="false" filename="cache.img" sparse="true"/>
+ <partition label="persist" size_in_kb="32768" type="6C95E238-E343-4BA8-B489-8681ED22AD0B" bootable="false" readonly="false" filename="persist.img" sparse="true"/>
+ <partition label="misc" size_in_kb="1024" type="82ACC91F-357C-4A68-9C8F-689E1B1A23A1" bootable="false" readonly="false" filename="" />
+ <partition label="keystore" size_in_kb="512" type="DE7D4029-0F5B-41C8-AE7E-F6C023A02B33" bootable="false" readonly="false" filename="" />
+ <partition label="config" size_in_kb="512" type="91B72D4D-71E0-4CBF-9B8E-236381CFF17A" bootable="false" readonly="false" filename="" />
+ <partition label="oem" size_in_kb="65536" type="7db6ac55-ecb5-4e02-80da-4d335b973332" bootable="false" readonly="false" filename="" />
+ <partition label="userdata" size_in_kb="1817040" type="1B81E7E6-F50D-419B-A739-2AEEF8DA3335" bootable="false" readonly="false" filename="userdata.img" sparse="true"/>
+ </physical_partition>
+
+ </configuration>
diff --git a/dragonboard410c/aosp/partitions.txt b/dragonboard410c/aosp/partitions.txt
deleted file mode 100644
index f1f1db5..0000000
--- a/dragonboard410c/aosp/partitions.txt
+++ /dev/null
@@ -1,32 +0,0 @@
-#name,size,align,type,format,file
-,65536,,,
-modem,65536,,EBD0A0A2-B9E5-4433-87C0-68B6B72699C7,,NON-HLOS.bin
-fsc,1,,57B90A16-22C9-E33B-8F5D-0E81686A68CB,
-ssd,8,,2C86E742-745E-4FDD-BFD8-B6A7AC638772,
-cdt,2,,A19F205F-CCD8-4B6D-8F1E-2D9BC24CFFB1,,sbc_1.0_8016.bin
-sbl1,512,,DEA0BA2C-CBDD-4805-B4F9-F428251C3E98,,sbl1.mbn
-sbl1bak,512,,EBD0A0A2-B9E5-4433-87C0-68B6B72699C7,,sbl1.mbn
-rpm,512,,098DF793-D712-413D-9D4E-89D711772228,,rpm.mbn
-rpmbak,512,,EBD0A0A2-B9E5-4433-87C0-68B6B72699C7,,rpm.mbn
-tz,1024,,A053AA7F-40B8-4B1C-BA08-2F68AC71A4F4,,tz.mbn
-tzbak,1024,,EBD0A0A2-B9E5-4433-87C0-68B6B72699C7,,tz.mbn
-hyp,512,,E1A6A689-0C8D-4CC6-B4E8-55A4320FBD8A,,hyp.mbn
-hypbak,512,,EBD0A0A2-B9E5-4433-87C0-68B6B72699C7,,hyp.mbn
-modemst1,1536,,EBBEADAF-22C9-E33B-8F5D-0E81686A68CB,
-modemst2,1536,,0A288B1F-22C9-E33B-8F5D-0E81686A68CB,
-DDR,32,65536,20A0C19C-286A-42FA-9CE7-F64C3226A794,
-fsg,1536,,638FF8E2-22C9-E33B-8F5D-0E81686A68CB,
-sec,16,,303E6AC3-AF15-4C54-9E9B-D9A8FBECF401,
-aboot,1024,,400FFDCD-22E0-47E7-9A23-F16ED9382388,,emmc_appsboot.mbn
-abootbak,1024,,EBD0A0A2-B9E5-4433-87C0-68B6B72699C7,,emmc_appsboot.mbn
-boot,32768,,20117F86-E985-4357-B9EE-374BC1D8487D,,boot.img
-recovery,32768,,9D72D4E4-9958-42DA-AC26-BEA7A90B0434,,recovery.img
-devinfo,1024,,1B81E7E6-F50D-419B-A739-2AEEF8DA3335,
-system,1258292,,97D7B011-54DA-4835-B3C4-917AD6E73D74,fastboot,system.img
-cache,262144,65536,5594C694-C871-4B5F-90B1-690A6F68E0F7,fastboot,cache.img
-persist,32768,,6C95E238-E343-4BA8-B489-8681ED22AD0B,fastboot,persist.img
-misc,1024,,82ACC91F-357C-4A68-9C8F-689E1B1A23A1,
-keystore,512,,DE7D4029-0F5B-41C8-AE7E-F6C023A02B33,
-config,512,,91B72D4D-71E0-4CBF-9B8E-236381CFF17A,
-oem,65536,,7db6ac55-ecb5-4e02-80da-4d335b973332,
-userdata,0,,1B81E7E6-F50D-419B-A739-2AEEF8DA3335,fastboot,userdata.img