From mboxrd@z Thu Jan 1 00:00:00 1970 From: johns at msli.com Date: Fri, 21 Dec 2012 10:29:41 -0800 Subject: [U-Boot] no mtdparted from U-Boot> prompt In-Reply-To: <50D43318.8090904@atmel.com> References: <1356047588.28896.58.camel@genx> <50D43318.8090904@atmel.com> Message-ID: <1356114581.28896.89.camel@genx> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, 2012-12-21 at 17:59 +0800, Bo Shen wrote: > Hi Johns, > > On 12/21/2012 07:53 AM, johns at msli.com wrote: > > This is my first post to the list. > > I am using u-boot-1.3.4 in buildroot-2011.11 > > My device is a at91sam9g20-ek > > I have a patch adding: include/configs/at91sam9g20ek.h > > which I gather acts as a config file for u-boot. > > > > U-Boot> help > > does not list mtdparts > > > > But my bootargs does use it: > > bootargs=mem=64M console=ttyS0,115200 mtdparts=atmel_nand:4M(bootstrap/uboot/kernel)ro,60M(rootfs),-(data) root=/dev/mtdblock1 rw rootfstype=jffs2 > > This mtdparts is defined for Linux kernel NAND driver. I had the impression there was also an interactive command-line tool for mtdparts, from the u-boot prompt. > > > > Is there a trick to add the mtdparts command? > > Yes, you need to add "#define CONFIG_CMD_MTDPARTS" in > I added this to include/configs/at91sam9g20ek.h Now it contains: #define CONFIG_JFFS2_NAND 1 #define CONFIG_JFFS2_CMDLINE 1 #define CONFIG_CMD_JFFS2 #define CONFIG_CMD_MTDPARTS" NOTICE: This email may contain confidential information. Please see http://www.meyersound.com/confidential/ for our complete policy.