<?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: Failure to skip bad block</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Failure-to-skip-bad-block/m-p/1740455#M214106</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/45153"&gt;@junya&lt;/a&gt;,&lt;/P&gt;
&lt;DIV dir="ltr"&gt;
&lt;DIV&gt;I hope you are doing well.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;During the lifetime of the NAND device additional bad blocks may develop. NAND devices have a status register that indicates whether an operation is successful. Additional bad blocks are identified when attempts to PROGRAM or ERASE give errors in the status register.&amp;nbsp;note that if indeed there are real bad blocks on nand device, even the CW will skip that block, your application will not boot.&lt;/DIV&gt;
&lt;DIV&gt;For the other way: there are various steps mentioned in the following document which may help you:&amp;nbsp;&lt;A href="https://community.nxp.com/pwmxy87654/attachments/pwmxy87654/imx-processors/92634/2/AN_MX_NAND_BAD_BLOCK.pdf" target="_blank" rel="noopener" data-saferedirecturl="https://www.google.com/url?q=https://community.nxp.com/pwmxy87654/attachments/pwmxy87654/imx-processors/92634/2/AN_MX_NAND_BAD_BLOCK.pdf&amp;amp;source=gmail&amp;amp;ust=1697539508255000&amp;amp;usg=AOvVaw0h1Hbb1l9j03UteGmY_Xj4"&gt;https://community.nxp.&lt;WBR /&gt;com/pwmxy87654/attachments/&lt;WBR /&gt;pwmxy87654/imx-processors/&lt;WBR /&gt;92634/2/AN_MX_NAND_BAD_BLOCK.&lt;WBR /&gt;pdf&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;The workaround will works only if bad blocks are reported wrong by FP and our nand device don't have any bad blocks where uboot must be programmed. If one needs to skip bad block mechanism from CW Flash Programmer, then go to: \PA\bin\plugins\&lt;WBR /&gt;supportProducts\ProductData\&lt;WBR /&gt;FPDevices.mwpdb\FP\ and search for K9F5608Ux0D-eLBC.xml, then modify BAD_BLOCK_MECHANISM_TYPE from 3 to 0.&lt;/DIV&gt;
&amp;lt;additionalparameter&amp;gt;3&amp;lt;/&lt;WBR /&gt;additionalparameter&amp;gt; &amp;nbsp; &amp;lt;!-- BAD_BLOCK_MECHANISM_TYPE --&amp;gt;&lt;/DIV&gt;
&lt;DIV dir="ltr"&gt;Also please confirm that the&amp;nbsp;following parameter is enabled on your system CONFIG_MTD_NAND_MXC=y&lt;/DIV&gt;
&lt;DIV dir="ltr"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir="ltr"&gt;The bad block information is written prior to shipping. The flash manufacturer&amp;nbsp;guarantees to have zero bad blocks for NAND. It can be possible that something happened to your nand flash from your side and now it reports bad blocks.
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks &amp;amp; Regards,&lt;/DIV&gt;
&lt;DIV&gt;Dhruvit Vasavada&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Mon, 16 Oct 2023 13:04:04 GMT</pubDate>
    <dc:creator>Dhruvit</dc:creator>
    <dc:date>2023-10-16T13:04:04Z</dc:date>
    <item>
      <title>Failure to skip bad block</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Failure-to-skip-bad-block/m-p/1732541#M213444</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have a custom board with a i.MX8MP and a KIOKXIA TH58NVG4S0HTAK0 which should be used as boot device.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Boot device:&lt;/SPAN&gt;&lt;SPAN&gt;NAND FLASH 2GB (2 chip select, 1chip select is 1GB)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;brunch:imx-linux-hardknott&lt;/P&gt;&lt;P&gt;manifesto:imx-5.10.35 2.0.0.xml&lt;/P&gt;&lt;P&gt;DISTRO:fsl-imx-wayland&lt;/P&gt;&lt;P&gt;MACHINE:mx8mpevk&lt;/P&gt;&lt;P&gt;uuu ver :1.5.21&lt;/P&gt;&lt;P&gt;Writing images to nand flash uses uuu.&lt;/P&gt;&lt;P&gt;In this process, some boards succeed in writing and others fail.&lt;BR /&gt;From the errors, it looks like it is failing to skip bad blocks.&lt;BR /&gt;Why does it fail to skip bad blocks?&lt;/P&gt;&lt;P&gt;The logs for each are attached.&lt;BR /&gt;They are shown side by side, the left is for failure and the right is for success.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 11:22:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Failure-to-skip-bad-block/m-p/1732541#M213444</guid>
      <dc:creator>junya</dc:creator>
      <dc:date>2023-10-02T11:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Failure to skip bad block</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Failure-to-skip-bad-block/m-p/1733159#M213514</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/45153"&gt;@junya&lt;/a&gt;,&lt;/P&gt;
