Updating TOS in Jetpack 6

Hi,

I’m opening this topic based on the reply in [Jetson Orin Nano] [OTA] [35.5.0][36.3] Failed to boot after OTA upgrade from 35.5.0 to 36.3 - #27 by AlexCo

I’ve build the lastest uefi-firmware from the r36.3.0-updates branch to include the following patches:

  1. feat: add a null version of the FwVariableLib · NVIDIA/edk2-nvidia@92bc1c3 · GitHub
  2. fix: don’t try to erase early vars partition in Jetson · NVIDIA/edk2-nvidia@1b61c74 · GitHub
  3. fix: reset the meas buffer after computing the first measurement · NVIDIA/edk2-nvidia@615288a · GitHub

which are already merged.

I also built uefi_StandaloneMmOptee_DEBUG.bin using ./edk2-nvidia/Platform/NVIDIA/StandaloneMmOptee/build.sh from the EDK2 container and used the L4T 36.3 BSP archive to build the tos image:

./gen_tos_part_img.py --monitor ./atf_build/arm-trusted-firmware/build/tegra/t234/release/bl31.bin --os ./optee/build/t234/core/tee-raw.bin --dtb ./optee/tegra234-optee.dtb --tostype optee ./tos.img , copied tos.img to Linux_for_Tegra/bootloader/tos-optee_t234 and then flashed the AGX Orin 32GB.

With that I’m getting the following crash:

�k Running
SHA Task Started
DCE: FW Boot Complete
Admin Task Running
SHA Task Running
��I> strt_pg_num(30488) num_of_pgs(512) read_buf(0x82e043f80)
I> strt_pg_num(31000) num_of_pgs(512) read_buf(0x82e083f80)
I> cpubl : decompressed to 3649664 bytes
I> cpubl: plain binary integrity check is success
I> Partition name: A_secure-os
I> Size of partition: 4194304
I> Binary@ device:3/0 block-32000 (partition size: 0x400000), name: A_secure-os
I> strt_pg_num(32000) num_of_pgs(16) read_buf(0x40066880)
I> strt_pg_num(32016) num_of_pgs(3104) read_buf(0x83fd7c000)
I> MB2-params @ 0x40060000
I> NSDRAM carveout base: 0x80000000, size: 0x7acdf0000
I> cpubl_params: nsdram: carveout: 1, encryption: 1
I> cpubl: Authentication Finalize Done
I> Binary cpubl loaded successfully at 0x82c800000
I> tos: Authentication Finalize Done
I> Binary tos loaded successfully at 0x83fd7c000
I> Relocating OP-TEE dtb from: 0x83feff0f0 to 0x83c040020, size: 0x2889
I> [0] START: 0x80000000, SIZE: 0x7acdf0000
I> [1] START: 0x832000000, SIZE: 0x2000000
I> Setting NS memory ranges to OP-TEE dtb finished.
I> Partition name: A_eks
I> Size of partition: 262144
I> Binary@ device:3/0 block-44288 (partition size: 0x40000), name: A_eks
I> strt_pg_num(44288) num_of_pgs(16) read_buf(0x40066880)
I> strt_pg_num(44304) num_of_pgs(8) read_buf(0x83c020000)
I> eks: Authentication Finalize Done
I> Binary eks loaded successfully at 0x83c020000
I> EKB detected (length: 0x410) @ VA:0x83c020000
I> Task: Add cpubl params integrity check
I> Added cpubl params digest.
I> Task: Prepare TOS params
I> Setting EKB blob info to OPTEE dtb finished.
I> Setting OPTEE arg3: 0x83c040020
I> NVRNG: Health check success
I> NVRNG: Health check success
I> Task: OEM SC7 context save
I> OEM sc7 context saved
I> Task: Disable MSS perf stats
I> Task: Program display sticky bits
I> Task: Storage device deinit
I> Task: SMMU external bypass disable
I> Task: SMMU init
I> Task: Program GICv3 registers
I> Task: Audit firewall settings
I> Task: Bootchain failure check
I> Current Boot-Chain Slot: 0
I> BR-BCT Boot-Chain is 0, and status is 1. Set UPDATE_BRBCT bit to 0
I> Task: Burn RESERVED_ODM0 fuse
I> Task: Lock fusing
I> Task: Clear dec source key
I> MB2 finished

