<?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: Calling HAB ROM API from EBOOT (VA mode)</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Calling-HAB-ROM-API-from-EBOOT-VA-mode/m-p/502795#M81385</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How long would the check of the WinCE image take? Are there any data available on the image check times for big images (say 5MB-10MB, and even more)? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 May 2016 10:56:12 GMT</pubDate>
    <dc:creator>mklug_xx</dc:creator>
    <dc:date>2016-05-25T10:56:12Z</dc:date>
    <item>
      <title>Calling HAB ROM API from EBOOT (VA mode)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Calling-HAB-ROM-API-from-EBOOT-VA-mode/m-p/502792#M81382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to implement secure bootloader functionality in WindowsEC7 which supposed to use security features of iMX6 chip.&lt;/P&gt;&lt;P&gt;Before I start any attempt to sign my eboot with securuty key and enable 'closed device mode' in OCOTP I'd like to check that my image has signed and verified correctly.&lt;/P&gt;&lt;P&gt;To do that I need to call HAB ROM API to check whether any error detected by HAB durung bootstrapping or not.&lt;/P&gt;&lt;P&gt;I'v got UBOOT which uses this functionality but there is an issue using this approach in EBOOT.&lt;/P&gt;&lt;P&gt;As far as I understand UBOOT uses physical addresses but EBOOT starts MMU and operates using virtual...&lt;/P&gt;&lt;P&gt;My question is how to call HAB in such a condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok, I can read HAB ROM area using uncached VA and data I am reading are completely sane.&lt;/P&gt;&lt;P&gt;Then I need to call HAB ROM API providing RAM addresses for it (see example below).&lt;/P&gt;&lt;P&gt;Which address type should I use for such parameters: physical or virtual?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UBOOT is compiled by gcc, EBOOT (obviously) is compiled using MS compiler.&lt;/P&gt;&lt;P&gt;I am assuming that HAB ROM API uses gcc style function parameter access...&lt;/P&gt;&lt;P&gt;Are MS and GCC compatible in term of function parameter transfer or I need to process them manually?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;API Example:&lt;/P&gt;&lt;P&gt;typedef enum hab_status hab_rvt_report_status_t(enum hab_config *, enum hab_state *);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Alexey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2015 15:05:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Calling-HAB-ROM-API-from-EBOOT-VA-mode/m-p/502792#M81382</guid>
      <dc:creator>AlexeyT</dc:creator>
      <dc:date>2015-12-24T15:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calling HAB ROM API from EBOOT (VA mode)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Calling-HAB-ROM-API-from-EBOOT-VA-mode/m-p/502793#M81383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;&amp;nbsp; Basically the boot ROM can use MMU during HAB authentication.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;Please take a look at section 8.4.4 (Enabling MMU and Caches) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;of the i.MX6 D/Q Reference Manual. In such case using Eboot with&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;its own MMU initialization may provide unpredictable results.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;&amp;nbsp; Perhaps it would be easier to use (signed) Uboot to load (signed) &lt;BR /&gt; WinCE image.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;&amp;nbsp; As for API - ARM ABI is used.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;&lt;BR /&gt;&lt;A href="http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.subset.swdev.abi/index.html" title="http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.subset.swdev.abi/index.html"&gt;ARM Information Center&lt;/A&gt;&amp;nbsp; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;A href="https://msdn.microsoft.com/en-us/library/dn736986.aspx" title="https://msdn.microsoft.com/en-us/library/dn736986.aspx"&gt;Overview of ARM ABI Conventions&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Yuri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Mon, 28 Dec 2015 05:56:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Calling-HAB-ROM-API-from-EBOOT-VA-mode/m-p/502793#M81383</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2015-12-28T05:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calling HAB ROM API from EBOOT (VA mode)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Calling-HAB-ROM-API-from-EBOOT-VA-mode/m-p/502794#M81384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yuri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately we have so many things in eboot code which interact with WinEC kernel so we can't just dump eboot and exchange it with uboot...&lt;/P&gt;&lt;P&gt;I don't have any issue to call HAB from PA addressing mode, I can do it from eboot before MMU is initialized (PA mode) and keep results in IRAM for later analysis.&lt;/P&gt;&lt;P&gt;Unfortunatey it did not work either.&lt;/P&gt;&lt;P&gt;For unknown (yet) reason my call to HAB never returns so I started thinking I am obviously doing something wrong.&lt;/P&gt;&lt;P&gt;It would be great if you can give me any clue on it.&lt;/P&gt;&lt;P&gt;I tried caling it from PA mode using exact same techiques as UBOOT use but it hangs during call.&lt;/P&gt;&lt;P&gt;Do I need to use asm instead of C code to successfully call it from EBOOT?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 10:44:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Calling-HAB-ROM-API-from-EBOOT-VA-mode/m-p/502794#M81384</guid>
      <dc:creator>AlexeyT</dc:creator>
      <dc:date>2016-01-11T10:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calling HAB ROM API from EBOOT (VA mode)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Calling-HAB-ROM-API-from-EBOOT-VA-mode/m-p/502795#M81385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How long would the check of the WinCE image take? Are there any data available on the image check times for big images (say 5MB-10MB, and even more)? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 10:56:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Calling-HAB-ROM-API-from-EBOOT-VA-mode/m-p/502795#M81385</guid>
      <dc:creator>mklug_xx</dc:creator>
      <dc:date>2016-05-25T10:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Calling HAB ROM API from EBOOT (VA mode)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Calling-HAB-ROM-API-from-EBOOT-VA-mode/m-p/502796#M81386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Normal tm5"&gt;&lt;SPAN class="tm6"&gt;If image &amp;lt; 1MB: HAB time ~ 25 ms.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Normal tm5"&gt;&lt;SPAN class="tm6"&gt;If image &amp;gt; 1MB: HAB time depends on image size, and we do not have &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="tm6"&gt;measurements here.&lt;BR /&gt;Note, bottlenecks are different for both cases, therefore it is not possible to &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Normal tm5"&gt;&lt;SPAN class="tm6"&gt;estimate timings for big size images. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Normal"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yuri.&lt;/P&gt;&lt;DIV style="line-height: normal; margin-top: 5.75pt; margin-bottom: 0.75pt; margin-left: 0.26in; text-indent: -0.26in; direction: ltr; unicode-bidi: embed; vertical-align: baseline;"&gt;&lt;SPAN style="mso-special-format: bullet; color: #262626; mso-color-index: 1; font-size: 80%; font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 06:38:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Calling-HAB-ROM-API-from-EBOOT-VA-mode/m-p/502796#M81386</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2016-07-29T06:38:10Z</dc:date>
    </item>
  </channel>
</rss>

