Problem flashing SPE binary size is greater than 128-kilobytes

Hello,

I’m following the instruction for “Known Issues” in the Jetson Sensor Processing Engine (SPE) Developer Guide r32.2 Release. I have changed the size values in the SPENAME partitions in the ./bootloader/t186ref/cfg/flash_l4t_t186.xml

<partition name="SPENAME" type="SPETYPE" oem_sign="true">
            <allocation_policy> sequential </allocation_policy>
            <filesystem_type> basic </filesystem_type>
            <!-- <size> 131072 </size> -->
            <size> 262144 </size>
            <file_system_attribute> 0 </file_system_attribute>
            <allocation_attribute> 8 </allocation_attribute>
            <percent_reserved> 0 </percent_reserved>
            <filename> SPEFILE </filename>
            <description> **Required.** Slot A; contains BPMP SPE-FW binary. </description>
        </partition>
        <partition name="SPENAME_b" type="SPETYPE" oem_sign="true">
            <allocation_policy> sequential </allocation_policy>
            <filesystem_type> basic </filesystem_type>
            <!-- <size> 131072 </size> -->
            <size> 262144 </size>
            <file_system_attribute> 0 </file_system_attribute>
            <allocation_attribute> 8 </allocation_attribute>
            <percent_reserved> 0 </percent_reserved>
            <filename> SPEFILE </filename>
            <description> **Required.** Slot B; contains BPMP SPE-FW binary. </description>
        </partition>

My spe.bin image size is 139472. When I flash I’m getting the following error.

$ sudo ./flash.sh -k spe-fw jetson-tx2 mmcblk0p1
...
[  11.0199 ] Writing partition spe-fw with 1_spe_sigheader.bin.encrypt
[  11.0202 ] 0000000074740204: E> NV3P_SERVER: Accessing offset 139872 after boundary partition size 131072
[  11.0701 ] 
[  11.0701 ] 
Error: Return value 4
Command tegradevflash_v2 --write spe-fw 1_spe_sigheader.bin.encrypt
Failed to flash/read t186ref.

Any ideas what is going wrong?

Could you check the bootloader/flash.xml have modify as the flash_l4t_t186.xml?

Hi,

Is this still an issue to support? Any update?

This is still an issue for me. I don’t have a bootloader/flash.xml file.

This file should be gen by a whole flash process.

sudo ./flash.sh jetson-tx2 mmcblk0p1

Hello,

My bootloader/flash.xml does have the updated spe partition size. The full file is

<?xml version="1.0"?>

<!-- Nvidia Tegra Partition Layout Version 1.0.0 -->

