Skip to content

Commit 2caadb3

Browse files
authored
Merge pull request #80 from vivpuar/kaanapali
platforms: add machine specific partitions.conf for kaanapali-mtp board
2 parents 392ba8e + 6834393 commit 2caadb3

3 files changed

Lines changed: 216 additions & 0 deletions

File tree

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
<?xml version="1.0" ?>
2+
<!--
3+
========================================================================
4+
contents.in
5+
6+
General Description
7+
Contains information about component builds for this target.
8+
It will clone as contents.xml during build compilation process.
9+
10+
Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
11+
SPDX-License-Identifier: BSD-3-Clause
12+
13+
========================================================================
14+
-->
15+
16+
<contents>
17+
<product_flavors cmm_pf_var="PRODUCT_FLAVORS">
18+
<pf>
19+
<name>default</name>
20+
<component>
21+
<name>common</name>
22+
<flavor>default</flavor>
23+
</component>
24+
<component>
25+
<name>apps</name>
26+
<flavor>default</flavor>
27+
</component>
28+
</pf>
29+
</product_flavors>
30+
<product_info>
31+
<product_name>Kaanapali.LE.0.0</product_name>
32+
<chipid flavor="default" storage_type="ufs" flash_phase="1">KAANAPALI</chipid>
33+
<additional_chipid>KAANAPALI</additional_chipid>
34+
<meta_type>FULL_STACK</meta_type>
35+
<build_type>K2L</build_type>
36+
</product_info>
37+
<builds_flat>
38+
<build>
39+
<name>apps</name>
40+
<role>apps</role>
41+
<chipset>KAANAPALI</chipset>
42+
<windows_root_path>.\</windows_root_path>
43+
<linux_root_path>./</linux_root_path>
44+
<image_dir>apps_proc</image_dir>
45+
</build>
46+
<build>
47+
<name>common</name>
48+
<role>common</role>
49+
<chipset>KAANAPALI</chipset>
50+
<windows_root_path>.\</windows_root_path>
51+
<linux_root_path>./</linux_root_path>
52+
<image_dir>common</image_dir>
53+
<device_programmer>
54+
<file_name>qsahara_device_programmer.xml</file_name>
55+
<file_path>.</file_path>
56+
</device_programmer>
57+
<download_file>
58+
<fastboot_complete>{partition_name}</fastboot_complete>
59+
<file_name>{image_name}</file_name>
60+
<file_path>.</file_path>
61+
</download_file>
62+
<partition_file>
63+
<storage_type>{storage_type}</storage_type>
64+
<file_name>{partition_file_name}</file_name>
65+
<file_path flavor="default">.</file_path>
66+
</partition_file>
67+
<partition_patch_file>
68+
<storage_type>{storage_type}</storage_type>
69+
<file_name>{partition_patch_file_name}</file_name>
70+
<file_path flavor="default">.</file_path>
71+
</partition_patch_file>
72+
</build>
73+
</builds_flat>
74+
</contents>
Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
# Copyright (c) 2025 Qualcomm Innovation Center, Inc. All rights reserved.
2+
# SPDX-License-Identifier: BSD-3-Clause-Clear
3+
4+
# select disk type emmc | nand | ufs Mandatory
5+
# disk size in bytes Mandatory
6+
# options if not explicitly provid
7+
--disk --type=ufs --size=137438953472 --write-protect-boundary=0 --sector-size-in-bytes=4096 --grow-last-partition
8+
9+
# per partition entry
10+
# mandatory options:
11+
# --lun (mandatory for UFS, emmc no need this)
12+
# --name
13+
# --size in bytes
14+
# --type-guid
15+
# optional options: (defaults used if not provided)
16+
# --attributes 1000000000000004
17+
# --filename ""
18+
# --readonly true
19+
# --sparse false
20+
21+
#This is LUN 0 - HLOS LUN
22+
--partition --lun=0 --name=efi --size=524288KB --type-guid=C12A7328-F81F-11D2-BA4B-00A0C93EC93B --filename=efi.bin
23+
--partition --lun=0 --name=rootfs --size=23099392KB --type-guid=B921B045-1DF0-41C3-AF44-4C6F280D3FAE --filename=rootfs.img
24+
25+
#This is LUN 1 - Boot LUN A
26+
--partition --lun=1 --name=tme_config_a --size=128KB --type-guid=A50BF003-B224-4DD8-881A-2FCC64274267 --filename=tme_config.elf
27+
--partition --lun=1 --name=tme_fw_a --size=1024KB --type-guid=B8DF5B14-9304-442C-AAA3-10CFB51B38CE --filename=signed_firmware_soc_view.elf
28+
--partition --lun=1 --name=tme_seq_patch_a --size=8KB --type-guid=9542DF23-692D-4505-A2AD-EDE82AD0B2C2 --filename=sequencer_ram.elf
29+
--partition --lun=1 --name=xbl_a --size=3584KB --type-guid=DEA0BA2C-CBDD-4805-B4F9-F428251C3E98 --filename=xbl_sc.elf
30+
--partition --lun=1 --name=xbl_config_a --size=460KB --type-guid=5A325AE4-4276-B66D-0ADD-3494DF27706A --filename=xbl_config.elf
31+
--partition --lun=1 --name=xbl_ac_config_a --size=128KB --type-guid=AB3C2889-7AFC-4DB3-8C3F-B31829E769FC --filename=xbl_ac_config.mbn
32+
--partition --lun=1 --name=last_parti --size=0KB --type-guid=00000000-0000-0000-0000-000000000000
33+
34+
#This is LUN 2 - Boot LUN B
35+
--partition --lun=2 --name=tme_config_b --size=128KB --type-guid=A50BF003-B224-4DD8-881A-2FCC64274267 --filename=tme_config.elf
36+
--partition --lun=2 --name=tme_fw_b --size=1024KB --type-guid=B8DF5B14-9304-442C-AAA3-10CFB51B38CE --filename=signed_firmware_soc_view.elf
37+
--partition --lun=2 --name=tme_seq_patch_b --size=8KB --type-guid=9542DF23-692D-4505-A2AD-EDE82AD0B2C2 --filename=sequencer_ram.elf
38+
--partition --lun=2 --name=xbl_b --size=3584KB --type-guid=DEA0BA2C-CBDD-4805-B4F9-F428251C3E98 --filename=xbl_sc.elf
39+
--partition --lun=2 --name=xbl_config_b --size=460KB --type-guid=5A325AE4-4276-B66D-0ADD-3494DF27706A --filename=xbl_config.elf
40+
--partition --lun=2 --name=xbl_ac_config_b --size=128KB --type-guid=AB3C2889-7AFC-4DB3-8C3F-B31829E769FC --filename=xbl_ac_config.mbn
41+
--partition --lun=2 --name=last_parti --size=0KB --type-guid=00000000-0000-0000-0000-000000000000
42+
43+
#This is LUN 3 - OTP LUN
44+
#QCOM development requirement: Ensure all partitions in LUN3 is a multiple of 128k
45+
#Linux Android customers can ignore this requirement
46+
--partition --lun=3 --name=ALIGN_TO_128K_1 --size=104KB --type-guid=FDE1604B-D68B-4BD4-973D-962AE7A1ED88
47+
--partition --lun=3 --name=cdt --size=128KB --type-guid=A19F205F-CCD8-4B6D-8F1E-2D9BC24CFFB1 --filename=cdt.bin
48+
--partition --lun=3 --name=ddr_a --size=1024KB --type-guid=20A0C19C-286A-42FA-9CE7-F64C3226A794
49+
--partition --lun=3 --name=ddr_b --size=1024KB --type-guid=325DEF02-1305-44A3-AA8D-AC82FEBE220E
50+
--partition --lun=3 --name=last_parti --size=0KB --type-guid=00000000-0000-0000-0000-000000000000
51+
52+
#This is LUN 4 - Protected Read-only LUN
53+
# Partition's that are expected to be OTA upgradable require a A and B version.
54+
# If the partition you are adding is not expected to be OTA upgradable please add it after the 'B' partition list.
55+
# These are the 'A' partition's needed for the A/B boot/ota update feature.
56+
# If you add something to this section remember to add it to B as well
57+
--partition --lun=4 --name=aop_a --size=512KB --type-guid=D69E90A5-4CAB-0071-F6DF-AB977F141A7F --filename=aop.mbn
58+
--partition --lun=4 --name=aop_config_a --size=512KB --type-guid=3D12F234-C882-4B46-A20C-17D52C8FC03D --filename=aop_devcfg.mbn
59+
--partition --lun=4 --name=apdp_a --size=256KB --type-guid=E6E98DA2-E22A-4D12-AB33-169E7DEAA507 --filename=zeros_1sector.bin
60+
--partition --lun=4 --name=cpucp_a --size=1024KB --type-guid=1E8615BD-6D8C-41AD-B3EA-50E8BF40E43F --filename=cpucp.elf
61+
--partition --lun=4 --name=cpucp_dtb_a --size=64KB --type-guid=6C6018BC-4FBE-40C5-B148-4BCB1DB23748 --filename=cpucp_dtbs.elf
62+
--partition --lun=4 --name=devcfg_a --size=128KB --type-guid=F65D4B16-343D-4E25-AAFC-BE99B6556A6D --filename=devcfg_rfcomm.mbn
63+
--partition --lun=4 --name=dtb_a --size=65536KB --type-guid=2A1A52FC-AA0B-401C-A808-5EA0F91068F8 --filename=dtb.bin
64+
--partition --lun=4 --name=hyp_a --size=8192KB --type-guid=E1A6A689-0C8D-4CC6-B4E8-55A4320FBD8A --filename=hypvm.mbn
65+
--partition --lun=4 --name=hyp_ac_config_a --size=256KB --type-guid=05E0CA06-3F20-49C4-8B82-AC560268F2AE --filename=hyp_ac_config.mbn
66+
--partition --lun=4 --name=imagefv_a --size=2048KB --type-guid=17911177-C9E6-4372-933C-804B678E666F --filename=imagefv.elf
67+
--partition --lun=4 --name=multiimgqti_a --size=32KB --type-guid=846C6F05-EB46-4C0A-A1A3-3648EF3F9D0E --filename=multi_image_qti.mbn
68+
--partition --lun=4 --name=multiimgoem_a --size=32KB --type-guid=E126A436-757E-42D0-8D19-0F362F7A62B8 --filename=multi_image.mbn
69+
--partition --lun=4 --name=pdp_a --size=512KB --type-guid=4D65EF4C-6B68-4563-80B5-2B079A9E649B --filename=pdp.elf
70+
--partition --lun=4 --name=pdp_cdb_a --size=128KB --type-guid=39F567C2-CBAA-4378-A88A-F1912512CE10 --filename=pdp_cdb.elf
71+
--partition --lun=4 --name=qupfw_a --size=80KB --type-guid=21d1219f-2ed1-4ab4-930a-41a16ae75f7f --filename=qupv3fw.elf
72+
--partition --lun=4 --name=shrm_a --size=256KB --type-guid=CB74CA22-2F0D-4B82-A1D6-C4213F348D73 --filename=shrm.elf
73+
--partition --lun=4 --name=soccp_a --size=8192KB --type-guid=E654E00B-F88A-452A-BB07-3E5F6FF94927 --filename=soccp.bin
74+
--partition --lun=4 --name=soccp_dcd_a --size=24KB --type-guid=D67CC91F-B88A-43FA-9B3A-12EF5A1892DC --filename=dcd.mbn
75+
--partition --lun=4 --name=soccp_debug_a --size=512KB --type-guid=95825EE7-01DD-4A7C-A9EE-8C37B997FEC4 --filename=sdi.mbn
76+
--partition --lun=4 --name=tz_a --size=8192KB --type-guid=A053AA7F-40B8-4B1C-BA08-2F68AC71A4F4 --filename=tz.mbn
77+
--partition --lun=4 --name=tz_ac_config_a --size=256KB --type-guid=7437F5B5-215F-4E08-927A-F49f53CC1F5D --filename=tz_ac_config.mbn
78+
--partition --lun=4 --name=tz_qti_config_a --size=200KB --type-guid=71AF1E14-AE35-4184-8EA2-7809235BF8D7 --filename=tz_qti_config.mbn
79+
--partition --lun=4 --name=uefi_a --size=5120KB --type-guid=400FFDCD-22E0-47E7-9A23-F16ED9382388 --filename=uefi.elf
80+
--partition --lun=4 --name=uefi_dtb_a --size=2048KB --type-guid=C84D3B5E-EF34-4FA4-8118-30EAE18D3FA6 --filename=uefi_dtbs.elf
81+
--partition --lun=4 --name=uefisecapp_a --size=2048KB --type-guid=BE8A7E08-1B7A-4CAE-993A-D5B7FB55B3C2 --filename=uefi_sec.mbn
82+
--partition --lun=4 --name=xbl_ramdump_a --size=2048KB --type-guid=0382F197-E41F-4E84-B18B-0B564AEAD875 --filename=XblRamdump.elf
83+
84+
#These are the 'B' partition's needed for the A/B boot/ota update feature. A and B partitions must have differrent GUID's.
85+
#For convinience sake we keep all the B partitions with the same GUID
86+
--partition --lun=4 --name=aop_b --size=512KB --type-guid=77036CD4-03D5-42BB-8ED1-37E5A88BAA34 --filename=aop.mbn
87+
--partition --lun=4 --name=aop_config_b --size=512KB --type-guid=77036CD4-03D5-42BB-8ED1-37E5A88BAA34 --filename=aop_devcfg.mbn
88+
--partition --lun=4 --name=apdp_b --size=256KB --type-guid=110F198D-8174-4193-9AF1-5DA94CDC59C9 --filename=zeros_1sector.bin
89+
--partition --lun=4 --name=cpucp_b --size=1024KB --type-guid=77036CD4-03D5-42BB-8ED1-37E5A88BAA34 --filename=cpucp.elf
90+
--partition --lun=4 --name=cpucp_dtb_b --size=64KB --type-guid=57213A2B-39DE-4184-97DE-645D37913E4E --filename=cpucp_dtbs.elf
91+
--partition --lun=4 --name=devcfg_b --size=128KB --type-guid=77036CD4-03D5-42BB-8ED1-37E5A88BAA34 --filename=devcfg_rfcomm.mbn
92+
--partition --lun=4 --name=dtb_b --size=65536KB --type-guid=A166F11A-2B39-4FAA-B7E7-F8AA080D0587 --filename=dtb.bin
93+
--partition --lun=4 --name=hyp_b --size=8192KB --type-guid=77036CD4-03D5-42BB-8ED1-37E5A88BAA34 --filename=hypvm.mbn
94+
--partition --lun=4 --name=hyp_ac_config_b --size=256KB --type-guid=05E0CA06-3F20-49C4-8B82-AC560268F2AE --filename=hyp_ac_config.mbn
95+
--partition --lun=4 --name=imagefv_b --size=2048KB --type-guid=77036CD4-03D5-42BB-8ED1-37E5A88BAA34 --filename=imagefv.elf
96+
--partition --lun=4 --name=multiimgqti_b --size=32KB --type-guid=D30C8B21-DDD9-45B6-8DE0-3165D34395C9 --filename=multi_image_qti.mbn
97+
--partition --lun=4 --name=multiimgoem_b --size=32KB --type-guid=3E3E3ECD-C512-4F95-9144-6063826A8970 --filename=multi_image.mbn
98+
--partition --lun=4 --name=pdp_b --size=512KB --type-guid=23BC2066-6DF0-4869-B84D-84B6247E3C53 --filename=pdp.elf
99+
--partition --lun=4 --name=pdp_cdb_b --size=128KB --type-guid=C49242AA-4C04-43C5-9E81-817AF9C23AD5 --filename=pdp_cdb.elf
100+
--partition --lun=4 --name=qupfw_b --size=80KB --type-guid=77036CD4-03D5-42BB-8ED1-37E5A88BAA34 --filename=qupv3fw.elf
101+
--partition --lun=4 --name=shrm_b --size=256KB --type-guid=77036CD4-03D5-42BB-8ED1-37E5A88BAA34 --filename=shrm.elf
102+
--partition --lun=4 --name=soccp_b --size=8192KB --type-guid=E654E00B-F88A-452A-BB07-3E5F6FF94927 --filename=soccp.bin
103+
--partition --lun=4 --name=soccp_dcd_b --size=24KB --type-guid=BF795A2C-F2EA-4110-85EA-95CC43FE1532 --filename=dcd.mbn
104+
--partition --lun=4 --name=soccp_debug_b --size=512KB --type-guid=88CE4B5F-616E-4549-B875-565DAD984951 --filename=sdi.mbn
105+
--partition --lun=4 --name=tz_b --size=8192KB --type-guid=77036CD4-03D5-42BB-8ED1-37E5A88BAA34 --filename=tz.mbn
106+
--partition --lun=4 --name=tz_ac_config_b --size=256KB --type-guid=7437F5B5-215F-4E08-927A-F49f53CC1F5D --filename=tz_ac_config.mbn
107+
--partition --lun=4 --name=tz_qti_config_b --size=200KB --type-guid=71AF1E14-AE35-4184-8EA2-7809235BF8D7 --filename=tz_qti_config.mbn
108+
--partition --lun=4 --name=uefi_b --size=5120KB --type-guid=9F234B5B-0EFB-4313-8E4C-0AF1F605536B --filename=uefi.elf
109+
--partition --lun=4 --name=uefi_dtb_b --size=2048KB --type-guid=5F7D760A-3EF5-4AA5-B915-69A4ECAAE662 --filename=uefi_dtbs.elf
110+
--partition --lun=4 --name=uefisecapp_b --size=2048KB --type-guid=77036CD4-03D5-42BB-8ED1-37E5A88BAA34 --filename=uefi_sec.mbn
111+
--partition --lun=4 --name=xbl_ramdump_b --size=2048KB --type-guid=C3E58B09-ABCB-42EA-9F0C-3FA453FA892E --filename=XblRamdump.elf
112+
113+
#These are non A/B partitions. In a A/B build these would not be updated via a OTA update
114+
--partition --lun=4 --name=devinfo --size=4KB --type-guid=65ADDCF4-0C5C-4D9A-AC2D-D90B5CBFCD03
115+
--partition --lun=4 --name=questdatafv --size=16384KB --type-guid=7f86d79a-7c83-4fc8-bef2-7d0a7a97af23
116+
--partition --lun=4 --name=qmcs --size=30720KB --type-guid=358740b1-34bd-4e4c-9656-3454f0a8fdd9
117+
--partition --lun=4 --name=toolsfv --size=1024KB --type-guid=97745ABA-135A-44C3-9ADC-05616173C24C --filename=tools.fv
118+
--partition --lun=4 --name=logfs --size=8192KB --type-guid=BC0330EB-3410-4951-A617-03898DBE3372
119+
--partition --lun=4 --name=uefivarstore --size=512KB --type-guid=165BD6BC-9250-4AC8-95A7-A93F4A440066
120+
--partition --lun=4 --name=secdata --size=25KB --type-guid=76cfc7ef-039d-4e2c-b81e-4dd8c2cb2a93
121+
--partition --lun=4 --name=quantumcontentfv --size=1024KB --type-guid=e12d830b-7f62-4f0b-b48a-8178c5bf3ac1
122+
--partition --lun=4 --name=spunvm --size=32768KB --type-guid=e42e2b4c-33b0-429b-b1ef-d341c547022c
123+
--partition --lun=4 --name=xbl_sc_test_mode --size=64KB --type-guid=91FDD2B9-8ED3-4176-BC42-260F2E34D04A
124+
--partition --lun=4 --name=xbl_sc_logs --size=128KB --type-guid=F7EECB66-781A-439A-8955-70E12ED4A7A0
125+
--partition --lun=4 --name=dpm --size=8KB --type-guid=A7A4F43A-888F-4913-8C2B-E1BC64BCE08F
126+
--partition --lun=4 --name=last_parti --size=0KB --type-guid=00000000-0000-0000-0000-000000000000
127+
128+
#This is LUN 5 - Protected Read-write LUN
129+
#QCOM development requirement: Ensure all partitions in LUN5 is a multiple of 128k.
130+
--partition --lun=5 --name=ALIGN_TO_128K_2 --size=104KB --type-guid=6891a3b7-0ccc-4705-bb53-2673cac193bd
131+
--partition --lun=5 --name=persist --size=30720KB --type-guid=6C95E238-E343-4BA8-B489-8681ED22AD0B
132+
--partition --lun=5 --name=last_parti --size=0KB --type-guid=00000000-0000-0000-0000-000000000000

