<?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>i.MX ProcessorsのトピックRe: Imx8 keygen caam_tk error</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Imx8-keygen-caam-tk-error/m-p/1721197#M212465</link>
    <description>&lt;P&gt;What I really want is to be able to follow the application note AN12714. It seems out of date. There are multiple steps that require codeaurora, which is down. And even when using the mentioned Ubuntu, the repo tool is not version locked and is now different causing it to no longer work.&lt;/P&gt;&lt;P&gt;So I cannot follow the steps at all. I made a journey on my own. I used the kernel from here&amp;nbsp;&lt;A href="https://github.com/varigit/linux-imx" target="_blank"&gt;https://github.com/varigit/linux-imx&lt;/A&gt;&lt;BR /&gt;Tag I used is&amp;nbsp;origin/imx_5.4.47_2.2.0_var01. Then I applied the patch I found in&amp;nbsp;&lt;A href="https://github.com/nxp-imx-support/imx_sec_apps/blob/master/demo-caam-blobs/kernel/0001-support-for-iMX8-8X-in-sync-with-Linux-5.4.47-2.2.0.patch" target="_blank"&gt;https://github.com/nxp-imx-support/imx_sec_apps/blob/master/demo-caam-blobs/kernel/0001-support-for-iMX8-8X-in-sync-with-Linux-5.4.47-2.2.0.patch&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And I get to generate a key. So far this is nice and all. But this implies I'm stuck with this kernel version forever (or until another patch is made).&lt;/P&gt;&lt;P&gt;Isn't there a more generic way to enable support for this.&lt;BR /&gt;I'm currently looking at the kernel&amp;nbsp;5.15-2.0.x-imx_var01.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;What must be done to get the same behavior but without the patch using this kernel?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for all the help so far.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Sep 2023 11:56:11 GMT</pubDate>
    <dc:creator>Erno</dc:creator>
    <dc:date>2023-09-12T11:56:11Z</dc:date>
    <item>
      <title>Imx8 keygen caam_tk error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Imx8-keygen-caam-tk-error/m-p/1717174#M212045</link>
      <description>&lt;P&gt;I'm trying to follow&amp;nbsp;AN12714.&lt;/P&gt;&lt;P&gt;I have built a firmware image for my&amp;nbsp;&lt;SPAN&gt;DART-MX8M-MINI.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Alas, I get the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;keyctl add caam_tk seckey "new ecb 16" @s&lt;BR /&gt;add_key: No such device&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I've used these configuration options:&lt;/P&gt;&lt;P&gt;What causes me to get this error and what should I do to make this work?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;# Enable DM-Crypt and its dependencies&lt;BR /&gt;CONFIG_BLK_DEV_DM=y&lt;BR /&gt;CONFIG_BLK_DEV_MD=y&lt;BR /&gt;CONFIG_MD=y&lt;BR /&gt;CONFIG_DM_CRYPT=y&lt;BR /&gt;# Enable CAAM black key/blob driver and its dependencies&lt;BR /&gt;CONFIG_CRYPTO_DEV_FSL_CAAM=y&lt;BR /&gt;CONFIG_CRYPTO_DEV_FSL_CAAM_SM=y&lt;BR /&gt;CONFIG_CRYPTO_DEV_FSL_CAAM_SM_TEST=y&lt;BR /&gt;CONFIG_CRYPTO_DEV_FSL_CAAM_SECVIO=y&lt;BR /&gt;CONFIG_CRYPTO_DEV_FSL_CAAM_DESC=y&lt;BR /&gt;CONFIG_CRYPTO_DEV_FSL_CAAM_UTIL_BLACK_KEY=y&lt;BR /&gt;CONFIG_CRYPTO_DEV_FSL_CAAM_UTIL_BLOB=y&lt;BR /&gt;CONFIG_CRYPTO_DEV_FSL_CAAM_TK_API=y&lt;BR /&gt;CONFIG_CRYPTO_DEV_FSL_CAAM_KEY_BLOB=y&lt;BR /&gt;CONFIG_CAAM_KEYS=y&lt;BR /&gt;CONFIG_CRYPTO_USER_API=y&lt;BR /&gt;CONFIG_CRYPTO_USER_API_HASH=y&lt;BR /&gt;CONFIG_CRYPTO_USER_API_AEAD=y&lt;BR /&gt;CONFIG_CRYPTO_USER_API_SKCIPHER=y&lt;BR /&gt;CONFIG_ARM64_CRYPTO=y&lt;BR /&gt;CONFIG_CRYPTO_SHA512_ARM64=m&lt;BR /&gt;CONFIG_CRYPTO_SHA1_ARM64_CE=y&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 11:47:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Imx8-keygen-caam-tk-error/m-p/1717174#M212045</guid>
      <dc:creator>Erno</dc:creator>
      <dc:date>2023-09-05T11:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Imx8 keygen caam_tk error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Imx8-keygen-caam-tk-error/m-p/1717276#M212052</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;It looks like a bad installation of the tool,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can find the source from the link:&amp;nbsp;&lt;A href="https://github.com/nxp-imx/keyctl_caam" target="_blank" rel="nofollow noopener noreferrer"&gt;GitHub - nxp-imx/keyctl_caam: Keyctl CAAM Security&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 14:29:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Imx8-keygen-caam-tk-error/m-p/1717276#M212052</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2023-09-05T14:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Imx8 keygen caam_tk error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Imx8-keygen-caam-tk-error/m-p/1717863#M212096</link>
      <description>./caam-keygen create randomkeyfordiskenc ecb -s 16&lt;BR /&gt;Unable to open device /dev/caam-keygen&lt;BR /&gt;&lt;BR /&gt;There seems to be another issue then.&lt;BR /&gt;Besides that, the app note uses keyctl and not this tool.</description>
      <pubDate>Wed, 06 Sep 2023 08:12:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Imx8-keygen-caam-tk-error/m-p/1717863#M212096</guid>
      <dc:creator>Erno</dc:creator>
      <dc:date>2023-09-06T08:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Imx8 keygen caam_tk error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Imx8-keygen-caam-tk-error/m-p/1720942#M212429</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;The kernel configurations match the AN, so this should be ok. Can also add CONFIG_DM_MULTIPATH=y to make sure.&lt;/P&gt;
