找到
mtd_partition结构体中.mask_flags = MTD_CAP_NANDFLASH,注释掉,不让它屏蔽写使能。如下:
static struct mtd_partition mini6410_nand_part_mlc[] = {
71 {
72 .name = "Bootloader",
73 .offset = 0,
74 .size = (4 * SZ_1M),
75 // .mask_flags = MTD_CAP_NANDFLASH,
76 },
77 {
78 .name = "Kernel",
79 .offset = (4 * SZ_1M),
80 .size = (8 * SZ_1M) ,
81 // .mask_flags = MTD_CAP_NANDFLASH,
82 },
83 {
84 .name = "File System",
85 .offset = MTDPART_OFS_APPEND,
86 .size = MTDPART_SIZ_FULL,
87 }
88 };
阅读(798) | 评论(0) | 转发(0) |