How to add new partitions in jetson tx2

How to add new partitions in jetson tx2,i try to modification “flash_l4t_t186.xml”like this,the PLUSA is thepartitions i want add, but is failed.

<allocation_policy> sequential </allocation_policy>
<filesystem_type> basic </filesystem_type>
RECROOTFSSIZE
<file_system_attribute> 0 </file_system_attribute>
<allocation_attribute> 0x8 </allocation_attribute>
<percent_reserved> 0 </percent_reserved>
Optional. Reserved for future use by the recovery filesystem;
removable.


<allocation_policy> sequential </allocation_policy>
<filesystem_type> basic </filesystem_type>
4294967269
<file_system_attribute> 0 </file_system_attribute>
<allocation_attribute> 0x808 </allocation_attribute>
<percent_reserved> 0 </percent_reserved>


<allocation_policy> sequential </allocation_policy>
<filesystem_type> basic </filesystem_type>
18432
<file_system_attribute> 0 </file_system_attribute>
<allocation_attribute> 0x808 </allocation_attribute>
<percent_reserved> 0 </percent_reserved>
Required. Automatically takes all remaining space on the device except that
occupied by the secondary_gpt partition. Allocation attribute must be set to 0x808.
May be mounted and used to store user data.

hello 673765403,

please refer to developer guide, Partition Configuration chapter for an overview of the partition configuration file.
in the end of documentation it shows an example to create a partition configuration file for flashing to an external storage device.
thanks

How to burn a new image with flash.sh

hello 673765403,

assume you download JetPack release via NVIDIA SDK Manager | NVIDIA Developer. it’ll install the release image to your local host machine, the default path is ~/nvidia/nvidia_sdk/...
please enter the path and you’ll see flash.sh available to re-flash the image.
thanks

A new partition is created and an ext4 is mirrored. How to use flash.sh to burn this partition

hello 673765403,

you cannot burn the specific partition if this isn’t program to the target before.
check this Basic Flash Script Usage, to have full flash process for your target.
thanks

OK,I have another question,use below steps: ./flash.sh -S 23GiB jetson-tx2 mmcblk0p1, A new image is created each time ,But I’m going to use my own system.img.How do I do that

hello 673765403,

please overwrite the image with yours, and you must include -r options into the command-line.
while -r options included, it’ll skip building system.img and reuse the exist one.

I use this command:./flash.sh -r -S 23GiB jetson-tx2 mmcblk0p1,but it failed,the uart0 log as follows:
[0044.716] I> Writing SMD partition.
[0044.784] I> Writing SMD_b partition.
[0044.850] I> Writing VER_b partition.
[0044.914] I> Writing VER partition.
[0044.979] I> Writing device 1: 3.
[0045.044] I> Writing APP partition.
[0045.394] E> NV3P_SERVER: Could not write 1048576 bytes.

hello 673765403,

may I know which JetPack release version you’re using, you’ll also see that reported in the beginning of flash messages.
had you also review all the partitions (i.e. flash_l4t_t186.xml), what’s the root file size of your system.img.

the size of my system image is 1926677244 byte, and the jetpack release version is JetPack_4.5.1_Linux_JETSON_TX2,flash_l4t_t186.xml as follows:

<?xml version="1.0"?>

<partition_layout version=“01.00.0000”>


<allocation_policy> sequential </allocation_policy>
<filesystem_type> basic </filesystem_type>
32768
<file_system_attribute> 0 </file_system_attribute>
<allocation_attribute> 8 </allocation_attribute>
<percent_reserved> 0 </percent_reserved>
Required. Contains Boot Configuration Table.


<allocation_policy> sequential </allocation_policy>
<filesystem_type> basic </filesystem_type>
262144
<file_system_attribute> 0 </file_system_attribute>
<allocation_attribute> 8 </allocation_attribute>
<percent_reserved> 0 </percent_reserved>
MB1FILE
Required. Slot A; contains NVIDIA signed MB1 binary.


<allocation_policy> sequential </allocation_policy>
<filesystem_type> basic </filesystem_type>
262144
<file_system_attribute> 0 </file_system_attribute>
<allocation_attribute> 8 </allocation_attribute>
<percent_reserved> 0 </percent_reserved>
MB1FILE
Required. Slot B; contains NVIDIA signed MB1 binary.


