Hi,
I'm trying to follow the doc to enable DM-Crypt with CAAM.
https://www.nxp.com/docs/en/application-note/AN12714.pdf
But I cannot find dmsetup tool.
root@imx8dxptbox:/# dmsetup targets
-sh: dmsetup: command not found
Anything I missed?
Here are my device info:
I can found device-mapper was launched. Related log showing from dmesg
[ 3.358614] device-mapper: uevent: version 1.0.3
[ 3.363547] device-mapper: ioctl: 4.37.0-ioctl (2017-09-20) initialised: dm-devel@redhat.com
[ 3.372145] device-mapper: multipath round-robin: version 1.2.0 loaded
My CAAM related kernel config setting:
root@imx8dxptbox:/# zcat /proc/config.gz | grep CAAM
CONFIG_CRYPTO_DEV_FSL_CAAM=y
CONFIG_CRYPTO_DEV_FSL_CAAM_JR=y
CONFIG_CRYPTO_DEV_FSL_CAAM_RINGSIZE=9
# CONFIG_CRYPTO_DEV_FSL_CAAM_INTC is not set
CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API=y
CONFIG_CRYPTO_DEV_FSL_CAAM_AHASH_API=y
CONFIG_CRYPTO_DEV_FSL_CAAM_PKC_API=y
CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_API=y
CONFIG_CRYPTO_DEV_FSL_CAAM_TK_API=y
# CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_TEST is not set
CONFIG_CRYPTO_DEV_FSL_CAAM_SM=y
CONFIG_CRYPTO_DEV_FSL_CAAM_SM_SLOTSIZE=7
CONFIG_CRYPTO_DEV_FSL_CAAM_SM_TEST=y
CONFIG_CRYPTO_DEV_FSL_CAAM_SECVIO=y
# CONFIG_CRYPTO_DEV_FSL_CAAM_DEBUG is not set
CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API_DESC=y
CONFIG_CRYPTO_DEV_FSL_CAAM_AHASH_API_DESC=y
Hi Yuri,
May I know the keyutils package is packed into NXP's kernel release by default?
When I run the build, the keyutils package cannot be found.
============================
Parsing of 2602 .bb files complete (2600 cached, 2 parsed). 3526 targets, 433 skipped, 11 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing RPROVIDES 'keyutils'
NOTE: Runtime target 'keyutils' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['keyutils']
============================
My kernel version is Linux-4.14.98_2.3.3
Build by Yocto
Thanks,
Syuan
@syuanyang
Hello,
According to section 3.1 (Installation) of the app note recent release (Rev. 2, 02/2021),
Lvm2 provides dmsetup utility and libraries to manage device-mapper.
Also:
If not already installed, add the required tools to build by editing the conf/local.conf file and appending.
CORE_IMAGE_EXTRA_INSTALL+="coreutils keyutils lvm2 e2fsprogs-mke2fs util-linux"
https://www.nxp.com/webapp/Download?colCode=AN12714
Regards,
Yuri.