public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 09/11] ARM: at91: ma5d4: Switch environment start to eMMC
Date: Tue,  2 May 2017 20:27:48 +0200	[thread overview]
Message-ID: <20170502182750.8907-9-marex@denx.de> (raw)
In-Reply-To: <20170502182750.8907-1-marex@denx.de>

The redesigned version of the SoM which was released onto the market
does no longer contain SPI flash, but boots from the eMMC. Move the
environment storage to the eMMC.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Andreas Bießmann <andreas.devel@googlemail.com>
---
 include/configs/ma5d4evk.h | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/include/configs/ma5d4evk.h b/include/configs/ma5d4evk.h
index d65ac43096..3c2ef99b8e 100644
--- a/include/configs/ma5d4evk.h
+++ b/include/configs/ma5d4evk.h
@@ -36,13 +36,12 @@
 /*
  * Environment
  */
-#define CONFIG_ENV_IS_IN_SPI_FLASH
-#define CONFIG_SYS_REDUNDAND_ENVIRONMENT
-#define CONFIG_ENV_OFFSET		0x8000
+#define CONFIG_ENV_IS_IN_MMC
+#define CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE
+#define CONFIG_SYS_CONSOLE_ENV_OVERWRITE
 #define CONFIG_ENV_SIZE			0x4000
-#define CONFIG_ENV_OFFSET_REDUND	(CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
-#define CONFIG_ENV_SIZE_REDUND		CONFIG_ENV_SIZE
-#define CONFIG_ENV_SECT_SIZE		0x1000
+#define CONFIG_SYS_MMC_ENV_DEV		0	/* eMMC */
+#define CONFIG_ENV_OFFSET		512	/* just after the MBR */
 
 /*
  * U-Boot general configurations
-- 
2.11.0

  parent reply	other threads:[~2017-05-02 18:27 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-02 18:27 [U-Boot] [PATCH 01/11] ARM: atmel: Rename MA5D4EVK Marek Vasut
2017-05-02 18:27 ` [U-Boot] [PATCH 02/11] ARM: at91: ma5d4: Switch DDR2 controller to sequencial address decoding Marek Vasut
2017-06-30  1:26   ` [U-Boot] [U-Boot, " Tom Rini
2017-05-02 18:27 ` [U-Boot] [PATCH 03/11] ARM: at91: ma5d4: Reset CAN controllers late Marek Vasut
2017-06-30  1:26   ` [U-Boot] [U-Boot, " Tom Rini
2017-05-02 18:27 ` [U-Boot] [PATCH 04/11] ARM: at91: ma5d4: Enable DFU and UMS Marek Vasut
2017-06-30  1:26   ` [U-Boot] [U-Boot,04/11] " Tom Rini
2017-05-02 18:27 ` [U-Boot] [PATCH 05/11] ARM: at91: ma5d4: Init SD/MMC controller in SPL Marek Vasut
2017-06-30  1:27   ` [U-Boot] [U-Boot, " Tom Rini
2017-05-02 18:27 ` [U-Boot] [PATCH 06/11] ARM: at91: ma5d4: Swap SD/MMC controller order Marek Vasut
2017-06-30  1:27   ` [U-Boot] [U-Boot, " Tom Rini
2017-05-02 18:27 ` [U-Boot] [PATCH 07/11] ARM: at91: ma5d4: Enable support for booting from eMMC Marek Vasut
2017-06-30  1:27   ` [U-Boot] [U-Boot, " Tom Rini
2017-05-02 18:27 ` [U-Boot] [PATCH 08/11] ARM: at91: ma5d4: Boot from MMC2 when using SAM-BA Marek Vasut
2017-06-30  1:27   ` [U-Boot] [U-Boot, " Tom Rini
2017-05-02 18:27 ` Marek Vasut [this message]
2017-06-30  1:27   ` [U-Boot] [U-Boot, 09/11] ARM: at91: ma5d4: Switch environment start to eMMC Tom Rini
2017-05-02 18:27 ` [U-Boot] [PATCH 10/11] ARM: at91: ma5d4: Enable random ethaddr Marek Vasut
2017-06-30  1:27   ` [U-Boot] [U-Boot, " Tom Rini
2017-05-02 18:27 ` [U-Boot] [PATCH 11/11] ARM: at91: ma5d4: Support both SF and eMMC SoMs Marek Vasut
2017-06-30  1:27   ` [U-Boot] [U-Boot, " Tom Rini
2017-06-30  1:26 ` [U-Boot] [U-Boot,01/11] ARM: atmel: Rename MA5D4EVK Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170502182750.8907-9-marex@denx.de \
    --to=marex@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox