为了不影响其他文件,最好再多分出一个分区,专门用于flash操作
include sys/ioctl.h
include stdio.h
include mtd/mtd-user.h
include sys/types.h
include sys/stat.h
include fcntl.h
include unistd.h
include string.h
include stdlib.h
#define N 32
#define OFS
(0)
#define block_size (128*1024)
#define page_size
(2*1024)
int main(int argc, const char *argv[])
{
}