&lt;P&gt;You can also have a look on &lt;A href="https://www.nxp.com/webapp/Download?colCode=AN12714&amp;amp;location=null" target="_self"&gt;AN12714&lt;/A&gt; from the NXP website, which uses caam-keygen.&lt;/P&gt;
&lt;P&gt;If you would like to use keyctl specifically, there is an example in &lt;A href="https://www.nxp.com/docs/en/user-guide/IMX_LINUX_USERS_GUIDE.pdf" target="_self"&gt;i.MX Linux User's Guide&lt;/A&gt;, section 10.5 &lt;EM&gt;Disk encryption acceleration&lt;/EM&gt;. Section 10.5.3.1 example uses keyctl.&lt;/P&gt;
&lt;P&gt;Best wishes&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 07:39:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Imx8-keygen-caam-tk-error/m-p/1720942#M212429</guid>
      <dc:creator>andreea_miu</dc:creator>
      <dc:date>2023-09-12T07:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Imx8 keygen caam_tk error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Imx8-keygen-caam-tk-error/m-p/1721197#M212465</link>
      <description>&lt;P&gt;What I really want is to be able to follow the application note AN12714. It seems out of date. There are multiple steps that require codeaurora, which is down. And even when using the mentioned Ubuntu, the repo tool is not version locked and is now different causing it to no longer work.&lt;/P&gt;&lt;P&gt;So I cannot follow the steps at all. I made a journey on my own. I used the kernel from here&amp;nbsp;&lt;A href="https://github.com/varigit/linux-imx" target="_blank"&gt;https://github.com/varigit/linux-imx&lt;/A&gt;&lt;BR /&gt;Tag I used is&amp;nbsp;origin/imx_5.4.47_2.2.0_var01. Then I applied the patch I found in&amp;nbsp;&lt;A href="https://github.com/nxp-imx-support/imx_sec_apps/blob/master/demo-caam-blobs/kernel/0001-support-for-iMX8-8X-in-sync-with-Linux-5.4.47-2.2.0.patch" target="_blank"&gt;https://github.com/nxp-imx-support/imx_sec_apps/blob/master/demo-caam-blobs/kernel/0001-support-for-iMX8-8X-in-sync-with-Linux-5.4.47-2.2.0.patch&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And I get to generate a key. So far this is nice and all. But this implies I'm stuck with this kernel version forever (or until another patch is made).&lt;/P&gt;&lt;P&gt;Isn't there a more generic way to enable support for this.&lt;BR /&gt;I'm currently looking at the kernel&amp;nbsp;5.15-2.0.x-imx_var01.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;What must be done to get the same behavior but without the patch using this kernel?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for all the help so far.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 11:56:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Imx8-keygen-caam-tk-error/m-p/1721197#M212465</guid>
      <dc:creator>Erno</dc:creator>
      <dc:date>2023-09-12T11:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: Imx8 keygen caam_tk error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Imx8-keygen-caam-tk-error/m-p/1721286#M212470</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:~# ls -l /data/caam&lt;BR /&gt;total 8&lt;BR /&gt;-rw-r--r-- 1 root root 36 Sep 12 13:33 randomkeyfordiskenc&lt;BR /&gt;-rw-r--r-- 1 root root 96 Sep 12 13:33 randomkeyfordiskenc.bb&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, that seems to work. But.....I have not crypt module for the dm.&lt;BR /&gt;root@imx8mm-var-dart:~# dmsetup targets&lt;BR /&gt;[ 328.304579] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: dm-devel@redhat.com&lt;BR /&gt;striped v1.6.0&lt;BR /&gt;linear v1.4.0&lt;BR /&gt;error v1.5.0&lt;/P&gt;&lt;P&gt;With the above config I would expect it to be here just as the application note&amp;nbsp;&lt;SPAN&gt;AN12714 states in step 2 of the usage.&lt;BR /&gt;&lt;BR /&gt;Hopefully you can guide me to the complete solution as I am almost there.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help appreciated.&lt;BR /&gt;(P.S. Should I create a new thread for this? The original problem is solved. This is just the next one.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 15:13:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Imx8-keygen-caam-tk-error/m-p/1721286#M212470</guid>
      <dc:creator>Erno</dc:creator>
      <dc:date>2023-09-12T15:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Imx8 keygen caam_tk error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Imx8-keygen-caam-tk-error/m-p/1721795#M212515</link>
      <description>Hello,&lt;BR /&gt;If crypt module does not appear, you can also try inserting the modules manually, for example:&lt;BR /&gt;&lt;BR /&gt;root@imx8mmevk:/# modprobe dm-mod&lt;BR /&gt;[ 266.982638] device-mapper: ioctl: 4.41.0-ioctl (2019-09-16) initialised: dm-&lt;BR /&gt;devel@redhat.com&lt;BR /&gt;root@imx8mmevk:/# modprobe dm-crypt&lt;BR /&gt;root@imx8mmevk:/# dmsetup targets&lt;BR /&gt;crypt v1.19.0&lt;BR /&gt;striped v1.6.0&lt;BR /&gt;linear v1.4.0&lt;BR /&gt;error v1.5.0&lt;BR /&gt;&lt;BR /&gt;Best wishes</description>
      <pubDate>Wed, 13 Sep 2023 07:37:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Imx8-keygen-caam-tk-error/m-p/1721795#M212515</guid>
      <dc:creator>andreea_miu</dc:creator>
      <dc:date>2023-09-13T07:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Imx8 keygen caam_tk error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Imx8-keygen-caam-tk-error/m-p/1721863#M212521</link>
      <description>&lt;P&gt;Thanks. That actually makes the crypt appear.&lt;/P&gt;&lt;P&gt;How could I get that loaded by default?&lt;/P&gt;&lt;P&gt;I was under the impression that this would;&lt;/P&gt;&lt;P&gt;CONFIG_BLK_DEV_DM=y&lt;BR /&gt;CONFIG_BLK_DEV_MD=y&lt;BR /&gt;CONFIG_DM_CRYPT=y&lt;BR /&gt;CONFIG_TRUSTED_KEYS=y&lt;BR /&gt;CONFIG_CRYPTO_XTS=y&lt;BR /&gt;CONFIG_CRYPTO_USER_API=y&lt;BR /&gt;CONFIG_CRYPTO_USER_API_HASH=y&lt;BR /&gt;CONFIG_CRYPTO_USER_API_AEAD=y&lt;BR /&gt;CONFIG_CRYPTO_USER_API_SKCIPHER=y&lt;/P&gt;&lt;P&gt;But still, only using your commands the crypt appears.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 08:43:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Imx8-keygen-caam-tk-error/m-p/1721863#M212521</guid>
      <dc:creator>Erno</dc:creator>
      <dc:date>2023-09-13T08:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Imx8 keygen caam_tk error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Imx8-keygen-caam-tk-error/m-p/1723110#M212605</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;The configurations above should enable the crypt module automatically. If you find it is not enabled automatically, there is also this option of enabling the crypt module manually, which should work at anytime.&lt;BR /&gt;&lt;BR /&gt;Best wishes</description>
      <pubDate>Thu, 14 Sep 2023 11:50:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Imx8-keygen-caam-tk-error/m-p/1723110#M212605</guid>
      <dc:creator>andreea_miu</dc:creator>
      <dc:date>2023-09-14T11:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Imx8 keygen caam_tk error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Imx8-keygen-caam-tk-error/m-p/1723202#M212610</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;The strange thing is, that when I don't load them manually but execute the command to create the encrypted device, it gets loaded automatically at that moment.&lt;/P&gt;&lt;P&gt;So, I guess it is all good.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Erno&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 13:52:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Imx8-keygen-caam-tk-error/m-p/1723202#M212610</guid>
      <dc:creator>Erno</dc:creator>
      <dc:date>2023-09-14T13:52:54Z</dc:date>
    </item>
  </channel>
</rss>

