Jetpack 6.1 UEFI variable partition on QSPI filling and reclaims causing corruption if a power loss occurs

Hello,

I have been working with a Jetson Orin NX using Jetpack 6.1. Upon trying to track down the cause of 2 bricked systems in the field, I noticed that when dropping power during a UEFI Variable reclaim, the next boot fails and the PC is completely unreachable until the the board is reflashed. I was expecting the uefi FTW to protect against this exact failure, but it does not seem to be helping.

With some testing, after around 600 power cycles, a uefi reclaim is required and I have been able to consistently brick 3 separate units all with the same version of Jetpack 6.1. I have been using a PLC output to control power to the board and run a test that cuts power at 19.5s into the boot. If I let this run around 600 cycles, the computers become corrupt.

When using the backup and restore to get the raw QSPI contents, I noticed several writes of PlatformConfigData. From my analysis, the variable was always different due to a DtbHash of the device tree which was never the same across boots. After changing the firmware, I was able to make PlatformConfigData write only on changes to UEFIVersion or OSHardwareDscription. This tripled the number of boots before uefi reclaim to ~2000.

I noticed there are other variables that get written often including MTC and MemoryTypeInformation. What do these do and is there a way to reduce the frequency of writes to these variables so reclaims can happen less frequently.

Another question: Is there a reason why the uefi FTW is not saving the system on power loss during reclaims?

Thanks for any insight that can be provided.

Hi quinn.roos,

Are you using the devkit or custom board for Orin NX?

This looks more like a UEFI robustness issue during variable reclaim under power loss, not just normal flash wear.
Reducing the variable updates may lower the reclaim frequency, but it does not fully remove the risk if power is lost during reclaim.

Since JP6.1 / r36.4.0 is already relatively old, we would suggest validating first on r36.5 to check whether the issue is already improved there.

Hi KevinFFF,

I am using the Forecr DSBOARD-ORNXS carrier board with the Orin NX 8 Gb.

I have tried with JP6.2.2 with R36.5 and the failure happens at almost exactly the same number of power cycles (within 50 cycles).

Thank you for verifying with r36.5.

Do you also have an NVIDIA devkit to reproduce a similar issue?
If so, please also use the debug UEFI binary and capture the full UART log so we can collect more messages from the UEFI stage.

I don’t have a devkit. Only have the Forecr boards.

Okay, please use debug UEFI binary to reproduce the issue on your custom carrier board and share the logs for further check.

Is this still an issue to support? Any result can be shared?

Hi Kevin, sorry for the long response. Was out of the office.

Not sure I fully understand exactly what you want. Do you want me to reflash the boards with a different build of the UEFI files with the command below?

edk2_docker edk2-nvidia/Platform/NVIDIA/Jetson/build.sh --target DEBUG

Yes, please build and flash the debug UEFI binary(i.e. uefi_Jetson_DEBUG.bin) to capture more logs.

  1. build UEFI binary (refer to Build with docker · NVIDIA/edk2-nvidia Wiki · GitHub)
  2. replace <Linux_for_Tegra>/bootlodaer/uefi_jetson.bin with uefi_Jetson_DEBUG.bin you built.
  3. reflash the QSPI only to apply.