<?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>topic NXP CAAM Hardware Offloading with OpenSSL in LS1046A in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/NXP-CAAM-Hardware-Offloading-with-OpenSSL-in-LS1046A/m-p/1483288#M10805</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&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"&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"&gt;https://lsdk.github.io/components.html&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;boot_LS -&amp;gt; &lt;A href="http://wget%20https://www.nxp.com/lgfiles/sdk/lsdk2108/boot_LS_arm64_lts_5.10.tgz" target="_self"&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;A href="http://wget%20https://www.nxp.com/lgfiles/sdk/lsdk2108/firmware_ls1046ardb_sdboot.img" target="_self"&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;A href="http://wget%20https://www.nxp.com/lgfiles/sdk/lsdk2108/rootfs_lsdk2108_ubuntu_main_arm64.tgz" target="_self"&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_1-1656658406618.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/185279iA4BDCE69DA5CEBAA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sakthi_1-1656658406618.png" alt="Sakthi_1-1656658406618.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_2-1656659684914.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/185291iE2AD690C6F47AB18/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sakthi_2-1656659684914.png" alt="Sakthi_2-1656659684914.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>Fri, 01 Jul 2022 07:32:49 GMT</pubDate>
    <dc:creator>Sakthi</dc:creator>
    <dc:date>2022-07-01T07:32:49Z</dc:date>
    <item>
      <title>NXP CAAM Hardware Offloading with OpenSSL in LS1046A</title>
      <link>https://community.nxp.com/t5/Layerscape/NXP-CAAM-Hardware-Offloading-with-OpenSSL-in-LS1046A/m-p/1483288#M10805</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&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"&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"&gt;https://lsdk.github.io/components.html&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;boot_LS -&amp;gt; &lt;A href="http://wget%20https://www.nxp.com/lgfiles/sdk/lsdk2108/boot_LS_arm64_lts_5.10.tgz" target="_self"&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;A href="http://wget%20https://www.nxp.com/lgfiles/sdk/lsdk2108/firmware_ls1046ardb_sdboot.img" target="_self"&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;A href="http://wget%20https://www.nxp.com/lgfiles/sdk/lsdk2108/rootfs_lsdk2108_ubuntu_main_arm64.tgz" target="_self"&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_1-1656658406618.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/185279iA4BDCE69DA5CEBAA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sakthi_1-1656658406618.png" alt="Sakthi_1-1656658406618.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_2-1656659684914.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/185291iE2AD690C6F47AB18/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sakthi_2-1656659684914.png" alt="Sakthi_2-1656659684914.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>Fri, 01 Jul 2022 07:32:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/NXP-CAAM-Hardware-Offloading-with-OpenSSL-in-LS1046A/m-p/1483288#M10805</guid>
      <dc:creator>Sakthi</dc:creator>
      <dc:date>2022-07-01T07:32:49Z</dc:date>
    </item>
  </channel>
</rss>

