Nvidia Jetson - Enable filesystem encryption

You must recompile the Linux kernel for your Jetson AGX. The default NVIDIA L4T (Linux for Tegra) kernel does not include filesystem encryption support out of the box.

Identify your L4T Version

cat /etc/nv_tegra_release

Download the Kernel Source

Extract and Configure the Kernel

cd kernel/kernel-<version>
make ARCH=arm64 tegra_defconfig
make ARCH=arm64 menuconfig
CONFIG_FS_ENCRYPTION=y
CONFIG_BLK_INLINE_ENCRYPTION=y

Build the Kernel and Modules

make ARCH=arm64 -j$(nproc) Image
make ARCH=arm64 -j$(nproc) dtbs
make ARCH=arm64 -j$(nproc) modules

Install and Reboot

sudo cp /boot/Image /boot/Image.backup
sudo cp arch/arm64/boot/Image /boot/Image
sudo make ARCH=arm64 modules_install INSTALL_MOD_PATH=/
sudo depmod -a
sudo reboot