AnsweredAssumed Answered

Made mtd partitions on first NAND, now the second...

Question asked by mrkozmic on Oct 26, 2011
Latest reply on Oct 27, 2011 by mrkozmic

I have a board similar to the bf537-stamp board. There are two NAND flashes connected through a CPLD. I want to setup MTD partitions on both. So far I have only managed to do that on one of them.

 


#define CONFIG_SYS_NAND_BASE            0x20300080, 0x20300100
#define CONFIG_SYS_MAX_NAND_DEVICE      2

 

#define CONFIG_CMD_JFFS2
#define CONFIG_MTD_DEVICE
#define CONFIG_MTD_PARTITIONS
#define CONFIG_CMD_MTDPARTS

 

#define CONFIG_JFFS2_NAND
#define CONFIG_JFFS2_DEV      "nand0"

 


#define MTDIDS_DEFAULT        "nand0=gen_nand.0"
#define MTDPARTS_DEFAULT      "mtdparts=gen_nand.0:5M(kernel),-(filesystem0)"

 

 

"filesystem0" holds a jffs2 partition

 

 

Now, how do I add the other flash? I guess it will be nand1=gen_nand.1, but how will it fit into the above defines?

Outcomes