<?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: NAND ECC errors after flashing from 4.9.11 kernel</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/NAND-ECC-errors-after-flashing-from-4-9-11-kernel/m-p/888163#M134430</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;&amp;nbsp; &amp;nbsp; &amp;nbsp;Thanks for your reply. It seems that downporting the gpmi driver to 4.8 was the solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Apr 2019 08:48:10 GMT</pubDate>
    <dc:creator>mihaitaivascu</dc:creator>
    <dc:date>2019-04-09T08:48:10Z</dc:date>
    <item>
      <title>NAND ECC errors after flashing from 4.9.11 kernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/NAND-ECC-errors-after-flashing-from-4-9-11-kernel/m-p/888161#M134428</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;&amp;nbsp; &amp;nbsp; I have the following issues when booting the barebox after I have flashed a new image on nand from Linux using UBI FS tools: ubiformat, ubiattach, etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Board: Phytec phyCORE-i.MX6 Ultra Lite SOM&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;detected i.MX6 UltraLite revision 1.1&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;mdio_bus: miibus0: probed&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;eth0: got preset MAC address: 50:2d:f4:10:d2:69&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;nand: ONFI flash detected&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;nand: NAND device: Manufacturer ID: 0x2c, Chip ID: 0xdc (Micron MT29F4G08ABADAH4), 512MiB, page size: 2048, OOB size: 64&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Bad block table found at page 262080, version 0x01&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Bad block table found at page 262016, version 0x01&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;nand_bbt: ECC error in BBT at 0x00001ffe0005&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;nand_bbt: ECC error in BBT at 0x00001ffc0005&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Scanning device for bad blocks&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Bad block table written to 0x00001ffe0000, version 0x01&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Bad block table written to 0x00001ffc0000, version 0x01&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;imx-usb 2184200.usb: USB EHCI 1.00&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;imx-esdhc 2190000.usdhc: registered as 2190000.usdhc&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;netconsole: registered as netconsole-1&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;phySOM-i.MX6: Using environment in NAND flash&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;malloc space: 0x8fe7d300 -&amp;gt; 0x9fcfa5ff (size 254.5 MiB)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;running /env/bin/init...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;nand0.fit1: error -74 (ECC error) while reading 64 bytes from PEB 797:0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;nand0.fit1: error -74 (ECC error) while reading 64 bytes from PEB 798:0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;nand0.fit1: error -74 (ECC error) while reading 64 bytes from PEB 799:0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ubi0: scanning is finished&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;nand0.fit1: error -74 (ECC error) while reading 22528 bytes from PEB 232:4096&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;nand0.fit1: error -74 (ECC error) while reading 22528 bytes from PEB 233:4096&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ubi0 error: vtbl_check: bad CRC at record 0: 0xa38af6d6, not 0x4d272fba&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Volume table record 0 dump:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; reserved_pebs 579&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; alignment 1&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; data_pad 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; vol_type 2&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; upd_marker 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; name_len 3&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; name fit&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; crc 0x4d272fba&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ubi0 error: vtbl_check: bad CRC at record 0: 0xa38af6d6, not 0x4d272fba&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Volume table record 0 dump:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; reserved_pebs 579&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; alignment 1&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; data_pad 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; vol_type 2&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; upd_marker 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; name_len 3&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; name fit&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; crc 0x4d272fba&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ubi0 error: process_lvol: both volume tables are corrupted&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ubi0 error: ubi_attach_mtd_dev: failed to attach mtd0, error -22&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;failed to attach: Invalid argument&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both barebox and linux use flash based BBT, I have enabled Software BCH ECC in both barebox and linux.&lt;/P&gt;&lt;P&gt;This happens only after I update the nand partiotions from linux.&lt;/P&gt;&lt;P&gt;&amp;nbsp;If I do it from barebox, evrtything is ok.&lt;/P&gt;&lt;P&gt;&amp;nbsp;The device tree in abrebox and linux is the same in regard to nand partition table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use barebox 2018.04 and 4.9.11 NXP kernel on an imx6ul platform&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know what possible reasons could be other than a hw or sw driver bug?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Mihaita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2019 14:18:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/NAND-ECC-errors-after-flashing-from-4-9-11-kernel/m-p/888161#M134428</guid>
      <dc:creator>mihaitaivascu</dc:creator>
      <dc:date>2019-04-08T14:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: NAND ECC errors after flashing from 4.9.11 kernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/NAND-ECC-errors-after-flashing-from-4-9-11-kernel/m-p/888162#M134429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems MT29F4G08ABADAH4 NAND chip driver in new kernel is differ than in old one in point of ECC calculation.&lt;BR /&gt;So you need to re-format NAND structure with kobs-ng.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternativelly you can try to compile the driver from old kernel in new one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2019 05:19:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/NAND-ECC-errors-after-flashing-from-4-9-11-kernel/m-p/888162#M134429</guid>
      <dc:creator>b36401</dc:creator>
      <dc:date>2019-04-09T05:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: NAND ECC errors after flashing from 4.9.11 kernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/NAND-ECC-errors-after-flashing-from-4-9-11-kernel/m-p/888163#M134430</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;&amp;nbsp; &amp;nbsp; &amp;nbsp;Thanks for your reply. It seems that downporting the gpmi driver to 4.8 was the solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2019 08:48:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/NAND-ECC-errors-after-flashing-from-4-9-11-kernel/m-p/888163#M134430</guid>
      <dc:creator>mihaitaivascu</dc:creator>
      <dc:date>2019-04-09T08:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: NAND ECC errors after flashing from 4.9.11 kernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/NAND-ECC-errors-after-flashing-from-4-9-11-kernel/m-p/888164#M134431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using u-boot rather than barebox, but I expect the issue is the same.&amp;nbsp; You can force the gpmi-nand driver in Linux to use a backward compatible ECC by adding the following to gpmi-nand in the device tree:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fsl,legacy-bch-geometry;&lt;/P&gt;&lt;P&gt;Note the cautions in the Linux kernel code about this being a less safe ECC.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2019 15:50:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/NAND-ECC-errors-after-flashing-from-4-9-11-kernel/m-p/888164#M134431</guid>
      <dc:creator>steveschefterti</dc:creator>
      <dc:date>2019-04-16T15:50:08Z</dc:date>
    </item>
  </channel>
</rss>

