From 4438cd445adfde85e98b8070c57208f55aa0ac29 Mon Sep 17 00:00:00 2001 From: Shoudi Li Date: Tue, 30 Dec 2025 10:59:06 +0800 Subject: [PATCH] platforms: add partition scheme for IQ-X7181 EVK board Add UFS partition scheme, contents.xml template for IQ-X7181 EVK board Signed-off-by: Shoudi Li --- platforms/iq-x7181-evk/spinor/contents.xml.in | 105 ++++++++++++++++++ platforms/iq-x7181-evk/ufs/partitions.conf | 24 ++++ 2 files changed, 129 insertions(+) create mode 100644 platforms/iq-x7181-evk/spinor/contents.xml.in create mode 100644 platforms/iq-x7181-evk/ufs/partitions.conf diff --git a/platforms/iq-x7181-evk/spinor/contents.xml.in b/platforms/iq-x7181-evk/spinor/contents.xml.in new file mode 100644 index 0000000..fbe2d93 --- /dev/null +++ b/platforms/iq-x7181-evk/spinor/contents.xml.in @@ -0,0 +1,105 @@ + + + + + + + default + + common + default + + + + ub_qcom_server + + apps + ub_qcom_server + + + common + ub_qcom_server + + + + + Hamoa_IOT.UBUN.1.0 + HAMOA + HAMOA + HAMOA,Hamoa_IOT,Purwa_IoT + FULL_STACK + + + + apps + apps + QX8141 + .\ + ./ + build + + + common + common + QX8141 + .\ + ./ + common + + xbl_s_devprg_ns.melf + . + + + {partition_name} + {image_name} + . + + + {storage_type} + {partition_file_name} + . + + + {storage_type} + {partition_patch_file_name} + . + + + efi.bin + ../ + + + rootfs.img + ../ + + + gpt_main0.bin + ../ + + + gpt_backup0.bin + ../ + + + rawprogram0.xml + ../ + + + patch0.xml + ../ + + + + diff --git a/platforms/iq-x7181-evk/ufs/partitions.conf b/platforms/iq-x7181-evk/ufs/partitions.conf new file mode 100644 index 0000000..ab27e37 --- /dev/null +++ b/platforms/iq-x7181-evk/ufs/partitions.conf @@ -0,0 +1,24 @@ +# Copyright (c) 2025 Qualcomm Innovation Center, Inc. All rights reserved. +# SPDX-License-Identifier: BSD-3-Clause-Clear + +# select disk type emmc | nand | ufs Mandatory +# disk size in bytes Mandatory +# options if not explicitly provide + +--disk --type=ufs --size=76841669632 --write-protect-boundary=0 --sector-size-in-bytes=4096 --grow-last-partition + +# per partition entry +# mandatory options: +# --lun (mandatory for UFS, emmc no need this) +# --name +# --size in bytes +# --type-guid +# optional options: (defaults used if not provided) +# --attributes 1000000000000004 +# --filename "" +# --readonly true +# --sparse false + +# This is LUN 0 - HLOS LUN" +--partition --lun=0 --name=efi --size=524288KB --type-guid=C12A7328-F81F-11D2-BA4B-00A0C93EC93B --filename=efi.bin +--partition --lun=0 --name=rootfs --size=33554432KB --type-guid=B921B045-1DF0-41C3-AF44-4C6F280D3FAE --filename=rootfs.img