Skip to content

Commit 3870489

Browse files
committed
platforms: add machine specific partitions.conf for sm8750-mtp board
Add initial partition scheme, contents.xml template for sm8750-mtp board. Signed-off-by: Gangabhavani Yenugula <[email protected]>
1 parent abd0ffd commit 3870489

File tree

3 files changed

+213
-0
lines changed

3 files changed

+213
-0
lines changed
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
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>Pakala.LE.0.0</product_name>
32+
<chipid flavor="default" storage_type="ufs" flash_phase="1">PAKALA</chipid>
33+
<additional_chipid>SM8750</additional_chipid>
34+
<meta_type>SPF</meta_type>
35+
</product_info>
36+
<builds_flat>
37+
<build>
38+
<name>apps</name>
39+
<role>apps</role>
40+
<chipset>PAKALA</chipset>
41+
<windows_root_path>.\</windows_root_path>
42+
<linux_root_path>./</linux_root_path>
43+
<image_dir>apps_proc</image_dir>
44+
</build>
45+
<build>
46+
<name>common</name>
47+
<role>common</role>
48+
<chipset>PAKALA</chipset>
49+
<windows_root_path>.\</windows_root_path>
50+
<linux_root_path>./</linux_root_path>
51+
<image_dir>common</image_dir>
52+
<device_programmer>
53+
<file_name>xbl_s_devprg_ns.melf</file_name>
54+
<file_path>.</file_path>
55+
</device_programmer>
56+
<download_file>
57+
<fastboot_complete>{partition_name}</fastboot_complete>
58+
<file_name>{image_name}</file_name>
59+
<file_path>.</file_path>
60+
</download_file>
61+
<partition_file>
62+
<storage_type>{storage_type}</storage_type>
63+
<file_name>{partition_file_name}</file_name>
64+
<file_path flavor="default">.</file_path>
65+
</partition_file>
66+
<partition_patch_file>
67+
<storage_type>{storage_type}</storage_type>
68+
<file_name>{partition_patch_file_name}</file_name>
69+
<file_path flavor="default">.</file_path>
70+
</partition_patch_file>
71+
</build>
72+
</builds_flat>
73+
</contents>
Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
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=xbl_a --size=3584KB --type-guid=DEA0BA2C-CBDD-4805-B4F9-F428251C3E98 --filename=xbl_s.melf
27+
--partition --lun=1 --name=xbl_config_a --size=344KB --type-guid=5A325AE4-4276-B66D-0ADD-3494DF27706A --filename=xbl_config.elf
28+
--partition --lun=1 --name=last_parti --size=0KB --type-guid=00000000-0000-0000-0000-000000000000
29+
30+
#This is LUN 2 - Boot LUN B
31+
--partition --lun=2 --name=xbl_b --size=3584KB --type-guid=DEA0BA2C-CBDD-4805-B4F9-F428251C3E98 --filename=xbl_s.melf
32+
--partition --lun=2 --name=xbl_config_b --size=344KB --type-guid=5A325AE4-4276-B66D-0ADD-3494DF27706A --filename=xbl_config.elf
33+
--partition --lun=2 --name=last_parti --size=0KB --type-guid=00000000-0000-0000-0000-000000000000
34+
35+
#This is LUN 3 - OTP LUN
36+
#QCOM development requirement: Ensure all partitions in LUN3 is a multiple of 128k
37+
#Linux Android customers can ignore this requirement
38+
--partition --lun=3 --name=ALIGN_TO_128K_1 --size=104KB --type-guid=FDE1604B-D68B-4BD4-973D-962AE7A1ED88
39+
--partition --lun=3 --name=cdt --size=128KB --type-guid=A19F205F-CCD8-4B6D-8F1E-2D9BC24CFFB1 --filename=cdt.bin
40+
--partition --lun=3 --name=ddr_a --size=1024KB --type-guid=20A0C19C-286A-42FA-9CE7-F64C3226A794
41+
--partition --lun=3 --name=ddr_b --size=1024KB --type-guid=325DEF02-1305-44A3-AA8D-AC82FEBE220E
42+
--partition --lun=3 --name=last_parti --size=0KB --type-guid=00000000-0000-0000-0000-000000000000
43+
44+
#This is LUN 4 - Protected Read-only LUN
45+
# Partition's that are expected to be OTA upgradable require a A and B version.
46+
# If the partition you are adding is not expected to be OTA upgradable please add it after the 'B' partition list.
47+
# These are the 'A' partition's needed for the A/B boot/ota update feature.
48+
# If you add something to this section remember to add it to B as well
49+
--partition --lun=4 --name=abl_a --size=1024KB --type-guid=BD6928A1-4CE0-A038-4F3A-1495E3EDDFFB --filename=abl2esp-v7.elf
50+
--partition --lun=4 --name=aop_a --size=512KB --type-guid=D69E90A5-4CAB-0071-F6DF-AB977F141A7F --filename=aop.mbn
51+
--partition --lun=4 --name=aop_config_a --size=512KB --type-guid=3D12F234-C882-4B46-A20C-17D52C8FC03D --filename=aop_devcfg.mbn
52+
--partition --lun=4 --name=apdp_a --size=256KB --type-guid=E6E98DA2-E22A-4D12-AB33-169E7DEAA507 --filename=zeros_1sector.bin
53+
--partition --lun=4 --name=core_nhlos_a --size=102400KB --type-guid=6690b4ce-70e9-4817-b9f1-25d64d888357 --filename=Core_NON-HLOS.bin
54+
--partition --lun=4 --name=cpucp_a --size=1024KB --type-guid=1E8615BD-6D8C-41AD-B3EA-50E8BF40E43F --filename=cpucp.elf
55+
--partition --lun=4 --name=cpucp_dtb_a --size=64KB --type-guid=6C6018BC-4FBE-40C5-B148-4BCB1DB23748 --filename=cpucp_dtbs.elf
56+
--partition --lun=4 --name=devcfg_a --size=128KB --type-guid=F65D4B16-343D-4E25-AAFC-BE99B6556A6D --filename=devcfg_rfcomm.mbn
57+
--partition --lun=4 --name=dtb_a --size=65536KB --type-guid=2A1A52FC-AA0B-401C-A808-5EA0F91068F8 --filename=dtb.bin
58+
--partition --lun=4 --name=hyp_a --size=8192KB --type-guid=E1A6A689-0C8D-4CC6-B4E8-55A4320FBD8A --filename=hypvm.mbn
59+
--partition --lun=4 --name=imagefv_a --size=2048KB --type-guid=17911177-C9E6-4372-933C-804B678E666F --filename=imagefv.elf
60+
--partition --lun=4 --name=keymaster_a --size=10240KB --type-guid=A11D2A7C-D82A-4C2F-8A01-1805240E6626 --filename=keymint.mbn
61+
--partition --lun=4 --name=multiimgqti_a --size=32KB --type-guid=846C6F05-EB46-4C0A-A1A3-3648EF3F9D0E --filename=multi_image_qti.mbn
62+
--partition --lun=4 --name=multiimgoem_a --size=32KB --type-guid=E126A436-757E-42D0-8D19-0F362F7A62B8 --filename=multi_image.mbn
63+
--partition --lun=4 --name=pdp_a --size=256KB --type-guid=4D65EF4C-6B68-4563-80B5-2B079A9E649B --filename=pdp.elf
64+
--partition --lun=4 --name=pdp_cdb_a --size=128KB --type-guid=39F567C2-CBAA-4378-A88A-F1912512CE10 --filename=pdp_cdb.elf
65+
--partition --lun=4 --name=qupfw_a --size=80KB --type-guid=21d1219f-2ed1-4ab4-930a-41a16ae75f7f --filename=qupv3fw.elf
66+
--partition --lun=4 --name=qweslicstore_a --size=256KB --type-guid=7BAB3C93-5F73-4D02-B8CB-5B9F899D29A8
67+
--partition --lun=4 --name=shrm_a --size=256KB --type-guid=CB74CA22-2F0D-4B82-A1D6-C4213F348D73 --filename=shrm.elf
68+
--partition --lun=4 --name=soccp_dcd_a --size=24KB --type-guid=D67CC91F-B88A-43FA-9B3A-12EF5A1892DC --filename=dcd.mbn
69+
--partition --lun=4 --name=soccp_debug_a --size=512KB --type-guid=95825EE7-01DD-4A7C-A9EE-8C37B997FEC4 --filename=sdi.mbn
70+
--partition --lun=4 --name=tz_a --size=5120KB --type-guid=A053AA7F-40B8-4B1C-BA08-2F68AC71A4F4 --filename=tz.mbn
71+
--partition --lun=4 --name=uefi_a --size=5120KB --type-guid=400FFDCD-22E0-47E7-9A23-F16ED9382388 --filename=uefi.elf
72+
--partition --lun=4 --name=uefisecapp_a --size=2048KB --type-guid=BE8A7E08-1B7A-4CAE-993A-D5B7FB55B3C2 --filename=uefi_sec.mbn
73+
--partition --lun=4 --name=xbl_ramdump_a --size=2048KB --type-guid=0382F197-E41F-4E84-B18B-0B564AEAD875 --filename=XblRamdump.elf
74+
75+
#These are the 'B' partition's needed for the A/B boot/ota update feature. A and B partitions must have differrent GUID's.
76+
#For convinience sake we keep all the B partitions with the same GUID
77+
--partition --lun=4 --name=abl_b --size=1024KB --type-guid=77036CD4-03D5-42BB-8ED1-37E5A88BAA34 --filename=abl2esp-v7.elf
78+
--partition --lun=4 --name=aop_b --size=512KB --type-guid=77036CD4-03D5-42BB-8ED1-37E5A88BAA34 --filename=aop.mbn
79+
--partition --lun=4 --name=aop_config_b --size=512KB --type-guid=77036CD4-03D5-42BB-8ED1-37E5A88BAA34 --filename=aop_devcfg.mbn
80+
--partition --lun=4 --name=apdp_b --size=256KB --type-guid=110F198D-8174-4193-9AF1-5DA94CDC59C9 --filename=zeros_1sector.bin
81+
--partition --lun=4 --name=core_nhlos_b --size=102400KB --type-guid=77036CD4-03D5-42BB-8ED1-37E5A88BAA34 --filename=Core_NON-HLOS.bin
82+
--partition --lun=4 --name=cpucp_b --size=1024KB --type-guid=77036CD4-03D5-42BB-8ED1-37E5A88BAA34 --filename=cpucp.elf
83+
--partition --lun=4 --name=cpucp_dtb_b --size=64KB --type-guid=57213A2B-39DE-4184-97DE-645D37913E4E --filename=cpucp_dtbs.elf
84+
--partition --lun=4 --name=devcfg_b --size=128KB --type-guid=77036CD4-03D5-42BB-8ED1-37E5A88BAA34 --filename=devcfg_rfcomm.mbn
85+
--partition --lun=4 --name=dtb_b --size=65536KB --type-guid=A166F11A-2B39-4FAA-B7E7-F8AA080D0587 --filename=dtb.bin
86+
--partition --lun=4 --name=hyp_b --size=8192KB --type-guid=77036CD4-03D5-42BB-8ED1-37E5A88BAA34 --filename=hypvm.mbn
87+
--partition --lun=4 --name=imagefv_b --size=2048KB --type-guid=77036CD4-03D5-42BB-8ED1-37E5A88BAA34 --filename=imagefv.elf
88+
--partition --lun=4 --name=keymaster_b --size=10240KB --type-guid=77036CD4-03D5-42BB-8ED1-37E5A88BAA34 --filename=keymint.mbn
89+
--partition --lun=4 --name=multiimgqti_b --size=32KB --type-guid=D30C8B21-DDD9-45B6-8DE0-3165D34395C9 --filename=multi_image_qti.mbn
90+
--partition --lun=4 --name=multiimgoem_b --size=32KB --type-guid=3E3E3ECD-C512-4F95-9144-6063826A8970 --filename=multi_image.mbn
91+
--partition --lun=4 --name=pdp_b --size=256KB --type-guid=23BC2066-6DF0-4869-B84D-84B6247E3C53 --filename=pdp.elf
92+
--partition --lun=4 --name=pdp_cdb_b --size=128KB --type-guid=C49242AA-4C04-43C5-9E81-817AF9C23AD5 --filename=pdp_cdb.elf
93+
--partition --lun=4 --name=qupfw_b --size=80KB --type-guid=77036CD4-03D5-42BB-8ED1-37E5A88BAA34 --filename=qupv3fw.elf
94+
--partition --lun=4 --name=qweslicstore_b --size=256KB --type-guid=77036CD4-03D5-42BB-8ED1-37E5A88BAA34
95+
--partition --lun=4 --name=shrm_b --size=256KB --type-guid=77036CD4-03D5-42BB-8ED1-37E5A88BAA34 --filename=shrm.elf
96+
--partition --lun=4 --name=soccp_dcd_b --size=24KB --type-guid=BF795A2C-F2EA-4110-85EA-95CC43FE1532 --filename=dcd.mbn
97+
--partition --lun=4 --name=soccp_debug_b --size=512KB --type-guid=88CE4B5F-616E-4549-B875-565DAD984951 --filename=sdi.mbn
98+
--partition --lun=4 --name=tz_b --size=5120KB --type-guid=77036CD4-03D5-42BB-8ED1-37E5A88BAA34 --filename=tz.mbn
99+
--partition --lun=4 --name=uefi_b --size=5120KB --type-guid=9F234B5B-0EFB-4313-8E4C-0AF1F605536B --filename=uefi.elf
100+
--partition --lun=4 --name=uefisecapp_b --size=2048KB --type-guid=77036CD4-03D5-42BB-8ED1-37E5A88BAA34 --filename=uefi_sec.mbn
101+
--partition --lun=4 --name=xbl_ramdump_b --size=2048KB --type-guid=C3E58B09-ABCB-42EA-9F0C-3FA453FA892E --filename=XblRamdump.elf
102+
103+
#These are non A/B partitions. In a A/B build these would not be updated via a OTA update
104+
--partition --lun=4 --name=devinfo --size=4KB --type-guid=65ADDCF4-0C5C-4D9A-AC2D-D90B5CBFCD03
105+
--partition --lun=4 --name=questdatafv --size=16384KB --type-guid=7f86d79a-7c83-4fc8-bef2-7d0a7a97af23
106+
--partition --lun=4 --name=qmcs --size=30720KB --type-guid=358740b1-34bd-4e4c-9656-3454f0a8fdd9
107+
--partition --lun=4 --name=toolsfv --size=1024KB --type-guid=97745ABA-135A-44C3-9ADC-05616173C24C --filename=tools.fv
108+
--partition --lun=4 --name=logfs --size=8192KB --type-guid=BC0330EB-3410-4951-A617-03898DBE3372 --filename=logfs_ufs_8mb.bin
109+
--partition --lun=4 --name=uefivarstore --size=512KB --type-guid=165BD6BC-9250-4AC8-95A7-A93F4A440066
110+
--partition --lun=4 --name=secdata --size=25KB --type-guid=76cfc7ef-039d-4e2c-b81e-4dd8c2cb2a93
111+
--partition --lun=4 --name=quantumcontentfv --size=1024KB --type-guid=e12d830b-7f62-4f0b-b48a-8178c5bf3ac1
112+
--partition --lun=4 --name=mdcompress --size=20480KB --type-guid=c6a5a9f5-86cd-4bea-a2ca-6c58644b0da8
113+
--partition --lun=4 --name=connsec --size=128KB --type-guid=6a716f7c-b68a-4977-9afe-452be73594a6
114+
--partition --lun=4 --name=spunvm --size=32768KB --type-guid=e42e2b4c-33b0-429b-b1ef-d341c547022c
115+
--partition --lun=4 --name=xbl_sc_test_mode --size=64KB --type-guid=91FDD2B9-8ED3-4176-BC42-260F2E34D04A
116+
--partition --lun=4 --name=xbl_sc_logs --size=128KB --type-guid=F7EECB66-781A-439A-8955-70E12ED4A7A0
117+
--partition --lun=4 --name=dpm --size=8KB --type-guid=A7A4F43A-888F-4913-8C2B-E1BC64BCE08F
118+
--partition --lun=4 --name=last_parti --size=0KB --type-guid=00000000-0000-0000-0000-000000000000
119+
120+
#This is LUN 5 - Protected Read-write LUN
121+
#QCOM development requirement: Ensure all partitions in LUN5 is a multiple of 128k.
122+
--partition --lun=5 --name=ALIGN_TO_128K_2 --size=104KB --type-guid=6891a3b7-0ccc-4705-bb53-2673cac193bd
123+
--partition --lun=5 --name=modemst1 --size=4096KB --type-guid=EBBEADAF-22C9-E33B-8F5D-0E81686A68CB
124+
--partition --lun=5 --name=modemst2 --size=4096KB --type-guid=0A288B1F-22C9-E33B-8F5D-0E81686A68CB
125+
--partition --lun=5 --name=fsg --size=4096KB --type-guid=638FF8E2-22C9-E33B-8F5D-0E81686A68CB
126+
--partition --lun=5 --name=fsc --size=128KB --type-guid=57B90A16-22C9-E33B-8F5D-0E81686A68CB
127+
--partition --lun=5 --name=persist --size=30720KB --type-guid=6C95E238-E343-4BA8-B489-8681ED22AD0B
128+
--partition --lun=5 --name=last_parti --size=0KB --type-guid=00000000-0000-0000-0000-000000000000

