Skip to contentSkip to conversation

env_mmc: add support for redundant environment

PATCH Superseded Michael Heimpold 2 participants 2 messages Apr 10, 2013 – May 2, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 env_mmc: add support for redundant environment

This patch add support for storing the environment redundant on mmc devices. Substantially it re-uses the logic from the NAND implementation, that means using an incremental counter for marking newer data.

---
 board/freescale/common/sdhc_boot.c |    2 +-
 common/env_mmc.c                   |  133 +++++++++++++++++++++++++++++++++---
 2 files changed, 124 insertions(+), 11 deletions(-)
board/freescale/common/sdhc_boot.c +1 -1
index e432318..fd0e910 100644
@@ -32,7 +32,7 @@
 #define ESDHC_BOOT_IMAGE_SIZE	0x48
 #define ESDHC_BOOT_IMAGE_ADDR	0x50
 
-int mmc_get_env_addr(struct mmc *mmc, u32 *env_addr)
+int mmc_get_env_addr(struct mmc *mmc, int copy, u32 *env_addr)
 {
 	u8 *tmp_buf;
 	u32 blklen, code_offset, code_len, n;
common/env_mmc.c +123 -10

191 lines not on this page · raw message

Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 5 lines · Michael Heimpold

This patch add support for storing the environment redundant on mmc devices. Substantially it re-uses the logic from the NAND implementation, that means using an incremental counter for marking newer data.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130502/3f766da9/attachment.pgp>