am35x evm中的2 GB NAND闪存有8个分区。如果我想在其中再添加一个分区,该怎么做?
如果我们访问为此安装的ti-sdk,那么在kernel/arch/arm/mach-omap2/board-am335xevm.c中有static struct mtd_partitions,其中我们可以添加我们自己的partition.Is这是一种正确的方法,如果是这样,那么如何决定大小。其他块大小为128k。包含一个分区意味着缩小其他分区的大小,是吗?
发布于 2012-01-23 18:36:44
我们将在kernel/arch/arm/mach-omap2/board-am335xevm.c中根据分区的名称和偏移量添加我们自己的分区
static struct mtd_partition am335x_nand_partitions[] = {
/* All the partition sizes are listed in terms of NAND block size */
{ .name = "SPL",
.offset = 0, /* Offset = 0x0 */
.size = SZ_128K,
.mask_flags = MTD_WRITEABLE, /* force read-only */
},
{ .name = "U-Boot",
.offset = MTDPART_OFS_APPEND, /* Offset = 0x80000 */
.size = 15 * SZ_128K,
.mask_flags = MTD_WRITEABLE, /* force read-only */
},
{ .name = "File System",
.offset = MTDPART_OFS_APPEND, /* Offset = 0x780000 */
.size = MTDPART_SIZ_FULL,
}https://stackoverflow.com/questions/8798855
复制相似问题