my nandflash's manufacture is hynix (HY27UG088GDM). I used it on dm355 ,the kernel version is mv_pro_4.0.1(linux2.6.10),I will erase and mount the nand flash as:
# flash_eraseall /dev/mtd3
Erasing 128 Kibyte @ 7b60000 -- 24 % complete.
Skipping bad block at 0x07b80000
Erasing 128 Kibyte @ 1ae80000 -- 86 % complete.
Skipping bad block at 0x1aea0000
Erasing 128 Kibyte @ 1efe0000 -- 99 % complete.
# mount -t yaffs2 /dev/mtdblock3 /mnt
yaffs: dev is 32505859 name is "mtdblock3"
yaffs: Attempting MTD mount on 31.3, "mtdblock3"
block 989 is bad
block 3446 is bad
# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 9.5M 5.2M 3.8M 58% /
tmpfs 55.8M 0 55.8M 0% /tmp
/dev/root 9.5M 5.2M 3.8M 58% /dev/.static/dev
none 10.0M 2.5M 7.5M 25% /dev
tmpfs 55.8M 0 55.8M 0% /dev/shm
none 55.8M 12.0k 55.8M 0% /var/run
none 55.8M 0 55.8M 0% /tmp
/dev/mtdblock3 496.0M 494.4M 1.6M 100% /mnt
The mtdblock I mounted as yaffs2 filesystem count'd been used because few space on it!
# cat /proc/yaffs
YAFFS builtec 23 2008 19:50:17
$Id: yaffs_fs.c,v 1.33 2005/10/27 22:24:04 marty Exp $
$Id: yaffs_guts.c,v 1.22 2005/10/13 02:17:00 charles Exp $
Device 0 "filesystem1"
startBlock......... 0
endBlock........... 3967
chunkGroupBits..... 2
chunkGroupSize..... 4
nErasedBlocks...... 19
nTnodesCreated..... 0
nFreeTnodes........ 0
nObjectsCreated.... 100
nFreeObjects....... 96
nFreeChunks........ 1216
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.......... 0
nDeletedFiles...... 0
nUnlinkedFiles..... 0
nBackgroudDeletions 0
useNANDECC......... 1
isYaffs2........... 1
nFreeChunks........ 1216 why so few?
nErasedBlocks...... 19 so few too
I cann't used it as a jffs2 filesystem too!