I’m struggling to enable dm-verity on Jetson Nano 4GB [B02] board. I’m using L4T v32.7.1. From the error message, it appears that dm-verity module is not built into kernel.
sudo veritysetup open --no-superblock /boot/initrd.img verity-test ~/verity-hashes.img [hashcode] device-mapper: reload ioctl on failed: Invalid argument
Kernel doesn’t support dm-verity mapping.
Below are set of commands to repro this on Jetson Nano.
Is the dm-verity setup built into the kernel, or I need to re-build the kernel adding following flags to public/source/ kernel/kernel-4.9/arch/arm64/configs/tegra_defconfig
Can you please share the set of steps required to build the kernel with config changes and deploy it on Jetson Nano board.
I’ve been struggling to do so far. I found that kernel image built from unmodified public/sources [v32.7.1 downloaded from link] shows unexpected behavior. The newly flashed OS [with locally built kernel] kills the X-windows and goes to boot console, after first time configuration. On reboot, the device remains in boot screen with following error messages
Failed to start nvpmodel.service.
Reserved SVD code 0 [ n times]
Below are the steps, I’ve been following
cd source/public
JETSON_NANO_KERNEL_SOURCE=$(pwd)
cd kernel/kernel-4.9
sudo make ARCH=arm64 tegra_defconfig
sudo make ARCH=arm64 -j(nproc)
sudo cp arch/arm64/boot/Image …/…/…/…/kernel/
cd …/…/…/…/
sudo ./apply_binaries.sh
sudo ./flash.sh DTB jetson-nano-emmc mmcblk0p1
I’m wondering if the kernel file bundled in L4T Driver Package [Jetson-210_Linux_R32.7.1_aarch64.tbz2] is built from a different code commit than the one in public_sources.tbz2. Can we get on a call today to resolve this issue?