<div class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="Times New Roman">Hello all,</font></span></div>
<div class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="Times New Roman"></font></span> </div>
<div class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="Times New Roman">When I traced code of function <b style="mso-bidi-font-weight: normal">yaffs_scan()</b> in YAFFS2 source code:</font></span>
</div>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="Times New Roman">----------------------------------------------------------------</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="Times New Roman">yaffs_Scan -> yaffs_QueryInitialBlockState -> nandmtd2_QueryNANDBlock -> nandmtd2_ReadChunkWithTagsFromNAND</font>
</span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="Times New Roman">----------------------------------------------------------------</font></span></p>
<div class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="Times New Roman"></font></span> </div>
<div class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="Times New Roman">In function <b style="mso-bidi-font-weight: normal">nandmtd2_ReadChunkWithTagsFromNAND()</b>, it writes:</font></span></div>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="Times New Roman">----------------------------------------------------------------</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="Times New Roman"><span style="mso-tab-count: 1"> </span>yaffs_PackedTags2 pt;</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="Times New Roman"><span style="mso-tab-count: 1"> </span>¡¡</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="Times New Roman"><span style="mso-tab-count: 1"> </span>if(tags)</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="Times New Roman"><span style="mso-tab-count: 2"> </span>retval = mtd->read_oob(mtd,addr,mtd->oobsize,&dummy,dev->spareBuffer);
</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="Times New Roman"><span style="mso-tab-count: 1"> </span>¡¡</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><span style="mso-tab-count: 1"><font face="Times New Roman"> </font></span><a name="OLE_LINK2"></a><a name="OLE_LINK1"><span style="mso-bookmark: OLE_LINK2">
<font face="Times New Roman">memcpy(&pt,dev->spareBuffer,sizeof(pt));</font></span></a></span></p>
<div class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="Times New Roman">----------------------------------------------------------------</font></span></div>
<div class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"></span> </div>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><font face="Times New Roman">Value of "sizeof(pt)" is 32Bytes. So I have 2 questions:</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 18pt; TEXT-INDENT: -18pt; mso-list: l0 level1 lfo1; tab-stops: list 18.0pt"><font face="Times New Roman"><span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'">
<span style="mso-list: Ignore">1.<span style="FONT: 7pt 'Times New Roman'"><font size="3"> </font></span></span></span><span lang="EN-US">Do the forhead 32B data stored in spare area of each page of NAND Device can 1-1 map to member variables of structure yaffs_PackedTags2?
</span></font></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 18pt; TEXT-INDENT: -18pt; mso-list: l0 level1 lfo1; tab-stops: list 18.0pt"><font face="Times New Roman"><span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'">
<span style="mso-list: Ignore">2.<span style="FONT: 7pt 'Times New Roman'"><font size="3"> </font></span></span></span><span lang="EN-US">For small page NAND Device, there are <strong>ONLY</strong> 16B for spare area, how could execute
</span></font></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 18.6pt"><span lang="EN-US"><font face="Times New Roman">memcpy(&pt,dev->spareBuffer,sizeof(pt));</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 18.6pt"><span lang="EN-US"><font face="Times New Roman">for them?</font></span></p>
<div><span lang="EN-US" style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: ËÎÌå; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
Does YAFFS2 can only support Large-Page NAND?</span></div>
<div><span lang="EN-US" style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: ËÎÌå; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
</span> </div>
<div><span lang="EN-US" style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: ËÎÌå; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
Thanks!</span></div>