Failing with custom keys for encrypting NVME on Jetson Orin Nano

hello stefankmfr0,

we’ve also check disk encryption with a custom key worked normally.
please refer to below for the steps.

In op-tee source package folder
(1) $ vim example.sh to edit sym2_t234.key as following.
(2) $ echo "f0e0d0c0b0a0010203040506070809aa" > sym2_t234.key
(3) $ ./example.sh
(4) $ cp eks_t234.img $OUT/JetPack-5.1.2_AGX-Orin/Linux_for_Tegra/bootloader/.
(5) $ cp sym2_t234.key $OUT/JetPack-5.1.2_AGX-Orin/Linux_for_Tegra/.

In JetPack-5.1.2 image folder
(1) $ sudo ./tools/kernel_flash/l4t_initrd_flash.sh --network usb0 --no-flash --showlogs -p "-c bootloader/t186ref/cfg/flash_t234_qspi.xml" jetson-orin-nano-devkit internal
(2) $ sudo ./flash.sh --no-flash -k A_eks jetson-orin-nano-devkit internal
(3) $ sudo cp bootloader/eks_t234_sigheader.img.encrypt ./tools/kernel_flash/images/internal/.
(4) $ sudo ROOTFS_ENC=1 ./tools/kernel_flash/l4t_initrd_flash.sh --showlogs --no-flash --external-device nvme0n1p1 -i ./sym2_t234.key -c ./tools/kernel_flash/flash_l4t_t234_nvme_rootfs_enc.xml --external-only --append --network usb0 jetson-orin-nano-devkit external
(5) $ sudo ./tools/kernel_flash/l4t_initrd_flash.sh --showlogs --network usb0 --flash-only

Failure to unlock 'crypt_root' with fused module when ROOTFS_ENC=1
Orin Nano and tc358743 capture issue
Can't Encrypt Jetson Orin Nano
Orin nano devkit tegrasign_v3.py isn't found
Disk Encryption
Python integration with op-tee
Dynamic Nvme Disk encryption
Jetson - Secure Boot (all) + FDE
Orin NX doesn't boot after Flashing with both rootfs A/B and disk encryption enabled
How can multiple keys be added to an EKB
Disk encryption not working (2) . AGX Orin but also Orin Nano - r35.5.0
Orin Nano disk encryption on nvme with PKCSBK enabled
Jetson Xavier NX - Avermedia EN715 - Secureboot
Orinx NX corrupted Bootloader after applying Capsule
Disk encryption key in EKS partition
Enabling disk encryption on Jetson Orin NX
Encountering Issue with Disk Encryption Setup on Jetson Orin NX 16GB
Secure boot failed with jetson nano orin
How to used the flash_l4t_nvme_rootfs_enc.xml with a custom board?
JetPack 5.1.3 - Boot error with all security enabled
Disk encryption not working (2) . AGX Orin but also Orin Nano - r35.5.0
Secure boot and disk encryption with maxim power and other libraries(like deepstream)
Orin Nano 8Gb dev-board issues with flashing encrypted root_fs of Jetpack 5.1.2
Encrypted nvme on Orin NX 16GB
How to flash OS etc to encrypted emmc but also setup encrypted nvme ssd?
NVMe disk encryption and default encryption key
oemK1 do not seem to do anything
oemK1 do not seem to do anything
Unable to boot fused Jetson Orin Nano despite flashing process appearing to succeed
Encrypted ssd nvme on Jetson Orin NX
Jetson AGX Orin (R36.4) fTPM / OP-TEE: AES crypto failed: -17 and EKB extraction failure
Secure boot failed with jetson nano orin
Jetson Orin NX - board can't flash after partial fuse burn
Jetson Orin Nano Custom Key Encryption