[U-Boot] [PATCH 2/2] odroid-c2: support storing the uboot environment in eMMC

Andreas Färber afaerber at suse.de
Fri Apr 14 13:40:20 UTC 2017


Am 14.04.2017 um 10:26 schrieb Heiner Kallweit:
> Support storing uboot environment in eMMC.
> 
> Signed-off-by: Heiner Kallweit <hkallweit1 at gmail.com>
> ---
>  include/configs/meson-gxbb-common.h | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/include/configs/meson-gxbb-common.h b/include/configs/meson-gxbb-common.h
> index cc2b5b6..5951263 100644
> --- a/include/configs/meson-gxbb-common.h
> +++ b/include/configs/meson-gxbb-common.h
> @@ -11,8 +11,10 @@
>  #define CONFIG_CPU_ARMV8
>  #define CONFIG_REMAKE_ELF
>  #define CONFIG_NR_DRAM_BANKS		1
> -#define CONFIG_ENV_IS_NOWHERE		1
> +#define CONFIG_ENV_IS_IN_MMC		1
> +#define CONFIG_SYS_MMC_ENV_DEV		0

Apart from relying on the modified device order, have you tested this
without eMMC?

Regards,
Andreas

>  #define CONFIG_ENV_SIZE			0x2000
> +#define CONFIG_ENV_OFFSET		(SZ_1M - CONFIG_ENV_SIZE)
>  #define CONFIG_SYS_MAXARGS		32
>  #define CONFIG_SYS_MALLOC_LEN		(32 << 20)
>  #define CONFIG_SYS_CBSIZE		1024
> 


-- 
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)


More information about the U-Boot mailing list