<?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 xtest fails on IMX8MPLUS in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/xtest-fails-on-IMX8MPLUS/m-p/1946787#M228002</link>
    <description>&lt;P&gt;On the imx8MPLUS-BB development board, install optee, run xtest on it, and the following error occurs below.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="z23cc_0-1725417836722.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/296954i9692AC81AC1A4989/image-size/medium?v=v2&amp;amp;px=400" role="button" title="z23cc_0-1725417836722.png" alt="z23cc_0-1725417836722.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Later on, I modified r = ADBG_EXPECT_TEEC_RESULT(c, TEEC_ERROR_SECURITY, res) into r = ADBG_EXPECT_TEEC_RESULT(c, TEEC_ERROR_GENERIC, res), and then found the following problem again.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="z23cc_1-1725417906601.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/296955i92AE950093625799/image-size/medium?v=v2&amp;amp;px=400" role="button" title="z23cc_1-1725417906601.png" alt="z23cc_1-1725417906601.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="z23cc_2-1725418162989.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/296956iFB7CD8BCF1863A4A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="z23cc_2-1725418162989.png" alt="z23cc_2-1725418162989.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Very confused, don't know how to solve it&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Sep 2024 02:49:45 GMT</pubDate>
    <dc:creator>z23cc</dc:creator>
    <dc:date>2024-09-04T02:49:45Z</dc:date>
    <item>
      <title>xtest fails on IMX8MPLUS</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/xtest-fails-on-IMX8MPLUS/m-p/1946787#M228002</link>
      <description>&lt;P&gt;On the imx8MPLUS-BB development board, install optee, run xtest on it, and the following error occurs below.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="z23cc_0-1725417836722.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/296954i9692AC81AC1A4989/image-size/medium?v=v2&amp;amp;px=400" role="button" title="z23cc_0-1725417836722.png" alt="z23cc_0-1725417836722.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Later on, I modified r = ADBG_EXPECT_TEEC_RESULT(c, TEEC_ERROR_SECURITY, res) into r = ADBG_EXPECT_TEEC_RESULT(c, TEEC_ERROR_GENERIC, res), and then found the following problem again.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="z23cc_1-1725417906601.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/296955i92AE950093625799/image-size/medium?v=v2&amp;amp;px=400" role="button" title="z23cc_1-1725417906601.png" alt="z23cc_1-1725417906601.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="z23cc_2-1725418162989.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/296956iFB7CD8BCF1863A4A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="z23cc_2-1725418162989.png" alt="z23cc_2-1725418162989.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Very confused, don't know how to solve it&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 02:49:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/xtest-fails-on-IMX8MPLUS/m-p/1946787#M228002</guid>
      <dc:creator>z23cc</dc:creator>
      <dc:date>2024-09-04T02:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: xtest fails on IMX8MPLUS</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/xtest-fails-on-IMX8MPLUS/m-p/1948694#M228128</link>
      <description>&lt;P&gt;Which version of BSP are you using?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 04:08:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/xtest-fails-on-IMX8MPLUS/m-p/1948694#M228128</guid>
      <dc:creator>jimmychan</dc:creator>
      <dc:date>2024-09-06T04:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: xtest fails on IMX8MPLUS</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/xtest-fails-on-IMX8MPLUS/m-p/2326471#M244307</link>
      <description>&lt;P&gt;Old thread and you probably don't care about the answer anymore, but maybe other folks would have the same issue and come upon this post.&lt;/P&gt;&lt;P&gt;In my case switching to another software revision seems to solve the issue. When I was on optee-os and x-test&amp;nbsp;&lt;STRONG&gt;6.6.52-2.2.0 ("4.4.0")&lt;/STRONG&gt;, the test failed the same way as you presented. On optee-os and x-test&amp;nbsp;&lt;STRONG&gt;6.12.49-2.2.0 ("4.8.0")&lt;/STRONG&gt;&amp;nbsp;this is no longer reproducing.&lt;/P&gt;&lt;P&gt;Remember to use NXP github repos for optee and x-test if you are building from scratch:&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&lt;A href="https://github.com/nxp-imx/imx-optee-test" target="_blank"&gt;https://github.com/nxp-imx/imx-optee-test&lt;/A&gt;&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&lt;A href="https://github.com/nxp-imx/imx-optee-os" target="_blank"&gt;https://github.com/nxp-imx/imx-optee-os&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2026 15:08:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/xtest-fails-on-IMX8MPLUS/m-p/2326471#M244307</guid>
      <dc:creator>krzysztof-buczak-red</dc:creator>
      <dc:date>2026-03-04T15:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: xtest fails on IMX8MPLUS</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/xtest-fails-on-IMX8MPLUS/m-p/2327209#M244327</link>
      <description>&lt;P&gt;Actually, this is the commit that fixed my issue (present on 6.12, not present on 6.6):&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;commit c6c7967f74d4c6267750b3ff42067c004f8cad33
Author: Jens Wiklander &amp;lt;jens.wiklander@linaro.org&amp;gt;
Date:   Fri Dec 13 10:01:33 2024 +0100

    core: pta: secstore: decrease TA buffer
    
    install_ta() uses a buffer allocated from the heap while hashing a TA
    while installing it. The buffer size is 8kB which is a bit large to
    reliably allocate from the heap, so decrease it to 1kB.
    
    Signed-off-by: Jens Wiklander &amp;lt;jens.wiklander@linaro.org&amp;gt;
    Acked-by: Jerome Forissier &amp;lt;jerome.forissier@linaro.org&amp;gt;
    Reviewed-by: Etienne Carriere &amp;lt;etienne.carriere@foss.st.com&amp;gt;

diff --git a/core/pta/secstor_ta_mgmt.c b/core/pta/secstor_ta_mgmt.c
index 162de43be..b8dc9283c 100644
--- a/core/pta/secstor_ta_mgmt.c
+++ b/core/pta/secstor_ta_mgmt.c
@@ -44,7 +44,7 @@ static TEE_Result install_ta(struct shdr *shdr, const uint8_t *nw,
        struct tee_tadb_ta_write *ta;
        void *hash_ctx = NULL;
        size_t offs;
-       const size_t buf_size = 2 * 4096;
+       const size_t buf_size = 1024;
        void *buf;
        struct tee_tadb_property property;
        struct shdr_bootstrap_ta bs_ta;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2026 15:38:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/xtest-fails-on-IMX8MPLUS/m-p/2327209#M244327</guid>
      <dc:creator>krzysztof-buczak-red</dc:creator>
      <dc:date>2026-03-05T15:38:41Z</dc:date>
    </item>
  </channel>
</rss>

