<?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のトピックnand flash factory programming using u-boot</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/nand-flash-factory-programming-using-u-boot/m-p/638656#M97378</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do you need to program a nand flash using u-boot? I have created an ubifs image using Yocto. This image is loaded using the mfgtool to RAM. I now want to program the nand flash and I'm facing trouble. This is the way I do it:&lt;/P&gt;&lt;P&gt;&amp;gt; setenv mtdparts mtdparts= nand_flash:32m(kernel),32m(dtb),64m(root),-(data)&lt;/P&gt;&lt;P&gt;&amp;gt; setenv mtdids nand0=nand_flash&lt;/P&gt;&lt;P&gt;&amp;gt; nand erase.chip&lt;/P&gt;&lt;P&gt;&amp;gt; mdtparts&lt;/P&gt;&lt;P&gt;&amp;gt; ubi part root&lt;/P&gt;&lt;P&gt;&amp;gt; ubi create root&lt;/P&gt;&lt;P&gt;&amp;gt; ubi write 0x8380 0000 root 0x12A0000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (0x83800000 =&amp;gt; the ubifs image is loaded there and 0x12A0000 is the size of the image)&lt;/P&gt;&lt;P&gt;&amp;gt; bootz&amp;nbsp; ${loadaddr} - ${fdt_addr}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get:&lt;/P&gt;&lt;P&gt;VFS: Cannot open root device "ubi0:root" or unknown-block(0,0): error -19&lt;BR /&gt;[ 1.423467] Please append a correct "root=" boot option; here are the available partitions:&lt;BR /&gt;[ 1.431983] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a good way of working or is it preferred to use another method to progam my imx6ul device?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Pieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Nov 2016 16:24:21 GMT</pubDate>
    <dc:creator>pietercardoen</dc:creator>
    <dc:date>2016-11-30T16:24:21Z</dc:date>
    <item>
      <title>nand flash factory programming using u-boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/nand-flash-factory-programming-using-u-boot/m-p/638656#M97378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do you need to program a nand flash using u-boot? I have created an ubifs image using Yocto. This image is loaded using the mfgtool to RAM. I now want to program the nand flash and I'm facing trouble. This is the way I do it:&lt;/P&gt;&lt;P&gt;&amp;gt; setenv mtdparts mtdparts= nand_flash:32m(kernel),32m(dtb),64m(root),-(data)&lt;/P&gt;&lt;P&gt;&amp;gt; setenv mtdids nand0=nand_flash&lt;/P&gt;&lt;P&gt;&amp;gt; nand erase.chip&lt;/P&gt;&lt;P&gt;&amp;gt; mdtparts&lt;/P&gt;&lt;P&gt;&amp;gt; ubi part root&lt;/P&gt;&lt;P&gt;&amp;gt; ubi create root&lt;/P&gt;&lt;P&gt;&amp;gt; ubi write 0x8380 0000 root 0x12A0000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (0x83800000 =&amp;gt; the ubifs image is loaded there and 0x12A0000 is the size of the image)&lt;/P&gt;&lt;P&gt;&amp;gt; bootz&amp;nbsp; ${loadaddr} - ${fdt_addr}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get:&lt;/P&gt;&lt;P&gt;VFS: Cannot open root device "ubi0:root" or unknown-block(0,0): error -19&lt;BR /&gt;[ 1.423467] Please append a correct "root=" boot option; here are the available partitions:&lt;BR /&gt;[ 1.431983] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a good way of working or is it preferred to use another method to progam my imx6ul device?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Pieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 16:24:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/nand-flash-factory-programming-using-u-boot/m-p/638656#M97378</guid>
      <dc:creator>pietercardoen</dc:creator>
      <dc:date>2016-11-30T16:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: nand flash factory programming using u-boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/nand-flash-factory-programming-using-u-boot/m-p/638657#M97379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pieter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can try patch for U-Boot that integrates nxp kobs utility into U-Boot&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://patchwork.ozlabs.org/patch/637573/" title="https://patchwork.ozlabs.org/patch/637573/"&gt;[U-Boot] i.MX6 nand bootupdate, reworked - Patchwork&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;nxp provides only mfg tools option for nand programming, use *.vbs&lt;/P&gt;&lt;P&gt;script for board with nand, like mfgtool2-yocto-mx-sabreauto-nand.vbs&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, 01 Dec 2016 08:49:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/nand-flash-factory-programming-using-u-boot/m-p/638657#M97379</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-12-01T08:49:41Z</dc:date>
    </item>
  </channel>
</rss>

