From: tuxnoel <tu...@ya...> - 2013-03-22 16:32:50
|
turns out we have to modify struct mtd_partition overo_nand_partitions[] in arch/arm/mach-omap2/board-overo.c (kernel 3.0.0) before static struct mtd_partition overo_nand_partitions[] = { { .name = "xloader", .offset = 0, /* Offset = 0x00000 */ .size = 4 * NAND_BLOCK_SIZE, .mask_flags = MTD_WRITEABLE }, { .name = "uboot", .offset = MTDPART_OFS_APPEND, /* Offset = 0x80000 */ .size = 14 * NAND_BLOCK_SIZE, }, { .name = "uboot environment", .offset = MTDPART_OFS_APPEND, /* Offset = 0x240000 */ .size = 2 * NAND_BLOCK_SIZE, }, { .name = "linux", .offset = MTDPART_OFS_APPEND, /* Offset = 0x280000 */ .size = 32 * NAND_BLOCK_SIZE, }, { .name = "rootfs", .offset = MTDPART_OFS_APPEND, /* Offset = 0x680000 */ .size = MTDPART_SIZ_FULL, }, }; after static struct mtd_partition overo_nand_partitions[] = { { .name = "xloader", .offset = 0, /* Offset = 0x00000 */ .size = 4 * NAND_BLOCK_SIZE, .mask_flags = MTD_WRITEABLE }, { .name = "uboot", .offset = MTDPART_OFS_APPEND, /* Offset = 0x80000 */ .size = 14 * NAND_BLOCK_SIZE, }, { .name = "uboot environment", .offset = MTDPART_OFS_APPEND, /* Offset = 0x240000 */ .size = 2 * NAND_BLOCK_SIZE, }, { .name = "working_linux", .offset = MTDPART_OFS_APPEND, /* Offset = 0x280000 */ .size = 32 * NAND_BLOCK_SIZE, }, { .name = "working_rootfs", .offset = MTDPART_OFS_APPEND, /* Offset = 0x680000 */ //.size = MTDPART_SIZ_FULL, .size = 2412 * NAND_BLOCK_SIZE, }, { .name = "golden_linux", .offset = MTDPART_OFS_APPEND, .size = 32 * NAND_BLOCK_SIZE, /*4MB for golden linux kernel*/ }, { .name = "golden_rootfs", .offset = MTDPART_OFS_APPEND, .size = MTDPART_SIZ_FULL, /*200MB for golden rootfs*/ }, }; and enable mtd partition support in kernel -- View this message in context: http://gumstix.8.n6.nabble.com/How-to-add-NAND-flash-partition-in-Overo-Firestrom-tp4967040p4967045.html Sent from the Gumstix mailing list archive at Nabble.com. |