I can’t turn on Secure boot and Disk Encryption in Jet Pack 6.2 (R36.3.4)
If I specify the burning process with the Secure Boot and eMMC encrytion, I’ve got the following error during TOS boot:
NOTICE: BL31: Built : 15:33:57, Jan 21 2025
I/TC:
I/TC: Non-secure external DT found
I/TC: OP-TEE version: 4.2 (gcc version 11.3.0 (Buildroot 2022.08)) #2 Wed Jan 22 08:55:02 UTC 2025 aarch64
I/TC: Primary CPU initializing
I/TC: Primary CPU switching to normal world boot
Unhandled Exception from EL1
x0 = 0x7ef847a1233c6921
x1 = 0xf6a5260ecec405ad
x2 = 0x00000000000f4240
x3 = 0x0000000081000000
x4 = 0x0000000000000001
x5 = 0x000000083c1f3d68
x6 = 0xffffffffffffffff
x7 = 0x000000083c26aef0
x8 = 0x0000000000000020
x9 = 0x000000083c26aef0
x10 = 0x00000000000010c0
x11 = 0x0000000000000000
x12 = 0x00000000ffffffd8
x13 = 0x000000083c10e679
x14 = 0x000000083c26b014
x15 = 0x0000000842240020
x16 = 0x000000083c0ae714
x17 = 0x0000000000000000
x18 = 0x000000083c26afc4
x19 = 0x0000000000000000
x20 = 0x0000000000000000
x21 = 0x000000083c040020
x22 = 0x0000000000000000
x23 = 0x000000083c281b10
x24 = 0x000000083c1f4550
x25 = 0x0000000000000000
x26 = 0x0000000000000000
x27 = 0x0000000000000000
x28 = 0x0000000000000000
x29 = 0x0000000000000000
x30 = 0x000000083c080180
scr_el3 = 0x0000000000000e34
sctlr_el3 = 0x0000000030cd183f
cptr_el3 = 0x0000000000000000
tcr_el3 = 0x0000000080823518
daif = 0x00000000000002c0
mair_el3 = 0x00000000004404ff
spsr_el3 = 0x00000000600003c4
elr_el3 = 0x000000083c08018c
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 = 0x000000083c1f4550
esr_el1 = 0x0000000000000000
ttbr0_el1 = 0x000000083c254000
ttbr1_el1 = 0x0000000000000000
mair_el1 = 0x00000000ff00ff04
amair_el1 = 0x0000000000000000
tcr_el1 = 0x0000000280803f1a
tpidr_el1 = 0x0000000000000000
tpidr_el0 = 0x0000000000000000
tpidrro_el0 = 0x0000000000000000
par_el1 = 0xff0000083c237980
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
Found some similar fixes/issues here:
- Secure boot and Disk Encryption issues in l4t 35.3.1 and 35.5.0 - #6 by nazaraa
- Updating TOS in Jetpack 6
Then I’ve downloaded the latest nv-optee sources from here:
- https://nv-tegra.nvidia.com/r/tegra/optee-src/nv-optee.git (branch: tag: jetson_36.4.3, origin/l4t/l4t-r36.4.2)
Modifications (according to the topics listed above):
- CFG_TEGRA_SE_USE_TEST_KEYS = n
- CFG_INSECURE = n
Compilation:
export CROSS_COMPILE_AARCH64_PATH=l4t-gcc-11.3
export CROSS_COMPILE_AARCH64=l4t-gcc-11.3/bin/aarch64-buildroot-linux-gnu-
CROSS_COMPILE=l4t-gcc-11.3/bin/aarch64-buildroot-linux-gnu-
UEFI_STMM_PATH=36.4.3/Linux_for_Tegra/bootloader/standalonemm_optee_t234.bin
./optee_src_build.sh -p t234
Please, help.