[Yaffs] definitions of data in oob area ?

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Cal Page
Date:  
To: yaffs@lists.aleph1.co.uk
Subject: [Yaffs] definitions of data in oob area ?
OK, the oob area contains

    chunkId
    serialNumber
    byteCount
    objectId
    ecc data


for the data in the chunk.

Is chunkId the id of the chunk, ie the chunk index from 0? Does it
include bad blocks? For example, if the first 10 chunks on my system are
bad, is the first usable chunkId 10 or 1?

The mkyaffsimage sets serialNumber to 0. It it used for yaffs2? What is
the serialNumber used for?

byteCount is the # of bytes in the data part of the chunk.

objectId is incremented from 1 upwards.

Also, mkyaffsimage writes 512 byte chunks, but my system uses 2048 byte
chunks. Is this a known bug? Is there a work around?

Thanks,

Cal Page