��NOTICE:  BL31: v2.8(release):
NOTICE:  BL31: Built : 18:49:22, Jun 25 2024
I/TC: 
I/TC: Non-secure external DT found
I/TC: OP-TEE version: 3.22 (gcc version 11.3.0 (Buildroot 2022.08)) #2 Tue Jun 25 15:48:24 UTC 2024 aarch64
I/TC: WARNING: This OP-TEE configuration might be insecure!
I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html
I/TC: Primary CPU initializing
I/TC: Test OEM keys are being used. This is insecure for shipping products!
I/TC: Primary CPU switching to normal world boot
Unhandled Exception from EL1
x0             = 0x0edc921a7260d168
x1             = 0xb7b456695649ad6f
x2             = 0x00000000000f4240
x3             = 0x0000000081000000
x4             = 0x0000000000000001
x5             = 0x000000083c1ead38
x6             = 0xffffffffffffffff
x7             = 0x000000083c261ef0
x8             = 0x0000000000000020
x9             = 0x000000083c261ef0
x10            = 0x00000000000010c0
x11            = 0x0000000000000000
x12            = 0x00000000ffffffd8
x13            = 0x000000083c10e755
x14            = 0x000000083c261f94
x15            = 0x0000000842240020
x16            = 0x000000083c0af1c8
x17            = 0x0000000000000000
x18            = 0x000000083c261f44
x19            = 0x0000000000000000
x20            = 0x000000083c040020
x21            = 0x000000083c278b10
x22            = 0x000000083c1eb520
x23            = 0x0000000000000000
x24            = 0x0000000000000000
x25            = 0x0000000000000000
x26            = 0x0000000000000000
x27            = 0x0000000000000000
x28            = 0x0000000000000000
x29            = 0x0000000000000000
x30            = 0x000000083c080170
scr_el3        = 0x0000000000000e34
sctlr_el3      = 0x0000000030cd183f
cptr_el3       = 0x0000000000000000
tcr_el3        = 0x0000000080823518
daif           = 0x00000000000002c0
mair_el3       = 0x00000000004404ff
spsr_el3       = 0x00000000600003c4
elr_el3        = 0x000000083c08017c
ttbr0_el3      = 0x0000000050023e01
esr_el3        = 0x0000000062320802
far_el3        = 0x0000000000000000
spsr_el1       = 0x0000000000000000
elr_el1        = 0x0000000000000000
spsr_abt       = 0x0000000000000000
spsr_und       = 0x0000000000000000
spsr_irq       = 0x0000000000000000
spsr_fiq       = 0x0000000000000000
sctlr_el1      = 0x0000000030d8180d
actlr_el1      = 0x0000000000000000
cpacr_el1      = 0x0000000000000000
csselr_el1     = 0x0000000000000000
sp_el1         = 0x000000083c1eb520
esr_el1        = 0x0000000000000000
ttbr0_el1      = 0x000000083c24b000
ttbr1_el1      = 0x0000000000000000
mair_el1       = 0x00000000ff00ff04
amair_el1      = 0x0000000000000000
tcr_el1        = 0x0000000280803f1a
tpidr_el1      = 0x0000000000000000
tpidr_el0      = 0x0000000000000000
tpidrro_el0    = 0x0000000000000000
par_el1        = 0xff0000083c22e980
mpidr_el1      = 0x0000000081000000
afsr0_el1      = 0x0000000000000000
afsr1_el1      = 0x0000000000000000
contextidr_el1 = 0x0000000000000000
vbar_el1       = 0x000000083c083000
cntp_ctl_el0   = 0x0000000000000000
cntp_cval_el0  = 0x0000000000000000
cntv_ctl_el0   = 0x0000000000000000
cntv_cval_el0  = 0x0000000000000000
cntkctl_el1    = 0x0000000000000000
sp_el0         = 0x0000000050016bf0
isr_el1        = 0x0000000000000000
cpuectlr_el1   = 0xa000000b40543000
gicd_ispendr regs (Offsets 0x200 - 0x278)
 Offset:                        value
0000000000000200:               0x0000000000000000
0000000000000204:               0x0000000000000000
0000000000000208:               0x0000000000000000
000000000000020c:               0x0000000000000000
0000000000000210:               0x0000000000000000
0000000000000214:               0x0000000000000000
0000000000000218:               0x0000000000000000
000000000000021c:               0x0000000000020000
0000000000000220:               0x0000000000000000
0000000000000224:               0x0000000000000000
0000000000000228:               0x0000000000000000
000000000000022c:               0x0000000000000000
0000000000000230:               0x0000000000000000
0000000000000234:               0x0000000000000000
0000000000000238:               0x0000000000000000
000000000000023c:               0x0000000000000000
0000000000000240:               0x0000000000000000
0000000000000244:               0x0000000000000000
0000000000000248:               0x0000000000000000
000000000000024c:               0x0000000000000000
0000000000000250:               0x0000000000000000
0000000000000254:               0x0000000000000000
0000000000000258:               0x0000000000000000
000000000000025c:               0x0000000000000000
0000000000000260:               0x0000000000000000
0000000000000264:               0x0000000000000000
0000000000000268:               0x0000000000000000
000000000000026c:               0x0000000000000000
0000000000000270:               0x0000000000000000
0000000000000274:               0x0000000000000000
0000000000000278:               0x0000000000000000
000000000000027c:               0x0000000000000000

Any advice on how I could avoid this crash to test the patches I linked?

Thank you

Hi AlexCo,

Do you hit the boot issue after applying this?
(i.e. would you hit the boot issue if you only update uefi binary?)

Could you also download https://nv-tegra.nvidia.com/r/tegra/optee-src/nv-optee.git and refer to the steps in atf_and_optee_README.txt for TOS image?

Hi @KevinFFF and thank you for the suggestion. I used the sources from https://nv-tegra.nvidia.com/r/admin/repos/q/filter:optee-src to build both the atf (for bl31.bin) as well as nv-optee, both on the jetson_36.3 branch and I’m no longer seeing the EL1 crash.

Now, with the updated uefi_StandaloneMmOptee_DEBUG.bin built in container using the latest master of Commits · NVIDIA/edk2-nvidia · GitHub which includes:

  1. feat: add a null version of the FwVariableLib · NVIDIA/edk2-nvidia@92bc1c3 · GitHub
  2. fix: don’t try to erase early vars partition in Jetson · NVIDIA/edk2-nvidia@1b61c74 · GitHub
  3. fix: reset the meas buffer after computing the first measurement · NVIDIA/edk2-nvidia@615288a · GitHub

I again updated from L3T 35.5.0 to to 36.3 using an UEFI capsule with the updated UEFI firmware & TOS, everything from the latest 36.3-updates branch, and am still seeing the original problem, meaning the 3 patches did not solve the original problem for me:

MmFvbSmmVarReady:Var Store Validation failed Device ErrorASSERT [FvbNorFlashStandaloneMm] /build/nvidia-uefi/edk2-nvidia/Silicon/NVIDIA/Drivers/FvbNorFlashDxe/FvbNorFlashStandaloneMm.c(937): ((BOOLEAN)(0==1))

This is the full log when the issue occurs:

��NOTICE:  BL31: v2.8(release):jetson_36.3
NOTICE:  BL31: Built : 12:43:34, Aug  9 2024
I/TC: 
I/TC: Non-secure external DT found
I/TC: OP-TEE version: 3.22 (gcc version 11.3.0 (Buildroot 2022.08)) #2 Thu Aug  8 18:15:33 UTC 2024 aarch64
I/TC: WARNING: This OP-TEE configuration might be insecure!
I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html
I/TC: Primary CPU initializing
I/TC: Test OEM keys are being used. This is insecure for shipping products!
I/TC: Primary CPU switching to normal world boot
��
  Jetson UEFI firmware (version 202402.1-5d37a555-dirty built on 2024-08-05T14:20:19+00:00)
