[Security][Disk Encryption] Creating Encrypted Images with a Generic Key

hi all,

according to below forum topics,
it was not support to use generic passphrase, and suggested to have unique ECID to enable disk encryption.


as you may know,
it’s now able to create encrypted images with a generic key with JetPack 5.1.3 (r35.5.0) release version.

here’re steps
Step-1) please refer to developer guide, Creating Encrypted Images with a Generic Key,
there’s --massflash option to generate a massflash package,
for instance,

$ sudo BOARDID=3767 BOARDSKU=0000 ./tools/kernel_flash/l4t_initrd_flash.sh \
        --network usb0 -p "-c bootloader/t186ref/cfg/flash_t234_qspi.xml" \
        --no-flash \
        jetson-orin-nano-devkit internal
$ sudo BOARDID=3767 BOARDSKU=0000 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 ``-p "--generic-passphrase"`` \
        --massflash 2 jetson-orin-nano-devkit external

Step-2) after above commands has complete, it should create a massflash (mfi_.tar.gz) package,
by extracting this package, you should then putting two Orin Nano DevKits into recovery mode, and flashing them simultaneously.

$ sudo tar xpfv mfi_<target-board>.tar.gz.
$ cd mfi_<target-board>
$ sudo ./tools/kernel_flash/l4t_initrd_flash.sh --flash-only --massflash 2

Step-3) you should be able to perform Massflash to multiple devices.
after image flashing has complete, you should have two Orin Nano with disk encryption enabled.
you may have verification (i.e. $ df -h) after booting into linux.

$ df -h
/dev/mapper/crypt_root 54G 5.6G 46G 12% /
/dev/mapper/crypt_UDA 374M 14K 350M 1% /mnt/crypt_UDA
/dev/nvme0n1p1 371M 97M 247M 29% /boot
2 Likes
Orin security questions about Secureboot and Disk encryption
Is it possible to decrypt a rootfs disk in another system, knowing the ECID and the keys used to generate it
Massflash Encryption with a generic key : How is the new key generated
Encrypted Mass flash : End sector for APP_ENC, expected at: 119537630, actual: 0
Orin Nano 8GB Encrypted SSD flashing FAILS on prod-module - devboard is OK
Orin Nano 8Gb dev-board issues with flashing encrypted root_fs of Jetpack 5.1.2
Using the image of the encrypted system on other devices
Massflash with DiskEncryption
Disk Encryption - Generic Passphrase across multiple devices
Massflash with DiskEncryption
Massflash encrypted nvme fails with Could not stat device /dev/mmcblk0 - No such file or directory
Jetson Orin NX (R36.4.3) - Disk Encryption - ERROR Kernel Panic
How to Enable Massflash Mode for Jetson Orin NX 16GB in Production Batch
How can I perform batch copying after enabling and flashing the encrypted root file system (Encrypted RootFS) on NVIDIA Jetson Orin?
Reusing image for flashing multiple boards
In offline mode, flash the eks partition separately
Devices suddenly stop being able to decrypt partitions
Jetson Orin NX (R36.4.3) - Disk Encryption - ERROR Kernel Panic
Fused OrinNX: Disk Encryption Fail & Secure Boot (Usage Error vs ECID Null)
Encrypted ssd nvme on Jetson Orin NX
"No key available with this passphrase." - Jetson Xavier Boot Log with ROOTFS_ENC=1
Flashing and SecureBoot test before burning ODM Production Mode FUSE
How to Backup & Restore Encrypted SSD on Jetson Orin NX 16 GB
Massflash encrypted nvme fails with Could not stat device /dev/mmcblk0 - No such file or directory
Timeout issue during Massflash with Disk Encryption on Jetson AGX Orin