<?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 How to boot i.MX6 Yocto BSP from NAND Flash ? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-boot-i-MX6-Yocto-BSP-from-NAND-Flash/m-p/328872#M44262</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;Hi There, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;We have a custom board that is similar to the imx6q sabresd (+NAND flash) that we are working on porting the new Yocto BSP to. What works so far&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;1. Booting LTIB BSP from SD card and NAND Flash &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;2. Booting Yocto BSP from SD card (by modifying &lt;SPAN style="color: #333333;"&gt;mx6qsabresd.h&lt;/SPAN&gt; &amp;amp; mx6qsabre_common.h)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;3. Reading &amp;amp; Writing NAND Flash in Yocto u-boot (2013.04)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;However, when attempting to boot the Yocto U-boot from NAND flash there is no bootloader console output. The same binary (but w/o the header - u-boot.imx) written to the SD card (with the 0x400 offset) works OK. I know one needs to modify uboot to have the environment read from the nand-flash, however its my impression that at the very minimum there should be some console output using the same uboot binary. Which is where I might be mistaken. Are there any other modifications needed ? I use the following command to program uboot to Flash. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-style: normal; font-size: 11px; font-family: 'Courier New'; font-weight: normal;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-style: normal; font-size: 11px; font-family: 'Courier New'; font-weight: normal;"&gt;kobs-ng init -v --chip_0_device_path=/dev/mtd0 u-boot.bin&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;Programming my LTIB-based uboot using this works OK, so that narrows down the problem to the actual content of the new Yocto u-boot.bin. Hexdumping the mtd0 partition reveals some differences in the first few hundred bytes, but I'm not sure if its significant &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;@ubuntu:/project/yocto/build1$ hexdump -C ltib_uboot -n 1000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000000&amp;nbsp; 00 00 67 fb ff ff 46 43&amp;nbsp; 42 20 00 00 00 01 50 3c&amp;nbsp; |..g...FCB ....P&amp;lt;|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000010&amp;nbsp; 19 06 00 00 00 00 00 08&amp;nbsp; 00 00 40 08 00 00 40 00&amp;nbsp; |..........@...@.|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000020&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; 00 00 00 00 00 00 04 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000030&amp;nbsp; 00 00 00 02 00 00 00 02&amp;nbsp; 00 00 04 00 00 00 0a 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000040&amp;nbsp; 00 00 03 00 00 00 00 00&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000050&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000060&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; 00 00 00 02 00 00 00 05&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000070&amp;nbsp; 00 00 b9 00 00 00 b9 00&amp;nbsp; 00 00 00 01 00 00 cf 07&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000080&amp;nbsp; 00 00 00 00 00 00 00 08&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000090&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000200&amp;nbsp; 1c 0f 17 1f 05 00 00 00&amp;nbsp; 00 00 19 00 00 15 19 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000210&amp;nbsp; 00 15 00 00 00 00 00 00&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000220&amp;nbsp; 00 13 00 00 00 00 16 00&amp;nbsp; 00 00 16 00 00 13 00 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000230&amp;nbsp; 00 0f 00 00 00 0a 00 00&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000240&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000250&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; 00 00 00 00 00 00 16 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000260&amp;nbsp; 00 00 0f 00 00 16 00 00&amp;nbsp; 00 16 00 00 00 00 1c 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000270&amp;nbsp; 00 1b 19 00 00 00 00 00&amp;nbsp; 00 00 19 00 00 00 00 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000280&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;@ubuntu:/project/yocto/build1$ hexdump -C uboot_yocto -n 1000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000000&amp;nbsp; 00 00 d3 fc ff ff 46 43&amp;nbsp; 42 20 00 00 00 01 50 3c&amp;nbsp; |......FCB ....P&amp;lt;|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000010&amp;nbsp; 19 06 00 00 00 00 00 08&amp;nbsp; 00 00 40 08 00 00 40 00&amp;nbsp; |..........@...@.|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000020&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; 00 00 00 00 00 00 04 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000030&amp;nbsp; 00 00 00 02 00 00 00 02&amp;nbsp; 00 00 04 00 00 00 0a 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000040&amp;nbsp; 00 00 03 00 00 00 00 00&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000050&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000060&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; 00 00 00 02 00 00 00 05&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000070&amp;nbsp; 00 00 02 01 00 00 02 01&amp;nbsp; 00 00 00 01 00 00 cf 07&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000080&amp;nbsp; 00 00 00 00 00 00 00 08&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000090&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000200&amp;nbsp; 1c 0f 17 1f 05 00 00 00&amp;nbsp; 00 00 19 00 00 15 19 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000210&amp;nbsp; 00 15 00 00 00 00 00 00&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000220&amp;nbsp; 00 13 00 00 00 00 16 00&amp;nbsp; 00 00 16 00 00 13 00 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000230&amp;nbsp; 00 0f 00 00 00 0a 00 00&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000240&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000250&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; 00 00 00 00 00 00 16 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000260&amp;nbsp; 00 00 0f 00 00 16 1c 00&amp;nbsp; 00 16 1c 00 00 00 1c 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000270&amp;nbsp; 00 1b 19 00 00 00 00 00&amp;nbsp; 00 00 19 00 00 00 00 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000280&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: courier new,courier;"&gt;*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: courier new,courier;"&gt;000003e8&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, performing a "nand dump 0" in the LTIB u-boot shows the same data as in the new Yocto u-boot. That proves that the Yocto u-boot can read the Flash OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any hints on what the problem could be would be appreciated &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Otto&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/andrewk"&gt;andrewk&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Sep 2014 18:06:46 GMT</pubDate>
    <dc:creator>ottob</dc:creator>
    <dc:date>2014-09-18T18:06:46Z</dc:date>
    <item>
      <title>How to boot i.MX6 Yocto BSP from NAND Flash ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-boot-i-MX6-Yocto-BSP-from-NAND-Flash/m-p/328872#M44262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;Hi There, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;We have a custom board that is similar to the imx6q sabresd (+NAND flash) that we are working on porting the new Yocto BSP to. What works so far&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;1. Booting LTIB BSP from SD card and NAND Flash &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;2. Booting Yocto BSP from SD card (by modifying &lt;SPAN style="color: #333333;"&gt;mx6qsabresd.h&lt;/SPAN&gt; &amp;amp; mx6qsabre_common.h)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;3. Reading &amp;amp; Writing NAND Flash in Yocto u-boot (2013.04)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;However, when attempting to boot the Yocto U-boot from NAND flash there is no bootloader console output. The same binary (but w/o the header - u-boot.imx) written to the SD card (with the 0x400 offset) works OK. I know one needs to modify uboot to have the environment read from the nand-flash, however its my impression that at the very minimum there should be some console output using the same uboot binary. Which is where I might be mistaken. Are there any other modifications needed ? I use the following command to program uboot to Flash. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-style: normal; font-size: 11px; font-family: 'Courier New'; font-weight: normal;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-style: normal; font-size: 11px; font-family: 'Courier New'; font-weight: normal;"&gt;kobs-ng init -v --chip_0_device_path=/dev/mtd0 u-boot.bin&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;Programming my LTIB-based uboot using this works OK, so that narrows down the problem to the actual content of the new Yocto u-boot.bin. Hexdumping the mtd0 partition reveals some differences in the first few hundred bytes, but I'm not sure if its significant &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;@ubuntu:/project/yocto/build1$ hexdump -C ltib_uboot -n 1000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000000&amp;nbsp; 00 00 67 fb ff ff 46 43&amp;nbsp; 42 20 00 00 00 01 50 3c&amp;nbsp; |..g...FCB ....P&amp;lt;|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000010&amp;nbsp; 19 06 00 00 00 00 00 08&amp;nbsp; 00 00 40 08 00 00 40 00&amp;nbsp; |..........@...@.|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000020&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; 00 00 00 00 00 00 04 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000030&amp;nbsp; 00 00 00 02 00 00 00 02&amp;nbsp; 00 00 04 00 00 00 0a 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000040&amp;nbsp; 00 00 03 00 00 00 00 00&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000050&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000060&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; 00 00 00 02 00 00 00 05&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000070&amp;nbsp; 00 00 b9 00 00 00 b9 00&amp;nbsp; 00 00 00 01 00 00 cf 07&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000080&amp;nbsp; 00 00 00 00 00 00 00 08&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000090&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000200&amp;nbsp; 1c 0f 17 1f 05 00 00 00&amp;nbsp; 00 00 19 00 00 15 19 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000210&amp;nbsp; 00 15 00 00 00 00 00 00&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000220&amp;nbsp; 00 13 00 00 00 00 16 00&amp;nbsp; 00 00 16 00 00 13 00 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000230&amp;nbsp; 00 0f 00 00 00 0a 00 00&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000240&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000250&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; 00 00 00 00 00 00 16 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000260&amp;nbsp; 00 00 0f 00 00 16 00 00&amp;nbsp; 00 16 00 00 00 00 1c 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000270&amp;nbsp; 00 1b 19 00 00 00 00 00&amp;nbsp; 00 00 19 00 00 00 00 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000280&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;@ubuntu:/project/yocto/build1$ hexdump -C uboot_yocto -n 1000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000000&amp;nbsp; 00 00 d3 fc ff ff 46 43&amp;nbsp; 42 20 00 00 00 01 50 3c&amp;nbsp; |......FCB ....P&amp;lt;|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000010&amp;nbsp; 19 06 00 00 00 00 00 08&amp;nbsp; 00 00 40 08 00 00 40 00&amp;nbsp; |..........@...@.|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000020&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; 00 00 00 00 00 00 04 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000030&amp;nbsp; 00 00 00 02 00 00 00 02&amp;nbsp; 00 00 04 00 00 00 0a 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000040&amp;nbsp; 00 00 03 00 00 00 00 00&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000050&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000060&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; 00 00 00 02 00 00 00 05&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000070&amp;nbsp; 00 00 02 01 00 00 02 01&amp;nbsp; 00 00 00 01 00 00 cf 07&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000080&amp;nbsp; 00 00 00 00 00 00 00 08&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000090&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000200&amp;nbsp; 1c 0f 17 1f 05 00 00 00&amp;nbsp; 00 00 19 00 00 15 19 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000210&amp;nbsp; 00 15 00 00 00 00 00 00&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000220&amp;nbsp; 00 13 00 00 00 00 16 00&amp;nbsp; 00 00 16 00 00 13 00 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000230&amp;nbsp; 00 0f 00 00 00 0a 00 00&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000240&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000250&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; 00 00 00 00 00 00 16 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000260&amp;nbsp; 00 00 0f 00 00 16 1c 00&amp;nbsp; 00 16 1c 00 00 00 1c 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000270&amp;nbsp; 00 1b 19 00 00 00 00 00&amp;nbsp; 00 00 19 00 00 00 00 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;00000280&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; 00 00 00 00 00 00 00 00&amp;nbsp; |................|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: courier new,courier;"&gt;*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: courier new,courier;"&gt;000003e8&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, performing a "nand dump 0" in the LTIB u-boot shows the same data as in the new Yocto u-boot. That proves that the Yocto u-boot can read the Flash OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any hints on what the problem could be would be appreciated &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Otto&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/andrewk"&gt;andrewk&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 18:06:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-boot-i-MX6-Yocto-BSP-from-NAND-Flash/m-p/328872#M44262</guid>
      <dc:creator>ottob</dc:creator>
      <dc:date>2014-09-18T18:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to boot i.MX6 Yocto BSP from NAND Flash ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-boot-i-MX6-Yocto-BSP-from-NAND-Flash/m-p/328873#M44263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hope the following threads help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/386956"&gt;To make NAND image by Yocto.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/382826"&gt;Freescale Yocto i.MX6 U-Boot NAND Boot&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&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>Fri, 19 Sep 2014 00:22:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-boot-i-MX6-Yocto-BSP-from-NAND-Flash/m-p/328873#M44263</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2014-09-19T00:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to boot i.MX6 Yocto BSP from NAND Flash ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-boot-i-MX6-Yocto-BSP-from-NAND-Flash/m-p/328874#M44264</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;Unfortunately no progress.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using the SabreSD as base so there is no NAND booting option in the Yocto Recipes. From what I can see defining 'use &lt;CODE&gt;UBOOT_CONFIG = "nand"' enables the 'CONFIG_SYS_BOOT_NAND' in uboot, which I have enabled in my modified sabresd config file. &lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any documentation on how to troubleshoot this ? I particular I'm curious how the iMX device knows how to communicate with the NAND flash before any code is loaded. I did probe the CE pin of the NAND device and there are two 10ms wide bursts with pause of 30ms in between them upon power-up. But after that its quiet &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can a JTAG debugger be used to troubleshoot the pre-code executing NAND initialization ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Btw, we are using a Micron MT29F4G08 NAND flash device&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Otto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 22:01:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-boot-i-MX6-Yocto-BSP-from-NAND-Flash/m-p/328874#M44264</guid>
      <dc:creator>ottob</dc:creator>
      <dc:date>2014-09-22T22:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to boot i.MX6 Yocto BSP from NAND Flash ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-boot-i-MX6-Yocto-BSP-from-NAND-Flash/m-p/328875#M44265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can You build the U-boot for NAND (&lt;SPAN style="color: #3d3d3d; font-family: monospace;"&gt;UBOOT_CONFIG = "nand"&lt;/SPAN&gt;) ?&lt;/P&gt;&lt;P&gt;And deploy it to the NAND&amp;nbsp; ?&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;dd if=u-boot.imx of=u-boot-nand.imx bs=512 seek=2&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;kobs-ng init -v /boot/u-boot-nand.imx&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Yuri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 07:10:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-boot-i-MX6-Yocto-BSP-from-NAND-Flash/m-p/328875#M44265</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2014-09-23T07:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Re: How to boot i.MX6 Yocto BSP from NAND Flash ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-boot-i-MX6-Yocto-BSP-from-NAND-Flash/m-p/328876#M44266</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;As I mentioned our BSP is based on the mx6qSabreSD, which has no NAND configuration in uboot so we added that in. The information I was hoping to get was - Be sure to enable the necessary clocks in the DDR / Clock setup script - mx6q_4x_mt41j128.cfg &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;--- board/freescale/imx/ddr/mx6q_4x_mt41j128.cfg&amp;nbsp;&amp;nbsp;&amp;nbsp; (revision 31363)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;+++ board/freescale/imx/ddr/mx6q_4x_mt41j128.cfg&amp;nbsp;&amp;nbsp;&amp;nbsp; (working copy)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;@@ -153,9 +154,9 @@&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;DATA 4, 0x020c406c, 0x0030FC03&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;DATA 4, 0x020c4070, 0x0FFFC000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;DATA 4, 0x020c4074, 0x3FF00000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;-DATA 4, 0x020c4078, 0x00FFF300&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;+DATA 4, 0x020c4078, 0xFFFFF300&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;DATA 4, 0x020c407c, 0x0F0000F3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;-DATA 4, 0x020c4080, 0x000003FF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: courier new,courier;"&gt;+DATA 4, 0x020c4080, 0x00000FFF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works well now. Hopefully this can help someone else&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Otto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 17:22:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-boot-i-MX6-Yocto-BSP-from-NAND-Flash/m-p/328876#M44266</guid>
      <dc:creator>ottob</dc:creator>
      <dc:date>2014-09-23T17:22:58Z</dc:date>
    </item>
  </channel>
</rss>