tests/integration/check-missing-files

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ for xml in "$@"; do
5858
fs_image_linux.tar.gz.mbn.img) ;;
5959
hyp.mbn) ;;
6060
hypvm.mbn) ;;
61+
hyp_ac_config.mbn) ;;
6162
imagefv.elf) ;;
6263
keymaster.mbn) ;;
6364
keymaster64.mbn) ;;
@@ -71,6 +72,7 @@ for xml in "$@"; do
7172
pmic.elf) ;;
7273
prog_firehose_ddr.elf) ;;
7374
prog_firehose_lite.elf) ;;
75+
qsahara_device_programmer.xml) ;;
7476
qupv3fw.elf) ;;
7577
rootfs.img) ;;
7678
rpm.mbn) ;;
@@ -83,21 +85,29 @@ for xml in "$@"; do
8385
sec.dat) ;;
8486
secs2d.mbn) ;;
8587
sed.dat) ;;
88+
sequencer_ram.elf) ;;
8689
shrm.elf) ;;
90+
signed_firmware_soc_view.elf) ;;
91+
soccp.bin) ;;
8792
storsec.mbn) ;;
93+
tme_config.elf) ;;
8894
tools.fv) ;;
8995
tz.mbn) ;;
9096
tzapps.bin) ;;
97+
tz_ac_config.mbn) ;;
98+
tz_qti_config.mbn) ;;
9199
uefi.elf) ;;
92100
uefi_dtbs.elf) ;;
93101
uefi_dtbs.xz) ;;
94102
uefi_sec.mbn) ;;
95103
userdata.img) ;;
96104
xbl.elf) ;;
105+
xbl_ac_config.mbn) ;;
97106
xbl_config.elf) ;;
98107
xbl_feature_config.elf) ;;
99108
xbl_s.melf) ;;
100109
xbl_s_devprg_ns.melf) ;;
110+
xbl_sc.elf) ;;
101111
*)
102112
echo "Unknown ${file} referenced in ${xml}" >&2
103113
errors=1

0 commit comments

Comments
 (0)