<div><font face="Arial" size="2">Hi,</font></div>
<div> </div>
<div><font face="Arial" size="2">I have downloaded the yaffs2 from <a href="http://www.aleph1.co.uk/cgi-bin/viewcvs.cgi/">http://www.aleph1.co.uk/cgi-bin/viewcvs.cgi/</a> for linux 2.4.20 and i'm facing some issues during the build.
</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">In the file yaffs_guts.c in function yaffs_DeleteChunk(..), there is a call for yaffs_ReadChunkFromNAND(dev,chunkId,NULL,&spare,0); as shown below.<br></font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">#ifdef CONFIG_MTD_NAND_VERIFY_WRITE</font></div>
<div> </div>
<div><font face="Arial" size="2"> //read data before write, to ensure correct ecc<br> //if we're using MTD verification under Linux<br> yaffs_ReadChunkFromNAND(dev,chunkId,NULL,&spare,0);
<br>#endif</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">Issues:</font></div>
<div><font face="Arial" size="2">1. spare has not been declared anywhere in the function .</font></div>
<div><font face="Arial" size="2">2. yaffs_ReadChunkFromNAND() in yaffs_DeleteChunk(..) doesnot have a defined reference.</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">When i build yaffs2, first i get "spare undeclared", after declaring the spare as "yaffs_spare spare" in the function, it builds fine but while linking it gives me an error " undefined refernce: yaffs_ReadChunkFromNAND".
</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">Has anyone encountered this problem (or cud be a bug). Is there any patch available for this.</font></div>
<div><font size="2"></font> </div>
<div><font size="2">Thanks in Advance,</font></div>
<div><font size="2">Gromer</font></div>