<allocation_policy> sequential </allocation_policy>
<filesystem_type> basic </filesystem_type>
65536
<file_system_attribute> 0 </file_system_attribute>
<allocation_attribute> 8 </allocation_attribute>
<percent_reserved> 0 </percent_reserved>
Required. Slot A; contains MB1 boot configuration table.


<allocation_policy> sequential </allocation_policy>
<filesystem_type> basic </filesystem_type>
65536
<file_system_attribute> 0 </file_system_attribute>
<allocation_attribute> 8 </allocation_attribute>
<percent_reserved> 0 </percent_reserved>
Required. Slot B; contains MB1 boot configuration table.


<allocation_policy> sequential </allocation_policy>
<filesystem_type> basic </filesystem_type>
55296
<file_system_attribute> 0 </file_system_attribute>
<allocation_attribute> 8 </allocation_attribute>
<percent_reserved> 0 </percent_reserved>
DRAMECCFILE
Optional. Contains DRAM-ECC firmware.


<allocation_policy> sequential </allocation_policy>
<filesystem_type> basic </filesystem_type>
4608
<file_system_attribute> 0 </file_system_attribute>
<allocation_attribute> 8 </allocation_attribute>
<percent_reserved> 0 </percent_reserved>
BADPAGEFILE
Optional. Slot A; contains badpage firmware.


<allocation_policy> sequential </allocation_policy>
<filesystem_type> basic </filesystem_type>
4608
<file_system_attribute> 0 </file_system_attribute>
<allocation_attribute> 8 </allocation_attribute>
<percent_reserved> 0 </percent_reserved>
BADPAGEFILE
Optional. Slot B; contains badpage firmware.


<allocation_policy> sequential </allocation_policy>
<filesystem_type> basic </filesystem_type>
131072
<file_system_attribute> 0 </file_system_attribute>
<allocation_attribute> 8 </allocation_attribute>
<percent_reserved> 0 </percent_reserved>
SPEFILE
Required. Slot A; contains BPMP SPE-FW binary.


<allocation_policy> sequential </allocation_policy>
<filesystem_type> basic </filesystem_type>
131072
<file_system_attribute> 0 </file_system_attribute>
<allocation_attribute> 8 </allocation_attribute>
<percent_reserved> 0 </percent_reserved>
SPEFILE
Required. Slot B; contains BPMP SPE-FW binary.


<allocation_policy> sequential </allocation_policy>
<filesystem_type> basic </filesystem_type>
262144
<file_system_attribute> 0 </file_system_attribute>
<allocation_attribute> 8 </allocation_attribute>
<percent_reserved> 0 </percent_reserved>
MB2FILE
Required. Slot A; contains TegraBoot binary.


<allocation_policy> sequential </allocation_policy>
<filesystem_type> basic </filesystem_type>
262144
<file_system_attribute> 0 </file_system_attribute>
<allocation_attribute> 8 </allocation_attribute>
<percent_reserved> 0 </percent_reserved>
MB2FILE
Required. Slot B; contains TegraBoot binary.


<allocation_policy> sequential </allocation_policy>
<filesystem_type> basic </filesystem_type>
262144
<file_system_attribute> 0 </file_system_attribute>
<allocation_attribute> 8 </allocation_attribute>
<percent_reserved> 0 </percent_reserved>
MPBFILE
Required. Slot A; contains Denver preboot firmware.


<allocation_policy> sequential </allocation_policy>
<filesystem_type> basic </filesystem_type>
262144
<file_system_attribute> 0 </file_system_attribute>
<allocation_attribute> 8 </allocation_attribute>
<percent_reserved> 0 </percent_reserved>
MPBFILE
Required. Slot B; contains Denver preboot firmware.


<allocation_policy> sequential </allocation_policy>
<filesystem_type> basic </filesystem_type>
4096
<file_system_attribute> 0 </file_system_attribute>
<allocation_attribute> 0x8 </allocation_attribute>
<percent_reserved> 0 </percent_reserved>
slot_metadata.bin
Required. Slot A; contains slot status for A/B boot and A/B
update.


<allocation_policy> sequential </allocation_policy>
<filesystem_type> basic </filesystem_type>
4096
<file_system_attribute> 0 </file_system_attribute>
<allocation_attribute> 0x8 </allocation_attribute>
<percent_reserved> 0 </percent_reserved>
slot_metadata.bin
Required. Slot B; contains slot status for A/B boot and A/B
update.


