<?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 Re: Should auth_cntr provide a return value? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Should-auth-cntr-provide-a-return-value/m-p/2140631#M239587</link>
    <description>&lt;P&gt;I am running a yocto scarthgap based image on an i.MX93 based board, running a rather old 2022.04 u-boot (at the moment).&lt;BR /&gt;&lt;BR /&gt;The idea was to have a number of ahab containers:&lt;BR /&gt;&amp;nbsp; - 1st container: ELE, DDR FW, SPL&lt;BR /&gt;&amp;nbsp; - 2nd container: ATF, OP-TEE, U-Boot&lt;BR /&gt;&amp;nbsp; - 3rd container: Kernel&lt;BR /&gt;&amp;nbsp; - 4th container: dtb&lt;BR /&gt;&amp;nbsp; - ....nth&lt;BR /&gt;&lt;BR /&gt;All containers are verified via the chain of trust, starting with ROM verifying the 1st, SPL the 2nd, u-boot the 3rd, 4th and possibly additional containers.&lt;BR /&gt;&lt;BR /&gt;To verify the 3rd and 4th container in u-boot, I use the auth_cntr command and it provides info via ahab_status on the result. However the idea was to add this to a bootcmd, allowing each container to be validated and stopping or moving to a recovery mode on failure.&lt;/P&gt;&lt;P&gt;So the question I have is, how can I use the auth_cntr in an automated/scripted implementation? Or is adding these steps/verifications in the code itself and calling a custom command to handle these checks more suitable/normal practice?&lt;/P&gt;</description>
    <pubDate>Fri, 25 Jul 2025 06:38:45 GMT</pubDate>
    <dc:creator>HH_Mov</dc:creator>
    <dc:date>2025-07-25T06:38:45Z</dc:date>
    <item>
      <title>Should auth_cntr provide a return value?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Should-auth-cntr-provide-a-return-value/m-p/2138272#M239453</link>
      <description>&lt;P&gt;Using an i.mx93 in OEM_Open mode, I was validating the detection of invalidly signed containers.&lt;/P&gt;&lt;P&gt;The code in u-boot for "\include\configs\imx93_evk.h" implies that the auth_cntr returns a value which could be used in an "if statement" in the environment.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;"auth_os=auth_cntr ${cntr_addr}\0" \
"mmcboot=echo Booting from mmc ...; " \
		"run mmcargs; " \
		"if test ${sec_boot} = yes; then " \
			"if run auth_os; then " \
				"run boot_os; " \
			"else " \
				"echo ERR: failed to authenticate; " \
			"fi; " \
		....&lt;/LI-CODE&gt;&lt;P&gt;The check "if run auth_os; then" gives the impression that the success of the container validation is available as a return value.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;However testing shows that the result is always "0", for both a valid and invalid signed container. The ahab_status command does report errors after validating the invalid signed container.&lt;/P&gt;&lt;P&gt;Is this expected behavior for an OEM_Open device ? Or is the imx93_evk.h file implying something that is not there ?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 09:49:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Should-auth-cntr-provide-a-return-value/m-p/2138272#M239453</guid>
      <dc:creator>HH_Mov</dc:creator>
      <dc:date>2025-07-22T09:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Should auth_cntr provide a return value?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Should-auth-cntr-provide-a-return-value/m-p/2140493#M239577</link>
      <description>&lt;P&gt;&lt;SPAN data-teams="true"&gt;The auth_os verifies the container which is built with kernel and DTB. The ahab_status just reports what was verified.&lt;/SPAN&gt;&lt;SPAN data-teams="true"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;Which version of BSP are you testing and what AHAB events?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;Best regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;Harvey&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jul 2025 02:54:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Should-auth-cntr-provide-a-return-value/m-p/2140493#M239577</guid>
      <dc:creator>Harvey021</dc:creator>
      <dc:date>2025-07-25T02:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Should auth_cntr provide a return value?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Should-auth-cntr-provide-a-return-value/m-p/2140631#M239587</link>
      <description>&lt;P&gt;I am running a yocto scarthgap based image on an i.MX93 based board, running a rather old 2022.04 u-boot (at the moment).&lt;BR /&gt;&lt;BR /&gt;The idea was to have a number of ahab containers:&lt;BR /&gt;&amp;nbsp; - 1st container: ELE, DDR FW, SPL&lt;BR /&gt;&amp;nbsp; - 2nd container: ATF, OP-TEE, U-Boot&lt;BR /&gt;&amp;nbsp; - 3rd container: Kernel&lt;BR /&gt;&amp;nbsp; - 4th container: dtb&lt;BR /&gt;&amp;nbsp; - ....nth&lt;BR /&gt;&lt;BR /&gt;All containers are verified via the chain of trust, starting with ROM verifying the 1st, SPL the 2nd, u-boot the 3rd, 4th and possibly additional containers.&lt;BR /&gt;&lt;BR /&gt;To verify the 3rd and 4th container in u-boot, I use the auth_cntr command and it provides info via ahab_status on the result. However the idea was to add this to a bootcmd, allowing each container to be validated and stopping or moving to a recovery mode on failure.&lt;/P&gt;&lt;P&gt;So the question I have is, how can I use the auth_cntr in an automated/scripted implementation? Or is adding these steps/verifications in the code itself and calling a custom command to handle these checks more suitable/normal practice?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jul 2025 06:38:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Should-auth-cntr-provide-a-return-value/m-p/2140631#M239587</guid>
      <dc:creator>HH_Mov</dc:creator>
      <dc:date>2025-07-25T06:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Should auth_cntr provide a return value?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Should-auth-cntr-provide-a-return-value/m-p/2142768#M239667</link>
      <description>&lt;P&gt;Hope that the section &amp;lt;10.9 Security reference design&amp;gt; of&amp;nbsp;&lt;A href="https://www.nxp.com/docs/en/user-guide/UG10163.pdf" target="_self"&gt;the guide&lt;/A&gt;&amp;nbsp;may help for you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Harvey&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2025 13:50:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Should-auth-cntr-provide-a-return-value/m-p/2142768#M239667</guid>
      <dc:creator>Harvey021</dc:creator>
      <dc:date>2025-07-29T13:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Should auth_cntr provide a return value?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Should-auth-cntr-provide-a-return-value/m-p/2161187#M240424</link>
      <description>&lt;P&gt;It seems the result value only reports something about the execution of the auth_cntr command and &lt;STRONG&gt;not&lt;/STRONG&gt; if the container itself is authentic.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;For OEM_Open scenarios this might result in the "run boot_os" to be executed even when the container is not authentic.&lt;/P&gt;&lt;P&gt;For OEM_Closed scenarios, the call to auth_cntr will result in an immediate reboot, so the if statement will never be completed.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Sep 2025 06:09:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Should-auth-cntr-provide-a-return-value/m-p/2161187#M240424</guid>
      <dc:creator>HH_Mov</dc:creator>
      <dc:date>2025-09-01T06:09:14Z</dc:date>
    </item>
  </channel>
</rss>

