# define CFG_MAX_NAND_DEVICE 1
# define NAND_MAX_CHIPS CFG_MAX_NAND_DEVICE
# define CFG_NAND0_BASE CFG_EMI_NAND_BASE
# define CFG_NAND_BASE_LIST { CFG_NAND0_BASE }
# define MTDPARTS_NAND \
"gen_nand.1:" /* First NAND flash device */ \
"128k(env-nand0)" /* first partition */ \
",4M(kernel-nand0)" \
",32M(root-nand0)" \
",-(RestOfNand0)" /* last partition */
# define MTDIDS_NAND \
"nand0=gen_nand.1" /* First NAND flash device */
",4M(kernel-nand0)" \
",64M(yaffs2-nand0)" \
",-(RestOfNand0)" /* last partition */
static struct mtd_partition nand_parts[] = {
{
.name = "NAND root",
.offset = 0, //0x0400000
.size = 0x00800000 //0x4400000
}, {
.name = "NAND home",
.offset = MTDPART_OFS_APPEND,
.size = MTDPART_SIZ_FULL
},
};
static struct mtd_partition nand_parts[] = {
{
.name = "yaffs2 root",
.offset = 0x500000, //0x0500000
.size = 0x04500000 //0x4500000
}, {
.name = "RestOfNand0",
.offset = MTDPART_OFS_APPEND,
.size = MTDPART_SIZ_FULL
},
};
1887



被折叠的 条评论
为什么被折叠?



