<?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のトピックRe: iMX7D boot from QSPI NOR flash</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX7D-boot-from-QSPI-NOR-flash/m-p/716312#M111295</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sebastian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QSPI configuration parameter is starting from offset 0 and IVT header is starting from offset 0x400.&lt;/P&gt;&lt;P&gt;Recommaneded to program qspi with mfg tools from&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/support/developer-resources/software-development-tools/i.mx-developer-resources/i.mx-software-and-development-tool:IMX_SW" title="https://www.nxp.com/support/developer-resources/software-development-tools/i.mx-developer-resources/i.mx-software-and-development-tool:IMX_SW"&gt;i.MX Software|NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&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, 24 May 2018 05:50:20 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2018-05-24T05:50:20Z</dc:date>
    <item>
      <title>iMX7D boot from QSPI NOR flash</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX7D-boot-from-QSPI-NOR-flash/m-p/716311#M111294</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;I've been trying to get my iMX7 to boot from NOR flash.&lt;/P&gt;&lt;P&gt;I set the boot mode to internal and QSPI.&lt;/P&gt;&lt;P&gt;I created the QSPI config using the qspi-header.sh script and xxd.&lt;/P&gt;&lt;P&gt;Then I placed the header at 0x400 in the flash (as is documented in the IMX7DRM). And I tried it on 0x0 (as done by another company).&lt;/P&gt;&lt;P&gt;In both cases I see activity on the QSPI interface. A read command (0x3) is send for the addresses 0x00 to 0x1C0 for 64bytes each. So 8 times 64bytes is 512 bytes which is the length of the config.&lt;/P&gt;&lt;P&gt;But in the data 1 line there is always only 0xff read back.&amp;nbsp; (see attached image)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can confirm the data in the NOR flash using sf read in the uboot at the right positions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are several entries for imx6 systems, but none for the imx7 so far (as far as I could find).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my questions are:&lt;/P&gt;&lt;P&gt;* which is the right position for the qspi config? 0x0 or 0x400. The read commands seem to indicate 0x0, but the config says 0x400&lt;/P&gt;&lt;P&gt;* do you have any idea why no data is read back?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and best regards&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2018 15:08:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX7D-boot-from-QSPI-NOR-flash/m-p/716311#M111294</guid>
      <dc:creator>sfe</dc:creator>
      <dc:date>2018-05-23T15:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: iMX7D boot from QSPI NOR flash</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX7D-boot-from-QSPI-NOR-flash/m-p/716312#M111295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sebastian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QSPI configuration parameter is starting from offset 0 and IVT header is starting from offset 0x400.&lt;/P&gt;&lt;P&gt;Recommaneded to program qspi with mfg tools from&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/support/developer-resources/software-development-tools/i.mx-developer-resources/i.mx-software-and-development-tool:IMX_SW" title="https://www.nxp.com/support/developer-resources/software-development-tools/i.mx-developer-resources/i.mx-software-and-development-tool:IMX_SW"&gt;i.MX Software|NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&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, 24 May 2018 05:50:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX7D-boot-from-QSPI-NOR-flash/m-p/716312#M111295</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-05-24T05:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: iMX7D boot from QSPI NOR flash</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX7D-boot-from-QSPI-NOR-flash/m-p/716313#M111296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i Igor,&lt;/P&gt;&lt;P&gt;thank you for confirming my speculation.&lt;/P&gt;&lt;P&gt;After I got around a hardware issue with our SOM I managed to boot from NOR flash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did not end up using the mfg tool. And I had to modify the config so the NOR does not operate in QuadSPI mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For anyone who is interested (i work under linux btw):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;spansion-flash-single-config&lt;/STRONG&gt; - used with cypress s25fl128s, but should work with all nor flashes. it only uses the default 0x03 read command. writing is not modified and untested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using the qspi-header.sh from the mfg tool and the xxd command that config is turned into a binary.&lt;/P&gt;&lt;P&gt;That can be concatenated with 0x200 of zeroes and a normal uboot binary to get a working image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;dd if=/dev/zero of=./padding_0x200 bs=512 count=1&amp;nbsp; (to make a file with zeroes)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My make file for the boot image:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;./qspi-header.sh spansion-flash-single-config&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;xxd -r qspi-tmp spansion-header&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;cat spansion-header padding_0x200 u-boot.imx &amp;gt; u-boot-spansion.img&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that .img file I write to NOR using a serially loaded uboot&lt;/P&gt;&lt;PRE&gt;tftp $loadaddr /srv/tftp/u-boot-spansion.img;sf probe;sf update $loadaddr 0 $filesize

&lt;CODE&gt;Now set your config pins correctly and it works just fine. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2018 15:11:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX7D-boot-from-QSPI-NOR-flash/m-p/716313#M111296</guid>
      <dc:creator>sfe</dc:creator>
      <dc:date>2018-05-25T15:11:08Z</dc:date>
    </item>
  </channel>
</rss>

