<?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 Verify OS using HAB API for i.MX28 in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Verify-OS-using-HAB-API-for-i-MX28/m-p/405916#M60370</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used CST tool to sign my OS binary file(nk.nb0), and used elftosb.exe tool to generate the SB file(nk_ivt.sb).&lt;/P&gt;&lt;P&gt;Now,I want to used the "authenticate_image" HAB API to verify my signed OS(sb file) in Eboot, but some parameters of "authenticate_image", I don't know how to assign.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;authenticate_image(uint8_t cid, ptrdiff_t ivt_offset, void **start, size_t *bytes,hab_loader_callback_f loader)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cid ---- Type of target(memory or peripheral)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;---- I have set to "1"&lt;/P&gt;&lt;P&gt;ivt_offset ---- Address of target region&amp;nbsp;&amp;nbsp; &amp;lt;--- I know this is the IVT offset in my signed file.I have assigned&amp;nbsp; ivt_addr in .bd file as below.So I can't ensure whether I should assign ivt_offset&amp;nbsp; to "0x8000" in my code.&lt;/P&gt;&lt;P&gt;/////////////bd file/////////////////////////////////&lt;/P&gt;&lt;P&gt;options {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; driveTag = 0x00;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; flags = 0x01;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constants {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nk_addr = 0x40200000;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; hab_addr = 0xA000;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ivt_addr = 0x8000;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sources {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nk = "nk.nb0";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; hab_nk = "nk_hab_data";&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;section (0) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; load nk &amp;gt; nk_addr;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; load hab_nk &amp;gt; hab_addr;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; load ivt (entry = nk_addr,csf = hab_addr) &amp;gt; ivt_addr;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; hab call ivt_addr;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;///////////////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;start --- Initial image load address on entry&amp;nbsp; &amp;lt;---- It's the memory address(0x40200000), right?&lt;/P&gt;&lt;P&gt;bytes --- Initial image size on entry&amp;nbsp; &amp;lt;---- It's the total size of&amp;nbsp; my signed OS, right?&lt;/P&gt;&lt;P&gt;loader --- callback function&amp;nbsp; &amp;lt;---- NULL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time and assistance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gary&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jun 2015 03:46:56 GMT</pubDate>
    <dc:creator>garylijs</dc:creator>
    <dc:date>2015-06-17T03:46:56Z</dc:date>
    <item>
      <title>Verify OS using HAB API for i.MX28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Verify-OS-using-HAB-API-for-i-MX28/m-p/405916#M60370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used CST tool to sign my OS binary file(nk.nb0), and used elftosb.exe tool to generate the SB file(nk_ivt.sb).&lt;/P&gt;&lt;P&gt;Now,I want to used the "authenticate_image" HAB API to verify my signed OS(sb file) in Eboot, but some parameters of "authenticate_image", I don't know how to assign.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;authenticate_image(uint8_t cid, ptrdiff_t ivt_offset, void **start, size_t *bytes,hab_loader_callback_f loader)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cid ---- Type of target(memory or peripheral)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;---- I have set to "1"&lt;/P&gt;&lt;P&gt;ivt_offset ---- Address of target region&amp;nbsp;&amp;nbsp; &amp;lt;--- I know this is the IVT offset in my signed file.I have assigned&amp;nbsp; ivt_addr in .bd file as below.So I can't ensure whether I should assign ivt_offset&amp;nbsp; to "0x8000" in my code.&lt;/P&gt;&lt;P&gt;/////////////bd file/////////////////////////////////&lt;/P&gt;&lt;P&gt;options {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; driveTag = 0x00;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; flags = 0x01;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constants {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nk_addr = 0x40200000;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; hab_addr = 0xA000;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ivt_addr = 0x8000;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sources {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nk = "nk.nb0";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; hab_nk = "nk_hab_data";&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;section (0) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; load nk &amp;gt; nk_addr;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; load hab_nk &amp;gt; hab_addr;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; load ivt (entry = nk_addr,csf = hab_addr) &amp;gt; ivt_addr;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; hab call ivt_addr;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;///////////////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;start --- Initial image load address on entry&amp;nbsp; &amp;lt;---- It's the memory address(0x40200000), right?&lt;/P&gt;&lt;P&gt;bytes --- Initial image size on entry&amp;nbsp; &amp;lt;---- It's the total size of&amp;nbsp; my signed OS, right?&lt;/P&gt;&lt;P&gt;loader --- callback function&amp;nbsp; &amp;lt;---- NULL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time and assistance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gary&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 03:46:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Verify-OS-using-HAB-API-for-i-MX28/m-p/405916#M60370</guid>
      <dc:creator>garylijs</dc:creator>
      <dc:date>2015-06-17T03:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Verify OS using HAB API for i.MX28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Verify-OS-using-HAB-API-for-i-MX28/m-p/405917#M60371</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;SPAN style="font-family: 'Verdana','sans-serif';"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry, but the information you are requesting is treated as confidential info at this time and requires a signed NDA (Non-Disclosure Agreement). Naturally, we cannot discuss this with you in public anyway, this requires to be handled as a Service Request (SR). Be aware that to give you remote support through a SR, we will still need the confirmation of a Freescale employee that the NDA is in place. If you want to go this route, the next steps will be: If you have already signed a NDA agreement for this product, please contact the person who assisted you or create a SR and name us a Freescale person that can confirm this. If you have not signed an agreement, please contact your local Freescale Distributor Salesperson or FAE for assistance. For a listing of our distributors, refer to: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.freescale.com/webapp/sps/site/overview.jsp?code=DISTRIBUTORS" rel="nofollow" target="_blank"&gt;http://www.freescale.com/webapp/sps/site/overview.jsp?code=DISTRIBUTORS&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Tue, 23 Jun 2015 08:40:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Verify-OS-using-HAB-API-for-i-MX28/m-p/405917#M60371</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2015-06-23T08:40:08Z</dc:date>
    </item>
  </channel>
</rss>

