【问题】
kernel挂载yaffs2文件系统有warning:find next checkpt block: search: block 。。。。
【办法】
[ 2.900000] yaffs: dev is 32505858 name is "mtdblock2"
[ 2.900000] yaffs: Attempting MTD mount on 31.2, "mtdblock2"
[ 2.910000] restore entry: isCheckpointed 0
[ 2.920000] find next checkpt block: start: blocks 0 next 1
[ 2.920000] find next checkpt block: search: block 1 oid 1 seq 4096 eccr 1
[ 2.930000] find next checkpt block: search: block 2 oid 320 seq 4096 eccr 1
去除此警告信息,可以直接去源码中,将fsyaffs2yaffs_fs.c中的Line 86:
unsigned yaffs_traceMask = YAFFS_TRACE_ALWAYS |
YAFFS_TRACE_BAD_BLOCKS |
YAFFS_TRACE_CHECKPOINT
/* | 0xFFFFFFFF */;
直接赋值为0:
unsigned yaffs_traceMask = 0;
就可以了。