<?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 Re: Failed to patch OpenSSL for i.MX Robot Platform in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Failed-to-patch-OpenSSL-for-i-MX-Robot-Platform/m-p/1692102#M209656</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/34846"&gt;@Bio_TICFSL&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for the confirmation. Someone just shared his finding here :&amp;nbsp;&lt;A href="https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/Enhance-cryptodev-and-its-engine-in-OpenSSL-by-CAAM-s-public-key/tac-p/1692053" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/Enhance-cryptodev-and-its-engine-in-OpenSSL-by-CAAM-s-public-key/tac-p/1692053&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jul 2023 08:46:29 GMT</pubDate>
    <dc:creator>khang_letruong</dc:creator>
    <dc:date>2023-07-25T08:46:29Z</dc:date>
    <item>
      <title>Failed to patch OpenSSL for i.MX Robot Platform</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Failed-to-patch-OpenSSL-for-i-MX-Robot-Platform/m-p/1688747#M209346</link>
      <description>&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;I followed the instructions in this knowledge sharing to build the &lt;STRONG&gt;imx-robot-sdk&lt;/STRONG&gt; with the latest BSP (&lt;FONT color="#339966"&gt;L5.15.71-2.2.0&lt;/FONT&gt;&lt;LI-EMOJI id="lia_disappointed-face" title=":disappointed_face:"&gt;&lt;/LI-EMOJI&gt; &lt;A href="https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX-%E6%9C%BA%E5%99%A8%E4%BA%BA%E5%B9%B3%E5%8F%B0-i-MX-Robot-Platform/ta-p/1198619" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX-%E6%9C%BA%E5%99%A8%E4%BA%BA%E5%B9%B3%E5%8F%B0-i-MX-Robot-Platform/ta-p/1198619&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However, I am facing the following patching error :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ERROR: openssl-3.1.0.imx-r0 do_patch: Applying patch '0001-Enhance-cryptodev-s-engine-by-CAAM-public-key-crypto.patch' on target directory '/workdir/imx-yocto-bsp-5_15_71-2_2_x-robotics/imx8mpevk-robot-humble/tmp/work/armv8a-poky-linux/openssl/3.1.0.imx-r0/openssl-3.1.0.imx'
CmdError('quilt --quiltrc /workdir/imx-yocto-bsp-5_15_71-2_2_x-robotics/imx8mpevk-robot-humble/tmp/work/armv8a-poky-linux/openssl/3.1.0.imx-r0/recipe-sysroot-native/etc/quiltrc push', 0, 'stdout: Applying patch 0001-Enhance-cryptodev-s-engine-by-CAAM-public-key-crypto.patch
patching file apps/speed.c
patching file crypto/ec/ec_curve.c
patching file crypto/ec/ec_key.c
patching file crypto/ec/ec_local.h
patching file crypto/sm2/sm2_crypt.c
patching file crypto/sm2/sm2_sign.c
patching file engines/e_devcrypto.c
Hunk #10 FAILED at 747.
Hunk #11 FAILED at 774.
Hunk #12 succeeded at 808 (offset -14 lines).
Hunk #13 succeeded at 984 (offset -14 lines).
Hunk #14 succeeded at 1061 (offset -14 lines).
Hunk #15 succeeded at 1499 (offset -14 lines).
2 out of 15 hunks FAILED -- rejects in file engines/e_devcrypto.c
patching file test/dsatest.c
patching file test/ecdsatest.c
patching file test/rsa_test.c
Patch 0001-Enhance-cryptodev-s-engine-by-CAAM-public-key-crypto.patch does not apply (enforce with -f)

stderr: ')
ERROR: Logfile of failure stored in: /workdir/imx-yocto-bsp-5_15_71-2_2_x-robotics/imx8mpevk-robot-humble/tmp/work/armv8a-poky-linux/openssl/3.1.0.imx-r0/temp/log.do_patch.544102
ERROR: Task (/workdir/imx-yocto-bsp-5_15_71-2_2_x-robotics/sources/meta-openssl-caam/recipes-openssl-caam/openssl/openssl_3.1.0.imx.bb:do_patch) failed with exit code '1'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It looks like that there should be some patches applied to &lt;STRONG&gt;openssl&lt;/STRONG&gt; before the above &lt;STRONG&gt;0001-Enhance-cryptodev-s-engine-by-CAAM-public-key-crypto.patch&lt;/STRONG&gt; (found in &lt;EM&gt;&amp;lt;imx-yocto-bsp&amp;gt;/sources/meta-robot-platform/imx/meta-robot/recipes-security/openssl/openssl/&lt;/EM&gt;) :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;NOTE: Applying patch '0001-buildinfo-strip-sysroot-and-debug-prefix-map-from-co.patch' (../sources/meta-robot-platform/imx/meta-robot/recipes-security/openssl/openssl/0001-buildinfo-strip-sysroot-and-debug-prefix-map-from-co.patch)
NOTE: Applying patch '0001-Configure-do-not-tweak-mips-cflags.patch' (../sources/meta-robot-platform/imx/meta-robot/recipes-security/openssl/openssl/0001-Configure-do-not-tweak-mips-cflags.patch)
NOTE: Applying patch 'openssl-3.0-add-Kernel-TLS-configuration.patch' (../sources/meta-imx/meta-bsp/recipes-connectivity/openssl/openssl/openssl-3.0-add-Kernel-TLS-configuration.patch)
NOTE: Applying patch '0001-e_devcrypto-add-func-ptr-for-init-do-ctrl.patch' (../sources/meta-imx/meta-bsp/recipes-connectivity/openssl/openssl/0001-e_devcrypto-add-func-ptr-for-init-do-ctrl.patch)
NOTE: Applying patch '0001-Enhance-cryptodev-s-engine-by-CAAM-public-key-crypto.patch' (../sources/meta-robot-platform/imx/meta-robot/recipes-security/openssl/openssl/0001-Enhance-cryptodev-s-engine-by-CAAM-public-key-crypto.patch)&lt;/LI-CODE&gt;&lt;P&gt;And they seem to be found in the following meta layer :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/work_dir/imx-yocto-bsp-5_15_71-2_2_x-robotics/sources$ ls meta-imx/meta-bsp/recipes-connectivity/openssl/openssl/ -l
total 28
-rw-rw-r-- 1 ubuntu ubuntu 4523 Thg 6 29 12:04 0001-e_devcrypto-add-func-ptr-for-init-do-ctrl.patch
-rw-rw-r-- 1 ubuntu ubuntu 14909 Thg 6 29 12:04 0002-e_devcrypto-add-support-for-TLS1.2-algorithms-offloa.patch
-rw-rw-r-- 1 ubuntu ubuntu 923 Thg 6 29 12:04 openssl-3.0-add-Kernel-TLS-configuration.patch&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, it was not the case: the patches in the&lt;EM&gt; &lt;STRONG&gt;&amp;lt;imx-yocto-bsp&amp;gt;/sources/meta-imx/recipes-connectivity&lt;/STRONG&gt;&lt;/EM&gt; hadn't been applied before the one in &lt;EM&gt;&lt;STRONG&gt;&amp;lt;imx-yocto-bsp&amp;gt;/sources/meta-robot-platform/imx/meta-robot/recipes-security/openssl/openssl/&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Could you advise on how to add the dependency btw the two meta layers so that openssl could be bitbaked successfully, please ?&lt;/P&gt;&lt;P&gt;More information about the&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://gitee.com/zxd2021-imx/meta-openssl-caam.git" target="_blank" rel="nofollow noopener noreferrer"&gt;meta-openssl-caam&lt;/A&gt;&amp;nbsp; inside the&amp;nbsp;&lt;A href="https://gitee.com/zxd2021-imx/meta-robot-platform.git" target="_blank" rel="noopener nofollow noreferrer"&gt;meta-robot-platform&lt;/A&gt;can be found here : &lt;A href="https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/Enhance-cryptodev-and-its-engine-in-OpenSSL-by-CAAM-s-public-key/tac-p/1678452" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/Enhance-cryptodev-and-its-engine-in-OpenSSL-by-CAAM-s-public-key/tac-p/1678452&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance and best regards,&lt;BR /&gt;Khang&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jul 2023 10:54:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Failed-to-patch-OpenSSL-for-i-MX-Robot-Platform/m-p/1688747#M209346</guid>
      <dc:creator>khang_letruong</dc:creator>
      <dc:date>2023-07-15T10:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to patch OpenSSL for i.MX Robot Platform</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Failed-to-patch-OpenSSL-for-i-MX-Robot-Platform/m-p/1689541#M209428</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Unfortunately the patch is for 5.470 and the other is for 4.14.88v, please update the thread because the person in charge should update the ROS. This is not part of the official NXP bsp.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 15:34:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Failed-to-patch-OpenSSL-for-i-MX-Robot-Platform/m-p/1689541#M209428</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2023-07-20T15:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to patch OpenSSL for i.MX Robot Platform</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Failed-to-patch-OpenSSL-for-i-MX-Robot-Platform/m-p/1692102#M209656</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/34846"&gt;@Bio_TICFSL&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for the confirmation. Someone just shared his finding here :&amp;nbsp;&lt;A href="https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/Enhance-cryptodev-and-its-engine-in-OpenSSL-by-CAAM-s-public-key/tac-p/1692053" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/Enhance-cryptodev-and-its-engine-in-OpenSSL-by-CAAM-s-public-key/tac-p/1692053&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 08:46:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Failed-to-patch-OpenSSL-for-i-MX-Robot-Platform/m-p/1692102#M209656</guid>
      <dc:creator>khang_letruong</dc:creator>
      <dc:date>2023-07-25T08:46:29Z</dc:date>
    </item>
  </channel>
</rss>

