<?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: iMX28 Secure Boot issues in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX28-Secure-Boot-issues/m-p/308492#M39926</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I couldn't figure out what the deal was.&amp;nbsp; However, I changed the kernel compression method from GZIP to LZMA and it booted just fine.&amp;nbsp; Still don't know if the HAB is correct since it isn't giving me any output (if anyone is able to provide the needed HAB libraries, I would be appreciative).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone wants to comment on why GZIP didn't work, I would be interested to hear your thoughts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 May 2014 22:51:09 GMT</pubDate>
    <dc:creator>trevork</dc:creator>
    <dc:date>2014-05-30T22:51:09Z</dc:date>
    <item>
      <title>iMX28 Secure Boot issues</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX28-Secure-Boot-issues/m-p/308491#M39925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been reading through a lot of discussions and application notes and feel I have made some good progress on understanding how it all works.&amp;nbsp; Right now I am trying to make the needed changes to the updater_ivt boot file to allow it to boot.&amp;nbsp; The updater_ivt.sb file is composed of the power_prep, boot_prep and linux_prep bootlets and no u-boot.&amp;nbsp; I am able to compile it and when I go to run it, I get mixed results.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the SRK fuses have NOT been programmed, it boots fine.&amp;nbsp; If the SRK is programmed and the HAB is OPEN, I get one of the following error messages:&lt;/P&gt;&lt;P&gt;Uncompressing Linux...&lt;/P&gt;&lt;P&gt;Out of memory while allocating z_stream&lt;/P&gt;&lt;P&gt;--- System halted&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Uncompressing Linux...&lt;/P&gt;&lt;P&gt;Not a gzip file&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; -- System halted&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently trying to run this on a custom PCB and application.&amp;nbsp; This board has successfully run Linux and our code and the only changes I am making are related towards HAB and securing the system.&amp;nbsp; I have read through and referenced the following documents:&lt;/P&gt;&lt;P&gt;Secure Boot with i.MX28 HAB v4 (AN4555)&lt;/P&gt;&lt;P&gt;HAB Code-Signing Tool&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="1007" data-containertype="700" data-objectid="317254" data-objecttype="1" href="https://community.nxp.com/thread/317254"&gt;Mx28 Secure Boot&lt;/A&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Essentially, I have done the following:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Updated the C code in the boot_prep/init-mx28.c and link information in boot_prep/link.lds&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Updated the power_prep.c and associated link.lds&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; Updated the C code in linux_prep/board/iMX28_EVK.c and linux_prep/linux_prep.ld.in&lt;/P&gt;&lt;P&gt;4.&amp;nbsp; Generated the bin files with objcopy as described in AN4555 page 19&lt;/P&gt;&lt;P&gt;5.&amp;nbsp; Compiled and generated everything with an updated updater_ivt.bd file.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right now, I have not been seeing any HAB data on the screen. (I can't seem to find the library to include so I can call the get_hab_status as described on page 25 of AN4555, so if anyone can give me a few pointers here as well, I would be grateful)&amp;nbsp; And since I can't see it at the moment, I have been focusing on getting it to boot in OPEN HAB configuration.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the files related to the linux_prep bootlet since the power and boot prep bootlets seem to be executing and transitioning correctly.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate any help and am sorry for any dumb questions I may ask.&amp;nbsp; I am still learning.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;UPDATE:&lt;/P&gt;&lt;P&gt;The not a gzip file error has stopped coming (it only came about the first reboot after the bits being burned).&amp;nbsp; And I have traced the z_stream error to where it is occurring.&amp;nbsp; It seems that the very first call to malloc() fails and causes the error. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337104"&gt;linux_prep.map.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337104"&gt;linux_prep.ld.in.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337104"&gt;updater_ivt.bd.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 21:29:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX28-Secure-Boot-issues/m-p/308491#M39925</guid>
      <dc:creator>trevork</dc:creator>
      <dc:date>2014-05-29T21:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: iMX28 Secure Boot issues</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX28-Secure-Boot-issues/m-p/308492#M39926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I couldn't figure out what the deal was.&amp;nbsp; However, I changed the kernel compression method from GZIP to LZMA and it booted just fine.&amp;nbsp; Still don't know if the HAB is correct since it isn't giving me any output (if anyone is able to provide the needed HAB libraries, I would be appreciative).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone wants to comment on why GZIP didn't work, I would be interested to hear your thoughts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 22:51:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX28-Secure-Boot-issues/m-p/308492#M39926</guid>
      <dc:creator>trevork</dc:creator>
      <dc:date>2014-05-30T22:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: iMX28 Secure Boot issues</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX28-Secure-Boot-issues/m-p/308493#M39927</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;Peeking at your procedure it seems to be correct. Let me delve into this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alejandro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2014 16:29:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX28-Secure-Boot-issues/m-p/308493#M39927</guid>
      <dc:creator>alejandrolozan1</dc:creator>
      <dc:date>2014-06-04T16:29:43Z</dc:date>
    </item>
  </channel>
</rss>

