<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE></TITLE>

<META content="MSHTML 6.00.6000.16441" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2>Hello,<BR><BR>I use a Linux 2.6.9 on a 85xx custom 
board with a NAND flash. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>This flash has some bad blocks.</FONT></DIV>
<DIV><FONT face=Arial size=2>NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 
(Samsung NAND 128MiB 3,3V 8-bit)<BR>Scanning device for bad blocks<BR>Bad 
eraseblock 8 at 0x00100000<BR>Bad eraseblock 430 at 0x035c0000</FONT></DIV>
<DIV><FONT face=Arial size=2>...<BR>Creating 1 MTD partitions on "NAND 128MiB 
3,3V 8-bit":<BR>0x00000000-0x08000000 : "flash partition 1".</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I have selected in the kernel :</FONT></DIV>
<DIV><FONT face=Arial size=2>1) the MTD character and block supports for 
NAND,</FONT></DIV>
<DIV><FONT face=Arial size=2>2) the CRAMFS and JFFS2 supports for 
NAND.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I can erase the flash but receive IO errors for 
each bad blocks (that seems right).</FONT></DIV>
<DIV><FONT face=Arial size=2>I can mount an empty JFFS2 partition on the NAND 
and untar some directories and files in it.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I would like to generate some JFFS2 images and 
program them in the flash </FONT><FONT face=Arial size=2>with a character 
</FONT></DIV>
<DIV><FONT face=Arial size=2>command like "cat img &gt; /dev/mtd/0". 
</FONT><FONT face=Arial size=2>If I dont encounter a bad block, it runs 
right&nbsp;else the </FONT></DIV>
<DIV><FONT face=Arial size=2>command fails. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>This is a little bit annoying. So m</FONT><FONT 
face=Arial size=2>y question is simple : </FONT></DIV>
<DIV><FONT face=Arial size=2>Is there a MTD character driver which can detect 
and ignore the bad blocks in a NAND flash&nbsp;?&nbsp;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks for any tips.</FONT></DIV>
<DIV><FONT face=Arial size=2>Bye</FONT></DIV>
<DIV><FONT face=Arial size=2>Laurent</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT><FONT face=Arial size=2>&nbsp;</FONT></DIV>
<DIV><FONT face=Arial><BR><FONT size=2></FONT></FONT></DIV></FONT></BODY></HTML>