[Yaffs] yaffs with kernel 2.6.23 trouble filesystem mount ag…

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
Delete this message
Reply to this message
Author: g2 xenep
Date:  
To: yaffs
Subject: [Yaffs] yaffs with kernel 2.6.23 trouble filesystem mount again
Hello

I am the following now and it embarrasses it.

Please teach the solution case and the examined point.

Please anybody help!
1.flasheraseall
2.mount
2.mkdir and createfile
3.umount
4.mount


kernel 2.6.23

[root@ (ttymxc0) \w]\$ mount -t yaffs2 /dev/mtdblock11 /mnt/fs
yaffs: dev is 32505867 name is "mtdblock11"
[root@ (ttymxc0) \w]\$ mkdir /mnt/fs/test
[root@ (ttymxc0) \w]\$ vi /mnt/fs/test/test.txt
[root@ (ttymxc0) \w]\$ umount /mnt/fs

[root@ (ttymxc0) \w]\$ mount -t yaffs2 /dev/mtdblock11 /mnt/fs
yaffs: dev is 32505867 name is "mtdblock11"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.11, "mtdblock11"
block 3062 is bad
mount: mounting /dev/mtdblock11 on /mnt/fs failed: Invalid argument
[root@ (ttymxc0) \w]\$

<<<<<after disp Invalid argument log>>>>

[root@ (ttymxc0) \w]\$ cat /proc/yaffs
YAFFS built:Apr 19 2008 15:36:57
$Id: yaffs_fs.c,v 1.65 2007/12/13 15:35:17 wookey Exp $
$Id: yaffs_guts.c,v 1.54 2007/12/13 15:35:17 wookey Exp $

Device 0 "Contents"
startBlock......... 0
endBlock........... 3679
nDataBytesPerChunk. 2048
chunkGroupBits..... 0
chunkGroupSize..... 1
nErasedBlocks...... 3676
nReservedBlocks.... 5
blocksInCheckpoint. 0
nTnodesCreated..... 100
nFreeTnodes........ 0
nObjectsCreated.... 200
nFreeObjects....... 0
nFreeChunks........ 235389
nPageWrites........ 0
nPageReads......... 0
nBlockErasures..... 0
nGCCopies.......... 0
garbageCollections. 0
passiveGCs......... 0
nRetriedWrites..... 0
nShortOpCaches..... 10
nRetireBlocks...... 0
eccFixed........... 0
eccUnfixed......... 0
tagsEccFixed....... 0
tagsEccUnfixed..... 0
cacheHits.......... 0
nDeletedFiles...... 0
nUnlinkedFiles..... 0
nBackgroudDeletions 0
useNANDECC......... 1
isYaffs2........... 1

Device 1 "Contents"
startBlock......... 0
endBlock........... 3679
nDataBytesPerChunk. 2048
chunkGroupBits..... 0
chunkGroupSize..... 1
nErasedBlocks...... 3676
nReservedBlocks.... 5
blocksInCheckpoint. 0
nTnodesCreated..... 100
nFreeTnodes........ 0
nObjectsCreated.... 200
nFreeObjects....... 0
nFreeChunks........ 235389
nPageWrites........ 0
nPageReads......... 0
nBlockErasures..... 0
nGCCopies.......... 0
garbageCollections. 0
passiveGCs......... 0
nRetriedWrites..... 0
nShortOpCaches..... 10
nRetireBlocks...... 0
eccFixed........... 0
eccUnfixed......... 0
tagsEccFixed....... 0
tagsEccUnfixed..... 0
cacheHits.......... 0
nDeletedFiles...... 0
nUnlinkedFiles..... 0
nBackgroudDeletions 0
useNANDECC......... 1
isYaffs2........... 1

Device 2 "Contents"
startBlock......... 0
endBlock........... 3679
nDataBytesPerChunk. 2048
chunkGroupBits..... 0
chunkGroupSize..... 1
nErasedBlocks...... 3676
nReservedBlocks.... 5
blocksInCheckpoint. 0
nTnodesCreated..... 100
nFreeTnodes........ 0
nObjectsCreated.... 200
nFreeObjects....... 0
nFreeChunks........ 235389
nPageWrites........ 0
nPageReads......... 0
nBlockErasures..... 0
nGCCopies.......... 0
garbageCollections. 0
passiveGCs......... 0
nRetriedWrites..... 0
nShortOpCaches..... 10
nRetireBlocks...... 0
eccFixed........... 0
eccUnfixed......... 0
tagsEccFixed....... 0
tagsEccUnfixed..... 0
cacheHits.......... 0
nDeletedFiles...... 0
nUnlinkedFiles..... 0
nBackgroudDeletions 0
useNANDECC......... 1
isYaffs2........... 1

Device 3 "Contents"
startBlock......... 0
endBlock........... 3679
nDataBytesPerChunk. 2048
chunkGroupBits..... 0
chunkGroupSize..... 1
nErasedBlocks...... 3676
nReservedBlocks.... 5
blocksInCheckpoint. 0
nTnodesCreated..... 100
nFreeTnodes........ 0
nObjectsCreated.... 200
nFreeObjects....... 0
nFreeChunks........ 235389
nPageWrites........ 0
nPageReads......... 0
nBlockErasures..... 0
nGCCopies.......... 0
garbageCollections. 0
passiveGCs......... 0
nRetriedWrites..... 0
nShortOpCaches..... 10
nRetireBlocks...... 0
eccFixed........... 0
eccUnfixed......... 0
tagsEccFixed....... 0
tagsEccUnfixed..... 0
cacheHits.......... 0
nDeletedFiles...... 0
nUnlinkedFiles..... 0
nBackgroudDeletions 0
useNANDECC......... 1
isYaffs2........... 1
[root@ (ttymxc0) \w]\$

Thanks
Gulliver