DRAM Encryption Enabled
Carveout 1 Region: Base: 0x000000082D800000, Size: 0x0000000000100000
Carveout 2 Region: Base: 0x0000000849000000, Size: 0x0000000000800000
Carveout 3 Region: Base: 0x0000000838000000, Size: 0x0000000000800000
Carveout 5 Region: Base: 0x000000082D700000, Size: 0x0000000000100000
Carveout 6 Region: Base: 0x000000082E800000, Size: 0x0000000000800000
Carveout 7 Region: Base: 0x0000000838800000, Size: 0x0000000000400000
Carveout 8 Region: Base: 0x000000082D600000, Size: 0x0000000000100000
Carveout 9 Region: Base: 0x000000082D500000, Size: 0x0000000000100000
Carveout 11 Region: Base: 0x000000004007A000, Size: 0x0000000000002000
Carveout 12 Region: Base: 0x000000082D400000, Size: 0x0000000000100000
Carveout 13 Region: Base: 0x000000004007C000, Size: 0x0000000000002000
Carveout 14 Region: Base: 0x000000004007E000, Size: 0x0000000000002000
Carveout 15 Region: Base: 0x000000082D300000, Size: 0x0000000000100000
Carveout 16 Region: Base: 0x0000000040078000, Size: 0x0000000000002000
Carveout 17 Region: Base: 0x000000082D200000, Size: 0x0000000000100000
Carveout 18 Region: Base: 0x0000000040076000, Size: 0x0000000000002000
Carveout 19 Region: Base: 0x000000082D980000, Size: 0x0000000000280000
Carveout 20 Region: Base: 0x0000000836000000, Size: 0x0000000002000000
Carveout 21 Region: Base: 0x0000000040074000, Size: 0x0000000000002000
Carveout 22 Region: Base: 0x0000000848000000, Size: 0x0000000001000000
Carveout 23 Region: Base: 0x0000000838C00000, Size: 0x0000000000200000
Carveout 24 Region: Base: 0x0000000834000000, Size: 0x0000000002000000
Carveout 25 Region: Base: 0x0000000040072000, Size: 0x0000000000002000
Carveout 27 Region: Base: 0x000000082D100000, Size: 0x0000000000100000
Carveout 28 Region: Base: 0x0000000832000000, Size: 0x0000000002000000
Carveout 29 Region: Base: 0x0000000830000000, Size: 0x0000000002000000
Carveout 30 Region: Base: 0x0000000040000000, Size: 0x0000000000040000
Carveout 31 Region: Base: 0x0000000840000000, Size: 0x0000000008000000
Carveout 33 Region: Base: 0x000000082DC00000, Size: 0x0000000000400000
Carveout 34 Region: Base: 0x000000082CFF0000, Size: 0x0000000000010000
Carveout 35 Region: Base: 0x0000000838E00000, Size: 0x0000000001000000
Carveout 38 Region: Base: 0x0000000080000000, Size: 0x00000007ACDF0000
Carveout 39 Region: Base: 0x0000000839E00000, Size: 0x0000000002200000
Carveout 40 Region: Base: 0x0000000040070000, Size: 0x0000000000002000
Carveout 41 Region: Base: 0x000000082F000000, Size: 0x0000000001000000
Carveout 42 Region: Base: 0x000000082D000000, Size: 0x0000000000100000
Carveout 43 Region: Base: 0x000000083C000000, Size: 0x0000000004000000
Carveout 44 Region: Base: 0x0000000849800000, Size: 0x0000000036800000
Carveout 47 Region: Base: 0x000000082C800000, Size: 0x0000000000400000
Carveout 48 Region: Base: 0x000000082CDA0000, Size: 0x0000000000020000
Carveout 49 Region: Base: 0x000000082CD70000, Size: 0x0000000000010000
Carveout 50 Region: Base: 0x000000082C600000, Size: 0x0000000000200000
Carveout 52 Region: Base: 0x000000082CDC0000, Size: 0x0000000000030000
Carveout 54 Region: Base: 0x000000082D900000, Size: 0x0000000000080000
Carveout 55 Region: Base: 0x0000000040060000, Size: 0x0000000000010000
Carveout 56 Region: Base: 0x000000082E000000, Size: 0x0000000000800000
Carveout 61 Region: Base: 0x0000000040000000, Size: 0x0000000000050000
Carveout 62 Region: Base: 0x0000000040060000, Size: 0x0000000000010000
Carveout 63 Region: Base: 0x0000000040070000, Size: 0x0000000000010000
Carveout 69 Region: Base: 0x000000082CD80000, Size: 0x0000000000020000
Carveout 72 Region: Base: 0x000000082CDF0000, Size: 0x0000000000200000
Processing "L4T Configuration Settings" DTB overlay
Processing "Tegra234 p3737-0000+p3701-xxxx Dynamic Overlay" DTB overlay
Processing "Tegra234 Carveouts Overlay" DTB overlay
Processing "OP-TEE overlay" DTB overlay
Processing "Jetson Camera Dual-IMX274" DTB overlay
Processing "Jetson Camera E3331 module" DTB overlay
Processing "Jetson Camera E3333 module" DTB overlay
Processing "Jetson Camera IMX185" DTB overlay
MaxSockets=1
Socket=0 MaxClusters=3
MaxClusters=3
MaxCoresPerCluster=4
Model: NVIDIA Jetson AGX Orin Developer Kit

