如何调试ubifs文件系统

注意内核版本为4.9

在drivers/mtd/ubi/debug.h中加入DEBUG的定义,如下

#ifndef __UBI_DEBUG_H__
#define __UBI_DEBUG_H__
#define DEBUG 1  (新增)
void ubi_dump_flash(struct ubi_device *ubi, int pnum, int offset, int len);

posted @ 2018-12-07 14:39  Jello  阅读(586)  评论(0编辑  收藏  举报