Hello,
I have followed the document AN12714.pdf and the IMX Linux User guide(IMXLUG_6.6.23_2.0.0) on how to use the CAAM module to encrypt and decrypt a partition. Since the operations performed there are manually I want to have this done automatically.
It is possible to script these steps and introduce a script at boot in my initramfs to do this, but I have also looked into using third-party components such as the module systemd-cryptsetup of systemd and the usage of a /etc/crypttab file. I can however not yet determine if this is usable with the CAAM module as in the examples in the documents the keys are imported into the keyring and then use dmsetup to decrypt the partition.