Amir Comforti wrote:
> I saw in some yaffs document that YAFFS-2 can support 512 byte pages
> when using the inband tags.
> 1. As far as I understood, the inband-tags are actually yaffs tags
> (yaffs_PackedTags2TagsPart) written in the page itself, rather
> than in the spare area. Is that correct?
Yes.
> 2. Does yaffs use the spare area at all for 512byte pages?
YAFFS itself doesn't, but the MTD layer should still calculate the ECC of
the page and store it in the spare area (and check it when reading).
> 3. My implementation for "writeChunkWithTagsToNAND" should combine
> *buffer and *tags and write both of them to the page area?
That's what mine does.
I would add that I have found that performance in this mode to be pretty bad
during the startup device scan (despite checkpoints). I've got a couple of
ideas on how this might be sped up, but haven't yet had the time to properly
think about it.
Ross
--
Embedded Software Engineer, eCosCentric Limited.
Barnwell House, Barnwell Drive, Cambridge CB5 8UU, UK.
Registered in England no. 4422071. www.ecoscentric.com