public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH V3 1/4] README: document CONFIG_ENV_IS_IN_MMC
@ 2013-05-23 20:51 Stephen Warren
  2013-05-23 20:51 ` [U-Boot] [PATCH V3 2/4] mmc: report capacity for the selected partition Stephen Warren
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Stephen Warren @ 2013-05-23 20:51 UTC (permalink / raw)
  To: u-boot

From: Stephen Warren <swarren@nvidia.com>

Describe the meaning of CONFIG_ENV_IS_IN_MMC, and all related defines that
must or can be set when using that option.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
---
v3:
* Mention that env size/offset are in bytes.
* Fix typo; s/CONFIG_ENV_OFFSET/CONFIG_ENV_SIZE/ in one place.
v2: New patch.
---
 README |   40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/README b/README
index 3012dcd..e7fedb8 100644
--- a/README
+++ b/README
@@ -3606,6 +3606,46 @@ but it can not erase, write this NOR flash by SRIO or PCIE interface.
 	  You will probably want to define these to avoid a really noisy system
 	  when storing the env in UBI.
 
+- CONFIG_ENV_IS_IN_MMC:
+
+	Define this if you have an MMC device which you want to use for the
+	environment.
+
+	- CONFIG_SYS_MMC_ENV_DEV:
+
+	  Specifies which MMC device the environment is stored in.
+
+	- CONFIG_SYS_MMC_ENV_PART (optional):
+
+	  Specifies which MMC partition the environment is stored in. If not
+	  set, defaults to partition 0, the user area. Common values might be
+	  1 (first MMC boot partition), 2 (second MMC boot partition).
+
+	- CONFIG_ENV_OFFSET:
+	- CONFIG_ENV_SIZE:
+
+	  These two #defines specify the offset and size of the environment
+	  area within the specified MMC device.
+
+	  These two values are in units of bytes, but must be aligned to an
+	  MMC sector boundary.
+
+	- CONFIG_ENV_OFFSET_REDUND (optional):
+
+	  Specifies a second storage area, of CONFIG_ENV_SIZE size, used to
+	  hold a redundant copy of the environment data. This provides a
+	  valid backup copy in case the other copy is corrupted, e.g. due
+	  to a power failure during a "saveenv" operation.
+
+	  This value is also in units of bytes, but must also be aligned to
+	  an MMC sector boundary.
+
+	- CONFIG_ENV_SIZE_REDUND (optional):
+
+	  This value need not be set, even when CONFIG_ENV_OFFSET_REDUND is
+	  set. If this value is set, it must be set to the same value as
+	  CONFIG_ENV_SIZE.
+
 - CONFIG_SYS_SPI_INIT_OFFSET
 
 	Defines offset to the initial SPI buffer area in DPRAM. The
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2013-06-04 20:39 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-23 20:51 [U-Boot] [PATCH V3 1/4] README: document CONFIG_ENV_IS_IN_MMC Stephen Warren
2013-05-23 20:51 ` [U-Boot] [PATCH V3 2/4] mmc: report capacity for the selected partition Stephen Warren
2013-05-23 20:51 ` [U-Boot] [PATCH V3 3/4] env_mmc: allow negative CONFIG_ENV_OFFSET Stephen Warren
2013-05-23 20:51 ` [U-Boot] [PATCH V3 4/4] ARM: tegra: make use of negative ENV_OFFSET on NVIDIA boards Stephen Warren
2013-05-23 21:59 ` [U-Boot] [PATCH V3 1/4] README: document CONFIG_ENV_IS_IN_MMC Peter Korsgaard
2013-05-23 22:15   ` Stephen Warren
2013-05-23 22:32     ` Peter Korsgaard
2013-05-24 15:24 ` Tom Rini
2013-05-24 15:47   ` Stephen Warren
2013-05-24 15:51     ` Tom Rini
2013-05-24 16:03     ` Tom Warren
2013-06-04 19:31 ` Stephen Warren
2013-06-04 20:39   ` Fleming Andy-AFLEMING

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox