[Yaffs] yaffs tradgedy on every other boot

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Wookey
Date:  
To: yaffs
Subject: [Yaffs] yaffs tradgedy on every other boot
I have 2 demo balloon board. After a few cycles of yanking the power
to reset andcheck they worked as expected both are poorly. YAFFS seems
to be the problem.


Both boards programmed with the code at:
http://balloonboard.org/files/balloon3/distro/test-v0.3/
(Balloon3, pxa270, 1GB 2K nand, kernel 2.6.22.2)


Board 1:
--------

Power up the machine and it works - 2 bad blocks reported.

cat /proc/yaffs says:

balloon:~# cat /proc/yaffs
YAFFS built:Sep 7 2007 02:33:15
$Id: yaffs_fs.c,v 1.59 2007/03/20 20:59:40 charles Exp $
$Id: yaffs_guts.c,v 1.48 2007/03/12 20:55:39 charles Exp $

Device 0 "Root fs"
startBlock......... 0
endBlock........... 8159
chunkGroupBits..... 0
chunkGroupSize..... 1
nErasedBlocks...... 5746
nTnodesCreated..... 14900
nFreeTnodes........ 327
nObjectsCreated.... 10800
nFreeObjects....... 5
nFreeChunks........ 413048
nPageWrites........ 0
nPageReads......... 0
nBlockErasures..... 0
nGCCopies.......... 0
garbageCollections. 0
passiveGCs......... 0
nRetriedWrites..... 0
nRetireBlocks...... 0
eccFixed........... 0
eccUnfixed......... 0
tagsEccFixed....... 0
tagsEccUnfixed..... 0
cacheHits.......... 5134
nDeletedFiles...... 383
nUnlinkedFiles..... 440
nBackgroudDeletions 0
useNANDECC......... 1
isYaffs2........... 1

reboot and every single one of the first 8160 blocks has 'erase error'
amnd is then declared bad. We get a yaffs tragedy, and the rootfs
fails to mount (so I can't get much in the way of diagnostics)

(sorry no log of that right now)

Any clues for further diagnostics?


Board2:
-------

Works, but takes over 5 mins to mount the FS. (pauses for several
minutes before issuing the 'restored from Checkpoint' message)

When it eventually boots:
balloon:/home/demo# cat /proc/yaffs
YAFFS built:Sep 7 2007 02:33:15
$Id: yaffs_fs.c,v 1.59 2007/03/20 20:59:40 charles Exp $
$Id: yaffs_guts.c,v 1.48 2007/03/12 20:55:39 charles Exp $

Device 0 "Root fs"
startBlock......... 0
endBlock........... 8159
chunkGroupBits..... 0
chunkGroupSize..... 1
nErasedBlocks...... 3557
nTnodesCreated..... 26200
nFreeTnodes........ 88
nObjectsCreated.... 16400
nFreeObjects....... 12
nFreeChunks........ 309681
nPageWrites........ 0
nPageReads......... 0
nBlockErasures..... 0
nGCCopies.......... 0
garbageCollections. 0
passiveGCs......... 0
nRetriedWrites..... 0
nRetireBlocks...... 0
eccFixed........... 0
eccUnfixed......... 0
tagsEccFixed....... 0
tagsEccUnfixed..... 0
cacheHits.......... 3890
nDeletedFiles...... 1349
nUnlinkedFiles..... 2778
nBackgroudDeletions 0
useNANDECC......... 1
isYaffs2........... 1


Wookey
--
Principal hats: Balloonz - Toby Churchill - Aleph One - Debian
http://wookware.org/