<?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: Question about optee.</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Question-about-optee/m-p/1065319#M156563</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Shivani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still left one question:&amp;nbsp;&lt;SPAN style="color: #ff6600; background-color: #ffffff;"&gt;mkimage -A arm -O linux -C none -a 0x4dffffe4 -e 0x4e000000 -d tee.bin uTee&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Your answer made me know the relationship between 0x4dffffe4 and 0x4e000000, but I still don't know the relationship of 0x4dffffe4 and&amp;nbsp;&lt;SPAN style="color: #ff6600; background-color: #ffffff;"&gt;0x20000000, I also see a related question here:&amp;nbsp;&lt;A href="https://community.nxp.com/thread/538070"&gt;How to set the entry point address of optee image running &lt;/A&gt;&amp;nbsp;， but that&lt;/SPAN&gt;&amp;nbsp;answer really too&amp;nbsp;abstract.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you kindly explain the relation ship between 0x4dffffe4 and 0x20000000? THanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jul 2020 08:50:30 GMT</pubDate>
    <dc:creator>cnspring2002</dc:creator>
    <dc:date>2020-07-24T08:50:30Z</dc:date>
    <item>
      <title>Question about optee.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Question-about-optee/m-p/1065316#M156560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some questions related to optee on i.mx, please help, thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question 1.&lt;/STRONG&gt; For imx6, I saw this:&amp;nbsp;&lt;A class="link-titled" href="https://blog.lineo.co.jp/archives/629" title="https://blog.lineo.co.jp/archives/629"&gt;How to use OP-TEE with Freescale i.MX6Q SDB? | りかぶ&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When it trans tee.bin to uTee, it used next:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff6600; background-color: #ffffff;"&gt;$ mkimage -A arm -O linux -C none -a 0x4dffffe4 -e 0x4e000000 -d tee.bin uTee&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wonder how we could get "0x4e000000" here? And why "0x4dffffe4" is just 28 bytes less than "0x4e000000"? Any guide I could reference? If I switch to other imx6/7 platform, what's the value could be?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question 2.&lt;/STRONG&gt; Usually, I could use next to download optee in uboot:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #00ccff; background-color: #ffffff; font-size: 12px;"&gt;&lt;SPAN style="color: #ff6600;"&gt;tftp 0x12000000 zImage &amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : –&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;zImage will be loaded to 0x12000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #00ccff; background-color: #ffffff; font-size: 12px;"&gt;&lt;SPAN style="color: #ff6600;"&gt;tftp 0x20000000 uTee &amp;nbsp;&lt;/SPAN&gt; :-&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;uTee will be loaded to 0x20000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;The uTee could finally find zImage at 0x12000000 just because next? Where we specifiy 0x12000000 when build tee.bin?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 14px;"&gt;&lt;SPAN style="color: #ff6600; font-size: 12px;"&gt;$ CROSS_COMPILE=arm-linux-gnueabihf- make PLATFORM=imx-mx6qsabresd&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 14px;"&gt;&lt;SPAN style="color: #ff6600; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ARCH=arm CFG_BUILT_IN_ARGS=y CFG_PAGEABLE_ADDR=0 \&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 14px;"&gt;&lt;SPAN style="color: #ff6600; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CFG_NS_ENTRY_ADDR=0x12000000 CFG_DT_ADDR=0x18000000&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But strangely, when I use "tftp 0x13000000 zImage", it also could boot, why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question 3.&lt;/STRONG&gt; For imx8, I didn't see something like next, where optee now in imx8? It include in image or anything else?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #00ccff; background-color: #ffffff; font-size: 12px;"&gt;&lt;SPAN style="color: #ff6600;"&gt;tftp 0x20000000 uTee &amp;nbsp;&lt;/SPAN&gt; :-&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;uTee will be loaded to 0x20000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm new to optee &amp;amp; i.mx platform, please give me some guide, thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 May 2020 09:03:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Question-about-optee/m-p/1065316#M156560</guid>
      <dc:creator>cnspring2002</dc:creator>
      <dc:date>2020-05-23T09:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Question about optee.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Question-about-optee/m-p/1065317#M156561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cnspring&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for optee usage one can look at Chapter 5 Configuring Optee&lt;/P&gt;&lt;P&gt;Porting Guide in &lt;A class="" href="https://www.nxp.com/webapp/Download?colCode=L5.4.3_1.0.0_LINUX_DOCS" target="_blank"&gt;Linux 5.4.3_1.0.0 Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 May 2020 23:14:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Question-about-optee/m-p/1065317#M156561</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-05-24T23:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Question about optee.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Question-about-optee/m-p/1065318#M156562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/cnspring2002@aliyun.com"&gt;cnspring2002@aliyun.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Along with &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/igorpadykov"&gt;igorpadykov&lt;/A&gt;‌'s comment, please find my answers as below to your questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;Question 1.&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;For imx6, I saw this:&amp;nbsp;&lt;A data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fblog.lineo.co.jp%2Farchives%2F629" rel="nofollow" style="color: #3d9ce7; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;How to use OP-TEE with Freescale i.MX6Q SDB? | りかぶ&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;When it trans tee.bin to uTee, it used next:&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #ff6600; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;$ mkimage -A arm -O linux -C none -a 0x4dffffe4 -e 0x4e000000 -d tee.bin uTee&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I wonder how we could get "0x4e000000" here? And why "0x4dffffe4" is just 28 bytes less than "0x4e000000"? Any guide I could reference? If I switch to other imx6/7 platform, what's the value could be?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;Answer:&lt;/STRONG&gt; Here the entry point address will always be &lt;STRONG&gt;${load_addr} + sizeof(struct optee_header)&lt;/STRONG&gt;. &lt;EM&gt;[Note: sizeof(struct optee_header will be 28 bytes]&lt;/EM&gt;. So that's why the load address is just 28 bytes less than the entry point address. This will be the same for all platforms of i.MX6/7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;Question 2.&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Usually, I could use next to download optee in uboot:&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #00ccff; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 12px;"&gt;&lt;SPAN style="color: #ff6600; border: 0px; font-weight: inherit; font-size: 12px;"&gt;tftp 0x12000000 zImage &amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : –&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;zImage will be loaded to 0x12000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #00ccff; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 12px;"&gt;&lt;SPAN style="color: #ff6600; border: 0px; font-weight: inherit; font-size: 12px;"&gt;tftp 0x20000000 uTee &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;:-&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;uTee will be loaded to 0x20000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;The uTee could finally find zImage at 0x12000000 just because next? Where we specifiy 0x12000000 when build tee.bin?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="color: #ff6600; border: 0px; font-weight: inherit; font-size: 12px;"&gt;$ CROSS_COMPILE=arm-linux-gnueabihf- make PLATFORM=imx-mx6qsabresd&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="color: #ff6600; border: 0px; font-weight: inherit; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ARCH=arm CFG_BUILT_IN_ARGS=y CFG_PAGEABLE_ADDR=0 \&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="color: #ff6600; border: 0px; font-weight: inherit; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CFG_NS_ENTRY_ADDR=0x12000000 CFG_DT_ADDR=0x18000000&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;But strangely, when I use "tftp 0x13000000 zImage", it also could boot, why?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;Answer:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;The uTee could finally find zImage at 0x12000000 just because next? Where we specifiy 0x12000000 when build tee.bin?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;No, uTee finds the zImage at 0x12000000 because we are specifying this address in &lt;STRONG&gt;CFG_NS_ENTRY_ADDR&lt;/STRONG&gt; config macro while we build the &lt;STRONG&gt;tee.bin&lt;/STRONG&gt; binary.&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;But strangely, when I use "tftp 0x13000000 zImage", it also could boot, why?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;No, it will not boot. I have tried practically and it is not booting with 0x13000000 address. So the reason I suspect is we are providing 0x12000000 address in &lt;STRONG&gt;CFG_NS_ENTRY_ADDR&lt;/STRONG&gt; while compiling tee.bin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;Question 3.&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;For imx8, I didn't see something like next, where optee now in imx8? It include in image or anything else?&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #00ccff; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 12px;"&gt;&lt;SPAN style="color: #ff6600; border: 0px; font-weight: inherit; font-size: 12px;"&gt;tftp 0x20000000 uTee &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;:-&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;uTee will be loaded to 0x20000000&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;Answer:&lt;/STRONG&gt; &lt;STRONG&gt;i.MX8&lt;/STRONG&gt; booting flow is different than the booting flow of i.MX6/7. In i.MX8, &lt;STRONG&gt;ROM Code&lt;/STRONG&gt; will load the &lt;STRONG&gt;uTee&lt;/STRONG&gt; binary that's why it is not required to load it using TFTP. The booting flow of i.MX8 is given in the&amp;nbsp;&lt;STRONG&gt;i.MX_Porting_Guide.pdf&lt;/STRONG&gt; shared by &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/igorpadykov"&gt;igorpadykov&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope my comment answers your questions.&lt;/P&gt;&lt;P&gt;Let me know in case of any concerns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shivani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2020 11:19:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Question-about-optee/m-p/1065318#M156562</guid>
      <dc:creator>shivanipatel</dc:creator>
      <dc:date>2020-07-23T11:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Question about optee.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Question-about-optee/m-p/1065319#M156563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Shivani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still left one question:&amp;nbsp;&lt;SPAN style="color: #ff6600; background-color: #ffffff;"&gt;mkimage -A arm -O linux -C none -a 0x4dffffe4 -e 0x4e000000 -d tee.bin uTee&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Your answer made me know the relationship between 0x4dffffe4 and 0x4e000000, but I still don't know the relationship of 0x4dffffe4 and&amp;nbsp;&lt;SPAN style="color: #ff6600; background-color: #ffffff;"&gt;0x20000000, I also see a related question here:&amp;nbsp;&lt;A href="https://community.nxp.com/thread/538070"&gt;How to set the entry point address of optee image running &lt;/A&gt;&amp;nbsp;， but that&lt;/SPAN&gt;&amp;nbsp;answer really too&amp;nbsp;abstract.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you kindly explain the relation ship between 0x4dffffe4 and 0x20000000? THanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2020 08:50:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Question-about-optee/m-p/1065319#M156563</guid>
      <dc:creator>cnspring2002</dc:creator>
      <dc:date>2020-07-24T08:50:30Z</dc:date>
    </item>
  </channel>
</rss>

