I have tried the steps again this time <br>
<br>
[root@Sarva 2.6.13]/root/mount.sh<br>
[root@Sarva 2.6.13]#df<br>
Filesystem
1k-blocks Used Available Use% Mounted on<br>
/dev/mtdblock2
31488 25340
6148 80% /<br>
/dev/mtdblock3
2032
96 1936 5% /mnt/flash<br>
[root@Sarva 2.6.13]#cat /proc/partitions<br>
major minor #blocks name<br>
<br>
31 0 256 mtdblock0<br>
31 1 1024 mtdblock1<br>
31 2 31488 mtdblock2<br>
31 3 2048 mtdblock3<br>
31 4 4096 mtdblock4<br>
[root@Sarva 2.6.13]#cat /proc/yaffs<br>
YAFFS built:Sep 1 2005 07:58:06<br>
$Id: yaffs_fs.c,v 1.5 2005/04/29 07:01:18 charles Exp $<br>
$Id: yaffs_guts.c,v 1.6 2005/04/24 09:57:06 charles Exp $<br>
<br>
Device yaffs<br>
startBlock......... 1<br>
endBlock........... 127<br>
chunkGroupBits..... 0<br>
chunkGroupSize..... 1<br>
nErasedBlocks...... 127<br>
nTnodesCreated..... 0<br>
nFreeTnodes........ 0<br>
nObjectsCreated.... 100<br>
nFreeObjects....... 96<br>
nFreeChunks........ 4064<br>
nPageWrites........ 0<br>
nPageReads......... 0<br>
nBlockErasures..... 0<br>
nGCCopies.......... 0<br>
garbageCollections. 0<br>
passiveGCs......... 0<br>
nRetriedWrites..... 0<br>
nRetireBlocks...... 0<br>
eccFixed........... 0<br>
eccUnfixed......... 0<br>
tagsEccFixed....... 0<br>
tagsEccUnfixed..... 0<br>
cacheHits.......... 0<br>
nDeletedFiles...... 0<br>
nUnlinkedFiles..... 0<br>
nBackgroudDeletions 0<br>
useNANDECC......... 1<br>
isYaffs2........... 0<br>
[root@Sarva 2.6.13]#ls -la > /mnt/flash/xxx<br>
[root@Sarva 2.6.13]#cat /proc/yaffs<br>
YAFFS built:Sep 1 2005 07:58:06<br>
$Id: yaffs_fs.c,v 1.5 2005/04/29 07:01:18 charles Exp $<br>
$Id: yaffs_guts.c,v 1.6 2005/04/24 09:57:06 charles Exp $<br>
<br>
Device yaffs<br>
startBlock......... 1<br>
endBlock........... 127<br>
chunkGroupBits..... 0<br>
chunkGroupSize..... 1<br>
nErasedBlocks...... 126<br>
nTnodesCreated..... 100<br>
nFreeTnodes........ 99<br>
nObjectsCreated.... 100<br>
nFreeObjects....... 95<br>
nFreeChunks........ 4061<br>
nPageWrites........ 5<br>
nPageReads......... 5<br>
nBlockErasures..... 0<br>
nGCCopies.......... 0<br>
garbageCollections. 0<br>
passiveGCs......... 0<br>
nRetriedWrites..... 0<br>
nRetireBlocks...... 0<br>
eccFixed........... 0<br>
eccUnfixed......... 0<br>
tagsEccFixed....... 0<br>
tagsEccUnfixed..... 4<br>
cacheHits.......... 0<br>
nDeletedFiles...... 0<br>
nUnlinkedFiles..... 0<br>
nBackgroudDeletions 0<br>
useNANDECC......... 1<br>
isYaffs2........... 0<br>
[root@Sarva 2.6.13]#df<br>
Filesystem
1k-blocks Used Available Use% Mounted on<br>
/dev/mtdblock2
31488 25340
6148 80% /<br>
/dev/mtdblock3
2032
100 1932 5% /mnt/flash<br>
<br>
dmesg after all this <br>
yaffs locking<br>
yaffs unlocking<br>
yaffs_create<br>
yaffs_mknod: parent object 1 type 3<br>
yaffs_mknod: making oject for xxx, mode 81a4 dev 0<br>
yaffs locking<br>
yaffs_mknod: making file<br>
yaffs: Tnodes added<br>
Allocated block 1, seq 4097, 126 left<br>
Writing chunk 32 tags 263 0<br>
yaffs_get_inode for object 263<br>
yaffs_read_inode for 263<br>
yaffs_FillInode mode 81a4 uid 0 gid 0 size 0 count 1<br>
yaffs_mknod created object 263 count = 1<br>
yaffs unlocking<br>
yaffs_file_flush object 263 (clean)<br>
yaffs locking<br>
yaffs unlocking<br>
yaffs_prepair_write<br>
yaffs_readpage at 00000000, size 00001000<br>
yaffs locking<br>
Chunk -1 not found zero instead<br>
Chunk -1 not found zero instead<br>
Chunk -1 not found zero instead<br>
Chunk -1 not found zero instead<br>
Chunk -1 not found zero instead<br>
Chunk -1 not found zero instead<br>
Chunk -1 not found zero instead<br>
Chunk -1 not found zero instead<br>
yaffs unlocking<br>
yaffs_readpage done<br>
yaffs_commit_write addr c0802000 pos 0 nBytes 970<br>
yaffs locking<br>
yaffs_file_write about to write writing 970 bytes to object 263 at 0<br>
Writing chunk 33 tags 263 1<br>
Chunk -1 not found zero instead<br>
yaffs_file_write writing 970 bytes, 970 written at 0<br>
yaffs_file_write size updated to 970 bytes, 2 blocks<br>
yaffs unlocking<br>
yaffs_commit_write returning 970<br>
yaffs_file_flush object 263 (dirty)<br>
yaffs locking<br>
Writing chunk 34 tags 263 2<br>
Writing chunk 35 tags 263 0<br>
line 2990 delete of chunk 32<br>
Writing chunk 32 tags 0 0<br>
yaffs unlocking<br>
yaffs_statfs<br>
yaffs locking<br>
yaffs unlocking<br>
<br>
[root@Sarva 2.6.13]#umount /mnt/flash<br>
[root@Sarva 2.6.13] cat /proc/yaffs<br>
yaffs locking<br>
yaffs unlocking<br>
yaffs_put_inode: ino 263, count 1<br>
yaffs_put_inode: ino 1, count 1<br>
yaffs_clear_inode: ino 1, count 0 object exists<br>
yaffs locking<br>
yaffs unlocking<br>
yaffs_clear_inode: ino 263, count 0 object exists<br>
yaffs locking<br>
yaffs unlocking<br>
yaffs locking<br>
yaffs unlocking<br>
<br>
[root@Sarva 2.6.13]#ls -la /mnt/flash/<br>
ls:
/mnt/flash/
y<br>
drw-rw-rw- 1 root
root 512
Jan 1 00:24 .<br>
drwxr-xr-x 6 root
root
0 Jan 1 00:13 ..<br>
drw-rw-rw- 1 root
root 512
Jan 1 00:24 lost+found<br>
****** doesnt show me the xxx file but <br>
[root@Sarva 2.6.13]#ls -la /mnt/flash/xxx<br>
-rw-r--r-- 1 root
root 1032 Jan 1
00:24 /mnt/flash/xxx<br>
<br>
[root@Sarva 2.6.13]#cat /mnt/flash/xxx<br>
drwxr-xr-x 2 root
root
0 Jan 1 00:19 .<br>
drwxr-xr-x 10 root
root
0 Jan 1 00:04 ..<br>
-rw-r--r-- 1 root
root 1980 Jan 1
00:18 1.txt<br>
-rw-r--r-- 1 root
root 3960 Jan 1
00:05 dump.log<br>
-rwxr-xr-x 1 root
root 15372 Jul 4
2005 eraseall<br>
-rw-r--r-- 1 root
root 60715 Aug 31 2005
esl_sarva.ko<br>
-rwxr-xr-x 1 root
root 24173 Aug 28 2005
flash_eraseall<br>
-rw-r--r-- 1 root
root
6 Jan 1 00:19 hello<br>
-rw-r--r-- 1 root
root 60031 Aug 24 2005
manav.ko<br>
-rw-r--r-- 1 root
root 60377 Aug 31 2005
manavd.ko<br>
-rwxr-xr-x 1 root
root 13847 Jan 1 00:15
mkyaffs<br>
-rw-r--r-- 1 root
root 3960 Jan 1
00:13 nalog.log<br>
-rwxr-xr-x 1 root
root 20401 Aug 29 2005
nanddump<br>
-rwxr-xr-x 1 root
root 25174 Aug 29 2005
nandwrite<br>
-rw-r--r-- 1 root
root 59888 Aug 24 2005
spia.ko<br>
-rw-r--r-- 1 root
root 843
Jan 1 00:14 test.log<br>
<br>
The data gets lost again after umount <br>