<?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: HAB4 API RVT exit() return value</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/HAB4-API-RVT-exit-return-value/m-p/945829#M141476</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Hello,&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&amp;nbsp; Looks like U-boot does not treat HAB_WARNING case separately.&lt;/P&gt;&lt;P class=""&gt;What is the issue in Your case? Do You have real fails?&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Yuri&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P class=""&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Sep 2019 06:07:02 GMT</pubDate>
    <dc:creator>Yuri</dc:creator>
    <dc:date>2019-09-27T06:07:02Z</dc:date>
    <item>
      <title>HAB4 API RVT exit() return value</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/HAB4-API-RVT-exit-return-value/m-p/945828#M141475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm having a difficult time understanding the return value of the exit function and hope that someone can help me with it. This is what it says in the API manual:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;• HAB_SUCCESS on an IC not configured as HAB_CFG_CLOSED, although&lt;BR /&gt;unsuccessful operations will still generate audit log events,&lt;BR /&gt;• HAB_WARNING on other ICs if all commands completed without failure (even if&lt;BR /&gt;warnings were generated),&lt;BR /&gt;• HAB_FAILURE otherwise&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;But U-Boot source code looks like this:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;if (hab_rvt_exit() != HAB_SUCCESS) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; puts("hab exit function fail\n");&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; ...&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If I understand correctly, hab_rvt_exit() should return HAB_SUCCESS on an open device and HAB_WARNING on a closed device. But the U-Boot code seems to rely on the fact that it returns HAB_SUCCESS on a closed device. Also it returns HAB_SUCCESS on my closed device. What am I missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matias Larsson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2019 14:08:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/HAB4-API-RVT-exit-return-value/m-p/945828#M141475</guid>
      <dc:creator>matias_larsson</dc:creator>
      <dc:date>2019-09-19T14:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: HAB4 API RVT exit() return value</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/HAB4-API-RVT-exit-return-value/m-p/945829#M141476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Hello,&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&amp;nbsp; Looks like U-boot does not treat HAB_WARNING case separately.&lt;/P&gt;&lt;P class=""&gt;What is the issue in Your case? Do You have real fails?&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Yuri&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P class=""&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2019 06:07:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/HAB4-API-RVT-exit-return-value/m-p/945829#M141476</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2019-09-27T06:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: HAB4 API RVT exit() return value</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/HAB4-API-RVT-exit-return-value/m-p/945830#M141477</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;Thank you for your response. The issue in my case is that the exit() function seems to behave differently than what it says in the API manual. However, maybe it is supposed to return HAB_SUCCESS on a closed device and the documentation is wrong or I have read it wrong. The way it works makes sense and U-Boot seems to expect it as well. It would still be nice to be able to confirm correct operation and in this case what is happening is not in line with the documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have fails, things are working nicely, just a bit differently than I expected based on the documentation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2019 07:22:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/HAB4-API-RVT-exit-return-value/m-p/945830#M141477</guid>
      <dc:creator>matias_larsson</dc:creator>
      <dc:date>2019-09-27T07:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: HAB4 API RVT exit() return value</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/HAB4-API-RVT-exit-return-value/m-p/945831#M141478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; perhaps it makes sense to introduce an error to a boot image in order to check&lt;/P&gt;&lt;P&gt;operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yuri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2019 07:57:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/HAB4-API-RVT-exit-return-value/m-p/945831#M141478</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2019-09-27T07:57:55Z</dc:date>
    </item>
  </channel>
</rss>

