[U-Boot] am335x_evm: Re-work eMMC environment

Submitted by Tom Rini on Sept. 12, 2013, 12:46 p.m.

Details

Message ID 1378990010-6700-1-git-send-email-trini@ti.com
State Rejected
Delegated to: Tom Rini
Headers show

Commit Message

Tom Rini Sept. 12, 2013, 12:46 p.m.
board/ti/am335x/README talks about eMMC env on the main partition, with
redundancy, rather than in one of the boot partitions.  Switch to using
the main partition + redundant copy.

Signed-off-by: Tom Rini <trini@ti.com>
---
 include/configs/am335x_evm.h |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

Comments

Tom Rini Sept. 12, 2013, 8:46 p.m.
On Thu, Sep 12, 2013 at 08:46:50AM -0400, Tom Rini wrote:

> board/ti/am335x/README talks about eMMC env on the main partition, with
> redundancy, rather than in one of the boot partitions.  Switch to using
> the main partition + redundant copy.
> 
> Signed-off-by: Tom Rini <trini@ti.com>

I'm going to re-tract this and update the README instead, along with
switching to redundant env support.

Patch hide | download patch | download mbox

diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
index 3de30fc..da353d7 100644
--- a/include/configs/am335x_evm.h
+++ b/include/configs/am335x_evm.h
@@ -344,10 +344,11 @@ 
 					"128k(u-boot-env2),3464k(kernel)," \
 					"-(rootfs)"
 #elif defined(CONFIG_EMMC_BOOT)
-#undef CONFIG_ENV_IS_NOWHERE
 #define CONFIG_ENV_IS_IN_MMC
-#define CONFIG_SYS_MMC_ENV_DEV		1
-#define CONFIG_SYS_MMC_ENV_PART		2
+#define CONFIG_SYS_MMC_ENV_DEV		1	/* SLOT2: eMMC(1) */
+#define CONFIG_ENV_OFFSET		0xE0000
+#define CONFIG_ENV_OFFSET_REDUND	(CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
+#define CONFIG_SYS_REDUNDAND_ENVIRONMENT
 #endif
 
 /* SPI flash. */