Hi, my friends:
 
I make yaffs image by mkyaffs2image.
 
There is only file 05.mp3 in 05.yaffs.
 
When I mount the partition, the file size is wrong.
 
but when I test some small size file(5095 Bytes), it can work.
 
I use mkyaffs2image.c version r1.4 2007-02-14.
 
my nand flash pagesize is 2KB, oob is 64 B.
 
If I make a larger yaffs image (6,363,456 bytes),  the situation is worst.
 
There are lost some files and some file size is wrong.
 
BTW: copy a file into yaffs partition is OK.
 
Any suggestition for me?
 
Thanks a lots.
 
 
underneath is my log:
 
/ # ls -l /mnt/sda1/05.mp3
-rw-------    1 0        0         5524414 Jan 30  2025 /mnt/sda1/05.mp3
/ # ./flash_erase /dev/mtd/0 0 300
Erase Total 300 Units
Performing Flash Erase of length 262144 at offset 0x4ac0000 done
/ #
/ # ./nandwrite -y -n -o /dev/mtd/0 05.yaffs
Writing data to block 0
Writing data to block 40000
Writing data to block 80000
Writing data to block c0000
Writing data to block 100000
Writing data to block 140000
Writing data to block 180000
Writing data to block 1c0000
Writing data to block 200000
Writing data to block 240000
Writing data to block 280000
Writing data to block 2c0000
Writing data to block 300000
Writing data to block 340000
Writing data to block 380000
Writing data to block 3c0000
Writing data to block 400000
Writing data to block 440000
Writing data to block 480000
Writing data to block 4c0000
Writing data to block 500000
Writing data to block 540000
/ # mount -t yaffs /dev/mtdblock/0 /mnt/f0
yaffs: dev is 32505856 name is "mtdblock0"
yaffs: Attempting MTD mount on 31.0, "mtdblock0"
yaffs: auto selecting yaffs2
/ #
/ # ls -l /mnt/f0/
-rw-------    1 0        0       130295808 Jan 25 10:56 05.mp3
drw-rw-rw-    1 0        0            2048 Jan 25 12:46 lost+found