<?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: HAB events loading through SDP in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/HAB-events-loading-through-SDP/m-p/613611#M92716</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/ericnelsonaz"&gt;ericnelsonaz&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;Have you got this issue resolved ? I ran into the same issue while working on HAB/SDP. Kindly share your thoughts with us.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anuradha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Nov 2017 10:40:06 GMT</pubDate>
    <dc:creator>tengri</dc:creator>
    <dc:date>2017-11-20T10:40:06Z</dc:date>
    <item>
      <title>HAB events loading through SDP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/HAB-events-loading-through-SDP/m-p/613608#M92713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm stuck trying to understand a HAB event on a custom i.MX6Q board when loading over USB (SDP).&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't yet closed the device, and am forcing SDP mode by using "bmode usb" from U-Boot v2016.01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The board boots from SPI-NOR and the&amp;nbsp;signed U-Boot works properly (shows no HAB events) when&lt;/P&gt;&lt;P&gt;booting that way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;The single event generated when loading over USB is this:&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;DIV&gt;HAB Configuration: 0xf0, HAB State: 0x66&lt;/DIV&gt;&lt;DIV&gt;--------- HAB Event 1 -----------------&lt;/DIV&gt;&lt;DIV&gt;event data:&lt;/DIV&gt;&lt;DIV&gt;0xdb 0x00 0x08 0x41 0x33 0x22 0x0a 0x00&lt;BR /&gt;&lt;DIV&gt;STS = HAB_FAILURE (0x33)&lt;/DIV&gt;&lt;DIV&gt;RSN = HAB_INV_ADDRESS (0x22)&lt;/DIV&gt;&lt;DIV&gt;CTX = HAB_CTX_AUTHENTICATE (0x0A)&lt;/DIV&gt;&lt;DIV&gt;ENG = HAB_ENG_ANY (0x00)&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;The U-Boot binary used to create the signature has the DCD cleared out (I ran mod_4_mfgtool.sh) and the&amp;nbsp;.csf file I'm using has the proper address for loading the DCD (0x910000 to match my mx6_usb_work.conf):&lt;/DIV&gt;&lt;/DIV&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;DIV&gt;&lt;DIV&gt;[Authenticate Data]&lt;BR /&gt;Verification index = 2&lt;BR /&gt;Blocks = 0x177ff400 0x0 0x0006dc00 "u-boot.imx"&lt;P&gt;&lt;/P&gt;[Authenticate Data]&lt;BR /&gt;Verification index = 2&lt;BR /&gt;Blocks = 0x00910000 0x0000002c 0x00000340 "u-boot.imx"&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;The same structure also works on a SABRE Lite using U-Boot v2016.11 using the same keys, though with different addresses and sizes.&lt;/DIV&gt;&lt;DIV&gt;I've reviewed the addresses and sizes&amp;nbsp;in use and they appear to be correct. Using more or less than the 0x340 bytes for the DCD data or the 0x6dc00 for the image causes additional HAB failures and I'm not seeing what might be going on.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Can someone provide more background on what&amp;nbsp;conditions generate an error code of &lt;SPAN style="background-color: #f6f6f6;"&gt;HAB_CTX_AUTHENTICATE?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 17:48:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/HAB-events-loading-through-SDP/m-p/613608#M92713</guid>
      <dc:creator>ericnelsonaz</dc:creator>
      <dc:date>2016-11-22T17:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: HAB events loading through SDP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/HAB-events-loading-through-SDP/m-p/613609#M92714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update: I just used the BOOT_MODE pins to force a boot directly into the Serial Download Protocol and the HAB event disappeared.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In other words, the error generated above appears to be related to the use of the "bmode usb" command and not a problem with the image&amp;nbsp;I was downloading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm going to flag this as "answered", although there is an&amp;nbsp;outstanding question of "why?".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 18:04:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/HAB-events-loading-through-SDP/m-p/613609#M92714</guid>
      <dc:creator>ericnelsonaz</dc:creator>
      <dc:date>2016-11-22T18:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: HAB events loading through SDP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/HAB-events-loading-through-SDP/m-p/613610#M92715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update 2: After closing the device, the HAB event is still generated when using "bmode usb", but the device will boot the image loaded using imx_usb:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;=&amp;gt; hab_status&lt;/P&gt;&lt;P&gt;Secure boot enabled&lt;/P&gt;&lt;P&gt;HAB Configuration: 0xcc, HAB State: 0x99&lt;/P&gt;&lt;P&gt;--------- HAB Event 1 -----------------&lt;BR /&gt;event data:&lt;BR /&gt; 0xdb 0x00 0x08 0x41 0x33 0x22 0x0a 0x00&lt;/P&gt;&lt;P&gt;STS = HAB_FAILURE (0x33)&lt;BR /&gt;RSN = HAB_INV_ADDRESS (0x22)&lt;BR /&gt;CTX = HAB_CTX_AUTHENTICATE (0x0A)&lt;BR /&gt;ENG = HAB_ENG_ANY (0x00)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So it seems that the error isn't fatal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 18:08:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/HAB-events-loading-through-SDP/m-p/613610#M92715</guid>
      <dc:creator>ericnelsonaz</dc:creator>
      <dc:date>2016-11-22T18:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: HAB events loading through SDP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/HAB-events-loading-through-SDP/m-p/613611#M92716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/ericnelsonaz"&gt;ericnelsonaz&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;Have you got this issue resolved ? I ran into the same issue while working on HAB/SDP. Kindly share your thoughts with us.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anuradha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 10:40:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/HAB-events-loading-through-SDP/m-p/613611#M92716</guid>
      <dc:creator>tengri</dc:creator>
      <dc:date>2017-11-20T10:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: HAB events loading through SDP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/HAB-events-loading-through-SDP/m-p/613612#M92717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/tengri"&gt;tengri&lt;/A&gt;‌&lt;BR /&gt;&lt;BR /&gt;As mentioned above, the error reported wasn't fatal and didn't appear when the image was flashed to the boot media, so I didn't chase it any further.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 14:36:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/HAB-events-loading-through-SDP/m-p/613612#M92717</guid>
      <dc:creator>ericnelsonaz</dc:creator>
      <dc:date>2017-11-20T14:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: HAB events loading through SDP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/HAB-events-loading-through-SDP/m-p/613613#M92718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Eric, your observation when BM switches set to SDP is correct, all events disappeard.&amp;nbsp;so just to get clarify :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Suppose that I have flashed&amp;nbsp;&lt;STRONG&gt;only a signed image (no SDP)&amp;nbsp;&lt;/STRONG&gt;to a (NOR chip of) board and it just works fine without any events. So I lock the device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Then for trouble shooting I want to re-flash u-boot. This has to be done through SDP. So I prepare a&amp;nbsp;&lt;STRONG&gt;signed (using the same keys as was in 1.) and SDP enabled image.&amp;nbsp;&lt;/STRONG&gt;Can I load this binary with &lt;STRONG&gt;imx_usb&lt;/STRONG&gt; to the board and re-flash NOR ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. If the 2.) generates HABs, should the signed image of 1.)&amp;nbsp;be SDP enabled too ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anuradha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 18:40:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/HAB-events-loading-through-SDP/m-p/613613#M92718</guid>
      <dc:creator>tengri</dc:creator>
      <dc:date>2017-11-20T18:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: HAB events loading through SDP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/HAB-events-loading-through-SDP/m-p/613614#M92719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;2. Yes. As I tried to say in "Update 2", you'll likely still get the errors but the image will load and run. Note that there are lots of ways to re-flash U-Boot though, and SDP doesn't really have anything to do with flashing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand the question in bullet 3. You can't really disable SDP on the hardware side except by not exposing the BOOT_MODE pins.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 19:27:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/HAB-events-loading-through-SDP/m-p/613614#M92719</guid>
      <dc:creator>ericnelsonaz</dc:creator>
      <dc:date>2017-11-20T19:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: HAB events loading through SDP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/HAB-events-loading-through-SDP/m-p/613615#M92720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric, what I actually meant by SDP-Flashing is the&amp;nbsp;standard&amp;nbsp;&lt;STRONG&gt;run upgradeu&amp;nbsp;&lt;/STRONG&gt;process after SDP. My requirement is to restrict the u-boot access to the end user. So if bullet 2.) is doable then even if the BM switches are exposed, user cannot download unsigned binary images through SDP. Is my understanding right ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I earlier thought, the current signed image that runs in NOR should essentially have &lt;STRONG&gt;SDP functionality&amp;nbsp;&lt;/STRONG&gt;in order to download a &lt;STRONG&gt;new signed image&lt;/STRONG&gt;&amp;nbsp;via imx_sub_loader ! So from you answer it's clear that,&amp;nbsp;it does not matter whether the current NOR image has SDP or not, all we need is a &lt;STRONG&gt;new&amp;nbsp;signed + SDP image&amp;nbsp;&lt;/STRONG&gt;in imx_usb_loader folder&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;to&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;recover (debug) the board.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Thanks a lot&amp;nbsp;!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Anuradha&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 04:45:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/HAB-events-loading-through-SDP/m-p/613615#M92720</guid>
      <dc:creator>tengri</dc:creator>
      <dc:date>2017-11-21T04:45:14Z</dc:date>
    </item>
  </channel>
</rss>

