From: Tom Rini Date: Fri, 9 Jun 2017 10:17:03 -0400 Subject: [U-Boot] [PATCH] arm: am57xx: Keep environment in eMMC In-Reply-To: <20170609141256.27374-1-semen.protsenko@linaro.org> References: <20170609141256.27374-1-semen.protsenko@linaro.org> Message-ID: <20170609141703.GE10782@bill-the-cat> 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, Jun 09, 2017 at 05:12:56PM +0300, Sam Protsenko wrote: > Use eMMC (instead of SD card) to store U-Boot environment. Use > "reserved" partition for U-Boot environment. > > Signed-off-by: Sam Protsenko > --- > include/configs/am57xx_evm.h | 14 +++++++++----- > 1 file changed, 9 insertions(+), 5 deletions(-) > > diff --git a/include/configs/am57xx_evm.h b/include/configs/am57xx_evm.h > index af19098727..7a42d79647 100644 > --- a/include/configs/am57xx_evm.h > +++ b/include/configs/am57xx_evm.h > @@ -13,6 +13,7 @@ > #define __CONFIG_AM57XX_EVM_H > > #include > +#include > > #ifdef CONFIG_SPL_BUILD > #define CONFIG_IODELAY_RECALIBRATION > @@ -20,11 +21,14 @@ > > #define CONFIG_NR_DRAM_BANKS 2 > > -#define CONFIG_ENV_SIZE (64 << 10) > -#define CONFIG_ENV_IS_IN_FAT > -#define FAT_ENV_INTERFACE "mmc" > -#define FAT_ENV_DEVICE_AND_PART "0:1" > -#define FAT_ENV_FILE "uboot.env" > +/* MMC ENV related defines */ > +#define CONFIG_ENV_IS_IN_MMC > +#define CONFIG_SYS_MMC_ENV_DEV 1 /* eMMC */ > +#define CONFIG_SYS_MMC_ENV_PART 0 > +#define CONFIG_ENV_SIZE SZ_128K > +#define CONFIG_ENV_OFFSET 0x260000 > +#define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE) > +#define CONFIG_SYS_REDUNDAND_ENVIRONMENT Why are we doing this? -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: