This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

can not write to yaffs2 filesystem.

hi,all:

I am using DM355+MontaVista5.0+uboot1.2

I found I can mount the mtdblock to yaffs, and write to the filesystem.

But when I unmount and remount , the data disappear ,here are  some log:

elevator: using anticipatory as default io scheduler

nand_davinci nand_davinci.0: Using 4-bit hardware ECC

NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)

Creating 4 MTD partitions on "nand_davinci.0":

0x00000000-0x00160000 : "boot"

0x00160000-0x00560000 : "kernel"

0x00560000-0x04560000 : "fs1-64M"

0x04560000-0x10000000 : "fs2"

nand_davinci nand_davinci.0: hardware revision: 2.3

then I type the command:

[root@spd /root]# mount -t yaffs2 /dev/mtdblock2 /copyto

yaffs: dev is 32505858 name is "mtdblock2"

yaffs: Attempting MTD mount on 31.2, "mtdblock2"

[root@spd /root]# ls /copyto/

lost+found

[root@spd /root]# mkdir /copyto/demodir

[root@spd /root]# ls /copyto/

demodir     lost+found

[root@spd /root]# umount /copyto/

remount ,and the data disappear:

[root@spd /root]# mount -t yaffs2 /dev/mtdblock2 /copyto

yaffs: dev is 32505858 name is "mtdblock2"

yaffs: Attempting MTD mount on 31.2, "mtdblock2"

[root@spd /root]# ls /copyto/

lost+found

[root@spd /root]# 

can someone give me a tip?