<partition_layout version="01.00.0000">
    <device type="sdmmc_boot" instance="3" sector_size="512" num_sectors="16384">
        <partition name="BCT" type="boot_config_table">
            <allocation_policy> sequential </allocation_policy>
            <filesystem_type> basic </filesystem_type>
            <size> 32768 </size>
            <file_system_attribute> 0 </file_system_attribute>
            <allocation_attribute> 8 </allocation_attribute>
            <percent_reserved> 0 </percent_reserved>
            <description> **Required.** Contains Boot Configuration Table. </description>
        </partition>
        <partition name="mb1" type="mb1_bootloader">
            <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> mb1_prod.bin </filename>
            <description> **Required.** Slot A; contains NVIDIA signed MB1 binary. </description>
        </partition>
        <partition name="mb1_b" type="mb1_bootloader">
            <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> mb1_prod.bin </filename>
            <description> **Required.** Slot B; contains NVIDIA signed MB1 binary. </description>
        </partition>
        <partition name="MB1_BCT" type="mb1_boot_config_table">
            <allocation_policy> sequential </allocation_policy>
            <filesystem_type> basic </filesystem_type>
            <size> 65536 </size>
            <file_system_attribute> 0 </file_system_attribute>
            <allocation_attribute> 8 </allocation_attribute>
            <percent_reserved> 0 </percent_reserved>
            <description> **Required.** Slot A; contains MB1 boot configuration table. </description>
        </partition>
        <partition name="MB1_BCT_b" type="mb1_boot_config_table">
            <allocation_policy> sequential </allocation_policy>
            <filesystem_type> basic </filesystem_type>
            <size> 65536 </size>
            <file_system_attribute> 0 </file_system_attribute>
            <allocation_attribute> 8 </allocation_attribute>
            <percent_reserved> 0 </percent_reserved>
            <description> **Required.** Slot B; contains MB1 boot configuration table. </description>
        </partition>
        <partition name="dram-ecc-fw" type="dram_ecc" oem_sign="true">
            <allocation_policy> sequential </allocation_policy>
            <filesystem_type> basic </filesystem_type>
            <size> 55296 </size>
            <file_system_attribute> 0 </file_system_attribute>
            <allocation_attribute> 8 </allocation_attribute>
            <percent_reserved> 0 </percent_reserved>
            <filename> dram-ecc.bin </filename>
            <description> **Optional.** Contains DRAM-ECC firmware. </description>
        </partition>
        <partition name="badpage-fw" type="black_list_info" oem_sign="true">
            <allocation_policy> sequential </allocation_policy>
            <filesystem_type> basic </filesystem_type>
            <size> 4608 </size>
            <file_system_attribute> 0 </file_system_attribute>
            <allocation_attribute> 8 </allocation_attribute>
            <percent_reserved> 0 </percent_reserved>
            <filename> badpage.bin </filename>
            <description> **Optional.** Slot A; contains badpage firmware. </description>
        </partition>
        <partition name="badpage-fw_b" type="black_list_info" oem_sign="true">
            <allocation_policy> sequential </allocation_policy>
            <filesystem_type> basic </filesystem_type>
            <size> 4608 </size>
            <file_system_attribute> 0 </file_system_attribute>
            <allocation_attribute> 8 </allocation_attribute>
            <percent_reserved> 0 </percent_reserved>
            <filename> badpage.bin </filename>
            <description> **Optional.** Slot B; contains badpage firmware. </description>
        </partition>
        <partition name="spe-fw" type="spe_fw" oem_sign="true">
            <allocation_policy> sequential </allocation_policy>
            <filesystem_type> basic </filesystem_type>
            <!-- <size> 131072 </size> -->
            <size> 262144 </size>
            <file_system_attribute> 0 </file_system_attribute>
            <allocation_attribute> 8 </allocation_attribute>
            <percent_reserved> 0 </percent_reserved>
            <filename> spe.bin </filename>
            <description> **Required.** Slot A; contains BPMP SPE-FW binary. </description>
        </partition>
        <partition name="spe-fw_b" type="spe_fw" oem_sign="true">
            <allocation_policy> sequential </allocation_policy>
            <filesystem_type> basic </filesystem_type>
            <!-- <size> 131072 </size> -->
            <size> 262144 </size>
            <file_system_attribute> 0 </file_system_attribute>
            <allocation_attribute> 8 </allocation_attribute>
            <percent_reserved> 0 </percent_reserved>
            <filename> spe.bin </filename>
            <description> **Required.** Slot B; contains BPMP SPE-FW binary. </description>
        </partition>
        <partition name="mb2" type="mb2_bootloader" oem_sign="true">
            <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> nvtboot.bin </filename>
            <description> **Required.** Slot A; contains TegraBoot binary. </description>
        </partition>
        <partition name="mb2_b" type="mb2_bootloader" oem_sign="true">
            <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> nvtboot.bin </filename>
            <description> **Required.** Slot B; contains TegraBoot binary. </description>
        </partition>
        <partition name="mts-preboot" type="mts_preboot" oem_sign="true">
            <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> preboot_d15_prod_cr.bin </filename>
            <description> **Required.** Slot A; contains Denver preboot firmware. </description>
        </partition>
        <partition name="mts-preboot_b" type="mts_preboot" oem_sign="true">
            <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> preboot_d15_prod_cr.bin </filename>
            <description> **Required.** Slot B; contains Denver preboot firmware. </description>
        </partition>
        <partition name="SMD" type="smd">
            <allocation_policy> sequential </allocation_policy>
            <filesystem_type> basic </filesystem_type>
            <size> 4096 </size>
            <file_system_attribute> 0 </file_system_attribute>
            <allocation_attribute> 0x8 </allocation_attribute>
            <percent_reserved> 0 </percent_reserved>
            <filename> slot_metadata.bin </filename>
            <description> **Required.** Slot A; contains slot status for A/B boot and A/B
              update. </description>
        </partition>
        <partition name="SMD_b" type="smd">
            <allocation_policy> sequential </allocation_policy>
            <filesystem_type> basic </filesystem_type>
            <size> 4096 </size>
            <file_system_attribute> 0 </file_system_attribute>
            <allocation_attribute> 0x8 </allocation_attribute>
            <percent_reserved> 0 </percent_reserved>
            <filename> slot_metadata.bin </filename>
            <description> **Required.** Slot B; contains slot status for A/B boot and A/B
              update. </description>
        </partition>
        <partition name="VER_b" type="data">
            <allocation_policy> sequential </allocation_policy>
            <filesystem_type> basic </filesystem_type>
	    <size> 65536 </size>
            <file_system_attribute> 0 </file_system_attribute>
            <allocation_attribute> 0x8 </allocation_attribute>
            <percent_reserved> 0 </percent_reserved>
            <filename> emmc_bootblob_ver.txt </filename>
            <description> **Required.** Contains a redundant copy of BSP version information. </description>
        </partition>
        <partition name="VER" type="data">
            <allocation_policy> sequential </allocation_policy>
	    <filesystem_type> basic </filesystem_type>
            <size> 65536 </size>
            <file_system_attribute> 0 </file_system_attribute>
            <allocation_attribute> 0x8 </allocation_attribute>
            <percent_reserved> 0 </percent_reserved>
            <filename> emmc_bootblob_ver.txt </filename>
            <description> **Required.** Contains BSP version information. </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_boot`
              device. </description>
        </partition>
    </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> 2097152 </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> 30064771072 </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>  </unique_guid>
            <filename> system.img </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="mts-bootpack" type="mts_bootpack" 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> mce_mts_d15_prod_cr.bin </filename>
            <description> **Required.** Slot A; contains Denver boot pack firmware. </description>
        </partition>
        <partition name="mts-bootpack_b" type="mts_bootpack" 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> mce_mts_d15_prod_cr.bin </filename>
            <description> **Required.** Slot B; contains Denver boot pack firmware. </description>
        </partition>
        <partition name="cpu-bootloader" type="bootloader" 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> cboot.bin </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="cpu-bootloader_b" type="bootloader" 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> cboot.bin </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="bootloader-dtb" 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> tegra186-quill-p3310-1000-c03-00-base.dtb </filename>
            <description> **Required.** Slot A; contains Bootloader device tree blob (DTB). </description>
        </partition>
        <partition name="bootloader-dtb_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> tegra186-quill-p3310-1000-c03-00-base.dtb </filename>
            <description> **Required.** Slot B; contains Bootloader device tree blob (DTB). </description>
        </partition>
        <partition name="secure-os" 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> tos-trusty.img </filename>
            <description> **Required.** Slot A; contains the trusted OS. </description>
        </partition>
        <partition name="secure-os_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> tos-trusty.img </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> eks.img </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="bpmp-fw" type="data" oem_sign="true">
            <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> bpmp.bin </filename>
            <description> **Required.** Slot A; contains BPMP firmware. </description>
        </partition>
        <partition name="bpmp-fw_b" type="data" oem_sign="true">
            <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> bpmp.bin </filename>
            <description> **Required.** Slot B; contains BPMP firmware. </description>
        </partition>
        <partition name="bpmp-fw-dtb" type="data" oem_sign="true">
            <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> tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2.dtb </filename>
            <description> **Required.** Slot A; contains BPMP firmware device tree blob
              (DTB). </description>
        </partition>
        <partition name="bpmp-fw-dtb_b" type="data" oem_sign="true">
            <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> tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2.dtb </filename>
            <description> **Required.** Slot B; contains BPMP firmware device tree blob
              (DTB). </description>
        </partition>
        <partition name="sce-fw" 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> camera-rtcpu-sce.img </filename>
            <description> **Required.** Slot A; contains `camera-rtcpu-sce` firmware. </description>
        </partition>
        <partition name="sce-fw_b" 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> camera-rtcpu-sce.img </filename>
            <description> **Required.** Slot B; contains `camera-rtcpu-sce` firmware. </description>
        </partition>
        <partition name="sc7" type="WB0">
            <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> warmboot.bin </filename>
            <description> **Required.** Slot A; contains warm boot binary. </description>
        </partition>
        <partition name="sc7_b" type="WB0">
            <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> warmboot.bin </filename>
            <description> **Required.** Slot B; contains warm boot binary. </description>
        </partition>
        <partition name="FBNAME" type="data" oem_sign="false">
            <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>
            <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="recovery" type="data" oem_sign="true">
            <allocation_policy> sequential </allocation_policy>
            <filesystem_type> basic </filesystem_type>
            <size> 66060288 </size>
            <file_system_attribute> 0 </file_system_attribute>
            <allocation_attribute> 8 </allocation_attribute>
            <percent_reserved> 0 </percent_reserved>
            <description> **Required.** Contains recovery image. </description>
        </partition>
        <partition name="recovery-dtb" 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>
            <description> **Required.** Contains recovery DTB image. </description>
        </partition>
        <partition name="kernel-bootctrl" 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> kernel_bootctrl.bin </filename>
            <description> **Required.** Slot A; contains boot control data. </description>
        </partition>
        <partition name="kernel-bootctrl_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> kernel_bootctrl.bin </filename>
            <description> **Required.** Slot B; contains boot control data. </description>
        </partition>
        <partition name="kernel" type="data" oem_sign="true">
            <allocation_policy> sequential </allocation_policy>
            <filesystem_type> basic </filesystem_type>
            <size> 83886080 </size>
            <file_system_attribute> 0 </file_system_attribute>
            <allocation_attribute> 8 </allocation_attribute>
            <percent_reserved> 0 </percent_reserved>
            <filename> boot.img </filename>
            <description> **Required.** Slot A; contains U-Boot, which loads and launches the kernel
              from the rootfs at `/boot`. </description>
        </partition>
        <partition name="kernel_b" type="data" oem_sign="true">
            <allocation_policy> sequential </allocation_policy>
            <filesystem_type> basic </filesystem_type>
            <size> 83886080 </size>
            <file_system_attribute> 0 </file_system_attribute>
            <allocation_attribute> 8 </allocation_attribute>
            <percent_reserved> 0 </percent_reserved>
            <filename> boot.img </filename>
            <description> **Required.** Slot B; contains U-Boot, which loads and launches the kernel
              from the rootfs at `/boot`. </description>
        </partition>
        <partition name="kernel-dtb" 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> tegra186-quill-p3310-1000-c03-00-base.dtb </filename>
            <description> **Required.** Slot A; contains kernel device tree blob. </description>
        </partition>
        <partition name="kernel-dtb_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> tegra186-quill-p3310-1000-c03-00-base.dtb </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> 314572800 </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="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>

Ok, the issue appear to be that you must re-flash the entire Jetson after modifying flash_l4t_t186.xml, then flash your custom image and dtbs, and then flash your oversized spe. I was thinking I could just flash the spe after modifying the flash_l4t_t186.xml.

Yes, you need to reflash for the partition resize.