Main memory region: (0x0000000080000000, 0x00000007AC600000)
add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/MdeModulePkg/Core/Dxe/DxeMain/DEBUG/DxeCore.dll 0x827F91000
Loading DxeCore at 0x0827F90000 EntryPoint=0x0827F99F08

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/MdeModulePkg/Core/Dxe/DxeMain/DEBUG/DxeCore.dll 0x827F91000
HOBLIST address in DXE = 0x825091018
Memory Allocation 0x00000004 0x82CBDC000 - 0x82CBDCFFF
Memory Allocation 0x00000004 0x82CBDB000 - 0x82CBDBFFF
Memory Allocation 0x00000004 0x82CBDA000 - 0x82CBDAFFF
Memory Allocation 0x00000004 0x82CBD9000 - 0x82CBD9FFF
Memory Allocation 0x00000004 0x82CBD8000 - 0x82CBD8FFF
Memory Allocation 0x00000004 0x82CBD7000 - 0x82CBD7FFF
Memory Allocation 0x00000004 0x82CBD6000 - 0x82CBD6FFF
Memory Allocation 0x00000004 0x82CBD5000 - 0x82CBD5FFF
Memory Allocation 0x00000004 0x82CBD4000 - 0x82CBD4FFF
Memory Allocation 0x00000004 0x82CBD3000 - 0x82CBD3FFF
Memory Allocation 0x00000004 0x82CBD2000 - 0x82CBD2FFF
Memory Allocation 0x00000000 0x82D700000 - 0x82D7FFFFF
Memory Allocation 0x00000000 0x832000000 - 0x833FFFFFF
Memory Allocation 0x00000000 0x82C600000 - 0x82C7FFFFF
Memory Allocation 0x00000004 0x82CBD1000 - 0x82CBD1FFF
Memory Allocation 0x00000004 0x82CBD0000 - 0x82CBD0FFF
Memory Allocation 0x00000004 0x82CBCF000 - 0x82CBCFFFF
Memory Allocation 0x00000004 0x82CBCE000 - 0x82CBCEFFF
Memory Allocation 0x00000004 0x82CBCD000 - 0x82CBCDFFF
Memory Allocation 0x00000004 0x82CBCC000 - 0x82CBCCFFF
Memory Allocation 0x00000004 0x82CBCB000 - 0x82CBCBFFF
Memory Allocation 0x00000004 0x82CBCA000 - 0x82CBCAFFF
Memory Allocation 0x00000004 0x82C50C000 - 0x82C5FFFFF
Memory Allocation 0x00000004 0x82C418000 - 0x82C50BFFF
Memory Allocation 0x00000004 0x82C406000 - 0x82C417FFF
Memory Allocation 0x00000004 0x82C3F4000 - 0x82C405FFF
Memory Allocation 0x00000004 0x82C3E2000 - 0x82C3F3FFF
Memory Allocation 0x00000004 0x82C3D0000 - 0x82C3E1FFF
Memory Allocation 0x00000004 0x82C3CE000 - 0x82C3CFFFF
Memory Allocation 0x00000004 0x82C3CC000 - 0x82C3CDFFF
Memory Allocation 0x00000004 0x82C3CA000 - 0x82C3CBFFF
Memory Allocation 0x00000004 0x82C3C8000 - 0x82C3C9FFF
Memory Allocation 0x00000004 0x82C3C6000 - 0x82C3C7FFF
Memory Allocation 0x00000004 0x82C3C4000 - 0x82C3C5FFF
Memory Allocation 0x00000004 0x82C3C2000 - 0x82C3C3FFF
Memory Allocation 0x00000004 0x82C3C0000 - 0x82C3C1FFF
Memory Allocation 0x00000004 0x82C3BE000 - 0x82C3BFFFF
Memory Allocation 0x00000004 0x82C3BC000 - 0x82C3BDFFF
Memory Allocation 0x00000004 0x82C3BA000 - 0x82C3BBFFF
Memory Allocation 0x00000004 0x82C3B8000 - 0x82C3B9FFF
Memory Allocation 0x00000004 0x82C3B6000 - 0x82C3B7FFF
Memory Allocation 0x00000004 0x82C3B4000 - 0x82C3B5FFF
Memory Allocation 0x00000004 0x82C3B2000 - 0x82C3B3FFF
Memory Allocation 0x00000004 0x82C3B0000 - 0x82C3B1FFF
Memory Allocation 0x00000004 0x82C3AE000 - 0x82C3AFFFF
Memory Allocation 0x00000004 0x82C3AC000 - 0x82C3ADFFF
Memory Allocation 0x00000004 0x82C3AA000 - 0x82C3ABFFF
Memory Allocation 0x00000004 0x82C3A8000 - 0x82C3A9FFF
Memory Allocation 0x00000004 0x82C3A6000 - 0x82C3A7FFF
Memory Allocation 0x00000004 0x82C3A4000 - 0x82C3A5FFF
Memory Allocation 0x00000004 0x82C3A2000 - 0x82C3A3FFF
Memory Allocation 0x00000004 0x82C3A0000 - 0x82C3A1FFF
Memory Allocation 0x00000004 0x82C39E000 - 0x82C39FFFF
Memory Allocation 0x00000004 0x82C39C000 - 0x82C39DFFF
Memory Allocation 0x00000004 0x82C39A000 - 0x82C39BFFF
Memory Allocation 0x00000004 0x82C398000 - 0x82C399FFF
Memory Allocation 0x00000004 0x82C397000 - 0x82C397FFF
Memory Allocation 0x00000004 0x82C396000 - 0x82C396FFF
Memory Allocation 0x00000004 0x82C392000 - 0x82C395FFF
Memory Allocation 0x00000004 0x82C390000 - 0x82C391FFF
Memory Allocation 0x00000004 0x82C38E000 - 0x82C38FFFF
Memory Allocation 0x00000004 0x82C38C000 - 0x82C38DFFF
Memory Allocation 0x00000004 0x82C38A000 - 0x82C38BFFF
Memory Allocation 0x00000004 0x82C388000 - 0x82C389FFF
Memory Allocation 0x00000004 0x82C386000 - 0x82C387FFF
Memory Allocation 0x00000004 0x82C384000 - 0x82C385FFF
Memory Allocation 0x00000004 0x82C382000 - 0x82C383FFF
Memory Allocation 0x00000004 0x82C380000 - 0x82C381FFF
Memory Allocation 0x00000004 0x82C37E000 - 0x82C37FFFF
Memory Allocation 0x00000004 0x82C37C000 - 0x82C37DFFF
Memory Allocation 0x00000004 0x82C37A000 - 0x82C37BFFF
Memory Allocation 0x00000004 0x82C378000 - 0x82C379FFF
Memory Allocation 0x00000004 0x82C376000 - 0x82C377FFF
Memory Allocation 0x00000004 0x82C374000 - 0x82C375FFF
Memory Allocation 0x00000004 0x82C372000 - 0x82C373FFF
Memory Allocation 0x00000004 0x82C370000 - 0x82C371FFF
Memory Allocation 0x00000004 0x82C36E000 - 0x82C36FFFF
Memory Allocation 0x00000004 0x82CB20000 - 0x82CB7AFFF
Memory Allocation 0x00000004 0x82CBDD000 - 0x82CBFFFFF
Memory Allocation 0x00000004 0x82C800000 - 0x82CB1FFFF
Memory Allocation 0x00000004 0x82C35E000 - 0x82C36DFFF
Memory Allocation 0x00000004 0x82A19C000 - 0x82C35DFFF
Memory Allocation 0x00000004 0x827FDB000 - 0x82A19BFFF
Memory Allocation 0x00000003 0x827F90000 - 0x827FDAFFF
Memory Allocation 0x00000003 0x827F90000 - 0x827FDAFFF
FV Hob            0x82C800000 - 0x82CB1FFFF
FV Hob            0x827FDB000 - 0x82A19AFFF
FV2 Hob           0x827FDB000 - 0x82A19AFFF
                  49A79A15-8F69-4BE7-A30C-A172F44ABCE7 - 9E21FD93-9C72-4C15-8C4B-E77F1DB2D792
