<?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: HABV4 event failed but pass in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/HABV4-event-failed-but-pass/m-p/980285#M145716</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 replying,&amp;nbsp;&lt;/P&gt;&lt;P&gt;From my point, my device is closed,&amp;nbsp; it cannot boot up when&amp;nbsp;meet HAB event.&lt;/P&gt;&lt;P&gt;but you can check the log,&amp;nbsp; even there is a HAB event when load the kernel, the kernel still boot up.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that right process?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Jane&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Nov 2019 08:01:54 GMT</pubDate>
    <dc:creator>jane-jiajuan_zh</dc:creator>
    <dc:date>2019-11-19T08:01:54Z</dc:date>
    <item>
      <title>HABV4 event failed but pass</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/HABV4-event-failed-but-pass/m-p/980283#M145714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi NXP,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some of my chipsets have a very abnormal logs.&lt;/P&gt;&lt;P&gt;Let me clarify the situation first,&amp;nbsp; I use IMX6SOLO, and NAND+DDR.&amp;nbsp; Kernel version is 4.14, uboot is 2018.03.&lt;/P&gt;&lt;P&gt;Using MFGTools to download software to our board. After fuse SRK&amp;nbsp;and close the device, the board could work.&lt;/P&gt;&lt;P&gt;fuse prog 3 0 XXXX&lt;/P&gt;&lt;P&gt;fuse prog 3 1 XXXX&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;fuse prog 0 6 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is when I use MFGTools to download the software again,&amp;nbsp; after the firmware/u-boot runs and verify the kernel, it has some abnormal log below,&amp;nbsp; you can see there are HAB Event 1, but the kernel could be loaded and run. That means&amp;nbsp;hab_rvt_authenticate_image() success, but&amp;nbsp;get_hab_status()&amp;nbsp;has failture, could you help check it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;imx_hab_authenticate_image, 0x12000000, 0x600020, 0x5fe000&lt;/P&gt;&lt;P&gt;Authenticate image from DDR location 0x12000000...&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;P&gt;&lt;/P&gt;&lt;P&gt;## Booting kernel from Legacy Image at 12000000 ...&lt;BR /&gt; Image Name: Linux-4.14.78&lt;BR /&gt; Image Type: ARM Linux Kernel Image (uncompressed)&lt;BR /&gt; Data Size: 6282600 Bytes = 6 MiB&lt;BR /&gt; Load Address: 10008000&lt;BR /&gt; Entry Point: 10008000&lt;BR /&gt; Verifying Checksum ... OK&lt;BR /&gt;## Loading init Ramdisk from Legacy Image at 12c00000 ...&lt;BR /&gt; Image Name: fsl-image-mfgtool-initramfs-imx6&lt;BR /&gt; Image Type: ARM Linux RAMDisk Image (uncompressed)&lt;BR /&gt; Data Size: 10572297 Bytes = 10.1 MiB&lt;BR /&gt; Load Address: 00000000&lt;BR /&gt; Entry Point: 00000000&lt;BR /&gt; Verifying Checksum ... OK&lt;BR /&gt;## Flattened Device Tree blob at 18000000&lt;BR /&gt; Booting using the fdt blob at 0x18000000&lt;BR /&gt; Loading Kernel Image ... OK&lt;BR /&gt; Using Device Tree in place at 18000000, end 1800f13b&lt;/P&gt;&lt;P&gt;Starting kernel ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Jane&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2019 05:40:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/HABV4-event-failed-but-pass/m-p/980283#M145714</guid>
      <dc:creator>jane-jiajuan_zh</dc:creator>
      <dc:date>2019-11-13T05:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: HABV4 event failed but pass</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/HABV4-event-failed-but-pass/m-p/980284#M145715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp; Please look at my comments below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;1.&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; Use Appendix F (i.MX manufacturing tool) of app note “Secure Boot on i.MX 50, i.MX 53, i.MX 6 and i.MX 7 &lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Series using HABv4”, Rev. 2, 05/2018 how signed image should be built for working with the MFG. &lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN4581.pdf" target="test_blank"&gt;https://www.nxp.com/docs/en/application-note/AN4581.pdf&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;2.&lt;BR /&gt;&amp;nbsp; &amp;nbsp;When verifying the signed image with mfgtool, BOOT_MODE[1:0] should be set to 01 to Serial &lt;BR /&gt;Downloader mode, otherwise, you may meet HAB event. &lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Have a great day,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Yuri.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;-------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Note:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&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;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2019 05:18:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/HABV4-event-failed-but-pass/m-p/980284#M145715</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2019-11-19T05:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: HABV4 event failed but pass</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/HABV4-event-failed-but-pass/m-p/980285#M145716</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 replying,&amp;nbsp;&lt;/P&gt;&lt;P&gt;From my point, my device is closed,&amp;nbsp; it cannot boot up when&amp;nbsp;meet HAB event.&lt;/P&gt;&lt;P&gt;but you can check the log,&amp;nbsp; even there is a HAB event when load the kernel, the kernel still boot up.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that right process?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Jane&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2019 08:01:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/HABV4-event-failed-but-pass/m-p/980285#M145716</guid>
      <dc:creator>jane-jiajuan_zh</dc:creator>
      <dc:date>2019-11-19T08:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: HABV4 event failed but pass</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/HABV4-event-failed-but-pass/m-p/980286#M145717</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;here sync a forward analysis by myself to you.&lt;/P&gt;&lt;P&gt;From your reply, I suspect that the BOOT_MODE is&amp;nbsp;the key point, so I check our hardware design.&lt;/P&gt;&lt;P&gt;The BOOT_MODE[1:0] is fixed to 10, which means Internal Boot mode.&lt;/P&gt;&lt;P&gt;When we want to enter Serial Downloader mode, we&amp;nbsp;pull down the BT_CFG1_7, which change the NAND BOOT to others, but our device only has NAND, so enter the Serial Downloader mode by this wrong boot config.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two questions,&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; is there any different process in ROM code between the two ways to enter serial downloader mode?&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; this&amp;nbsp;problem only happend on some individual chips, is the firmware different?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Jane&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2019 06:46:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/HABV4-event-failed-but-pass/m-p/980286#M145717</guid>
      <dc:creator>jane-jiajuan_zh</dc:creator>
      <dc:date>2019-11-20T06:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: HABV4 event failed but pass</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/HABV4-event-failed-but-pass/m-p/980287#M145718</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;/P&gt;&lt;P&gt;&amp;nbsp;I've sent some comments directly.&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, 22 Nov 2019 05:24:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/HABV4-event-failed-but-pass/m-p/980287#M145718</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2019-11-22T05:24:38Z</dc:date>
    </item>
  </channel>
</rss>

