TEEC_ERROR_ITEM_NOT_FOUND (0xffff0008) When Using OP-TEE on Jetson Orin Nano

Hey JerryChang,
I took a look at Topic 264454 as you suggested and also followed the Quick Guide in the Developer Guide for Disk Encryption. Both refer to a pretty similar approach which I tried. These are the steps I took to enable the Disk Encryption and try to make the hwkey-agent sample work:


# 1️⃣ Install required packages
sudo apt-get install python3-cryptography python3-cffi-backend libxml2-utils
sudo apt-get install cryptsetup python3-pycryptodome python3-crypto

# 2️⃣ Create the QSPI Flash Image for Bootloader
cd Linux_for_Tegra
sudo ./tools/kernel_flash/l4t_initrd_flash.sh --network usb0 \
    --showlogs -p "-c bootloader/generic/cfg/flash_t234_qspi.xml" \
    --no-flash jetson-orin-nano-devkit internal

# 3️⃣ Create the encryption key
echo "f0e0d0c0b0a001020304050607080900" > disk_enc.key

# 4️⃣ Generate the encrypted Rootfs Image (for external storage)
sudo ROOTFS_ENC=1 ./tools/kernel_flash/l4t_initrd_flash.sh --network usb0 \
    --showlogs --no-flash --external-device nvme0n1p1 -S 16GiB \
    -c ./tools/kernel_flash/flash_l4t_t234_nvme_rootfs_enc.xml \
    --external-only --append -i ./disk_enc.key jetson-orin-nano-devkit external

# 5️⃣ Flash the system
sudo ./tools/kernel_flash/l4t_initrd_flash.sh --network usb0 --showlogs --flash-only

The “Flash the system”-process successfully completes Step 1 (Build the flashing environment) and Step 2 (Boot the device with the flash initrd image). However, it fails at Step 3 (Start the flashing process) with the following error:

Error: Could not stat device /dev/nvme0n1 - No such file or directory.
Flash failure
Either the device cannot mount the NFS server on the host or a flash command has failed.
Check your network setting (VPN, firewall,...) to make sure the device can mount NFS server.

🔹 Root Cause:
I believe this happens because the flashing process is looking for an NVMe SSD (/dev/nvme0n1), but I am not using an NVMe drive. Instead, my Jetson Orin Nano is booting from a microSD card.

🔹 So …

  • How can I modify the flashing process so that it correctly targets my microSD card instead of looking for an NVMe SSD?
  • Do I need to modify the partition config file? Should I use a different XML file instead of flash_l4t_t234_nvme_rootfs_enc.xml?