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?