<?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: Checking data CRC by uboot in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Checking-data-CRC-by-uboot/m-p/1040007#M153224</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;Thank you for response.&lt;BR /&gt;The problem was that image was encrypted by default and now it's works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Adrian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jul 2020 10:20:53 GMT</pubDate>
    <dc:creator>adrian_dusinski</dc:creator>
    <dc:date>2020-07-22T10:20:53Z</dc:date>
    <item>
      <title>Checking data CRC by uboot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Checking-data-CRC-by-uboot/m-p/1040005#M153222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I use u-boot 2017.03-r6.2 and yocto 3.0.&lt;/P&gt;&lt;P&gt;I have boot.scr with size &lt;STRONG&gt;0x5020&lt;/STRONG&gt; and CRC32 ed13a969. I checked CRC32 on device and it's the same.&lt;/P&gt;&lt;P&gt;I have trustfence enabled so boot.scr is signed and when uboot start authenticate_image it takes:&lt;/P&gt;&lt;P&gt;ivt_offset = 0x1000&lt;/P&gt;&lt;P&gt;start = 80800000&lt;/P&gt;&lt;P&gt;bytes = &lt;STRONG&gt;0x3020&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;So boot.scr with size 0x3020 have c7e49c7d and I get Bad data crc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN title=""&gt;I&lt;/SPAN&gt;&lt;SPAN class="" title=""&gt;&lt;SPAN title=""&gt;s this my problem?&lt;/SPAN&gt; Do I need to take any additional steps to make these crc compatible?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;In header I have 0x54ce00a5 but my calculated crc for uboot is:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;data 0x80800040&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;len 0x3d2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;calculated crc 0x2248eb72&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;And calculated value for this size is right but size is wrong.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;Adrian&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV class="simple-translate-button" style="background-image: url('moz-extension://fdfe198f-c65a-4d2e-8af5-eb988b49eefb/icons/512.png'); height: 22px; width: 22px; top: 10px; left: 10px;"&gt;&lt;/DIV&gt;&lt;DIV class="simple-translate-panel isShow" style="width: 37px; height: 30px; top: 347.417px; left: 349.483px; font-size: 13px; background-color: #ffffff;"&gt;&lt;DIV class="simple-translate-result-wrapper" style="overflow: hidden;"&gt;&lt;DIV class="simple-translate-move"&gt;&lt;/DIV&gt;&lt;DIV class="simple-translate-result-contents"&gt;&lt;P class="simple-translate-result" style="color: #000000;"&gt;&lt;/P&gt;&lt;P class="simple-translate-candidate" style="color: #737373;"&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2020 09:27:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Checking-data-CRC-by-uboot/m-p/1040005#M153222</guid>
      <dc:creator>adrian_dusinski</dc:creator>
      <dc:date>2020-07-14T09:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Checking data CRC by uboot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Checking-data-CRC-by-uboot/m-p/1040006#M153223</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;To get a different CRC, two things might happen: The CRC algorithm is not the same on both sides, or the data input to the CRC algorithm is different, this might be caused because one of the input data might be encrypted (which is different to plain text) and the other is not, or in case the data was padded, this also increases the length; so please check those points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Ivan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2020 18:16:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Checking-data-CRC-by-uboot/m-p/1040006#M153223</guid>
      <dc:creator>IvanRuiz</dc:creator>
      <dc:date>2020-07-21T18:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Checking data CRC by uboot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Checking-data-CRC-by-uboot/m-p/1040007#M153224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;Thank you for response.&lt;BR /&gt;The problem was that image was encrypted by default and now it's works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Adrian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2020 10:20:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Checking-data-CRC-by-uboot/m-p/1040007#M153224</guid>
      <dc:creator>adrian_dusinski</dc:creator>
      <dc:date>2020-07-22T10:20:53Z</dc:date>
    </item>
  </channel>
</rss>

