<?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: GPMI driver ecc_write_page with oob data problem</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/GPMI-driver-ecc-write-page-with-oob-data-problem/m-p/371694#M53058</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Youxin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FSL supports only ubifs on i.MX6 BSPs, for gpmi with yaffs2 one can look below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://freescale.jiveon.com/thread/298566" title="https://freescale.jiveon.com/thread/298566"&gt;Can the NAND be mounted with the format of Yaff... | Freescale Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NAND EDO patches&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-95061" title="https://community.freescale.com/docs/DOC-95061"&gt;https://community.freescale.com/docs/DOC-95061&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Apr 2015 15:22:16 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2015-04-12T15:22:16Z</dc:date>
    <item>
      <title>GPMI driver ecc_write_page with oob data problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GPMI-driver-ecc-write-page-with-oob-data-problem/m-p/371693#M53057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;Hi,&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;I am attempting to mount Yaffs2 on a GPMI controlled NAND flash on IMX6. Unfortunately, I'm not able to mount it with default settings, instead I have to mount it with "inband-tags" which means don't use OOB area on NAND page to store data. &lt;P&gt;&lt;/P&gt;Then I am running into check why yaffs2 can't use OOB area. &lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;We use MICRON MT29F32G08CBADAWP it has 8192 bytes payload and 744 bytes OOB as log show below:&lt;P&gt;&lt;/P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.982938] nand: Micron MT29F32G08CBADAWP&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.987056] nand: 4096MiB, MLC, page size: 8192, OOB size: 744&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.993508] gpmi-nand 112000.gpmi-nand: enable the asynchronous EDO mode 5&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;Since the IMX6 only support up to 40bits ECC corrections, we don't want all the OOB used by BCH for ECC correction data. So we enabled "fsl,use-minimum-ecc" which is still use the max 40 bits corrections in BCH, after set_geometry_by_ecc_info does the calculation, its end up following geometry:&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;page_size = 8762&lt;/DIV&gt;write_size = 8129&lt;/DIV&gt;metadat_size = 10&lt;/DIV&gt;auxiliary_size = 24&lt;/DIV&gt;&lt;P&gt;oob_free-&amp;gt;offset = 570&lt;/P&gt;&lt;P&gt;oob_free-&amp;gt;length = 174&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which means we do have 174 bytes free OOB area can be used by file system. After a few days tracing and debugging I've found out the GPMI driver method gpmi_ecc_write_page actually does not write oob data(the 174 bytes area) to NAND flash at all? The flags "oob_required" never been used in the method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did anybody else use GPMI with OOB data read/write before? Did it work fine or Am I missing something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Youxin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 23:57:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GPMI-driver-ecc-write-page-with-oob-data-problem/m-p/371693#M53057</guid>
      <dc:creator>youxinsu</dc:creator>
      <dc:date>2015-04-01T23:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: GPMI driver ecc_write_page with oob data problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GPMI-driver-ecc-write-page-with-oob-data-problem/m-p/371694#M53058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Youxin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FSL supports only ubifs on i.MX6 BSPs, for gpmi with yaffs2 one can look below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://freescale.jiveon.com/thread/298566" title="https://freescale.jiveon.com/thread/298566"&gt;Can the NAND be mounted with the format of Yaff... | Freescale Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NAND EDO patches&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-95061" title="https://community.freescale.com/docs/DOC-95061"&gt;https://community.freescale.com/docs/DOC-95061&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Apr 2015 15:22:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GPMI-driver-ecc-write-page-with-oob-data-problem/m-p/371694#M53058</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2015-04-12T15:22:16Z</dc:date>
    </item>
  </channel>
</rss>

