YAFFS 命令
在SylixOS中,通过 yaffscmd
命令查询参数信息,例如:
[root@sylixos:/yaffs2]# yaffscmd n1 info
Device : "/n1"
startBlock......... 129
endBlock........... 1023
totalBytesPerChunk. 2048
chunkGroupBits..... 0
chunkGroupSize..... 1
nErasedBlocks...... 894
nReservedBlocks.... 16
nCheckptResBlocks.. nil
blocksInCheckpoint. 0
nObjects........... 18
nTnodes............ 0
nFreeChunks........ 57265
……
通过 yaffscmd
命令标记坏块,例如:
[root@sylixos:/yaffs2]# yaffscmd n1 markbad aa
yaffs: marking block 170 bad
mark the block 0xaa is a bad ok.
通过 yaffscmd
命令查看坏块信息,例如:
[root@sylixos:/yaffs2]# yaffscmd n1 bad
block 0xaa is bad block.
通过 yaffscmd
命令擦除存储器,例如:
[root@sylixos:/yaffs2]# yaffscmd n1 erase
yaffs volume erase ok.