&lt;DIV&gt;I hope you are doing well.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;P align="justify"&gt;&lt;FONT face="arial, sans-serif"&gt;Bad Block is an area of storing media that is no longer reliable for the storage of data because it is completely damaged or corrupted. Bad blocks may be present when the device is shipped, or may develop during the lifetime of the device. Click on this link for:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.micron.com/-/media/client/global/documents/products/technical-note/nand-flash/tn2959_bbm_in_nand_flash.pdf" target="_blank" rel="noopener" data-saferedirecturl="https://www.google.com/url?q=https://www.micron.com/-/media/client/global/documents/products/technical-note/nand-flash/tn2959_bbm_in_nand_flash.pdf&amp;amp;source=gmail&amp;amp;ust=1696413386880000&amp;amp;usg=AOvVaw0OsvbmpsNoxGgThjnsm7qU"&gt;Bad block management in NAND flash memory&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P align="justify"&gt;&lt;FONT face="arial, sans-serif"&gt;&lt;SPAN&gt;The following command will clear the list of bad clusters on the volume specified and re-scans all allocated and free clusters for errors.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P align="justify"&gt;&lt;FONT face="arial, sans-serif"&gt;&lt;STRONG&gt;N&lt;/STRONG&gt;&lt;STRONG&gt;OTE&lt;/STRONG&gt;&lt;STRONG&gt;:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Execute this command only on the machine that was being backed up. Specifying the volume for which the warning occurred.&lt;/FONT&gt;&lt;/P&gt;
&lt;P align="justify"&gt;&lt;FONT face="arial, sans-serif"&gt;Type the following command to unmount the drive you want to check:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;sudo umount /dev/sdb&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P align="justify"&gt;&lt;FONT face="arial, sans-serif"&gt;Replace "/dev/sdb" with the device name for the drive you want to check.&lt;/FONT&gt;&lt;/P&gt;
&lt;P align="justify"&gt;&lt;FONT face="arial, sans-serif"&gt;Type the following command to check the drive:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;sudo fsck /dev/sdb&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P align="justify"&gt;&lt;FONT face="arial, sans-serif"&gt;Run the "fsck" command a second time if any number other than zero appears. This ensures that all errors are corrected.&lt;/FONT&gt;&lt;/P&gt;
&lt;P align="justify"&gt;&lt;FONT face="arial, sans-serif"&gt;Reboot the system or type the command&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;"sudo mount /dev/sdb"&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to remount the drive.&lt;/FONT&gt;&lt;/P&gt;
&lt;P align="justify"&gt;&lt;FONT face="arial, sans-serif"&gt;You can also go through a conversation here, it might help you with a hint:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-skip-bad-block-while-programming-nand-flash-using-cw10-x/m-p/566260" target="_blank" rel="noopener" data-saferedirecturl="https://www.google.com/url?q=https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-skip-bad-block-while-programming-nand-flash-using-cw10-x/m-p/566260&amp;amp;source=gmail&amp;amp;ust=1696413386880000&amp;amp;usg=AOvVaw3y8HP6WFKHTqDLFQ6IAZil"&gt;https://community.nxp.com/t5/&lt;WBR /&gt;CodeWarrior-Development-Tools/&lt;WBR /&gt;How-to-skip-bad-block-while-&lt;WBR /&gt;programming-nand-flash-using-&lt;WBR /&gt;cw10-x/m-p/566260&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Dhruvit Vasavada&lt;/DIV&gt;</description>
      <pubDate>Tue, 03 Oct 2023 13:14:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Failure-to-skip-bad-block/m-p/1733159#M213514</guid>
      <dc:creator>Dhruvit</dc:creator>
      <dc:date>2023-10-03T13:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Failure to skip bad block</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Failure-to-skip-bad-block/m-p/1736948#M213819</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201299"&gt;@Dhruvit&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;I guess your advice is that we can do well on the kernel.&lt;/P&gt;&lt;P&gt;But i still don't understand it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attach the script of uuu.&lt;/P&gt;&lt;P&gt;Please advise how to modify this script to skip bad blocks.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 01:55:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Failure-to-skip-bad-block/m-p/1736948#M213819</guid>
      <dc:creator>junya</dc:creator>
      <dc:date>2023-10-11T01:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Failure to skip bad block</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Failure-to-skip-bad-block/m-p/1740455#M214106</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/45153"&gt;@junya&lt;/a&gt;,&lt;/P&gt;