<allocation_policy> sequential </allocation_policy>
<filesystem_type> basic </filesystem_type>
<start_location> 0x7D8000 </start_location>
32768
<file_system_attribute> 0 </file_system_attribute>
<allocation_attribute> 8 </allocation_attribute>
<percent_reserved> 0 </percent_reserved>
Required. Reserved for U-Boot environment.


<allocation_policy> sequential </allocation_policy>
<filesystem_type> basic </filesystem_type>
<start_location> 0x7E0000 </start_location>
32768
<file_system_attribute> 0 </file_system_attribute>
<allocation_attribute> 0x8 </allocation_attribute>
<percent_reserved> 0 </percent_reserved>
VERFILE
Required. Contains a redundant copy of BSP version information.


<allocation_policy> sequential </allocation_policy>
<filesystem_type> basic </filesystem_type>
<start_location> 0x7F0000 </start_location>
32768
<file_system_attribute> 0 </file_system_attribute>
<allocation_attribute> 0x8 </allocation_attribute>
<percent_reserved> 0 </percent_reserved>
VERFILE
Required. Contains BSP version information.


<allocation_policy> sequential </allocation_policy>
<filesystem_type> basic </filesystem_type>
0xFFFFFFFFFFFFFFFF
<file_system_attribute> 0 </file_system_attribute>
<allocation_attribute> 8 </allocation_attribute>
<percent_reserved> 0 </percent_reserved>
Required. Contains secondary GPT of the sdmmc_boot
device.

