From mboxrd@z Thu Jan 1 00:00:00 1970 From: myuboot at fastmail.fm Date: Tue, 03 Nov 2009 18:34:53 -0600 Subject: [U-Boot] multiple partitions in mtdparts In-Reply-To: <1257292804-10612-3-git-send-email-Tom.Rix@windriver.com> References: <1257292804-10612-1-git-send-email-Tom.Rix@windriver.com><1257292804-10612-2-git-send-email-Tom.Rix@windriver.com> <1257292804-10612-3-git-send-email-Tom.Rix@windriver.com> Message-ID: <1257294893.2375.1343441741@webmail.messagingengine.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, I am trying to define multiple partitions using mtdparts variable. But I can't get it set automatically right. I defined the set_bootargs as the following: set_bootargs=setenv bootargs root=/dev/mtdblock2 rootfs=cramfs,jffs2 mtdparts=ph ysmap-flash.0:256k(u-boot),256k(u-boot-env),7936k(root1),7936k(root2);physmap-fl ash.1:16384k(data) console=ttyS0,115200n8 But when I run set_bootargs, I got the following error - # run set_bootargs Unknown command 'physmap-flash.1:16384k(data)' - try 'help' Can someone help me with the correct format on mtdparts? thanks a lot. ==================================================== mtdparts=mtdparts=physmap-flash.0:256k(u-boot),256k(u-boot-env),7936k(root1),793 6k(root2);physmap-flash.1:16384k(data) boot=run set_bootargs;chpart nor0,${boot_device};fsload boot/uImage;bootm mtdids=nor0=physmap-flash.0,nor1=physmap-flash.1 partition=nor0,2 mtddevnum=2 mtddevname=root1 set_bootargs=setenv bootargs root=/dev/mtdblock2 rootfs=cramfs,jffs2 mtdparts=ph ysmap-flash.0:256k(u-boot),256k(u-boot-env),7936k(root1),7936k(root2);physmap-fl ash.1:16384k(data) console=ttyS0,115200n8 bootargs=root=/dev/mtdblock2 rootfs=cramfs,jffs2 mtdparts=physmap-flash.0:256k(u -boot),256k(u-boot-env),7936k(root1),7936k(root2) Environment size: 847/262140 bytes # run set_bootargs Unknown command 'physmap-flash.1:16384k(data)' - try 'help' #