add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/PCD/Dxe/Pcd/DEBUG/PcdDxe.dll 0x826034000
Loading driver at 0x00826033000 EntryPoint=0x0082603A608 PcdDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/Silicon/NVIDIA/Drivers/TegraPlatformInit/TegraPlatformInitDxe/DEBUG/TegraPlatformInitDxe.dll 0x826024000
Loading driver at 0x00826023000 EntryPoint=0x0082602B0D0 TegraPlatformInitDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/ArmPkg/Drivers/ArmGic/ArmGicDxe/DEBUG/ArmGicDxe.dll 0x82601A000
Loading driver at 0x00826019000 EntryPoint=0x0082601EB88 ArmGicDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/ArmPkg/Drivers/CpuDxe/CpuDxe/DEBUG/ArmCpuDxe.dll 0x82600B000
Loading driver at 0x0082600A000 EntryPoint=0x008260105F0 ArmCpuDxe.efi

ReplaceTableEntry: splitting block entry with MMU disabled
add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/MdeModulePkg/Bus/Pci/NonDiscoverablePciDeviceDxe/NonDiscoverablePciDeviceDxe/DEBUG/NonDiscoverablePciDeviceDxe.dll 0x825FFF000
Loading driver at 0x00825FFE000 EntryPoint=0x00826004EF8 NonDiscoverablePciDeviceDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHcDxe/DEBUG/SdMmcPciHcDxe.dll 0x825FEE000
Loading driver at 0x00825FED000 EntryPoint=0x00825FF8A5C SdMmcPciHcDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/MdeModulePkg/Bus/Pci/UfsPciHcDxe/UfsPciHcDxe/DEBUG/UfsPciHcDxe.dll 0x825FE4000
Loading driver at 0x00825FE3000 EntryPoint=0x00825FE86B0 UfsPciHcDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/MdeModulePkg/Bus/Sd/EmmcDxe/EmmcDxe/DEBUG/EmmcDxe.dll 0x825FD5000
Loading driver at 0x00825FD4000 EntryPoint=0x00825FDCEF8 EmmcDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/MdeModulePkg/Bus/Sd/SdDxe/SdDxe/DEBUG/SdDxe.dll 0x825FC8000
Loading driver at 0x00825FC7000 EntryPoint=0x00825FCED34 SdDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruDxe/DEBUG/UfsPassThruDxe.dll 0x825FBA000
Loading driver at 0x00825FB9000 EntryPoint=0x00825FC1F90 UfsPassThruDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe/DEBUG/DiskIoDxe.dll 0x825FAF000
Loading driver at 0x00825FAE000 EntryPoint=0x00825FB4B44 DiskIoDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe/DEBUG/PartitionDxe.dll 0x825FA1000
Loading driver at 0x00825FA0000 EntryPoint=0x00825FA95B0 PartitionDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/MdeModulePkg/Bus/I2c/I2cDxe/I2cDxe/DEBUG/I2cDxe.dll 0x825F95000
Loading driver at 0x00825F94000 EntryPoint=0x00825F9B274 I2cDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe/DEBUG/ScsiBus.dll 0x825F8A000
Loading driver at 0x00825F89000 EntryPoint=0x00825F8F970 ScsiBus.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe/DEBUG/ScsiDisk.dll 0x825F79000
Loading driver at 0x00825F78000 EntryPoint=0x00825F7FB1C ScsiDisk.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe/DEBUG/EnglishDxe.dll 0x825F70000
Loading driver at 0x00825F6F000 EntryPoint=0x00825F73B94 EnglishDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/FatPkg/EnhancedFatDxe/Fat/DEBUG/Fat.dll 0x825F5F000
Loading driver at 0x00825F5E000 EntryPoint=0x00825F69B3C Fat.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe/DEBUG/ReportStatusCodeRouterRuntimeDxe.dll 0x826FA0000
Loading driver at 0x00826F90000 EntryPoint=0x00826FA41F0 ReportStatusCodeRouterRuntimeDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/MdeModulePkg/Core/RuntimeDxe/RuntimeDxe/DEBUG/RuntimeDxe.dll 0x826F50000
Loading driver at 0x00826F40000 EntryPoint=0x00826F5410C RuntimeDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe/DEBUG/SecurityStubDxe.dll 0x825E58000
Loading driver at 0x00825E57000 EntryPoint=0x00825E5BCDC SecurityStubDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/SectionExtractionDxe/SectionExtractionDxe/DEBUG/SectionExtractionDxe.dll 0x825E4F000
Loading driver at 0x00825E4E000 EntryPoint=0x00825E52990 SectionExtractionDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Metronome/Metronome/DEBUG/Metronome.dll 0x825E46000
Loading driver at 0x00825E45000 EntryPoint=0x00825E49854 Metronome.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe/DEBUG/ResetSystemRuntimeDxe.dll 0x826F00000
Loading driver at 0x00826EF0000 EntryPoint=0x00826F044C0 ResetSystemRuntimeDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/Silicon/NVIDIA/Drivers/DefaultVariableDxe/DefaultVariableDxe/DEBUG/DefaultVariableDxe.dll 0x825E3A000
Loading driver at 0x00825E39000 EntryPoint=0x00825E404D8 DefaultVariableDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/TimestampDxe/TimestampDxe/DEBUG/TimestampDxe.dll 0x825E30000
Loading driver at 0x00825E2F000 EntryPoint=0x00825E34890 TimestampDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/Silicon/NVIDIA/Drivers/FwImageDxe/FwImageDxe/DEBUG/FwImageDxe.dll 0x826EB0000
Loading driver at 0x00826EA0000 EntryPoint=0x00826EB4C68 FwImageDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/EsrtFmpDxe/EsrtFmpDxe/DEBUG/EsrtFmpDxe.dll 0x825E26000
Loading driver at 0x00825E25000 EntryPoint=0x00825E2A598 EsrtFmpDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/Silicon/NVIDIA/Drivers/AmlGenerationDxe/AmlGenerationDxe/DEBUG/AmlGenerationDxe.dll 0x825E1D000
Loading driver at 0x00825E1C000 EntryPoint=0x00825E20E5C AmlGenerationDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/Silicon/NVIDIA/Drivers/AmlPatchDxe/AmlPatchDxe/DEBUG/AmlPatchDxe.dll 0x825E14000
Loading driver at 0x00825E13000 EntryPoint=0x00825E18064 AmlPatchDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/Silicon/NVIDIA/Drivers/ConfigurationManagerTokenDxe/ConfigurationManagerTokenDxe/DEBUG/ConfigurationManagerTokenDxe.dll 0x825E0B000
Loading driver at 0x00825E0A000 EntryPoint=0x00825E0EA10 ConfigurationManagerTokenDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/DynamicTablesPkg/Drivers/DynamicTableFactoryDxe/DynamicTableFactoryDxe/DEBUG/DynamicTableFactoryDxe.dll 0x825DC3000
Loading driver at 0x00825DC2000 EntryPoint=0x00825DCB4F4 DynamicTableFactoryDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe/DEBUG/HiiDatabase.dll 0x825DA0000
Loading driver at 0x00825D9F000 EntryPoint=0x00825DA39AC HiiDatabase.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/PrintDxe/PrintDxe/DEBUG/PrintDxe.dll 0x825D96000
Loading driver at 0x00825D95000 EntryPoint=0x00825D9A420 PrintDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/Silicon/NVIDIA/Drivers/BpmpIpc/BpmpIpcDxe/DEBUG/BpmpIpcDxe.dll 0x825D88000
Loading driver at 0x00825D87000 EntryPoint=0x00825D8FCB4 BpmpIpcDxe.efi

