<?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: HAB problem with u-boot-2014 on nitrogen6x</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/HAB-problem-with-u-boot-2014-on-nitrogen6x/m-p/369439#M52683</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 answers.&lt;/P&gt;&lt;P&gt;1) It is table 8-35 :smileywink: , I have checked that all addresses are good. Any other idea?&lt;/P&gt;&lt;P&gt;2) I have already seen the "Secure boot problem on i.MX6" discussion and that is why I used&amp;nbsp; using u-boot-fslc that I got from freescale github. I am using the last version of u-boot-fslc&amp;nbsp; (2014.10-01193-gcfca0f7).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Aymen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Jan 2015 14:39:42 GMT</pubDate>
    <dc:creator>Aymen_IRT</dc:creator>
    <dc:date>2015-01-23T14:39:42Z</dc:date>
    <item>
      <title>HAB problem with u-boot-2014 on nitrogen6x</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/HAB-problem-with-u-boot-2014-on-nitrogen6x/m-p/369437#M52681</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;I am using a Nitrogen6x and I am trying HAB authentication of u-boot and kernel images in open config.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have activated HAB in u-boot-2009. I used HAB API to authenticate: u-boot,&amp;nbsp; 6x_bootscript, a device tree and a kernel image. In fact, I added a command called authimg to u-boot. authimg takes as input the load address and verifies an image signature. authimg is based on authenticate_image() function which is provided by default in u-boot. I am using authimg command to authenticate 6x_bootscript in bootcmd and to authenticate separately .dtb and uImage in 6x_bootscript. All the authentications were successful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, I tried the last u-boot version which is provided by Freescale on github (u-boot-2014). I activated secure boot option in u-boot-2014 and I tried the same 6x_bootscript, device file and kernel image authentications. I did 2 tests:&lt;/P&gt;&lt;P&gt;1) I put &lt;EM&gt;u-boot.bin with Jtag&lt;/EM&gt; directly at address 0x17800000 and launch it. Authentications of 6x_bootscript, device tree and uImage succeed. &lt;/P&gt;&lt;P&gt;2) However when I copy the corresponding &lt;EM&gt;u-boot.imx&lt;/EM&gt; to NOR with "&lt;EM&gt;sf write 12000000(=my load address) 400 $filesize&lt;/EM&gt;" and make a reset, I get HAB errors&amp;nbsp; for the same signed 6x_bootscript, device tree and kernel image that have been successfully authenticated in test 1. &lt;/P&gt;&lt;P&gt;I get 5 events. Event1 is a HAB_FAILURE with a reason=HAB_INVALID_ADDRESS in HAB_AUTH_CTX. Meanwhile, the 4 other events are INVALID_ASSERTION events corresponding respectively to the following addresses: 0x177FF400 (IVT), 0x177FF42C (DCD), 0x177FF420 (boot_data) and 0x17800000 (entry). Note that when I load with Jtag u-boot.imx to 0x177ff400 and start executing instructions at the entry point 0x17800000,&amp;nbsp; 6x_bootscript, device tree and kernel image authentications were successful.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question1:&lt;/STRONG&gt; Have you any idea about the origin of the problem? I don't understand why the authentication is working fine with &lt;EM&gt;u-boot.bin&lt;/EM&gt; when loaded with Jtag and it is not working when &lt;EM&gt;u-boot.imx&lt;/EM&gt; is copied to NOR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question2:&lt;/STRONG&gt;&amp;nbsp; is about u-boot.imx authentication. In u-boot-2009, we can enter CSF offset directly in ./board/freescale/mx6q_sabresd/flash_header.S. However, we can not do it in u-boot-2014 (as there is no more flash_header.S). In fact, a hexdump of u-boot.imx gives: &lt;/P&gt;&lt;P&gt;00000000&amp;nbsp; d1 00 20 40 00 00 80 17&amp;nbsp; 00 00 00 00 2c f4 7f 17&amp;nbsp; &lt;/P&gt;&lt;P&gt;00000010&amp;nbsp; 20 f4 7f 17 00 f4 7f 17&amp;nbsp; 00 00 00 00 00 00 00 00 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is, header=402000D1, entry addr=17800000, reserved1=0, dcd addr=177f4f2c, boot_data addr=177f4f20, self=177ff400, &lt;EM&gt;&lt;STRONG&gt;csf=0 &lt;/STRONG&gt;&lt;/EM&gt;and reserved2=0. Do we have to set manually csf pointer in set_imx_hdr_v2() function in ./tools/imximage.c?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help,&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 15:29:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/HAB-problem-with-u-boot-2014-on-nitrogen6x/m-p/369437#M52681</guid>
      <dc:creator>Aymen_IRT</dc:creator>
      <dc:date>2015-01-22T15:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: HAB problem with u-boot-2014 on nitrogen6x</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/HAB-problem-with-u-boot-2014-on-nitrogen6x/m-p/369438#M52682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;Please look at my comments below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;&amp;nbsp; If the reason of a HAB event is HAB_INV_ADDRESS (0x22)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;[Invalid address: access denied] -&amp;nbsp; please check if initialization&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;via DCD table meet allowed addresses.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt; Please take a look at Table 8-37 (Valid DCD Address Ranges) of the&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;i.MX6 DQ Reference Manual.&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;Please check if&amp;nbsp; the tools/mkimage utility is from the Freescale.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;"Secure boot problem on i.MX6"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;&lt;A class="jive-link-message-small" data-containerid="2004" data-containertype="14" data-objectid="449201" data-objecttype="2" href="https://community.freescale.com/message/449201#449201"&gt;https://community.freescale.com/message/449201#449201&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&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>Fri, 23 Jan 2015 07:52:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/HAB-problem-with-u-boot-2014-on-nitrogen6x/m-p/369438#M52682</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2015-01-23T07:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: HAB problem with u-boot-2014 on nitrogen6x</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/HAB-problem-with-u-boot-2014-on-nitrogen6x/m-p/369439#M52683</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 answers.&lt;/P&gt;&lt;P&gt;1) It is table 8-35 :smileywink: , I have checked that all addresses are good. Any other idea?&lt;/P&gt;&lt;P&gt;2) I have already seen the "Secure boot problem on i.MX6" discussion and that is why I used&amp;nbsp; using u-boot-fslc that I got from freescale github. I am using the last version of u-boot-fslc&amp;nbsp; (2014.10-01193-gcfca0f7).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Aymen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 14:39:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/HAB-problem-with-u-boot-2014-on-nitrogen6x/m-p/369439#M52683</guid>
      <dc:creator>Aymen_IRT</dc:creator>
      <dc:date>2015-01-23T14:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: HAB problem with u-boot-2014 on nitrogen6x</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/HAB-problem-with-u-boot-2014-on-nitrogen6x/m-p/369440#M52684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to solve my 2 issues: I had just to add &lt;STRONG&gt;BOOT_OFFSET FLASH_OFFSET_STANDARD &lt;/STRONG&gt;and &lt;STRONG&gt;CSF 0x2000 &lt;/STRONG&gt;to boards/boundary/nitrogen6x/nitrogen6q.cfg to get a valid CSF offset in my u-boot.imx (this step is documented at ./doc/README.imximage). I have also signed my u-boot.imx and now everything is working fine. That is, u-boot, 6x_bootscript, .dtb and uImage signatures are all successful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aymen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 10:36:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/HAB-problem-with-u-boot-2014-on-nitrogen6x/m-p/369440#M52684</guid>
      <dc:creator>Aymen_IRT</dc:creator>
      <dc:date>2015-01-26T10:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: HAB problem with u-boot-2014 on nitrogen6x</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/HAB-problem-with-u-boot-2014-on-nitrogen6x/m-p/369441#M52685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for posting the answer Aymen, it will surely help the community!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 18:21:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/HAB-problem-with-u-boot-2014-on-nitrogen6x/m-p/369441#M52685</guid>
      <dc:creator>SergioSolis</dc:creator>
      <dc:date>2015-01-27T18:21:49Z</dc:date>
    </item>
  </channel>
</rss>

