[U-Boot] [PATCH v2 3/4] am335x_evm: Add CONFIG_CMD_MTDPARTS and relevant defaults

Peter Korsgaard jacmet at sunsite.dk
Wed Feb 27 09:54:46 CET 2013


>>>>> "Tom" == Tom Rini <trini at ti.com> writes:

 Tom> Signed-off-by: Tom Rini <trini at ti.com>
 Tom> ---
 Tom>  include/configs/am335x_evm.h |    9 +++++++++
 Tom>  1 file changed, 9 insertions(+)

 Tom> diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
 Tom> index 59647d1..61b861d 100644
 Tom> --- a/include/configs/am335x_evm.h
 Tom> +++ b/include/configs/am335x_evm.h
 Tom> @@ -60,6 +60,8 @@
 Tom>  	"fdtfile=\0" \
 Tom>  	"console=ttyO0,115200n8\0" \
 Tom>  	"optargs=\0" \
 Tom> +	"mtdids=" MTDIDS_DEFAULT "\0" \
 Tom> +	"mtdparts=" MTDPARTS_DEFAULT "\0" \
 Tom>  	"mmcdev=0\0" \
 Tom>  	"mmcroot=/dev/mmcblk0p2 ro\0" \
 Tom>  	"mmcrootfstype=ext4 rootwait\0" \
 Tom> @@ -341,6 +343,13 @@
 Tom>  /* NAND support */
 Tom>  #ifdef CONFIG_NAND
 Tom>  #define CONFIG_CMD_NAND
 Tom> +#define CONFIG_CMD_MTDPARTS
 Tom> +#define MTDIDS_DEFAULT			"nand0=omap2-nand.0"
 Tom> +#define MTDPARTS_DEFAULT		"mtdparts=omap2-nand.0:128k(SPL)," \
 Tom> +					"128k(SPL.backup1)," \
 Tom> +					"128k(SPL.backup2)," \
 Tom> +					"128k(SPL.backup3),1920k(u-boot)," \
 Tom> +					"128k(u-boot-env),5m(kernel),-(rootfs)"

Is there a particular reason why the u-boot partition is so big?

-- 
Bye, Peter Korsgaard


More information about the U-Boot mailing list