[U-Boot] [PATCH] Save environment data to mmc.

Mike Frysinger vapier at gentoo.org
Thu Nov 5 13:09:42 CET 2009


On Thursday 05 November 2009 02:43:33 Terry Lv wrote:
> --- a/common/Makefile
> +++ b/common/Makefile
> @@ -58,6 +58,7 @@ COBJS-$(CONFIG_ENV_IS_IN_NAND) += env_nand.o
>  COBJS-$(CONFIG_ENV_IS_IN_NVRAM) += env_nvram.o
>  COBJS-$(CONFIG_ENV_IS_IN_ONENAND) += env_onenand.o
>  COBJS-$(CONFIG_ENV_IS_IN_SPI_FLASH) += env_sf.o
> +COBJS-$(CONFIG_ENV_IS_IN_MMC) += env_mmc.o

this list is attempting to stay in order according to the CONFIG name, so you 
should add this above the NAND ENV entry

> --- /dev/null
> +++ b/common/env_mmc.c
> @@ -0,0 +1,359 @@
> +#if defined(CONFIG_ENV_IS_IN_MMC) /* Environment is in MMC Flash */

you dont need this line anymore as it's in the Makefile

> +#ifdef CONFIG_INFERNO
> +#error CONFIG_INFERNO not supported yet
> +#endif

is this really needed ?

> +extern int default_environment_size;

this looks like another useless line copy & pasted from whatever file you 
based this on
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20091105/7cd8ba61/attachment.pgp 


More information about the U-Boot mailing list