tests/integration/check-missing-files

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,22 @@ for xml in "$@"; do
3030
;;
3131
# known files that will be provided by the OS or boot binaries
3232
abl.elf) ;;
33+
abl2esp-v7.elf) ;;
3334
aop.mbn) ;;
35+
aop_devcfg.mbn) ;;
3436
boot.img) ;;
3537
cdt.bin) ;;
3638
cmnlib.mbn) ;;
3739
cmnlib64.mbn) ;;
40+
Core_NON-HLOS.bin) ;;
3841
cpucp.elf) ;;
42+
cpucp_dtbs.elf) ;;
3943
devcfg_iot.mbn) ;;
4044
devcfg.mbn) ;;
45+
devcfg_rfcomm.mbn) ;;
4146
efi.bin) ;;
4247
DISK) ;;
48+
dcd.mbn) ;;
4349
dtb.bin) ;;
4450
emmc_appsboot.mbn) ;;
4551
featenabler.mbn) ;;
@@ -51,8 +57,11 @@ for xml in "$@"; do
5157
keymaster64.mbn) ;;
5258
keymint.mbn) ;;
5359
km4.mbn) ;;
60+
logfs_ufs_8mb.bin) ;;
5461
multi_image_qti.mbn) ;;
5562
multi_image.mbn) ;;
63+
pdp.elf) ;;
64+
pdp_cdb.elf) ;;
5665
pmic.elf) ;;
5766
prog_firehose_ddr.elf) ;;
5867
prog_firehose_lite.elf) ;;
@@ -64,6 +73,7 @@ for xml in "$@"; do
6473
sbc_1.0_8016.bin) ;;
6574
sbc_1.0_8096.bin) ;;
6675
sbl1.mbn) ;;
76+
sdi.mbn) ;;
6777
sec.dat) ;;
6878
secs2d.mbn) ;;
6979
sed.dat) ;;
@@ -75,7 +85,9 @@ for xml in "$@"; do
7585
uefi.elf) ;;
7686
xbl_config.elf) ;;
7787
xbl_feature_config.elf) ;;
88+
xbl_s_devprg_ns.melf) ;;
7889
xbl.elf) ;;
90+
xbl_s.melf) ;;
7991
XblRamdump.elf) ;;
8092
*)
8193
echo "Unknown ${file} referenced in ${xml}" >&2

0 commit comments

Comments
 (0)