<?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のトピックSigned zImage iMX6Q: Missing Parameters</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Signed-zImage-iMX6Q-Missing-Parameters/m-p/530833#M84680</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been successful with getting the signed u-boot working. I want to get the same with zImage running. I have signed the zImage according to the following procedure:&lt;/P&gt;&lt;P&gt;1. Pad the original zImage to 0x1000 (4kBytes) -&amp;gt; &lt;STRONG&gt;zImage-padded&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2. Create an IVT table and add it to the zImage -&amp;gt; &lt;STRONG&gt;zImage-padded-ivt&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;3. Generate the Signature for the above and attach it -&amp;gt; &lt;STRONG&gt;zImage-padded-ivt-csf&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;4. Pad the above image -&amp;gt; &lt;STRONG&gt;zImage-padded-ivt-csf-padded&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This final zImage runs without any problem. But I see no HAB events at all for the zImage. I made changes to my u-boot &lt;EM&gt;cmd_bootm.c&lt;/EM&gt; file at the function &lt;EM&gt;bootz_start &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#ifdef CONFIG_SECURE_BOOT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; extern uint32_t authenticate_image(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; uint32_t ddr_start, uint32_t image_size);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; if (authenticate_image(images-&amp;gt;ep, zi_end - zi_start) == 0) {&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; printf("Authenticate zImage Fail, Please check\n");&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; return 1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; }&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#endif&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also added &lt;STRONG&gt;caam&lt;/STRONG&gt; to the kernel parameters but still I dont see any HAB events for zImage&lt;/P&gt;&lt;P&gt;So, I would like to know if there are any missing&lt;STRONG&gt; parameters at kernel or u-boot level or any u-boot settings&lt;/STRONG&gt; that enables the authentication of zImage before loading?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greets,&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jul 2016 10:00:50 GMT</pubDate>
    <dc:creator>satyadamarla</dc:creator>
    <dc:date>2016-07-05T10:00:50Z</dc:date>
    <item>
      <title>Signed zImage iMX6Q: Missing Parameters</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Signed-zImage-iMX6Q-Missing-Parameters/m-p/530833#M84680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been successful with getting the signed u-boot working. I want to get the same with zImage running. I have signed the zImage according to the following procedure:&lt;/P&gt;&lt;P&gt;1. Pad the original zImage to 0x1000 (4kBytes) -&amp;gt; &lt;STRONG&gt;zImage-padded&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2. Create an IVT table and add it to the zImage -&amp;gt; &lt;STRONG&gt;zImage-padded-ivt&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;3. Generate the Signature for the above and attach it -&amp;gt; &lt;STRONG&gt;zImage-padded-ivt-csf&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;4. Pad the above image -&amp;gt; &lt;STRONG&gt;zImage-padded-ivt-csf-padded&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This final zImage runs without any problem. But I see no HAB events at all for the zImage. I made changes to my u-boot &lt;EM&gt;cmd_bootm.c&lt;/EM&gt; file at the function &lt;EM&gt;bootz_start &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#ifdef CONFIG_SECURE_BOOT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; extern uint32_t authenticate_image(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; uint32_t ddr_start, uint32_t image_size);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; if (authenticate_image(images-&amp;gt;ep, zi_end - zi_start) == 0) {&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; printf("Authenticate zImage Fail, Please check\n");&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; return 1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; }&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#endif&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also added &lt;STRONG&gt;caam&lt;/STRONG&gt; to the kernel parameters but still I dont see any HAB events for zImage&lt;/P&gt;&lt;P&gt;So, I would like to know if there are any missing&lt;STRONG&gt; parameters at kernel or u-boot level or any u-boot settings&lt;/STRONG&gt; that enables the authentication of zImage before loading?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greets,&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 10:00:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Signed-zImage-iMX6Q-Missing-Parameters/m-p/530833#M84680</guid>
      <dc:creator>satyadamarla</dc:creator>
      <dc:date>2016-07-05T10:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Signed zImage iMX6Q: Missing Parameters</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Signed-zImage-iMX6Q-Missing-Parameters/m-p/530834#M84681</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; Have You followed recommendations of "i.MX 6 Linux High Assurance Boot &lt;BR /&gt;(HAB) User's Guide" ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Thu, 07 Jul 2016 10:39:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Signed-zImage-iMX6Q-Missing-Parameters/m-p/530834#M84681</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2016-07-07T10:39:28Z</dc:date>
    </item>
  </channel>
</rss>

