Correct way to increase the UEFI partition size

I have some custom code on top of the NVIDIA EDK2 release that is slightly increasing the size of the uefi_jetson.bin file so that it (apparently) doesn’t fit anymore in the A_cpu-bootloader partition.

In fact when I try to flash that partition I get:

[  23.7410 ] Writing partition A_cpu-bootloader with uefi_jetson_with_dtb_sigheader.bin.encrypt [ 3723328 bytes ]
[  23.7416 ] 0000000054540204: E> NV3P_SERVER: Accessing offset 3723328 after boundary partition size 3670016

So my initial idea was increase the partition by acting on the bootloader/generic/cfg/flash_t234_qspi_sdmmc.xml file and changing the size of the A_cpu-bootloader from 3670016 to 3735552 but now when flashing the board from scratch I get:

[   4.4655 ] Parsing config file :tegra234-mb1-bct-ratchet-p3701-0000_cpp.dtb
[   4.4655 ]
[   4.4655 ] Updating mb1-bct with firmware information
[   4.4658 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_cold_boot_bct_MB1.bct --updatefwinfo flash.xml.bin
[   4.4661 ] Start sector for worm, expected >= 130560, actual 0
Error: Return value 4
Command tegrabct_v2 --chip 0x23 0 --mb1bct mb1_cold_boot_bct_MB1.bct --updatefwinfo flash.xml.bin
Failed flashing generic.

What is the correct way to increase the UEFI partition size to host my code?

Hi ccaione,

Are you using the devkit or custom board for AGX Orin?
What’s your Jetpack version in use?

Could you share the full flash log and also the partition layout file for further check?

AGX Orin devkit

JetPack 6.0

I don’t have anymore the full log but the partition layout is the one shipped in the r36.2, no modifications. I just added some custom code to the EDK2 and the size slightly increased.

Could you share your custom modification?

Please also modify allocation_attribute from 0x8 to 0x808

        <partition name="A_cpu-bootloader" type="bootloader_stage2" oem_sign="true">
            <allocation_policy> sequential </allocation_policy>
            <filesystem_type> basic </filesystem_type>
            <size> 3735552 </size>
            <file_system_attribute> 0 </file_system_attribute>
            <allocation_attribute> 0x808 </allocation_attribute>
            <percent_reserved> 0 </percent_reserved>
            <filename> TBCDTB-FILE </filename>
            <align_boundary> 65536 </align_boundary>

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