<device type="sdmmc_user" instance="3" sector_size="512" num_sectors="61071360">
    <partition name="master_boot_record" type="protective_master_boot_record">
        <allocation_policy> sequential </allocation_policy>
        <filesystem_type> basic </filesystem_type>
        <size> 512 </size>
        <file_system_attribute> 0 </file_system_attribute>
        <allocation_attribute> 8 </allocation_attribute>
        <percent_reserved> 0 </percent_reserved>
        <description> **Required.** Contains protective MBR. </description>
    </partition>
    <partition name="primary_gpt" type="primary_gpt">
        <allocation_policy> sequential </allocation_policy>
        <filesystem_type> basic </filesystem_type>
        <size> PPTSIZE </size>
        <file_system_attribute> 0 </file_system_attribute>
        <allocation_attribute> 8 </allocation_attribute>
        <percent_reserved> 0 </percent_reserved>
        <description> **Required.** Contains primary GPT of the `sdmmc_user` device. All
          partitions defined after this entry are configured in the kernel, and are
          accessible by standard partition tools such as gdisk and parted. </description>
    </partition>
    <partition name="APP" type="data">
        <allocation_policy> sequential </allocation_policy>
        <filesystem_type> basic </filesystem_type>
        <size> 24696061952 </size>
        <file_system_attribute> 0 </file_system_attribute>
        <allocation_attribute> 0x8 </allocation_attribute>
        <percent_reserved> 0 </percent_reserved>
        <align_boundary> 4096 </align_boundary>
        <unique_guid> APPUUID </unique_guid>
        <filename> APPFILE </filename>
        <description> **Required.** Contains the rootfs. This partition must be defined
          after `primary_GPT` so that it can be accessed as the fixed known special device
          `/dev/mmcblk0p1`. </description>
    </partition>
    <partition name="MBPNAME" type="MBPTYPE" oem_sign="true">
        <allocation_policy> sequential </allocation_policy>
        <filesystem_type> basic </filesystem_type>
        <size> 4194304 </size>
        <file_system_attribute> 0 </file_system_attribute>
        <allocation_attribute> 8 </allocation_attribute>
        <percent_reserved> 0 </percent_reserved>
        <filename> MBPFILE </filename>
        <description> **Required.** Slot A; contains Denver boot pack firmware. </description>
    </partition>
    <partition name="MBPNAME_b" type="MBPTYPE" oem_sign="true">
        <allocation_policy> sequential </allocation_policy>
        <filesystem_type> basic </filesystem_type>
        <size> 4194304 </size>
        <file_system_attribute> 0 </file_system_attribute>
        <allocation_attribute> 8 </allocation_attribute>
        <percent_reserved> 0 </percent_reserved>
        <filename> MBPFILE </filename>
        <description> **Required.** Slot B; contains Denver boot pack firmware. </description>
    </partition>
    <partition name="TBCNAME" type="TBCTYPE" oem_sign="true">
        <allocation_policy> sequential </allocation_policy>
        <filesystem_type> basic </filesystem_type>
        <size> 524288 </size>
        <file_system_attribute> 0 </file_system_attribute>
        <allocation_attribute> 8 </allocation_attribute>
        <percent_reserved> 0 </percent_reserved>
        <filename> TBCFILE </filename>
        <description> **Required.** Slot A; contains CBoot, the final boot stage CPU Bootloader
          binary that loads the binary in kernel partition. </description>
    </partition>
    <partition name="TBCNAME_b" type="TBCTYPE" oem_sign="true">
        <allocation_policy> sequential </allocation_policy>
        <filesystem_type> basic </filesystem_type>
        <size> 524288 </size>
        <file_system_attribute> 0 </file_system_attribute>
        <allocation_attribute> 8 </allocation_attribute>
        <percent_reserved> 0 </percent_reserved>
        <filename> TBCFILE </filename>
        <description> **Required.** Slot B; contains CBoot, the final boot stage CPU Bootloader
          binary that loads the binary in kernel partition. </description>
    </partition>
    <partition name="TBCDTB-NAME" type="data" oem_sign="true">
        <allocation_policy> sequential </allocation_policy>
        <filesystem_type> basic </filesystem_type>
        <size> 524288 </size>
        <file_system_attribute> 0 </file_system_attribute>
        <allocation_attribute> 8 </allocation_attribute>
        <percent_reserved> 0 </percent_reserved>
        <filename> TBCDTB-FILE </filename>
        <description> **Required.** Slot A; contains Bootloader device tree blob (DTB). </description>
    </partition>
    <partition name="TBCDTB-NAME_b" type="data" oem_sign="true">
        <allocation_policy> sequential </allocation_policy>
        <filesystem_type> basic </filesystem_type>
        <size> 524288 </size>
        <file_system_attribute> 0 </file_system_attribute>
        <allocation_attribute> 8 </allocation_attribute>
        <percent_reserved> 0 </percent_reserved>
        <filename> TBCDTB-FILE </filename>
        <description> **Required.** Slot B; contains Bootloader device tree blob (DTB). </description>
    </partition>
    <partition name="TOSNAME" type="data" oem_sign="true">
        <allocation_policy> sequential </allocation_policy>
        <filesystem_type> basic </filesystem_type>
        <size> 3145728 </size>
        <file_system_attribute> 0 </file_system_attribute>
        <allocation_attribute> 8 </allocation_attribute>
        <percent_reserved> 0 </percent_reserved>
        <filename> TOSFILE </filename>
        <description> **Required.** Slot A; contains the trusted OS. </description>
    </partition>
    <partition name="TOSNAME_b" type="data" oem_sign="true">
        <allocation_policy> sequential </allocation_policy>
        <filesystem_type> basic </filesystem_type>
        <size> 3145728 </size>
        <file_system_attribute> 0 </file_system_attribute>
        <allocation_attribute> 8 </allocation_attribute>
        <percent_reserved> 0 </percent_reserved>
        <filename> TOSFILE </filename>
        <description> **Required.** Slot B; contains the trusted OS. </description>
    </partition>
    <partition name="eks" type="data" oem_sign="true">
        <allocation_policy> sequential </allocation_policy>
        <filesystem_type> basic </filesystem_type>
        <size> 2097152 </size>
        <file_system_attribute> 0 </file_system_attribute>
        <allocation_attribute> 8 </allocation_attribute>
        <percent_reserved> 0 </percent_reserved>
        <filename> EKSFILE </filename>
        <description> **Optional.** Contains the encrypted keys. </description>
    </partition>
    <partition name="adsp-fw" type="data" oem_sign="true">
        <allocation_policy> sequential </allocation_policy>
        <filesystem_type> basic </filesystem_type>
        <size> 4194304 </size>
        <file_system_attribute> 0 </file_system_attribute>
        <allocation_attribute> 8 </allocation_attribute>
        <percent_reserved> 0 </percent_reserved>
        <filename> adsp-fw.bin </filename>
        <description> **Required.** Slot A; contains ADSP software. </description>
    </partition>
    <partition name="adsp-fw_b" type="data" oem_sign="true">
        <allocation_policy> sequential </allocation_policy>
        <filesystem_type> basic </filesystem_type>
        <size> 4194304 </size>
        <file_system_attribute> 0 </file_system_attribute>
        <allocation_attribute> 8 </allocation_attribute>
        <percent_reserved> 0 </percent_reserved>
        <filename> adsp-fw.bin </filename>
        <description> **Required.** Slot B; contains ADSP software. </description>
    </partition>
    <partition name="BPFNAME" type="data" oem_sign="BPFSIGN">
        <allocation_policy> sequential </allocation_policy>
        <filesystem_type> basic </filesystem_type>
        <size> 618144 </size>
        <file_system_attribute> 0 </file_system_attribute>
        <allocation_attribute> 8 </allocation_attribute>
        <percent_reserved> 0 </percent_reserved>
        <filename> BPFFILE </filename>
        <description> **Required.** Slot A; contains BPMP firmware. </description>
    </partition>
    <partition name="BPFNAME_b" type="data" oem_sign="BPFSIGN">
        <allocation_policy> sequential </allocation_policy>
        <filesystem_type> basic </filesystem_type>
        <size> 618144 </size>
        <file_system_attribute> 0 </file_system_attribute>
        <allocation_attribute> 8 </allocation_attribute>
        <percent_reserved> 0 </percent_reserved>
        <filename> BPFFILE </filename>
        <description> **Required.** Slot B; contains BPMP firmware. </description>
    </partition>
    <partition name="BPFDTB-NAME" type="data" oem_sign="BPMPDTB-SIGN">
        <allocation_policy> sequential </allocation_policy>
        <filesystem_type> basic </filesystem_type>
        <size> 1048576 </size>
        <file_system_attribute> 0 </file_system_attribute>
        <allocation_attribute> 8 </allocation_attribute>
        <percent_reserved> 0 </percent_reserved>
        <filename> BPFDTB-FILE </filename>
        <description> **Required.** Slot A; contains BPMP firmware device tree blob
          (DTB). </description>
    </partition>
    <partition name="BPFDTB-NAME_b" type="data" oem_sign="BPMPDTB-SIGN">
        <allocation_policy> sequential </allocation_policy>
        <filesystem_type> basic </filesystem_type>
        <size> 1048576 </size>
        <file_system_attribute> 0 </file_system_attribute>
        <allocation_attribute> 8 </allocation_attribute>
        <percent_reserved> 0 </percent_reserved>
        <filename> BPFDTB-FILE </filename>
        <description> **Required.** Slot B; contains BPMP firmware device tree blob
          (DTB). </description>
    </partition>
    <partition name="SCENAME" type="data" oem_sign="SCESIGN">
        <allocation_policy> sequential </allocation_policy>
        <filesystem_type> basic </filesystem_type>
        <size> 2097152 </size>
        <file_system_attribute> 0 </file_system_attribute>
        <allocation_attribute> 8 </allocation_attribute>
        <percent_reserved> 0 </percent_reserved>
        <filename> SCEFILE </filename>
        <description> **Required.** Slot A; contains `camera-rtcpu-sce` firmware. </description>
    </partition>
    <partition name="SCENAME_b" type="data" oem_sign="SCESIGN">
        <allocation_policy> sequential </allocation_policy>
        <filesystem_type> basic </filesystem_type>
        <size> 2097152 </size>
        <file_system_attribute> 0 </file_system_attribute>
        <allocation_attribute> 8 </allocation_attribute>
        <percent_reserved> 0 </percent_reserved>
        <filename> SCEFILE </filename>
        <description> **Required.** Slot B; contains `camera-rtcpu-sce` firmware. </description>
    </partition>
    <partition name="SC7NAME" type="WB0TYPE">
        <allocation_policy> sequential </allocation_policy>
        <filesystem_type> basic </filesystem_type>
        <size> 6291456 </size>
        <file_system_attribute> 0 </file_system_attribute>
        <allocation_attribute> 8 </allocation_attribute>
        <percent_reserved> 0 </percent_reserved>
        <filename> WB0FILE </filename>
        <description> **Required.** Slot A; contains warm boot binary. </description>
    </partition>
    <partition name="SC7NAME_b" type="WB0TYPE">
        <allocation_policy> sequential </allocation_policy>
        <filesystem_type> basic </filesystem_type>
        <size> 6291456 </size>
        <file_system_attribute> 0 </file_system_attribute>
        <allocation_attribute> 8 </allocation_attribute>
        <percent_reserved> 0 </percent_reserved>
        <filename> WB0FILE </filename>
        <description> **Required.** Slot B; contains warm boot binary. </description>
    </partition>
    <partition name="FBNAME" type="FBTYPE" oem_sign="FBSIGN">
        <allocation_policy> sequential </allocation_policy>
        <filesystem_type> basic </filesystem_type>
        <size> 2097152 </size>
        <file_system_attribute> 0 </file_system_attribute>
        <allocation_attribute> 0x8 </allocation_attribute>
        <percent_reserved> 0 </percent_reserved>
        <filename> FBFILE </filename>
        <description> **Optional.** Reserved for future use; removable. </description>
    </partition>
    <partition name="BMP" type="data">
        <allocation_policy> sequential </allocation_policy>
        <filesystem_type> basic </filesystem_type>
        <size> 134217728 </size>
        <file_system_attribute> 0 </file_system_attribute>
        <allocation_attribute> 0x8 </allocation_attribute>
        <percent_reserved> 0 </percent_reserved>
        <filename> bmp.blob </filename>
        <description> **Optional.** Slot A; contains BMP images for splash screen
          display during boot. </description>
    </partition>
    <partition name="BMP_b" type="data">
        <allocation_policy> sequential </allocation_policy>
        <filesystem_type> basic </filesystem_type>
        <size> 134217728 </size>
        <file_system_attribute> 0 </file_system_attribute>
        <allocation_attribute> 0x8 </allocation_attribute>
        <percent_reserved> 0 </percent_reserved>
        <filename> bmp.blob </filename>
        <description> **Optional.** Slot B; contains BMP images for splash screen
          display during boot. </description>
    </partition>
    <partition name="RECNAME" type="data" oem_sign="true">
        <allocation_policy> sequential </allocation_policy>
        <filesystem_type> basic </filesystem_type>
        <size> RECSIZE </size>
        <file_system_attribute> 0 </file_system_attribute>
        <allocation_attribute> 8 </allocation_attribute>
        <percent_reserved> 0 </percent_reserved>
        <filename> RECFILE </filename>
        <description> **Required.** Contains recovery image. </description>
    </partition>
    <partition name="RECDTB-NAME" type="data" oem_sign="true">
        <allocation_policy> sequential </allocation_policy>
        <filesystem_type> basic </filesystem_type>
        <size> 524288 </size>
        <file_system_attribute> 0 </file_system_attribute>
        <allocation_attribute> 8 </allocation_attribute>
        <percent_reserved> 0 </percent_reserved>
        <filename> RECDTB-FILE </filename>
        <description> **Required.** Contains recovery DTB image. </description>
    </partition>
    <partition name="BOOTCTRLNAME" type="data">
        <allocation_policy> sequential </allocation_policy>
        <filesystem_type> basic </filesystem_type>
        <size> 262144 </size>
        <file_system_attribute> 0 </file_system_attribute>
        <allocation_attribute> 8 </allocation_attribute>
        <percent_reserved> 0 </percent_reserved>
        <filename> BOOTCTRL-FILE </filename>
        <description> **Required.** Slot A; contains boot control data. </description>
    </partition>
    <partition name="BOOTCTRLNAME_b" type="data">
        <allocation_policy> sequential </allocation_policy>
        <filesystem_type> basic </filesystem_type>
        <size> 262144 </size>
        <file_system_attribute> 0 </file_system_attribute>
        <allocation_attribute> 8 </allocation_attribute>
        <percent_reserved> 0 </percent_reserved>
        <filename> BOOTCTRL-FILE </filename>
        <description> **Required.** Slot B; contains boot control data. </description>
    </partition>
    <partition name="LNXNAME" type="data" oem_sign="true">
        <allocation_policy> sequential </allocation_policy>
        <filesystem_type> basic </filesystem_type>
        <size> LNXSIZE </size>
        <file_system_attribute> 0 </file_system_attribute>
        <allocation_attribute> 8 </allocation_attribute>
        <percent_reserved> 0 </percent_reserved>
        <filename> LNXFILE </filename>
        <description> **Required.** Slot A; contains U-Boot, which loads and launches the kernel
          from the rootfs at `/boot`. </description>
    </partition>
    <partition name="LNXNAME_b" type="data" oem_sign="true">
        <allocation_policy> sequential </allocation_policy>
        <filesystem_type> basic </filesystem_type>
        <size> LNXSIZE </size>
        <file_system_attribute> 0 </file_system_attribute>
        <allocation_attribute> 8 </allocation_attribute>
        <percent_reserved> 0 </percent_reserved>
        <filename> LNXFILE </filename>
        <description> **Required.** Slot B; contains U-Boot, which loads and launches the kernel
          from the rootfs at `/boot`. </description>
    </partition>
    <partition name="KERNELDTB-NAME" type="data" oem_sign="true">
        <allocation_policy> sequential </allocation_policy>
        <filesystem_type> basic </filesystem_type>
        <size> 524288 </size>
        <file_system_attribute> 0 </file_system_attribute>
        <allocation_attribute> 8 </allocation_attribute>
        <percent_reserved> 0 </percent_reserved>
        <filename> KERNELDTB-FILE </filename>
        <description> **Required.** Slot A; contains kernel device tree blob. </description>
    </partition>
    <partition name="KERNELDTB-NAME_b" type="data" oem_sign="true">
        <allocation_policy> sequential </allocation_policy>
        <filesystem_type> basic </filesystem_type>
        <size> 524288 </size>
        <file_system_attribute> 0 </file_system_attribute>
        <allocation_attribute> 8 </allocation_attribute>
        <percent_reserved> 0 </percent_reserved>
        <filename> KERNELDTB-FILE </filename>
        <description> **Required.** Slot B; contains kernel device tree blob. </description>
    </partition>
    <partition name="RECROOTFS" type="data">
        <allocation_policy> sequential </allocation_policy>
        <filesystem_type> basic </filesystem_type>
        <size> RECROOTFSSIZE </size>
        <file_system_attribute> 0 </file_system_attribute>
        <allocation_attribute> 0x8 </allocation_attribute>
        <percent_reserved> 0 </percent_reserved>
        <description> **Optional.** Reserved for future use by the recovery filesystem;
          removable. </description>
    </partition>
    <partition name="PLUSA" type="data">
        <allocation_policy> sequential </allocation_policy>
        <filesystem_type> basic </filesystem_type>
        <size> 4294967269 </size>
        <file_system_attribute> 0 </file_system_attribute>
        <allocation_attribute> 0x8 </allocation_attribute>
        <percent_reserved> 0 </percent_reserved>
        <filename> resource.img </filename>
    </partition>
    <partition name="UDA" type="data">
        <allocation_policy> sequential </allocation_policy>
        <filesystem_type> basic </filesystem_type>
        <size> 18432 </size>
        <file_system_attribute> 0 </file_system_attribute>
        <allocation_attribute> 0x808 </allocation_attribute>
        <percent_reserved> 0 </percent_reserved>
        <description> **Required.** Automatically takes all remaining space on the device except that
          occupied by the `secondary_gpt` partition. Allocation attribute must be set to 0x808.
          May be mounted and used to store user data. </description>
    </partition>
    <partition name="secondary_gpt" type="secondary_gpt">
        <allocation_policy> sequential </allocation_policy>
        <filesystem_type> basic </filesystem_type>
        <size> 0xFFFFFFFFFFFFFFFF </size>
        <file_system_attribute> 0 </file_system_attribute>
        <allocation_attribute> 8 </allocation_attribute>
        <percent_reserved> 0 </percent_reserved>
        <description> **Required.** Contains secondary GPT of the `sdmmc_user`
          device. </description>
    </partition>
</device>

</partition_layout>

When you specify an image size for the rootfs/APP partition via “-S size”, you should use an even multiple of 1024. Using MiB is *1024*1024, and using GiB is *1024*1024*1024 bytes. So if your image is “23GiB”, then it implies the actual image needs to be exactly “23*1024*1024*1024” bytes, or 24696061952 bytes. I suppose it is possible for other values to be named explicitly to the byte, but I suspect the size needs to be in MiB or GiB (though perhaps not required, don’t know, never seen it).

During the flash of a system.img the image should exactly match the size you are specifying with “-r -S size”, or else be the default size if not specified.

This partition “PLUSA” that I added, Can be burned separately via flash.sh

hello 673765403,

I believe you’d already add a new partition to TX2 according to Topic 181717.
let’s close this topic and follow-up the remaining issue on the new discussion thread.
thanks

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.