&lt;DIV dir="ltr"&gt;
&lt;DIV&gt;I hope you are doing well.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;During the lifetime of the NAND device additional bad blocks may develop. NAND devices have a status register that indicates whether an operation is successful. Additional bad blocks are identified when attempts to PROGRAM or ERASE give errors in the status register.&amp;nbsp;note that if indeed there are real bad blocks on nand device, even the CW will skip that block, your application will not boot.&lt;/DIV&gt;
&lt;DIV&gt;For the other way: there are various steps mentioned in the following document which may help you:&amp;nbsp;&lt;A href="https://community.nxp.com/pwmxy87654/attachments/pwmxy87654/imx-processors/92634/2/AN_MX_NAND_BAD_BLOCK.pdf" target="_blank" rel="noopener" data-saferedirecturl="https://www.google.com/url?q=https://community.nxp.com/pwmxy87654/attachments/pwmxy87654/imx-processors/92634/2/AN_MX_NAND_BAD_BLOCK.pdf&amp;amp;source=gmail&amp;amp;ust=1697539508255000&amp;amp;usg=AOvVaw0h1Hbb1l9j03UteGmY_Xj4"&gt;https://community.nxp.&lt;WBR /&gt;com/pwmxy87654/attachments/&lt;WBR /&gt;pwmxy87654/imx-processors/&lt;WBR /&gt;92634/2/AN_MX_NAND_BAD_BLOCK.&lt;WBR /&gt;pdf&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;The workaround will works only if bad blocks are reported wrong by FP and our nand device don't have any bad blocks where uboot must be programmed. If one needs to skip bad block mechanism from CW Flash Programmer, then go to: \PA\bin\plugins\&lt;WBR /&gt;supportProducts\ProductData\&lt;WBR /&gt;FPDevices.mwpdb\FP\ and search for K9F5608Ux0D-eLBC.xml, then modify BAD_BLOCK_MECHANISM_TYPE from 3 to 0.&lt;/DIV&gt;
&amp;lt;additionalparameter&amp;gt;3&amp;lt;/&lt;WBR /&gt;additionalparameter&amp;gt; &amp;nbsp; &amp;lt;!-- BAD_BLOCK_MECHANISM_TYPE --&amp;gt;&lt;/DIV&gt;
&lt;DIV dir="ltr"&gt;Also please confirm that the&amp;nbsp;following parameter is enabled on your system CONFIG_MTD_NAND_MXC=y&lt;/DIV&gt;
&lt;DIV dir="ltr"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir="ltr"&gt;The bad block information is written prior to shipping. The flash manufacturer&amp;nbsp;guarantees to have zero bad blocks for NAND. It can be possible that something happened to your nand flash from your side and now it reports bad blocks.
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks &amp;amp; Regards,&lt;/DIV&gt;
&lt;DIV&gt;Dhruvit Vasavada&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 16 Oct 2023 13:04:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Failure-to-skip-bad-block/m-p/1740455#M214106</guid>
      <dc:creator>Dhruvit</dc:creator>
      <dc:date>2023-10-16T13:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Failure to skip bad block</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Failure-to-skip-bad-block/m-p/1740502#M214112</link>
      <description>&lt;P&gt;Few words in a less academic, but pragmatic way.&lt;/P&gt;&lt;P&gt;nand without bad blocks is a dream. And bad block table exists to track bad blocks. The problem is typical of nand devices, that are known to be error-prone. So nand needs to be accessed with proper ECC support from the driver.&lt;/P&gt;&lt;P&gt;If you flash through uuu, the access may be done by u-boot, please verify to have recent u-boot/fastboot and updated drivers for the device.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As file system, ubifs is an option for quite relaible fs now a day.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.micron.com/-/media/client/global/documents/products/technical-note/nand-flash/tn2959_bbm_in_nand_flash.pdf" target="_blank" rel="noopener"&gt;https://www.micron.com/-/media/client/global/documents/products/technical-note/nand-flash/tn2959_bbm_in_nand_flash.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 14:51:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Failure-to-skip-bad-block/m-p/1740502#M214112</guid>
      <dc:creator>_angelo_</dc:creator>
      <dc:date>2023-10-16T14:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Failure to skip bad block</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Failure-to-skip-bad-block/m-p/1974824#M229736</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201299"&gt;@Dhruvit&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;We removed the NAND flash from the problematic board and had it analyzed by Kioxia. As a result, the component was determined to be good. Additionally, there were no acquired bad blocks, and the bad blocks that were identified matched the ones that were skipped during writing with uuu.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This means that while bad blocks can be skipped during flashing, they are not being skipped during reading. We have limited experience with NAND flash and are unsure how to address this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 05:44:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Failure-to-skip-bad-block/m-p/1974824#M229736</guid>
      <dc:creator>junya</dc:creator>
      <dc:date>2024-10-16T05:44:34Z</dc:date>
    </item>
  </channel>
</rss>

