<?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 Compiling ATF with SPD support for OPTEE in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Compiling-ATF-with-SPD-support-for-OPTEE/m-p/2101789#M237466</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am trying to build imx-atf for IMX8MM. I want to enable optee as well. I have set&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;SPD=opteed during the compile process. But, this results into the board getting stuck in SPL. The only way to get it running is removing "&amp;nbsp;SPD=opteed"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;and building the atf.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My problem is similar to the one mentioned in&amp;nbsp;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/Compiling-ATF-with-SPD-support/m-p/955353" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/Compiling-ATF-with-SPD-support/m-p/955353&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please let me know how I can fix this issue.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rajas&lt;/P&gt;</description>
    <pubDate>Wed, 21 May 2025 16:16:20 GMT</pubDate>
    <dc:creator>Rajasjoshi</dc:creator>
    <dc:date>2025-05-21T16:16:20Z</dc:date>
    <item>
      <title>Compiling ATF with SPD support for OPTEE</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Compiling-ATF-with-SPD-support-for-OPTEE/m-p/2101789#M237466</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am trying to build imx-atf for IMX8MM. I want to enable optee as well. I have set&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;SPD=opteed during the compile process. But, this results into the board getting stuck in SPL. The only way to get it running is removing "&amp;nbsp;SPD=opteed"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;and building the atf.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My problem is similar to the one mentioned in&amp;nbsp;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/Compiling-ATF-with-SPD-support/m-p/955353" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/Compiling-ATF-with-SPD-support/m-p/955353&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please let me know how I can fix this issue.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rajas&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 16:16:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Compiling-ATF-with-SPD-support-for-OPTEE/m-p/2101789#M237466</guid>
      <dc:creator>Rajasjoshi</dc:creator>
      <dc:date>2025-05-21T16:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling ATF with SPD support for OPTEE</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Compiling-ATF-with-SPD-support-for-OPTEE/m-p/2102038#M237475</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;If you are using Yocto for building then optee is enabled by default, so there is no need to add anything.&lt;BR /&gt;&lt;BR /&gt;If you are building in standalone mode, then you may follow this steps:&lt;BR /&gt;$ git clone &lt;A href="https://github.com/nxp-imx/imx-atf" target="_blank"&gt;https://github.com/nxp-imx/imx-atf&lt;/A&gt; -b &amp;lt;tag you are working with&amp;gt;&lt;BR /&gt;$ cd imx-atf&lt;BR /&gt;$ make -j $(nproc --all) PLAT=imx8mm SPD=opteed bl31 CROSS_COMPILE=/opt/arm-gnu-toolchain-12.3.rel1-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-&lt;BR /&gt;&lt;BR /&gt;Also, as an small note is that when building flashbin using imx-mkimage tee-raw.bin should be used and be renamed to tee.bin&lt;BR /&gt;&lt;BR /&gt;Best regards/Saludos,&lt;BR /&gt;Aldo.&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 22:20:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Compiling-ATF-with-SPD-support-for-OPTEE/m-p/2102038#M237475</guid>
      <dc:creator>AldoG</dc:creator>
      <dc:date>2025-05-21T22:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling ATF with SPD support for OPTEE</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Compiling-ATF-with-SPD-support-for-OPTEE/m-p/2104307#M237590</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/171173"&gt;@AldoG&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I was able to build the atf using the method you mentioned. Below are the steps about how I am building the mkimage:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;git&lt;/SPAN&gt; &lt;SPAN&gt;clone&lt;/SPAN&gt; &lt;SPAN&gt;&lt;A href="https://github.com/nxp-imx/imx-mkimage" target="_blank"&gt;https://github.com/nxp-imx/imx-mkimage&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;cd&lt;/SPAN&gt; &lt;SPAN&gt;imx-mkimage&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;cp&lt;/SPAN&gt; &lt;SPAN&gt;../../uboot-imx/u-boot-nodtb.bin&lt;/SPAN&gt; &lt;SPAN&gt;./iMX8M/&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;cp&lt;/SPAN&gt; &lt;SPAN&gt;../../uboot-imx/u-boot.dtb&lt;/SPAN&gt; &lt;SPAN&gt;./iMX8M/&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;cp&lt;/SPAN&gt; &lt;SPAN&gt;../../uboot-imx/spl/u-boot-spl.bin&lt;/SPAN&gt; &lt;SPAN&gt;./iMX8M/&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;cp&lt;/SPAN&gt; &lt;SPAN&gt;../../uboot-imx/arch/arm/dts/imx8mm-evk.dtb&lt;/SPAN&gt; &lt;SPAN&gt;./iMX8M/&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;cp&lt;/SPAN&gt; &lt;SPAN&gt;../../uboot-imx/tools/mkimage&lt;/SPAN&gt; &lt;SPAN&gt;./iMX8M/mkimage_uboot&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;cp&lt;/SPAN&gt; &lt;SPAN&gt;../../imx-atf/build/imx8mm/release/bl31.bin&lt;/SPAN&gt; &lt;SPAN&gt;./iMX8M/&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;cp&lt;/SPAN&gt; &lt;SPAN&gt;../../imx-optee-os/out/arm-plat-imx/core/tee-raw.bin&lt;/SPAN&gt; &lt;SPAN&gt;./iMX8M/tee.bin&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;dd&lt;/SPAN&gt; &lt;SPAN&gt;if=/dev/zero&lt;/SPAN&gt; &lt;SPAN&gt;of=iMX8M/dek_blob_fit_dummy.bin&lt;/SPAN&gt; &lt;SPAN&gt;bs=&lt;/SPAN&gt;&lt;SPAN&gt;96&lt;/SPAN&gt; &lt;SPAN&gt;count=&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;sync&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;make&lt;/SPAN&gt; &lt;SPAN&gt;-j&lt;/SPAN&gt;&lt;SPAN&gt; $(&lt;/SPAN&gt;&lt;SPAN&gt;nproc&lt;/SPAN&gt; &lt;SPAN&gt;--all&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;SPAN&gt;SOC=iMX8MM&lt;/SPAN&gt; &lt;SPAN&gt;flash_evk_no_hdmi&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;After this I am using uuu to flash the flash.bin to my board. But now I am getting the below logs:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;U-Boot SPL 2024.04-dirty (May 26 2025 - 09:25:54 +0100)&lt;BR /&gt;DDRINFO: start DRAM init&lt;BR /&gt;DDRINFO: DRAM rate 3000MTS&lt;BR /&gt;DDRINFO:ddrphy calibration done&lt;BR /&gt;DDRINFO: ddrmix config done&lt;BR /&gt;SEC0: RNG instantiated&lt;BR /&gt;Normal Boot&lt;BR /&gt;Trying to boot from NAND&lt;BR /&gt;NOTICE: Do not release JR0 to NS as it can be used by HAB&lt;BR /&gt;NOTICE: BL31: v2.10.0 (release):automotive-15.0.0_1.1.0-dirty&lt;BR /&gt;NOTICE: BL31: Built : 09:26:26, May 26 2025&lt;BR /&gt;I/TC:&lt;BR /&gt;I/TC: Non-secure external DT found&lt;BR /&gt;I/TC: OP-TEE version: lf-6.6.52-2.2.0-dev (gcc version 13.3.0 (Ubuntu 13.3.0-6ubuntu2~24.04)) #2 Mon May 26 08:40:05 UTC 2025 aarch64&lt;BR /&gt;I/TC: WARNING: This OP-TEE configuration might be insecure!&lt;BR /&gt;I/TC: WARNING: Please check &lt;A href="https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html" target="_blank"&gt;https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html&lt;/A&gt;&lt;BR /&gt;I/TC: Primary CPU initializing&lt;BR /&gt;I/TC: GIC redistributor base address not provided&lt;BR /&gt;I/TC: Assuming default GIC group status and modifier&lt;BR /&gt;I/TC: Primary CPU switching to normal world boot&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And It gets stuck here. Could you please let me know what could be the cause?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rajas&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 26 May 2025 09:22:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Compiling-ATF-with-SPD-support-for-OPTEE/m-p/2104307#M237590</guid>
      <dc:creator>Rajasjoshi</dc:creator>
      <dc:date>2025-05-26T09:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling ATF with SPD support for OPTEE</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Compiling-ATF-with-SPD-support-for-OPTEE/m-p/2105521#M237690</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;From your command it looks like you are trying to build fit image, correct?&lt;BR /&gt;If so did you build optee&amp;nbsp;to support DEK blob encapsulation?&lt;BR /&gt;&lt;BR /&gt;If not, then you may do so with the following command:&lt;BR /&gt;$ CFG_NXPCRYPT=y CFG_GEN_DEK_BLOB=y source ./scripts/nxp_build.sh &amp;lt;Board Name&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Best regards/Saludos,&lt;BR /&gt;Aldo.&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2025 19:02:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Compiling-ATF-with-SPD-support-for-OPTEE/m-p/2105521#M237690</guid>
      <dc:creator>AldoG</dc:creator>
      <dc:date>2025-05-27T19:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling ATF with SPD support for OPTEE</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Compiling-ATF-with-SPD-support-for-OPTEE/m-p/2107028#M237772</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/171173"&gt;@AldoG&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I added those changes and was able to build it as well. The board doesn't get stuck now but the bootlog does mention of optee not initializing:&lt;/P&gt;&lt;P&gt;U-Boot SPL 2024.04-dirty (May 28 2025 - 16:32:11 +0100)&lt;BR /&gt;DDRINFO: start DRAM init&lt;BR /&gt;DDRINFO: DRAM rate 3000MTS&lt;BR /&gt;DDRINFO:ddrphy calibration done&lt;BR /&gt;DDRINFO: ddrmix config done&lt;BR /&gt;SEC0: RNG instantiated&lt;BR /&gt;Normal Boot&lt;BR /&gt;Trying to boot from NAND&lt;BR /&gt;hab fuse not enabled&lt;/P&gt;&lt;P&gt;Authenticate image from DDR location 0x401fadc0...&lt;BR /&gt;Error: CSF header command not found&lt;BR /&gt;NOTICE: Do not release JR0 to NS as it can be used by HAB&lt;BR /&gt;NOTICE: BL31: v2.10.0 (release):automotive-15.0.0_1.1.0-dirty&lt;BR /&gt;NOTICE: BL31: Built : 09:45:06, May 29 2025&lt;BR /&gt;ERROR: Error initializing runtime service opteed_fast&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;U-Boot 2024.04-dirty (May 28 2025 - 16:32:11 +0100)&lt;/P&gt;&lt;P&gt;CPU: i.MX8MMD rev1.0 1800 MHz (running at 1200 MHz)&lt;BR /&gt;CPU: Commercial temperature grade (0C to 95C) at 40C&lt;BR /&gt;Reset cause: POR&lt;BR /&gt;Model: NXP i.MX8MM EVK board&lt;BR /&gt;DRAM: 2 GiB&lt;BR /&gt;optee optee: OP-TEE api uid mismatch&lt;BR /&gt;Core: 105 devices, 30 uclasses, devicetree: separate&lt;BR /&gt;NAND: 1024 MiB&lt;BR /&gt;MMC: FSL_SDHC: 1&lt;BR /&gt;Loading Environment from MMC... MMC: no card present&lt;BR /&gt;*** Warning - No block device, using default environment&lt;/P&gt;&lt;P&gt;Loading Environment from NAND... *** Warning - bad CRC, using default environment&lt;/P&gt;&lt;P&gt;Could you please let me know what could be the cause?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rajas&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 09:09:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Compiling-ATF-with-SPD-support-for-OPTEE/m-p/2107028#M237772</guid>
      <dc:creator>Rajasjoshi</dc:creator>
      <dc:date>2025-05-29T09:09:48Z</dc:date>
    </item>
  </channel>
</rss>

