diff mbox

[U-Boot] ARM: dockstar: move start of environment area

Message ID 20151012231852.GA1638@cooper-siegel.org
State Accepted
Delegated to: Albert ARIBAUD
Headers show

Commit Message

Eric Cooper Oct. 12, 2015, 11:18 p.m. UTC
The default dockstar configuration for U-Boot currently causes it to
overrun the environment area, so that a "saveenv" command bricks the
device.  This patch moves the environment to a higher address to avoid
that.

Signed-off-by: Eric Cooper <ecc@cmu.edu>
---
 include/configs/dockstar.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--
2.6.1

Comments

Albert ARIBAUD Oct. 19, 2015, 5:29 a.m. UTC | #1
Hello Eric,

On Mon, 12 Oct 2015 19:18:52 -0400, Eric Cooper <ecc@cmu.edu> wrote:
> The default dockstar configuration for U-Boot currently causes it to
> overrun the environment area, so that a "saveenv" command bricks the
> device.  This patch moves the environment to a higher address to avoid
> that.
> 
> Signed-off-by: Eric Cooper <ecc@cmu.edu>
> ---
>  include/configs/dockstar.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/include/configs/dockstar.h b/include/configs/dockstar.h
> index b27b202..d0d9d53 100644
> --- a/include/configs/dockstar.h
> +++ b/include/configs/dockstar.h
> @@ -60,8 +60,8 @@
>   * it has to be rounded to sector size
>   */
>  #define CONFIG_ENV_SIZE			0x20000	/* 128k */
> -#define CONFIG_ENV_ADDR			0x60000
> -#define CONFIG_ENV_OFFSET		0x60000	/* env starts here */
> +#define CONFIG_ENV_ADDR			0x80000
> +#define CONFIG_ENV_OFFSET		0x80000	/* env starts here */
> 
>  /*
>   * Default environment variables
> --
> 2.6.1

Applied to u-boot-arm/master, thanks!

Amicalement,
diff mbox

Patch

diff --git a/include/configs/dockstar.h b/include/configs/dockstar.h
index b27b202..d0d9d53 100644
--- a/include/configs/dockstar.h
+++ b/include/configs/dockstar.h
@@ -60,8 +60,8 @@ 
  * it has to be rounded to sector size
  */
 #define CONFIG_ENV_SIZE			0x20000	/* 128k */
-#define CONFIG_ENV_ADDR			0x60000
-#define CONFIG_ENV_OFFSET		0x60000	/* env starts here */
+#define CONFIG_ENV_ADDR			0x80000
+#define CONFIG_ENV_OFFSET		0x80000	/* env starts here */

 /*
  * Default environment variables