1- Should I create separate .img for boot and root to create APP and APP_ENC? If yes, how can I separate and create them?
2- Should I define the luks password before or after partitioning (for APP_ENC)? If before, should I define it for root.img
3- Should I do the flashing part after completing everything (after crypttab and fstab)?
4- How can I do the luksFormat part using nvluks-srv-app?
you’ll need to re-flash a target to enable disk encryption.
for instance, $ sudo ROOTFS_ENC=1 ./flash.sh -i ekb.key jetson-tx2 mmcblk0p1
note, it’s ebk.key as your disk encryption key, please do re-generate EKS image properly.