<?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: Linux caam_blob driver support.</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Linux-caam-blob-driver-support/m-p/1243523#M170647</link>
    <description>&lt;P&gt;Hi Noorahmadshinwa,&lt;/P&gt;&lt;P&gt;Have you had much luck with this?&lt;/P&gt;&lt;P&gt;I'm also interested in this, and I'm also running on 5.4.x+fslc. I'm struggling to get the /dev/caam_blob. caam_blob_init in caamblob.c doesn't finish initialising because priv = dev_get_drvdata(ctrldev) is returning null. Do you remember seeing this issue?&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;</description>
    <pubDate>Wed, 10 Mar 2021 18:28:10 GMT</pubDate>
    <dc:creator>danielberhe</dc:creator>
    <dc:date>2021-03-10T18:28:10Z</dc:date>
    <item>
      <title>Linux caam_blob driver support.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-caam-blob-driver-support/m-p/1155840#M162146</link>
      <description>&lt;P&gt;Hi everyone!&lt;/P&gt;&lt;P&gt;I am interested in using the CAAM blob mechanism in my i.MX6 device to create general purpose BLOBs (not related to encrypted boot images).&lt;/P&gt;&lt;P&gt;I have been studying these documents:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; AN12554:&amp;nbsp;&lt;A href="https://www.nxp.com/docs/en/application-note/AN12554.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/application-note/AN12554.pdf&lt;/A&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;This references (in the source code kb_test.c) the /dev/kb device.&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;AN12838:&amp;nbsp;&lt;A href="https://www.nxp.com/docs/en/application-note/AN12838.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/application-note/AN12838.pdf&lt;/A&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;This references&amp;nbsp;/dev/caam_blob.&lt;/P&gt;&lt;P&gt;I got some demo files and openembedded layers from:&amp;nbsp;&lt;A href="https://source.codeaurora.org/external/imxsupport/imx_sec_apps/" target="_blank"&gt;https://source.codeaurora.org/external/imxsupport/imx_sec_apps/&lt;/A&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;I have a few questions:&lt;/P&gt;&lt;P class="lia-align-left"&gt;1. What is the difference between /dev/kb and /dev/caam_blob? don't they both provide an interface to generate BLOBs using CAAM?&lt;/P&gt;&lt;P class="lia-align-left"&gt;2. In the files that I got (imx_sec_apps), I can see that there is a patch to add CAAM BLOBs to the kernel. However this patch seems to be for the 4.19.35 kernel. I am building 5.4.39. My kernel does not seem to have the needed caam_blob driver files (no&amp;nbsp; /drivers/crypto/caam/caam_keyblob.c, for example). what would be the best way to add caam blob support to my version of the kernel? do i need to manually do it and generate my own patch?&lt;/P&gt;&lt;P class="lia-align-left"&gt;3. In the repo mentioned above, what is the difference between the two layers: meta-caam-pkc-sec and meta-imx-ecdsa-sec?&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;Any information that will help me explore caam blobs further would be appreciated!&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;Thank you!&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Sep 2020 13:39:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-caam-blob-driver-support/m-p/1155840#M162146</guid>
      <dc:creator>noorahmadshinwa</dc:creator>
      <dc:date>2020-09-20T13:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Linux caam_blob driver support.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-caam-blob-driver-support/m-p/1165649#M163269</link>
      <description>&lt;P&gt;If it helps, I am building branch 5.4.x+fslc from the community repository "&lt;A href="https://github.com/Freescale/linux-fslc&amp;quot;" target="_blank"&gt;https://github.com/Freescale/linux-fslc"&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I noticed that someone updated the imx_sec_apps repo the other day.&amp;nbsp;&lt;SPAN&gt;Fausto Chiatante added patches for BSP 5.4.24-2.1.0. I am aware that his patches are for the official BSP. but i thought I'd try applying them manually to my kernel and seeing what happens. (I also had to add the sm.h file to get it to compile). I am able to see the /dev/caam_blob.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I proceeded to build eckey.c manually (the test file tool in the same repository). and i created a keypair to test the blob mechanism (without cryptodev engine). and I attempted to use eckey to encapsulate my private key in a blob. the kernel crashed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I am not surprised that this didn't work properly. but I am in need of some guidance here. How does one go about adding blob support to a version of the kernel that doesn't support it? What other drivers are needed (if any)?&lt;/P&gt;&lt;P&gt;Where should I look for patches for my version of the kernel to support this?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Oct 2020 14:47:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-caam-blob-driver-support/m-p/1165649#M163269</guid>
      <dc:creator>noorahmadshinwa</dc:creator>
      <dc:date>2020-10-11T14:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Linux caam_blob driver support.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-caam-blob-driver-support/m-p/1243523#M170647</link>
      <description>&lt;P&gt;Hi Noorahmadshinwa,&lt;/P&gt;&lt;P&gt;Have you had much luck with this?&lt;/P&gt;&lt;P&gt;I'm also interested in this, and I'm also running on 5.4.x+fslc. I'm struggling to get the /dev/caam_blob. caam_blob_init in caamblob.c doesn't finish initialising because priv = dev_get_drvdata(ctrldev) is returning null. Do you remember seeing this issue?&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 18:28:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-caam-blob-driver-support/m-p/1243523#M170647</guid>
      <dc:creator>danielberhe</dc:creator>
      <dc:date>2021-03-10T18:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Linux caam_blob driver support.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-caam-blob-driver-support/m-p/1247174#M170983</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/158341"&gt;@danielberhe&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;Sorry for the late reply, I missed the email notification.&lt;/P&gt;&lt;P&gt;Unfortunately I was not successful in porting the drivers to the community version. I did not try any further and ended up using an older official kernel version (4.19.someting) that some of the available imx_sec_apps drivers were compatible with.&lt;/P&gt;&lt;P&gt;Regarding that specific function return value I'm sorry but I don't remember dealing with it.&lt;/P&gt;&lt;P&gt;I don't now why the community kernel, or even the official one, do not have these drivers available by default.&lt;/P&gt;&lt;P&gt;I will get back to this issue again soon. If I am successful in porting the driver to the community branch, I will make a pull request to update it and will update this thread.&lt;/P&gt;&lt;P&gt;If you are ever successful with this, please update me here also.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 11:21:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-caam-blob-driver-support/m-p/1247174#M170983</guid>
      <dc:creator>noorahmadshinwa</dc:creator>
      <dc:date>2021-03-17T11:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Linux caam_blob driver support.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-caam-blob-driver-support/m-p/1247189#M170985</link>
      <description>&lt;P&gt;No worries &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/80175"&gt;@noorahmadshinwa&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;I ended up porting &lt;A href="https://github.com/f-secure-foundry/caam-keyblob" target="_self"&gt;this&lt;/A&gt; driver to my 5.4.x+fslc kernel and it is working fine.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 11:35:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-caam-blob-driver-support/m-p/1247189#M170985</guid>
      <dc:creator>danielberhe</dc:creator>
      <dc:date>2021-03-17T11:35:31Z</dc:date>
    </item>
  </channel>
</rss>

