<?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: How to flash u-boot to nand flash from kernel</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-flash-u-boot-to-nand-flash-from-kernel/m-p/789078#M122302</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mrigendra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;correct commands can be found in mfg tool ucl2.xml script (look for "LIST name="NAND Flash")&lt;/P&gt;&lt;P&gt;as it runs small linux image.&lt;/P&gt;&lt;P&gt;Mfg Tool package can be found on below link&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/support/developer-resources/run-time-software/i.mx-developer-resources/i.mx-software-and-development-tool:IMX_SW" title="https://www.nxp.com/support/developer-resources/run-time-software/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;BR /&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>Sun, 14 Oct 2018 23:01:38 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2018-10-14T23:01:38Z</dc:date>
    <item>
      <title>How to flash u-boot to nand flash from kernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-flash-u-boot-to-nand-flash-from-kernel/m-p/789077#M122301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a i.mx6 qp SoC based board. This board have a nand flash.&lt;/P&gt;&lt;P&gt;Currently i am using sd card to boot, and it have buildroot created rootfs.&lt;/P&gt;&lt;P&gt;The kernel have support for gpmi.nand and i can see partitions created such as mtd0, mtd1 etc.&lt;/P&gt;&lt;P&gt;Now I want to flash nand partition /dev/mtd0.&lt;/P&gt;&lt;P&gt;I am able to read and write on nand partition, with mtd tools, nandwrite tools and kobs-ng tools.&lt;/P&gt;&lt;P&gt;below is what I have done,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Compile a u-boot.imx image with nand support.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. keep that image in some directory of rootfs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.erase nand /dev/mtd0 partition&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;flash_erase /dev/mtd0 0 16&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;4. write uboot binary like this&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;nandwrite -b 1 -n /dev/mtd0 -p u-boot.imx&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;or,&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;dd if=u-boot.imx of=/dev/mtd0 bs=1k seek=1&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;or,&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;kobs-ng init -v /boot/u-boot-nand.imx&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;logs&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;MTD CONFIG:&lt;BR /&gt; chip_0_device_path = "/dev/mtd0"&lt;BR /&gt; chip_1_device_path = "(null)"&lt;BR /&gt; search_exponent = 2&lt;BR /&gt; data_setup_time = 80&lt;BR /&gt; data_hold_time = 60&lt;BR /&gt; address_setup_time = 25&lt;BR /&gt; data_sample_time = 6&lt;BR /&gt; row_address_size = 3&lt;BR /&gt; column_address_size = 2&lt;BR /&gt; read_command_code1 = 0&lt;BR /&gt; read_command_code2 = 48&lt;BR /&gt; boot_stream_major_version = 1&lt;BR /&gt; boot_stream_minor_version = 0&lt;BR /&gt; boot_stream_sub_version = 0&lt;BR /&gt; ncb_version = 3&lt;BR /&gt; boot_stream_1_address = 0&lt;BR /&gt; boot_stream_2_address = 0&lt;BR /&gt;u-boot-nand.imx: verifying using key '00000000000000000000000000000000'&lt;BR /&gt;u-boot-nand.imx: is a valid bootstream for key '00000000000000000000000000000000'&lt;BR /&gt;mtd: Linux 4.1&lt;BR /&gt;mtd: use new bch layout raw access mode&lt;BR /&gt;mtd: opening: "/dev/mtd0"&lt;BR /&gt;Cannot open BCH geometry node: "/sys/kernel/debug/gpmi-nand/bch_geometry"&lt;BR /&gt;NFC geometry :&lt;BR /&gt; ECC Strength : 18&lt;BR /&gt; Page Size in Bytes : 2176&lt;BR /&gt; Metadata size : 10&lt;BR /&gt; ECC Chunk Size in byte : 512&lt;BR /&gt; ECC Chunk count : 4&lt;BR /&gt; Block Mark Byte Offset : 1950&lt;BR /&gt; Block Mark Bit Offset : 2&lt;BR /&gt;====================================================&lt;BR /&gt;mtd: opened '/dev/mtd0' - '(null)'&lt;BR /&gt;mtd: bootstream too large&lt;BR /&gt;mtd_init failed!&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;5. Step 4 is not very clear to me. Reading about kobs tells something very different that what I expected.&lt;/P&gt;&lt;P&gt;All these tools are compiled with latest buildroot.&lt;/P&gt;&lt;P&gt;Kindly tell me the difference and show the correct approach.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Oct 2018 15:02:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-flash-u-boot-to-nand-flash-from-kernel/m-p/789077#M122301</guid>
      <dc:creator>mrigendra_chaub</dc:creator>
      <dc:date>2018-10-14T15:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to flash u-boot to nand flash from kernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-flash-u-boot-to-nand-flash-from-kernel/m-p/789078#M122302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mrigendra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;correct commands can be found in mfg tool ucl2.xml script (look for "LIST name="NAND Flash")&lt;/P&gt;&lt;P&gt;as it runs small linux image.&lt;/P&gt;&lt;P&gt;Mfg Tool package can be found on below link&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/support/developer-resources/run-time-software/i.mx-developer-resources/i.mx-software-and-development-tool:IMX_SW" title="https://www.nxp.com/support/developer-resources/run-time-software/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;BR /&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>Sun, 14 Oct 2018 23:01:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-flash-u-boot-to-nand-flash-from-kernel/m-p/789078#M122302</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-10-14T23:01:38Z</dc:date>
    </item>
  </channel>
</rss>