HspDoorbellEnableChannel: Waiting for HSP Doorbell Channel Enabled.
HspDoorbellEnableChannel: HSP Doorbell Channel Enabled.
add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/Silicon/NVIDIA/Drivers/BpmpI2c/BpmpI2cDxe/DEBUG/BpmpI2cDxe.dll 0x825D7C000
Loading driver at 0x00825D7B000 EntryPoint=0x00825D82708 BpmpI2cDxe.efi

BuildI2cDevices: nvidia,vrs-pseq detected
BuildI2cDevices: Address 3C
Invalid EFI_I2C_DEVICE reported by I2c Enumerate protocol.
Invalid EFI_I2C_DEVICE reported by I2c Enumerate protocol.
Invalid EFI_I2C_DEVICE reported by I2c Enumerate protocol.
Invalid EFI_I2C_DEVICE reported by I2c Enumerate protocol.
Invalid EFI_I2C_DEVICE reported by I2c Enumerate protocol.
Invalid EFI_I2C_DEVICE reported by I2c Enumerate protocol.
add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/Silicon/NVIDIA/Drivers/I2cExpanderGpio/I2cExpanderGpio/DEBUG/I2cExpanderGpio.dll 0x825D72000
Loading driver at 0x00825D71000 EntryPoint=0x00825D761B8 I2cExpanderGpio.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/Silicon/NVIDIA/Drivers/IpmiNullDxe/IpmiNullDxe/DEBUG/IpmiNullDxe.dll 0x825D69000
Loading driver at 0x00825D68000 EntryPoint=0x00825D6C8B4 IpmiNullDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/Silicon/NVIDIA/Drivers/Logo/LogoDxe/DEBUG/LogoDxe.dll 0x825D5F000
Loading driver at 0x00825D5E000 EntryPoint=0x00825D63354 LogoDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/ArmPkg/Drivers/TimerDxe/TimerDxe/DEBUG/ArmTimerDxe.dll 0x825D56000
Loading driver at 0x00825D55000 EntryPoint=0x00825D59A3C ArmTimerDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/Silicon/NVIDIA/Drivers/BootWatchdog/BootWatchdog/DEBUG/BootWatchdog.dll 0x825D4D000
Loading driver at 0x00825D4C000 EntryPoint=0x00825D50F78 BootWatchdog.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/Silicon/NVIDIA/Drivers/UsbFirmwareDxe/UsbFirmwareDxe/DEBUG/UsbFirmwareDxe.dll 0x825D43000
Loading driver at 0x00825D42000 EntryPoint=0x00825D4714C UsbFirmwareDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/ArmPkg/Drivers/ArmPciCpuIo2Dxe/ArmPciCpuIo2Dxe/DEBUG/ArmPciCpuIo2Dxe.dll 0x825D3A000
Loading driver at 0x00825D39000 EntryPoint=0x00825D3DD2C ArmPciCpuIo2Dxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/Silicon/NVIDIA/Drivers/TegraP2UDxe/TegraP2UDxe/DEBUG/TegraP2UDxe.dll 0x825D30000
Loading driver at 0x00825D2F000 EntryPoint=0x00825D344F4 TegraP2UDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/Silicon/NVIDIA/Drivers/VPRDxe/VPRDxe/DEBUG/VPRDxe.dll 0x825D26000
Loading driver at 0x00825D25000 EntryPoint=0x00825D2A830 VPRDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/Silicon/NVIDIA/Drivers/GoldenRegisterDxe/GoldenRegisterDxe/DEBUG/GoldenRegisterDxe.dll 0x825D1D000
Loading driver at 0x00825D1C000 EntryPoint=0x00825D20C88 GoldenRegisterDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/Silicon/NVIDIA/Drivers/FSIDxe/FSIDxe/DEBUG/FSIDxe.dll 0x825D13000
Loading driver at 0x00825D12000 EntryPoint=0x00825D17624 FSIDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/Silicon/NVIDIA/Drivers/BasicProfilerDxe/BasicProfilerDxe/DEBUG/BasicProfilerDxe.dll 0x825D0A000
Loading driver at 0x00825D09000 EntryPoint=0x00825D0DA18 BasicProfilerDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/NetworkPkg/DpcDxe/DpcDxe/DEBUG/DpcDxe.dll 0x825D01000
Loading driver at 0x00825D00000 EntryPoint=0x00825D04C80 DpcDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe/DEBUG/HttpUtilitiesDxe.dll 0x825CF8000
Loading driver at 0x00825CF7000 EntryPoint=0x00825CFC3F4 HttpUtilitiesDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe/DEBUG/SmbiosDxe.dll 0x825CED000
Loading driver at 0x00825CEC000 EntryPoint=0x00825CF27E0 SmbiosDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe/DEBUG/DevicePathDxe.dll 0x825CDB000
Loading driver at 0x00825CDA000 EntryPoint=0x00825CE5DCC DevicePathDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe/DEBUG/RngDxe.dll 0x825CD2000
Loading driver at 0x00825CD1000 EntryPoint=0x00825CD60E4 RngDxe.efi

