]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
nios2: Preconfigure $loadaddr variable
authorMarek Vasut <marex@denx.de>
Tue, 15 Dec 2015 02:09:24 +0000 (03:09 +0100)
committerThomas Chou <thomas@wytron.com.tw>
Sat, 19 Dec 2015 01:48:14 +0000 (09:48 +0800)
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 <marex@denx.de>
Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
include/configs/10m50_devboard.h
include/configs/3c120_devboard.h

index 68ef6e5767e125a133729b1a39010dcd99cae5e2..608127f40d0a821f8f148c9a87ee48ac2c37ff91 100644 (file)
@@ -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           0xcc000000      /* Half of RAM */
+#define CONFIG_LOADADDR                        CONFIG_SYS_LOAD_ADDR
 #define CONFIG_SYS_MEMTEST_START       CONFIG_SYS_SDRAM_BASE
 #define CONFIG_SYS_MEMTEST_END         (CONFIG_SYS_MONITOR_BASE - \
                                         CONFIG_ENV_SIZE - \
index 00e83747223c22a5a787eb80160abd1647f4b8e3..6c9dc3ff68a72aa3344907d4b6beb2e2a3c550dc 100644 (file)
@@ -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           0xd4000000      /* Half of RAM */
+#define CONFIG_LOADADDR                        CONFIG_SYS_LOAD_ADDR
 #define CONFIG_SYS_MEMTEST_START       CONFIG_SYS_SDRAM_BASE
 #define CONFIG_SYS_MEMTEST_END         (CONFIG_SYS_MONITOR_BASE - \
                                         CONFIG_ENV_SIZE - \