AnsweredAssumed Answered

dm-crypt Error on iMX 6UL EVK

Question asked by Kanimozhi Thangappan on Jun 14, 2020
Latest reply on Jun 15, 2020 by Yuri Muhin



   I'm closely following AN12714 ( )for encrypting root filesystem in iMX6UL. And based on my hardware, the only thing I've changed from the provided example is, MACHINE=imx6ulevk (from original imx8mmevk). The build completed without any error but I encounter the following errors in runtime:

root@imx6ulevk:~# grep -B1 -A2 tk- /proc/crypto|grep -v kernel
root@imx6ulevk:~# dmsetup targets
/dev/mapper/control: open failed: No such device
Failure to communicate with kernel device-mapper driver.
Check that device-mapper is available in the kernel.
Incompatible libdevmapper 1.02.140 (2017-05-03) and kernel driver (unknown version).
Command failed
root@imx6ulevk:~# ls -la /dev/mapper/control
crw------- 1 root root 10, 236 Jun 11 12:32 /dev/mapper/control
root@imx6ulevk:~# keyctl add caam_tk seckey "new ecb 16" @s
add_key: No such device

    In the log above, my observation is cryptographic engine is not at all working as grep -B1 -A2 tk- /proc/crypto|grep -v kernel returns nothing and dm-crypt is screwed.

Can you point me what would have gone wrong here? and could you please list steps to debug this?