ArmTrngLib could not be correctly initialized.
RngLib uses an Unsafe algorithm and must not be used for production builds.
add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/SecurityPkg/Pkcs7Verify/Pkcs7VerifyDxe/Pkcs7VerifyDxe/DEBUG/Pkcs7VerifyDxe.dll 0x825BD2000
Loading driver at 0x00825BD1000 EntryPoint=0x00825BD3BFC Pkcs7VerifyDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/Silicon/NVIDIA/Drivers/RcmDxe/RcmDxe/DEBUG/RcmDxe.dll 0x825BC9000
Loading driver at 0x00825BC8000 EntryPoint=0x00825BCC93C RcmDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/Silicon/NVIDIA/Drivers/PlatformToDriverConfiguration/PlatformToDriverConfiguration/DEBUG/PlatformToDriverConfiguration.dll 0x825BBF000
Loading driver at 0x00825BBE000 EntryPoint=0x00825BC3218 PlatformToDriverConfiguration.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/Silicon/NVIDIA/Drivers/RegulatorDxe/RegulatorDxe/DEBUG/RegulatorDxe.dll 0x825BB3000
Loading driver at 0x00825BB2000 EntryPoint=0x00825BB8A54 RegulatorDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/Silicon/NVIDIA/Drivers/NorFlashDxe/NorFlashDxe/DEBUG/NorFlashDxe.dll 0x826E60000
Loading driver at 0x00826E50000 EntryPoint=0x00826E67A68 NorFlashDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/Silicon/NVIDIA/Drivers/CapsuleUpdatePolicyDxe/CapsuleUpdatePolicyDxe/DEBUG/CapsuleUpdatePolicyDxe.dll 0x826E10000
Loading driver at 0x00826E00000 EntryPoint=0x00826E13798 CapsuleUpdatePolicyDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/Silicon/NVIDIA/Drivers/EepromDxe/Eeprom/DEBUG/EepromDxe.dll 0x825BA9000
Loading driver at 0x00825BA8000 EntryPoint=0x00825BAD714 EepromDxe.efi

Cvm Eeprom Product Id: 699-13701-0000-500 J.0
Cvb Eeprom data validation failed(Success)
add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/Silicon/NVIDIA/Drivers/NvSecureBootProvisionDxe/NvSecureBootProvisionDxe/DEBUG/NvSecureBootProvisionDxe.dll 0x825B9E000
Loading driver at 0x00825B9D000 EntryPoint=0x00825BA339C NvSecureBootProvisionDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/ArmPkg/Drivers/ArmPsciMpServicesDxe/ArmPsciMpServicesDxe/DEBUG/ArmPsciMpServicesDxe.dll 0x825B8F000
Loading driver at 0x00825B8E000 EntryPoint=0x00825B94C90 ArmPsciMpServicesDxe.efi

add-symbol-file /build/nvidia-uefi/Build/Jetson/DEBUG_GCC5/AARCH64/Silicon/NVIDIA/Drivers/MmCommunicationOpteeDxe/MmCommunicationOptee/DEBUG/MmCommunicationOptee.dll 0x826DC0000
Loading driver at 0x00826DB0000 EntryPoint=0x00826DC4B10 MmCommunicationOptee.efi

��I/TC: Reserved shared memory is disabled
I/TC: Dynamic shared memory is enabled
I/TC: Normal World virtualization support is disabled
I/TC: Asynchronous notifications are disabled

UpdatePeCoffPermissions: Mapping section 1 of image at 0x406FC000 with RW-XN permissions and size 0x1000
Loading MM driver at 0x000406F6000 EntryPoint=0x000406F9740 QspiControllerStandaloneMm.efi

GetDeviceTypeRegions: 1 qspi0 regions present
MmInstallProtocolInterface: 01458542-64B6-42D9-808C-544254D88FC6 40701420
MmInstallProtocolInterface: 40930D29-595C-4588-B692-16E74A5B3C75 407012D0
UpdatePeCoffPermissions: Mapping section 1 of image at 0x406F3000 with RW-XN permissions and size 0x1000
Loading MM driver at 0x000406EC000 EntryPoint=0x000406EF6B4 NorFlashStandaloneMm.efi

NorFlashInitialise: Using ChipSelect 0
MmInstallProtocolInterface: C3FF8100-150D-4744-A68B-19A5435D5DAD 406EBE30
MmInstallProtocolInterface: 40930D29-595C-4588-B692-16E74A5B3C75 40701110
UpdatePeCoffPermissions: Mapping section 1 of image at 0x406E8000 with RW-XN permissions and size 0x1000
Loading MM driver at 0x000406DC000 EntryPoint=0x000406E0EC0 FvbNorFlashStandaloneMm.efi

