Hi
I am using imx6ulevk Yocto 4.1.15_2.0.0-ga.
How to verify CAAM is enabled?
I added imx-test to the image and could not find any test with caam name.
Please let me know which tests are available in imx-test for caam.
Regards,
Arun
Solved! Go to Solution.
Hello,
Configuration of CAAM driver is controlled by the kernel configuration parameters under
Cryptographic API -> Hardware Crypto Devices.
To call crypto algorithms from user space, the following kernel configuration parameters need
be selected under Cryptographic API :
CRYPTO_USER_API_HASH
CRYPTO_USER_API_SKCIPHER
Please refer to Chapter 50 CAAM (Cryptographic Acceleration and Assurance Module) in "i.MX_Linux_Reference_Manual.pdf" for detailed description about the configuration parameters.
You can check the kernel boot log ; the following message is shown, if CAAM driver is loaded
successfully:
caam 2140000.caam: Instantiated RNG4 SH1
caam 2140000.caam: device ID = 0x0a16030000000000 (Era -524)
caam 2140000.caam: job rings = 3, qi = 0
caam algorithms registered in /proc/crypto
caam_jr 2141000.jr0: registering rng-caam
To check algorithms registered, please use /proc/crypto :
root@imx6ulevk:~# cat /proc/crypto
…
name : cbc(aes)
driver : cbc-aes-caam
module : kernel
priority : 3000
refcnt : 1
selftest : passed
internal : no
type : givcipher
async : yes
blocksize : 16
min keysize : 16
max keysize : 32
ivsize : 16
geniv : <built-in>
To check CAAM is working or not, you can run a simple test to do encryption operation,
using kernel crypto API, then check /proc/interrupts.
root@imx6ulevk:~# cat /proc/interrupts
...
236: 14 GPC 105 Level 2141000.jr0
237: 0 GPC 106 Level 2142000.jr1
238: 0 GPC 46 Level 2143000.jr2
Have a great day,
Yuri
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
Hello,
Configuration of CAAM driver is controlled by the kernel configuration parameters under
Cryptographic API -> Hardware Crypto Devices.
To call crypto algorithms from user space, the following kernel configuration parameters need
be selected under Cryptographic API :
CRYPTO_USER_API_HASH
CRYPTO_USER_API_SKCIPHER
Please refer to Chapter 50 CAAM (Cryptographic Acceleration and Assurance Module) in "i.MX_Linux_Reference_Manual.pdf" for detailed description about the configuration parameters.
You can check the kernel boot log ; the following message is shown, if CAAM driver is loaded
successfully:
caam 2140000.caam: Instantiated RNG4 SH1
caam 2140000.caam: device ID = 0x0a16030000000000 (Era -524)
caam 2140000.caam: job rings = 3, qi = 0
caam algorithms registered in /proc/crypto
caam_jr 2141000.jr0: registering rng-caam
To check algorithms registered, please use /proc/crypto :
root@imx6ulevk:~# cat /proc/crypto
…
name : cbc(aes)
driver : cbc-aes-caam
module : kernel
priority : 3000
refcnt : 1
selftest : passed
internal : no
type : givcipher
async : yes
blocksize : 16
min keysize : 16
max keysize : 32
ivsize : 16
geniv : <built-in>
To check CAAM is working or not, you can run a simple test to do encryption operation,
using kernel crypto API, then check /proc/interrupts.
root@imx6ulevk:~# cat /proc/interrupts
...
236: 14 GPC 105 Level 2141000.jr0
237: 0 GPC 106 Level 2142000.jr1
238: 0 GPC 46 Level 2143000.jr2
Have a great day,
Yuri
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!