From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pieter Date: Thu, 05 Feb 2009 16:57:05 +0200 Subject: [U-Boot] What is the corect way to define MTD partitions Message-ID: <498AFE41.7070503@vastech.co.za> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi All The example I'm working with probably does everything wrong, so I would like advise as to how we should define mtd partitions. The Boards Flash is divided into 7 partitions. The partitions are defined in the board.h file as extra env settings. #define CONFIG_EXTRA_ENV_SETTINGS \ "mtdparts=mtdparts=0:16M at 0x0(factory-image)," \ "16M at 0x1000000(app-image-1),16M at 0x2000000(app-image-2)," \ "16M at 0x3000000(jffs2),16M at 0x4000000(testing)," \ "16M at 0x5000000(scratchpad)," \ "256k at 0x7F40000(u-boot-env),512k at 0x7F80000(u-boot-app)\0" \ Is this a acceptable way to set up MTD partitions ? If it is, is there a way for U-boot to insert MDT partitions into the FDT? Or can i define the Flash partitions as part of my dts. Then have U-Boot extract the mtdpart info from the DTS blob and set up the mtdparts for U-Boot? -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 2722 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.denx.de/pipermail/u-boot/attachments/20090205/0062bc2a/attachment.bin