Le 01/06/2012 11:33, Stéphane Lesage a écrit :
but I still have the problem here on the last step.

I pretty sure my low-level NAND functions (or file simulation) work correctly, so this must be a bad configuration.

I found the problem: my loff_t type is 32 bits...
which leeds to a wrong initial shrink size when scanning, because of:

the_obj->variant.file_variant.shrink_size = yaffs_max_file_size(dev);

loff_t yaffs_max_file_size(struct yaffs_dev *dev)
{
	return ((loff_t) YAFFS_MAX_CHUNK_ID) * dev->data_bytes_per_chunk;
}

    BTW, there is a define for the same thing in yaffsfs.h:
#define YAFFS_MAX_FILE_SIZE (0x800000000LL - 1)

It is possible to add support for 32 bits loff_t ?

Thanks in Advance.