<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Layerscape中的主题 Hardware Offloading of NXP CAAM using OpenSSL in LS1046A</title>
    <link>https://community.nxp.com/t5/Layerscape/Hardware-Offloading-of-NXP-CAAM-using-OpenSSL-in-LS1046A/m-p/1489250#M10876</link>
    <description>&lt;P&gt;I am working with LS1046ARDB Evaluation Board to develop a network based application. I have started my project with Flex-builder(flexbuild_lsdk2108), Flex-installer(version: 1.13.2108) and Codewarrior IDE. Now i want to develop OPENSSL application with NXP CAAM&amp;nbsp;Hardware Offloading feature. I have followed the steps in this document&amp;nbsp;&lt;A href="https://www.nxp.com/docs/en/user-guide/LSDKUG_Rev21.08.pdf" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.nxp.com/docs/en/user-guide/LSDKUG_Rev21.08.pdf&lt;/A&gt;&amp;nbsp;&amp;nbsp;-&amp;gt;&amp;nbsp;9.1.1.3 Hardware Offloading with OpenSSL section. But i can't load the CAAM into OPENSSL so can you guide me to load and use the OPENSSL hardware offloading feature. I have posted my work below.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I have download the images from&amp;nbsp;&lt;A href="https://lsdk.github.io/components.html" target="_self" rel="nofollow noopener noreferrer"&gt;https://lsdk.github.io/components.html&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;boot_LS -&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://wget%20https//www.nxp.com/lgfiles/sdk/lsdk2108/boot_LS_arm64_lts_5.10.tgz" target="_self" rel="nofollow noopener noreferrer"&gt;wget https://www.nxp.com/lgfiles/sdk/lsdk2108/boot_LS_arm64_lts_5.10.tgz&lt;/A&gt;&lt;/P&gt;&lt;P&gt;firmware image -&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://wget%20https//www.nxp.com/lgfiles/sdk/lsdk2108/firmware_ls1046ardb_sdboot.img" target="_self" rel="nofollow noopener noreferrer"&gt;wget https://www.nxp.com/lgfiles/sdk/lsdk2108/firmware_ls1046ardb_sdboot.img&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Rootfs -&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://wget%20https//www.nxp.com/lgfiles/sdk/lsdk2108/rootfs_lsdk2108_ubuntu_main_arm64.tgz" target="_self" rel="nofollow noopener noreferrer"&gt;wget https://www.nxp.com/lgfiles/sdk/lsdk2108/rootfs_lsdk2108_ubuntu_main_arm64.tgz&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I have depolyed the image's in SD card through flex-installer:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;$ flex-installer -i pf -d /dev/sdx (partition and format the target storage device)&lt;/P&gt;&lt;P&gt;$ sudo flex-installer -b&amp;nbsp;boot_LS_arm64_lts_5.10.tgz -r rootfs_lsdk2108_ubuntu_main_arm64.tgz -f&amp;nbsp;firmware_ls1046ardb_sdboot.img -d /dev/sdx&lt;/P&gt;&lt;P&gt;I have booted the board using SD card, by default caam driver is not enabled in linux kernel it was builded as a module.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#333333"&gt;&lt;STRONG&gt;NXP LSDK 2108 main (custom based on ubuntu 20.04)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#333333"&gt;&lt;STRONG&gt;localhost login: root&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#333333"&gt;&lt;STRONG&gt;Password: root&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;&lt;STRONG&gt;root@localhost:~# dmesg | grep -i caam&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;&lt;STRONG&gt;root@localhost:~# modinfo caam&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;filename: /lib/modules/5.10.35/kernel/drivers/crypto/caam/caam.ko&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;author: Freescale Semiconductor - NMG/STC&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;description: FSL CAAM request backend&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;license: GPL&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;alias: of:N*T*Cfsl,sec4.0C*&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;alias: of:N*T*Cfsl,sec4.0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;alias: of:N*T*Cfsl,sec-v4.0C*&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;alias: of:N*T*Cfsl,sec-v4.0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;depends: error&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;intree: Y&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;name: caam&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;vermagic: 5.10.35 SMP preempt mod_unload modversions aarch64&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;&lt;STRONG&gt;root@localhost:~# modinfo cryptodev&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;filename: /lib/modules/5.10.35/extra/cryptodev.ko&lt;BR /&gt;license: GPL&lt;BR /&gt;description: CryptoDev driver&lt;BR /&gt;author: Nikos Mavrogiannopoulos &amp;lt;nmav@gnutls.org&amp;gt;&lt;BR /&gt;depends:&lt;BR /&gt;name: cryptodev&lt;BR /&gt;vermagic: 5.10.35 SMP preempt mod_unload modversions aarch64&lt;BR /&gt;parm: cryptodev_verbosity:0: normal, 1: verbose, 2: debug (int)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sakthi_mgtech_0-1657782857032.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/186594i293A0A7C4A313A31/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sakthi_mgtech_0-1657782857032.png" alt="sakthi_mgtech_0-1657782857032.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but these drivers are not available as module. It was builded as build-in drivers in kernel.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#808080"&gt;root@localhost:~# modinfo caamalg&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;modinfo: ERROR: Module caamalg not found.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#808080"&gt;root@localhost:~# modinfo caamhash&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;modinfo: ERROR: Module caamhash not found.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#808080"&gt;root@localhost:~# modinfo caam_pkc&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;modinfo: ERROR: Module caam_pkc not found.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;I have verfied the kernel drivers below:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;&lt;STRONG&gt;root@localhost:~# zcat /proc/config.gz | grep -iw CONFIG_CRYPTO_DEV_FSL_CAAM&lt;/STRONG&gt;&lt;BR /&gt;CONFIG_CRYPTO_DEV_FSL_CAAM=m&lt;BR /&gt;&lt;STRONG&gt;root@localhost:~# zcat /proc/config.gz | grep -iw CONFIG_CRYPTO_DEV_FSL_CAAM_JR&lt;/STRONG&gt;&lt;BR /&gt;CONFIG_CRYPTO_DEV_FSL_CAAM_JR=m&lt;BR /&gt;&lt;STRONG&gt;SH_APIocalhost:~# zcat /proc/config.gz | grep -iw CONFIG_CRYPTO_DEV_FSL_CAAM_AHA&lt;/STRONG&gt;&lt;BR /&gt;CONFIG_CRYPTO_DEV_FSL_CAAM_AHASH_API=y&lt;BR /&gt;&lt;STRONG&gt;root@localhost:~# zcat /proc/config.gz | grep -iw CONFIG_CRYPTO_DEV_FSL_CAAM_PKC_API&lt;/STRONG&gt;&lt;BR /&gt;CONFIG_CRYPTO_DEV_FSL_CAAM_PKC_API=y&lt;BR /&gt;&lt;STRONG&gt;root@localhost:~# zcat /proc/config.gz | grep -iw CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_API&lt;/STRONG&gt;&lt;BR /&gt;CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_API=y&lt;BR /&gt;&lt;STRONG&gt;root@localhost:~# zcat /proc/config.gz | grep -iw CONFIG_CRYPTO_DEV_FSL_CAAM_TK_API&lt;/STRONG&gt;&lt;BR /&gt;CONFIG_CRYPTO_DEV_FSL_CAAM_TK_API=y&lt;BR /&gt;&lt;STRONG&gt;root@localhost:~# zcat /proc/config.gz | grep -iw CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_TEST&lt;/STRONG&gt;&lt;BR /&gt;# CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_TEST is not set&lt;BR /&gt;&lt;STRONG&gt;root@localhost:~# zcat /proc/config.gz | grep -iw CONFIG_CRYPTO_DEV_FSL_CAAM_SM&lt;/STRONG&gt;&lt;BR /&gt;CONFIG_CRYPTO_DEV_FSL_CAAM_SM=y&lt;BR /&gt;&lt;STRONG&gt;root@localhost:~# zcat /proc/config.gz | grep -iw CONFIG_CRYPTO_DEV_FSL_CAAM_JR_UIO&lt;/STRONG&gt;&lt;BR /&gt;CONFIG_CRYPTO_DEV_FSL_CAAM_JR_UIO=m&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;&lt;STRONG&gt;root@localhost:~# openssl&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;openssl: symbol lookup error: openssl: undefined symbol: EVP_mdc2, version OPENSSL_1_1_0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;By default openssl was throw an error, but if i run ./openssl in /usr/bin it was working&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;&lt;STRONG&gt;root@localhost:/usr/bin# ./openssl&lt;/STRONG&gt;&lt;BR /&gt;OpenSSL&amp;gt; engine&lt;BR /&gt;(dynamic) Dynamic engine loading support&lt;BR /&gt;OpenSSL&amp;gt; version&lt;BR /&gt;OpenSSL 1.1.1f 31 Mar 2020&lt;BR /&gt;OpenSSL&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#333333"&gt;&lt;STRONG&gt;Now I load the caam module through modprobe, but it through error in caam_jr&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#808080"&gt;root@localhost:~# modprobe -v caam&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;insmod /lib/modules/5.10.35/kernel/drivers/crypto/caam/error.ko&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;insmod /lib/modules/5.10.35/kernel/drivers/crypto/caam/caam.ko&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;root@localhost:~# [ 1790.786153] caam_jr 1730000.jr: failed to flush job ring 2&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#808080"&gt;root@localhost:~# ls /dev/crypto&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;ls: cannot access '/dev/crypto': No such file or directory&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#808080"&gt;root@localhost:~# cat /proc/interrupts | grep jr&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;78: 11 0 0 0 GICv2 103 Level 1710000.jr&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;79: 0 0 0 0 GICv2 104 Level 1720000.jr&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;80: 0 0 0 0 GICv2 105 Level fsl-jr0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#808080"&gt;root@localhost:/usr/bin# modprobe cryptodev&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;&lt;STRONG&gt;root@localhost:/usr/bin# ls /dev/crypto&lt;/STRONG&gt;&lt;BR /&gt;/dev/crypto&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;&lt;STRONG&gt;root@localhost:/usr/bin# ./openssl engine&lt;/STRONG&gt;&lt;BR /&gt;(dynamic) Dynamic engine loading support&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;&lt;STRONG&gt;root@localhost:/usr/bin# ./openssl engine&lt;/STRONG&gt;&lt;BR /&gt;(dynamic) Dynamic engine loading support&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#333333"&gt;&lt;STRONG&gt;I have faced few error in caam and cryptodev in dmesg after loading caam and cryptodev module, due to this may be CAAM offload is not happening or else, can you guide me to offload.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;&lt;STRONG&gt;root@localhost:~# dmesg&lt;/STRONG&gt;&lt;BR /&gt;[ 1790.522486] caam 1700000.crypto: Linux CAAM Queue I/F driver initialised&lt;BR /&gt;[ 1790.523182] caam 1700000.crypto: device ID = 0x0a11030100000000 (Era&lt;LI-EMOJI id="lia_smiling-face-with-sunglasses" title=":smiling_face_with_sunglasses:"&gt;&lt;/LI-EMOJI&gt;&lt;BR /&gt;[ 1790.523190] caam 1700000.crypto: job rings = 3, qi = 1&lt;BR /&gt;[ 1790.780457] caam algorithms registered in /proc/crypto&lt;BR /&gt;[ 1790.781646] caam 1700000.crypto: caam pkc algorithms registered in /proc/crypto&lt;BR /&gt;[ 1790.784495] caam 1700000.crypto: algorithms registered in /proc/crypto&lt;BR /&gt;[ 1790.784503] caam 1700000.crypto: registering rng-caam&lt;BR /&gt;[ 1790.784718] Device caam-keygen registered&lt;BR /&gt;[ 1790.786153] caam_jr 1730000.jr: failed to flush job ring 2&lt;BR /&gt;[ 1790.791749] caam_jr: probe of 1730000.jr failed with error -5&lt;BR /&gt;[ 1790.802356] fsl-jr-uio 1730000.jr: UIO device full name fsl-jr0 initialized&lt;BR /&gt;[ 1872.560845] cryptodev: loading out-of-tree module taints kernel.&lt;BR /&gt;[ 1872.562580] cryptodev: driver 1.12 loaded.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#333333"&gt;&lt;STRONG&gt;I am not getting the cryptodev engine in OPENSSL like below&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sakthi_mgtech_1-1657782908830.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/186595iA4E093D684565151/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sakthi_mgtech_1-1657782908830.png" alt="sakthi_mgtech_1-1657782908830.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Can you provide a neccessary details to fix this issue. Looking forward for your response.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jul 2022 07:15:29 GMT</pubDate>
    <dc:creator>sakthi_mgtech</dc:creator>
    <dc:date>2022-07-14T07:15:29Z</dc:date>
    <item>
      <title>Hardware Offloading of NXP CAAM using OpenSSL in LS1046A</title>
      <link>https://community.nxp.com/t5/Layerscape/Hardware-Offloading-of-NXP-CAAM-using-OpenSSL-in-LS1046A/m-p/1489250#M10876</link>
      <description>&lt;P&gt;I am working with LS1046ARDB Evaluation Board to develop a network based application. I have started my project with Flex-builder(flexbuild_lsdk2108), Flex-installer(version: 1.13.2108) and Codewarrior IDE. Now i want to develop OPENSSL application with NXP CAAM&amp;nbsp;Hardware Offloading feature. I have followed the steps in this document&amp;nbsp;&lt;A href="https://www.nxp.com/docs/en/user-guide/LSDKUG_Rev21.08.pdf" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.nxp.com/docs/en/user-guide/LSDKUG_Rev21.08.pdf&lt;/A&gt;&amp;nbsp;&amp;nbsp;-&amp;gt;&amp;nbsp;9.1.1.3 Hardware Offloading with OpenSSL section. But i can't load the CAAM into OPENSSL so can you guide me to load and use the OPENSSL hardware offloading feature. I have posted my work below.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I have download the images from&amp;nbsp;&lt;A href="https://lsdk.github.io/components.html" target="_self" rel="nofollow noopener noreferrer"&gt;https://lsdk.github.io/components.html&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;boot_LS -&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://wget%20https//www.nxp.com/lgfiles/sdk/lsdk2108/boot_LS_arm64_lts_5.10.tgz" target="_self" rel="nofollow noopener noreferrer"&gt;wget https://www.nxp.com/lgfiles/sdk/lsdk2108/boot_LS_arm64_lts_5.10.tgz&lt;/A&gt;&lt;/P&gt;&lt;P&gt;firmware image -&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://wget%20https//www.nxp.com/lgfiles/sdk/lsdk2108/firmware_ls1046ardb_sdboot.img" target="_self" rel="nofollow noopener noreferrer"&gt;wget https://www.nxp.com/lgfiles/sdk/lsdk2108/firmware_ls1046ardb_sdboot.img&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Rootfs -&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://wget%20https//www.nxp.com/lgfiles/sdk/lsdk2108/rootfs_lsdk2108_ubuntu_main_arm64.tgz" target="_self" rel="nofollow noopener noreferrer"&gt;wget https://www.nxp.com/lgfiles/sdk/lsdk2108/rootfs_lsdk2108_ubuntu_main_arm64.tgz&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I have depolyed the image's in SD card through flex-installer:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;$ flex-installer -i pf -d /dev/sdx (partition and format the target storage device)&lt;/P&gt;&lt;P&gt;$ sudo flex-installer -b&amp;nbsp;boot_LS_arm64_lts_5.10.tgz -r rootfs_lsdk2108_ubuntu_main_arm64.tgz -f&amp;nbsp;firmware_ls1046ardb_sdboot.img -d /dev/sdx&lt;/P&gt;&lt;P&gt;I have booted the board using SD card, by default caam driver is not enabled in linux kernel it was builded as a module.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#333333"&gt;&lt;STRONG&gt;NXP LSDK 2108 main (custom based on ubuntu 20.04)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#333333"&gt;&lt;STRONG&gt;localhost login: root&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#333333"&gt;&lt;STRONG&gt;Password: root&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;&lt;STRONG&gt;root@localhost:~# dmesg | grep -i caam&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;&lt;STRONG&gt;root@localhost:~# modinfo caam&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;filename: /lib/modules/5.10.35/kernel/drivers/crypto/caam/caam.ko&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;author: Freescale Semiconductor - NMG/STC&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;description: FSL CAAM request backend&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;license: GPL&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;alias: of:N*T*Cfsl,sec4.0C*&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;alias: of:N*T*Cfsl,sec4.0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;alias: of:N*T*Cfsl,sec-v4.0C*&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;alias: of:N*T*Cfsl,sec-v4.0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;depends: error&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;intree: Y&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;name: caam&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;vermagic: 5.10.35 SMP preempt mod_unload modversions aarch64&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;&lt;STRONG&gt;root@localhost:~# modinfo cryptodev&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;filename: /lib/modules/5.10.35/extra/cryptodev.ko&lt;BR /&gt;license: GPL&lt;BR /&gt;description: CryptoDev driver&lt;BR /&gt;author: Nikos Mavrogiannopoulos &amp;lt;nmav@gnutls.org&amp;gt;&lt;BR /&gt;depends:&lt;BR /&gt;name: cryptodev&lt;BR /&gt;vermagic: 5.10.35 SMP preempt mod_unload modversions aarch64&lt;BR /&gt;parm: cryptodev_verbosity:0: normal, 1: verbose, 2: debug (int)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sakthi_mgtech_0-1657782857032.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/186594i293A0A7C4A313A31/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sakthi_mgtech_0-1657782857032.png" alt="sakthi_mgtech_0-1657782857032.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but these drivers are not available as module. It was builded as build-in drivers in kernel.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#808080"&gt;root@localhost:~# modinfo caamalg&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;modinfo: ERROR: Module caamalg not found.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#808080"&gt;root@localhost:~# modinfo caamhash&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;modinfo: ERROR: Module caamhash not found.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#808080"&gt;root@localhost:~# modinfo caam_pkc&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;modinfo: ERROR: Module caam_pkc not found.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;I have verfied the kernel drivers below:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;&lt;STRONG&gt;root@localhost:~# zcat /proc/config.gz | grep -iw CONFIG_CRYPTO_DEV_FSL_CAAM&lt;/STRONG&gt;&lt;BR /&gt;CONFIG_CRYPTO_DEV_FSL_CAAM=m&lt;BR /&gt;&lt;STRONG&gt;root@localhost:~# zcat /proc/config.gz | grep -iw CONFIG_CRYPTO_DEV_FSL_CAAM_JR&lt;/STRONG&gt;&lt;BR /&gt;CONFIG_CRYPTO_DEV_FSL_CAAM_JR=m&lt;BR /&gt;&lt;STRONG&gt;SH_APIocalhost:~# zcat /proc/config.gz | grep -iw CONFIG_CRYPTO_DEV_FSL_CAAM_AHA&lt;/STRONG&gt;&lt;BR /&gt;CONFIG_CRYPTO_DEV_FSL_CAAM_AHASH_API=y&lt;BR /&gt;&lt;STRONG&gt;root@localhost:~# zcat /proc/config.gz | grep -iw CONFIG_CRYPTO_DEV_FSL_CAAM_PKC_API&lt;/STRONG&gt;&lt;BR /&gt;CONFIG_CRYPTO_DEV_FSL_CAAM_PKC_API=y&lt;BR /&gt;&lt;STRONG&gt;root@localhost:~# zcat /proc/config.gz | grep -iw CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_API&lt;/STRONG&gt;&lt;BR /&gt;CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_API=y&lt;BR /&gt;&lt;STRONG&gt;root@localhost:~# zcat /proc/config.gz | grep -iw CONFIG_CRYPTO_DEV_FSL_CAAM_TK_API&lt;/STRONG&gt;&lt;BR /&gt;CONFIG_CRYPTO_DEV_FSL_CAAM_TK_API=y&lt;BR /&gt;&lt;STRONG&gt;root@localhost:~# zcat /proc/config.gz | grep -iw CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_TEST&lt;/STRONG&gt;&lt;BR /&gt;# CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_TEST is not set&lt;BR /&gt;&lt;STRONG&gt;root@localhost:~# zcat /proc/config.gz | grep -iw CONFIG_CRYPTO_DEV_FSL_CAAM_SM&lt;/STRONG&gt;&lt;BR /&gt;CONFIG_CRYPTO_DEV_FSL_CAAM_SM=y&lt;BR /&gt;&lt;STRONG&gt;root@localhost:~# zcat /proc/config.gz | grep -iw CONFIG_CRYPTO_DEV_FSL_CAAM_JR_UIO&lt;/STRONG&gt;&lt;BR /&gt;CONFIG_CRYPTO_DEV_FSL_CAAM_JR_UIO=m&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;&lt;STRONG&gt;root@localhost:~# openssl&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;openssl: symbol lookup error: openssl: undefined symbol: EVP_mdc2, version OPENSSL_1_1_0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;By default openssl was throw an error, but if i run ./openssl in /usr/bin it was working&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;&lt;STRONG&gt;root@localhost:/usr/bin# ./openssl&lt;/STRONG&gt;&lt;BR /&gt;OpenSSL&amp;gt; engine&lt;BR /&gt;(dynamic) Dynamic engine loading support&lt;BR /&gt;OpenSSL&amp;gt; version&lt;BR /&gt;OpenSSL 1.1.1f 31 Mar 2020&lt;BR /&gt;OpenSSL&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#333333"&gt;&lt;STRONG&gt;Now I load the caam module through modprobe, but it through error in caam_jr&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#808080"&gt;root@localhost:~# modprobe -v caam&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;insmod /lib/modules/5.10.35/kernel/drivers/crypto/caam/error.ko&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;insmod /lib/modules/5.10.35/kernel/drivers/crypto/caam/caam.ko&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;root@localhost:~# [ 1790.786153] caam_jr 1730000.jr: failed to flush job ring 2&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#808080"&gt;root@localhost:~# ls /dev/crypto&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;ls: cannot access '/dev/crypto': No such file or directory&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#808080"&gt;root@localhost:~# cat /proc/interrupts | grep jr&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;78: 11 0 0 0 GICv2 103 Level 1710000.jr&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;79: 0 0 0 0 GICv2 104 Level 1720000.jr&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;80: 0 0 0 0 GICv2 105 Level fsl-jr0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#808080"&gt;root@localhost:/usr/bin# modprobe cryptodev&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;&lt;STRONG&gt;root@localhost:/usr/bin# ls /dev/crypto&lt;/STRONG&gt;&lt;BR /&gt;/dev/crypto&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;&lt;STRONG&gt;root@localhost:/usr/bin# ./openssl engine&lt;/STRONG&gt;&lt;BR /&gt;(dynamic) Dynamic engine loading support&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;&lt;STRONG&gt;root@localhost:/usr/bin# ./openssl engine&lt;/STRONG&gt;&lt;BR /&gt;(dynamic) Dynamic engine loading support&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#333333"&gt;&lt;STRONG&gt;I have faced few error in caam and cryptodev in dmesg after loading caam and cryptodev module, due to this may be CAAM offload is not happening or else, can you guide me to offload.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;&lt;STRONG&gt;root@localhost:~# dmesg&lt;/STRONG&gt;&lt;BR /&gt;[ 1790.522486] caam 1700000.crypto: Linux CAAM Queue I/F driver initialised&lt;BR /&gt;[ 1790.523182] caam 1700000.crypto: device ID = 0x0a11030100000000 (Era&lt;LI-EMOJI id="lia_smiling-face-with-sunglasses" title=":smiling_face_with_sunglasses:"&gt;&lt;/LI-EMOJI&gt;&lt;BR /&gt;[ 1790.523190] caam 1700000.crypto: job rings = 3, qi = 1&lt;BR /&gt;[ 1790.780457] caam algorithms registered in /proc/crypto&lt;BR /&gt;[ 1790.781646] caam 1700000.crypto: caam pkc algorithms registered in /proc/crypto&lt;BR /&gt;[ 1790.784495] caam 1700000.crypto: algorithms registered in /proc/crypto&lt;BR /&gt;[ 1790.784503] caam 1700000.crypto: registering rng-caam&lt;BR /&gt;[ 1790.784718] Device caam-keygen registered&lt;BR /&gt;[ 1790.786153] caam_jr 1730000.jr: failed to flush job ring 2&lt;BR /&gt;[ 1790.791749] caam_jr: probe of 1730000.jr failed with error -5&lt;BR /&gt;[ 1790.802356] fsl-jr-uio 1730000.jr: UIO device full name fsl-jr0 initialized&lt;BR /&gt;[ 1872.560845] cryptodev: loading out-of-tree module taints kernel.&lt;BR /&gt;[ 1872.562580] cryptodev: driver 1.12 loaded.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#333333"&gt;&lt;STRONG&gt;I am not getting the cryptodev engine in OPENSSL like below&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sakthi_mgtech_1-1657782908830.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/186595iA4E093D684565151/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sakthi_mgtech_1-1657782908830.png" alt="sakthi_mgtech_1-1657782908830.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Can you provide a neccessary details to fix this issue. Looking forward for your response.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 07:15:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Hardware-Offloading-of-NXP-CAAM-using-OpenSSL-in-LS1046A/m-p/1489250#M10876</guid>
      <dc:creator>sakthi_mgtech</dc:creator>
      <dc:date>2022-07-14T07:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Hardware Offloading of NXP CAAM using OpenSSL in LS1046A</title>
      <link>https://community.nxp.com/t5/Layerscape/Hardware-Offloading-of-NXP-CAAM-using-OpenSSL-in-LS1046A/m-p/1492647#M10916</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;The application that you want to do it requires an Application Solutions Kit which is available to purchase, In the following link you can find the "Layerscape 1046A Processor Broadband Home Router Application Solutions Kit"&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.nxp.com/support/support/nxp-engineering-services/vortiqa-application-solutions-kits/layerscape-1046a-processor-broadband-home-router-application-solutions-kit:QORIQ-LS1046A-BHR-ASK" data-cke-saved-href="https://www.nxp.com/support/support/nxp-engineering-services/vortiqa-application-solutions-kits/layerscape-1046a-processor-broadband-home-router-application-solutions-kit:QORIQ-LS1046A-BHR-ASK" target="_blank"&gt;​​​​​​​https://www.nxp.com/support/support/nxp-engineering-services/vortiqa-application-solutions-kits/layerscape-1046a-processor-broadband-home-router-application-solutions-kit:QORIQ-LS1046A-BHR-ASK&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Hector Villarruel&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 17:57:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Hardware-Offloading-of-NXP-CAAM-using-OpenSSL-in-LS1046A/m-p/1492647#M10916</guid>
      <dc:creator>Hector_Villarruel</dc:creator>
      <dc:date>2022-07-20T17:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Hardware Offloading of NXP CAAM using OpenSSL in LS1046A</title>
      <link>https://community.nxp.com/t5/Layerscape/Hardware-Offloading-of-NXP-CAAM-using-OpenSSL-in-LS1046A/m-p/1494462#M10928</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Hi&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;Hector_Villarruel,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This OpenSSL hardware offloading issue is due to linker path. I have updated the file: &lt;STRONG&gt;/etc/ld.so.conf.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;By default, openssl through below error in LSDK_21.08&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;user@localhost:~$&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; openssl&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;openssl: symbol lookup error: openssl: undefined symbol: EVP_mdc2, version OPENSSL_1_1_0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Check the linker path’s:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;user@localhost:~$ ldd /usr/local/bin/openssl&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;linux-vdso.so.1 (0x0000ffff860cf000)&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;libssl.so.1.1 =&amp;gt; /lib/aarch64-linux-gnu/libssl.so.1.1 (0x0000ffff85f33000)&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;libcrypto.so.1.1 =&amp;gt; /lib/aarch64-linux-gnu/libcrypto.so.1.1 (0x0000ffff85ca5000)&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;libpthread.so.0 =&amp;gt; /lib/aarch64-linux-gnu/libpthread.so.0 (0x0000ffff85c74000)&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;libc.so.6 =&amp;gt; /lib/aarch64-linux-gnu/libc.so.6 (0x0000ffff85b01000)&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/lib/ld-linux-aarch64.so.1 (0x0000ffff8609f000)&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;libdl.so.2 =&amp;gt; /lib/aarch64-linux-gnu/libdl.so.2 (0x0000ffff85aed000)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If the binary is linking with the original library from &lt;STRONG&gt;/usr/lib&lt;/STRONG&gt;, then it may be necessary to adjust the linker paths.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Put &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;/usr/local/lib&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; in a line before &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;/usr/lib&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; inside &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;/etc/ld.so.conf&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; and then update the linker cache.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;user@localhost:~$ &lt;/SPAN&gt;cat /etc/ld.so.conf&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;include /etc/ld.so.conf.d/*.conf&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Update the above &lt;SPAN&gt;/etc/ld.so.conf&lt;/SPAN&gt;&amp;nbsp;as below:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;user@localhost:~$&lt;/SPAN&gt; cat /etc/ld.so.conf&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;# libc default configuration&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/usr/local/lib&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;# Multiarch support&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/usr/local/lib/aarch64-linux-gnu&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/lib/aarch64-linux-gnu&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/usr/lib/aarch64-linux-gnu&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/usr/lib/aarch64-linux-gnu/libfakeroot&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;user@localhost:~$ sudo ldconfig&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;user@localhost:~$&lt;/SPAN&gt; ldd /usr/local/bin/openssl&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;linux-vdso.so.1 (0x0000ffff990c3000)&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;libssl.so.1.1 =&amp;gt; /usr/local/lib/libssl.so.1.1 (0x0000ffff98f23000)&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;libcrypto.so.1.1 =&amp;gt; /usr/local/lib/libcrypto.so.1.1 (0x0000ffff98c71000)&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;libpthread.so.0 =&amp;gt; /lib/aarch64-linux-gnu/libpthread.so.0 (0x0000ffff98c40000)&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;libc.so.6 =&amp;gt; /lib/aarch64-linux-gnu/libc.so.6 (0x0000ffff98acd000)&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/lib/ld-linux-aarch64.so.1 (0x0000ffff99093000)&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;libdl.so.2 =&amp;gt; /lib/aarch64-linux-gnu/libdl.so.2 (0x0000ffff98ab9000)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Now CAAM hardware will offloaded into OpenSSL:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;user@localhost:~$ sudo modprobe cryptodev&lt;/STRONG&gt;&lt;BR /&gt;[sudo] password for user:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;user@localhost:~$ ls /dev/crypto&lt;/STRONG&gt;&lt;BR /&gt;/dev/crypto&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;user@localhost:~$ openssl engine&lt;/STRONG&gt;&lt;BR /&gt;(devcrypto) /dev/crypto engine&lt;BR /&gt;(dynamic) Dynamic engine loading support&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Verify the CAAM offloading:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Hardware operations can be monitored with the interrupt counters for CAAM JR and QI (DPAA1 and DPAA2) interfaces.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;user@localhost:~$ cat /proc/interrupts | grep jr&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;78: &lt;FONT color="#0000FF"&gt;20&lt;/FONT&gt; 0 0 0 GICv2 103 Level 1710000.jr&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;79: &lt;FONT color="#0000FF"&gt;0&lt;/FONT&gt; 0 0 0 GICv2 104 Level 1720000.jr&lt;/FONT&gt;&lt;BR /&gt;80: 0 0 0 0 GICv2 105 Level fsl-jr0&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;user@localhost:~$ openssl enc -aes-256-cfb -k secret -P -md sha1&lt;/STRONG&gt;&lt;BR /&gt;*** WARNING : deprecated key derivation used.&lt;BR /&gt;Using -iter or -pbkdf2 would be better.&lt;BR /&gt;salt=233157F098D1B0E8&lt;BR /&gt;key=D2B0C0C088AA7DAA6CF37CC856E283E3B0C3DD2BE155688DE18593EB3F997776&lt;BR /&gt;iv =A4E2C86E0DBA1211B5A4B02EBEFF6DC4&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;user@localhost:~$ cat /proc/interrupts | grep jr&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;78: &lt;FONT color="#0000FF"&gt;54&lt;/FONT&gt; 0 0 0 GICv2 103 Level 1710000.jr&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;79: &lt;FONT color="#0000FF"&gt;69&lt;/FONT&gt; 0 0 0 GICv2 104 Level 1720000.jr&lt;/FONT&gt;&lt;BR /&gt;80: 0 0 0 0 GICv2 105 Level fsl-jr0&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 11:22:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Hardware-Offloading-of-NXP-CAAM-using-OpenSSL-in-LS1046A/m-p/1494462#M10928</guid>
      <dc:creator>sakthi_mgtech</dc:creator>
      <dc:date>2022-07-25T11:22:09Z</dc:date>
    </item>
  </channel>
</rss>