GetDeviceTypeRegions: 1 scratch-t234 regions present
FVBNORInitialize:Using Reserved Partition 66781184 65536 for VarStore Integrity
FVBNORInitialize: VariableOffset 65536000 VariableSize 262144FTW Offset 65798144 FTW Size 524288MmInstallProtocolInterface: 49DAE0B5-7994-4A9F-A129-3D19898EE913 406EBA90
MmInstallProtocolInterface: D326D041-BD31-4C01-B5A8-628BE87F0653 406EB860
MmInstallProtocolInterface: D326D041-BD31-4C01-B5A8-628BE87F0653 406EB8F8
MmInstallProtocolInterface: D326D041-BD31-4C01-B5A8-628BE87F0653 406EB990
MmInstallProtocolInterface: D1A86E3F-0707-4C35-83CD-DC2C29C891A3 0
UpdatePeCoffPermissions: Mapping section 1 of image at 0x40618000 with RW-XN permissions and size 0x1000
Loading MM driver at 0x00040612000 EntryPoint=0x000406156D4 OpTeeRpmbFvNv.efi
UpdatePeCoffPermissions: Mapping section 1 of image at 0x4060F000 with RW-XN permissions and size 0x1000
Loading MM driver at 0x00040606000 EntryPoint=0x0004060B9C4 FaultTolerantWriteStandaloneMm.efi
MmInstallProtocolInterface: 3868FC3B-7E45-43A7-906C-4BA47DE1754D 405C5020
UpdatePeCoffPermissions: Mapping section 1 of image at 0x405C2000 with RW-XN permissions and size 0x1000
Loading MM driver at 0x000405B9000 EntryPoint=0x000405BE910 FwPartitionStandaloneMm.efi
UpdatePeCoffPermissions: Mapping section 1 of image at 0x405B6000 with RW-XN permissions and size 0x1000
Loading MM driver at 0x000405AE000 EntryPoint=0x000405B2A54 NorFlashStandaloneMmDice.efi

GetDeviceTypeRegions: 1 qspi0 regions present
GetDeviceTypeRegions: 1 scratch-t234 regions present
UpdatePeCoffPermissions: Mapping section 1 of image at 0x405AB000 with RW-XN permissions and size 0x1000
Loading MM driver at 0x000405A6000 EntryPoint=0x000405A8D64 StandaloneMmCpu.efi
MmInstallProtocolInterface: 26EEB3DE-B689-492E-80F0-BE8BD7DA4BA7 405AB0A8
UpdatePeCoffPermissions: Mapping section 1 of image at 0x4057A000 with RW-XN permissions and size 0x27000
Loading MM driver at 0x000404CC000 EntryPoint=0x000404D37BC VariableStandaloneMm.efi
MmInstallProtocolInterface: ED32D533-99E6-4209-9CC0-2D72CDD998A7 4057A980
MmGetVariable3:271
MmGetVariable3:283
MmGetVariable3:294
MmGetVariable3:271
MmGetVariable3:283
MmGetVariable3:294
MmGetVariable3:271
MmGetVariable3:283
MmGetVariable3:294
MmGetVariable3:271
MmGetVariable3:283
MmGetVariable3:294
MmGetVariable3:271
MmGetVariable3:283
MmGetVariable3:294
MmGetVariable3:271
MmGetVariable3:283
MmGetVariable3:294
MmGetVariable3:271
MmGetVariable3:283
MmGetVariable3:294
MmGetVariable3:271
MmGetVariable3:283
MmGetVariable3:294
MmGetVariable3:271
MmGetVariable3:283
MmGetVariable3:294
Var SecureBoot Doesn't exist Not Found
Var PK Doesn't exist Not Found
Var KEK Doesn't exist Not Found
Var db Doesn't exist Not Found
Var dbx Doesn't exist Not Found
I/TC: WARNING: Test UEFI variable auth key is being used !
I/TC: WARNING: UEFI variable protection is not fully enabled !
VarIntValidate: No Valid Records are found
VarIntValidate: FAILED TO VALIDATE
MmFvbSmmVarReady:Var Store Validation failed Device ErrorASSERT [FvbNorFlashStandaloneMm] /build/nvidia-uefi/edk2-nvidia/Silicon/NVIDIA/Drivers/FvbNorFlashDxe/FvbNorFlashStandaloneMm.c(937): ((BOOLEAN)(0==1))

Anything else that I could try?

Thank you

Could you share the detailed steps how you reproduce this issue for me to verify on my setup again?

Looks like this change was also needed, with optee re-built and the capsule re-created:

--- a/Platform/NVIDIA/StandaloneMmOptee/StandaloneMmOptee.dsc.inc
+++ b/Platform/NVIDIA/StandaloneMmOptee/StandaloneMmOptee.dsc.inc
@@ -51,7 +51,7 @@
   gArmTokenSpaceGuid.PcdFfaEnable|TRUE
   gNVIDIATokenSpaceGuid.PcdOpteePresent|TRUE
   gNVIDIATokenSpaceGuid.PcdVarStoreIntegritySupported|TRUE
-  gNVIDIATokenSpaceGuid.PcdAssertOnVarStoreIntegrityCheckFail|TRUE
+ gNVIDIATokenSpaceGuid.PcdAssertOnVarStoreIntegrityCheckFail|FALSE

This improves the situation, because the board no longer hangs, but prevents the capsule update from being applied if it was triggered just before the failure.

Right now trying to avoid the reboot to see if the capsule update still works, because if the capsule is applied the var store re-initialization should be done on the next boot anyway:

--- a/Silicon/NVIDIA/Drivers/DefaultVariableDxe/DefaultVariableDxe.c
+++ b/Silicon/NVIDIA/Drivers/DefaultVariableDxe/DefaultVariableDxe.c
@@ -112,7 +112,7 @@ CheckVarStoreState (
     DEBUG ((DEBUG_ERROR, "%a: %s not found %r\n", __FUNCTION__, VARINT_CHECK_FAILED, Status));
   } else {
     if (VarStoreCheckFailed == 1) {
-      DEBUG ((DEBUG_ERROR, "Rebooting the System to re-init Var Store\n"));
+      DEBUG ((DEBUG_ERROR, "NOT rebooting the System to re-init Var Store\n"));
       Status = gRT->SetVariable (
                       VARINT_CHECK_FAILED,
                       &gEfiGlobalVariableGuid,
@@ -124,7 +124,7 @@ CheckVarStoreState (
         DEBUG ((DEBUG_ERROR, "%aFailed to Delete %s %r\n", __FUNCTION__, VARINT_CHECK_FAILED, Status));
       }

-      ResetCold ();
+      //ResetCold ();
     }

If there’s a way to check here if a capsule update was pending and avoid resetting only in that case, please let me know

It seems you disable the assert when there is a non-erased variable integrity space.

You can run the following command to check the status of capsule update.

$ sudo nvbootctrl dump-slots-info

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