Re: [U-Boot] [PATCH 3/5] nios2: Preconfigure $loadaddr variable

2015-12-15 Thread Thomas Chou

Hi Marek,

On 2015年12月15日 10:09, Marek Vasut wrote:

Preset the $loadaddr environment variable to some sane default, let's
say half of the RAM. This variable is where the kernel is loaded using
all sorts of .*load commands, so it's convenient to have it set.

Signed-off-by: Marek Vasut 
Cc: Thomas Chou 
---
  include/configs/10m50_devboard.h | 3 ++-
  include/configs/3c120_devboard.h | 3 ++-
  2 files changed, 4 insertions(+), 2 deletions(-)



Applied to u-boot-nios. Thanks.

Best regards,
Thomas
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 3/5] nios2: Preconfigure $loadaddr variable

2015-12-14 Thread Thomas Chou

Hi Marek,

On 2015年12月15日 10:09, Marek Vasut wrote:

Preset the $loadaddr environment variable to some sane default, let's
say half of the RAM. This variable is where the kernel is loaded using
all sorts of .*load commands, so it's convenient to have it set.

Signed-off-by: Marek Vasut 
Cc: Thomas Chou 
---
  include/configs/10m50_devboard.h | 3 ++-
  include/configs/3c120_devboard.h | 3 ++-
  2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/configs/10m50_devboard.h b/include/configs/10m50_devboard.h
index 68ef6e5..608127f 100644
--- a/include/configs/10m50_devboard.h
+++ b/include/configs/10m50_devboard.h
@@ -92,7 +92,8 @@
  #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \
sizeof(CONFIG_SYS_PROMPT) + \
 16)/* Print buf size */
-#define CONFIG_SYS_LOAD_ADDR   CONFIG_SYS_SDRAM_BASE
+#define CONFIG_SYS_LOAD_ADDR   0xcc00  /* Half of RAM */
+#define CONFIG_LOADADDRCONFIG_SYS_LOAD_ADDR
  #define CONFIG_SYS_MEMTEST_START  CONFIG_SYS_SDRAM_BASE
  #define CONFIG_SYS_MEMTEST_END(CONFIG_SYS_MONITOR_BASE - \
 CONFIG_ENV_SIZE - \
diff --git a/include/configs/3c120_devboard.h b/include/configs/3c120_devboard.h
index 00e8374..6c9dc3f 100644
--- a/include/configs/3c120_devboard.h
+++ b/include/configs/3c120_devboard.h
@@ -95,7 +95,8 @@
  #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \
sizeof(CONFIG_SYS_PROMPT) + \
 16)/* Print buf size */
-#define CONFIG_SYS_LOAD_ADDR   CONFIG_SYS_SDRAM_BASE
+#define CONFIG_SYS_LOAD_ADDR   0xd400  /* Half of RAM */
+#define CONFIG_LOADADDRCONFIG_SYS_LOAD_ADDR
  #define CONFIG_SYS_MEMTEST_START  CONFIG_SYS_SDRAM_BASE
  #define CONFIG_SYS_MEMTEST_END(CONFIG_SYS_MONITOR_BASE - \
 CONFIG_ENV_SIZE - \



Acked-by: Thomas Chou 

Thanks,
Thomas
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot