Skip to main content
SPINOR flash memory is a high-speed and non-volatile storage widely used in embedded systems. On Qualcomm platforms, this memory is divided into multiple logical partitions defined in nor_partition_frtos.xml, each identified by a unique GUID. The following table lists the RTSS SPINOR partition details in nor_partition_frtos.xml:

Prerequisites

Before you start, create a unique GUID for each partition. Run the following command:
When you run the command, it generates a GUID. Example: $ python3 -c "import uuid; print(uuid.uuid4())" 55b3aa18-3a33-4d3d-bcb5-c3cf9770cbd1 Add this GUID to the nor_partition_frtos.xml file.

Add the partition with the GUID to nor_partition_frtos.xml

  1. Get the latest nor_partition_frtos.xml file from these folders:
    • For IQ-9075: <FIRMWARE_ROOT>/qualcomm-linux-spf-2-0_ap_standard_oem_sail/QCS9100.LE.2.0/common/config/sail_nor_lemans/nor_partition_frtos.xml
    • For IQ-8275: <FIRMWARE_ROOT>/qualcomm-linux-spf-2-0_ap_standard_oem_sail/QCS8300.LE.2.0/common/config/sail_nor_monaco/nor_partition_monaco.xml
  2. Modify the file to add a new partition entry:
    Example:
    Note
    • The partition size should be 4 KB aligned. The minimum size is 4 KB.
    • Replace the highlighted fields with details for your new partition.
  3. To flash binary file into this partition, specify the binary file in the filename field: Example:
    Note
    • Place the new partition anywhere after SAIL_SEC_ELF_BKUP and before SAIL_DLP_BKUP.
    • SAIL_DLP_BKUP should always be the last partition. Ensure that there’s a binary for the last partition.

Generate GPT partition table binaries for flashing the new entry

  1. Create a new directory and navigate to it:
  2. Run the partition tool:
    • For IQ-9075:
    • For IQ-8275:
    These commands generate output files based on the XML layout.
  3. Copy the generated files into the following directory to program the NOR flash:
    <workspace_path>/build-<DISTRO>/tmp-glibc/deploy/images/<MACHINE>/<IMAGE>/sail_nor Example: <workspace_path>/build-qcom-wayland/tmp-glibc/deploy/images/qcs9075-iq-9075-evk/qcom-multimedia-image/sail_nor Parameters:
    • <DISTRO>: qcom-wayland
    • <MACHINE>: qcs9075-iq-9075-evk
    • <IMAGE>: qcom-multimedia-image
    Note
    • If pre-built binary images are available, copy the generated files into the SDK directory as shown in the following example:
  4. For more information about flashing RTSS, see Flash SAIL.