<?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 Re: Program Nand Flash with high failure rate in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Program-Nand-Flash-with-high-failure-rate/m-p/178253#M7120</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marek:&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; It is not the kernel's problem, it is found that the boot stream code fails to skip the bad block, what we do now is using the uboot to erase the nand flash once, and the program the kernel to the nand flash by using kobs-ng tool, then it works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Feb 2013 16:21:46 GMT</pubDate>
    <dc:creator>PatrickChau</dc:creator>
    <dc:date>2013-02-08T16:21:46Z</dc:date>
    <item>
      <title>Program Nand Flash with high failure rate</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Program-Nand-Flash-with-high-failure-rate/m-p/178251#M7118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All:&lt;/P&gt;&lt;P&gt;We encountered a problem when programing kernel to the NAND flash of our iMX233 CPU module. We have about 10% fail cases when flashing the kernel to the NAND (we built 22xx pcs and have over 170 pcs NAND write fail). The NAND Flash that we are using is Samsung K9F1G08U0D.&lt;/P&gt;&lt;P&gt;We use the kobs-ng tool to flash the NAND. We first boot the Board with SD Card and write the kernel to the NAND.The below error message is from the first time programming:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Programing Bootloader...&lt;/P&gt;&lt;P&gt;mtd: device 0 fails MEMERASE (0x460000 - 0x20000)&lt;/P&gt;&lt;P&gt;mtd: Failed to erase block @0x460000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We tried to use the following command to program after encountered this error message:&lt;/P&gt;&lt;P&gt;echo 1 &amp;gt; /sys/devices/platform/gpmi-nfc.0/ignorebad&lt;/P&gt;&lt;P&gt;flash_eraseall /dev/mtd0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following messages are get from the terminal:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flash_eraseall has been replaced by `flash_erase &amp;lt;mtddev&amp;gt; 0 0`; please use it&lt;/P&gt;&lt;P&gt;Erasing 128 Kibyte @ 460000 -- 31 % complete libmtd: error!: MEMERASE64 ioctl failed for eraseblock 35 (mtd0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; error 5 (Input/output error)&lt;/P&gt;&lt;P&gt;flash_erase: error!: /dev/mtd0: MTD Erase failure&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; error 5 (Input/output error)&lt;/P&gt;&lt;P&gt;Erasing 128 Kibyte @ de0000 -- 100 % complete&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Followed by the following Message&lt;/P&gt;&lt;P&gt;echo 1 &amp;gt; /sys/devices/platform/gpmi-nfc.0/ignorebad&lt;/P&gt;&lt;P&gt;flash_eraseall /dev/mtd0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flash_eraseall has been replaced by `flash_erase &amp;lt;mtddev&amp;gt; 0 0`; please use it&lt;/P&gt;&lt;P&gt;flash_erase: Skipping bad block at 00000000&lt;/P&gt;&lt;P&gt;flash_erase: Skipping bad block at 00020000&lt;/P&gt;&lt;P&gt;flash_erase: Skipping bad block at 00040000&lt;/P&gt;&lt;P&gt;flash_erase: Skipping bad block at 00060000&lt;/P&gt;&lt;P&gt;flash_erase: Skipping bad block at 00080000&lt;/P&gt;&lt;P&gt;flash_erase: Skipping bad block at 000a0000&lt;/P&gt;&lt;P&gt;flash_erase: Skipping bad block at 000c0000&lt;/P&gt;&lt;P&gt;flash_erase: Skipping bad block at 000e0000&lt;/P&gt;&lt;P&gt;Erasing 128 Kibyte @ 440000 -- 30 % complete flash_erase: Skipping bad block at 00460000&lt;/P&gt;&lt;P&gt;Erasing 128 Kibyte @ de0000 -- 100 % complete&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then we entered:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;echo 1 &amp;gt; /sys/devices/platform/gpmi-nfc.0/ignorebad&lt;/P&gt;&lt;P&gt;kobs-ng init /tmp/imx233_linux.sb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mtd: device 0 fails MEMERASE (0x460000 - 0x20000)&lt;/P&gt;&lt;P&gt;mtd: Failed to erase block @0x460000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We then power off the board. Configure it to NAND Boot, then we've got:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PowerPrep start initialize power...&lt;/P&gt;&lt;P&gt;Battery Voltage = 0.52Vwï¿þø&lt;/P&gt;&lt;P&gt;PowerPrep start initialize power...&lt;/P&gt;&lt;P&gt;Battery Voltage = 1.52Vßÿxð&lt;/P&gt;&lt;P&gt;PowerPrep start initialize power...&lt;/P&gt;&lt;P&gt;Battery Voltage = 0.88V&lt;/P&gt;&lt;P&gt;No battery or bad battery&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; detected!!!.Disabling battery&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; voltage measurements./r/nSep 18 201217:38:03&lt;/P&gt;&lt;P&gt;EMI_CTRL 0x1C084040&lt;/P&gt;&lt;P&gt;FRAC 0x92926192&lt;/P&gt;&lt;P&gt;init_ddr_mt46v32m16_133Mhz&lt;/P&gt;&lt;P&gt;Init Hynix HY5DU121622DT DDR SDRAM @ 133MHz&lt;/P&gt;&lt;P&gt;power 0x00820710&lt;/P&gt;&lt;P&gt;Frac 0x92926192&lt;/P&gt;&lt;P&gt;start change cpu freq&lt;/P&gt;&lt;P&gt;hbus 0x00000003&lt;/P&gt;&lt;P&gt;cpu 0x00010001&lt;/P&gt;&lt;P&gt;0x8050100b&lt;/P&gt;&lt;P&gt;0x80502008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then it reboots periodically with the same message.&lt;/P&gt;&lt;P&gt;Does anybody have any idea? It seems the NAND write is influenced by the bad block problem. Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2012 03:40:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Program-Nand-Flash-with-high-failure-rate/m-p/178251#M7118</guid>
      <dc:creator>PatrickChau</dc:creator>
      <dc:date>2012-11-16T03:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Program Nand Flash with high failure rate</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Program-Nand-Flash-with-high-failure-rate/m-p/178252#M7119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try it with upstream (v3.7) kernel? I suspect the NAND driver in upstream kernel is actually working, the version in the BSP might just be an ancient crap.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Dec 2012 00:32:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Program-Nand-Flash-with-high-failure-rate/m-p/178252#M7119</guid>
      <dc:creator>MarekVasut</dc:creator>
      <dc:date>2012-12-15T00:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Program Nand Flash with high failure rate</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Program-Nand-Flash-with-high-failure-rate/m-p/178253#M7120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marek:&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; It is not the kernel's problem, it is found that the boot stream code fails to skip the bad block, what we do now is using the uboot to erase the nand flash once, and the program the kernel to the nand flash by using kobs-ng tool, then it works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 16:21:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Program-Nand-Flash-with-high-failure-rate/m-p/178253#M7120</guid>
      <dc:creator>PatrickChau</dc:creator>
      <dc:date>2013-02-08T16:21:46Z</dc:date>
    </item>
  </channel>
</rss>

