Talk:Put YAFFS Image to Flash

it seems has some problems when I try to create yaffs2 in mtdblock3. I erased mtd3 and mount mtdblokc3 to /mnt/nand, then copied a file to /mnt/nand, umount it and mount it again. but the file lost. I test it on EVM board, EVM can't save file, too. what's wrong? my log as blow:

=
=============================================================================== root@192.168.1.7:~# flash_eraseall /dev/mtd3 Erasing 128 Kibyte @ 1fe0000 -- 99 % complete.

root@192.168.1.7:~# mount -t yaffs2 /dev/mtdblock3 /mnt/nand

yaffs: dev is 32505859 name is "mtdblock3" yaffs: Attempting MTD mount on 31.3, "mtdblock3"

root@192.168.1.7:~# cd /mnt/nand/

root@192.168.1.7:/mnt/nand# ls lost+found

root@192.168.1.7:/mnt/nand# cp /root/cif.bmp ./

root@192.168.1.7:/mnt/nand# ls

cif.bmp lost+found                                                                     /*cif.bmp can be listed here*/

root@192.168.1.7:/mnt/nand# cd

root@192.168.1.7:~# umount /mnt/nand/

root@192.168.1.7:~# mount -t yaffs2 /dev/mtdblock3 /mnt/nand

yaffs: dev is 32505859 name is "mtdblock3" yaffs: Attempting MTD mount on 31.3, "mtdblock3"

root@192.168.1.7:~# ls /mnt/nand/ lost+found                                                                                 /*cif.bmp lost*/ root@192.168.1.7:~#

Dog0138 said ...
the mount-time of yaffs2 is so long that when i boot the dm355 evm i must spent 8 seconds on mounting the root filesystem ,i have reduce the patition to 64M,but do nothing better for that.dose anyone have good advice?

--Dog0138 15:39, 22 March 2009 (UTC)