From: Thomas Chou <thomas@wytron.com.tw>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/5] nios2: Preconfigure $loadaddr variable
Date: Tue, 15 Dec 2015 13:26:07 +0800 [thread overview]
Message-ID: <566FA46F.4020403@wytron.com.tw> (raw)
In-Reply-To: <1450145366-7205-3-git-send-email-marex@denx.de>
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 <marex@denx.de>
> Cc: Thomas Chou <thomas@wytron.com.tw>
> ---
> 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 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 - \
> 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 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 - \
>
Acked-by: Thomas Chou <thomas@wytron.com.tw>
Thanks,
Thomas
next prev parent reply other threads:[~2015-12-15 5:26 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-15 2:09 [U-Boot] [PATCH 1/5] nios2: Calculate the env position from monitor size Marek Vasut
2015-12-15 2:09 ` [U-Boot] [PATCH 2/5] nios2: Up the monitor size to 512kiB Marek Vasut
2015-12-15 5:25 ` Thomas Chou
2015-12-15 13:17 ` Thomas Chou
2015-12-15 2:09 ` [U-Boot] [PATCH 3/5] nios2: Preconfigure $loadaddr variable Marek Vasut
2015-12-15 5:26 ` Thomas Chou [this message]
2015-12-15 13:17 ` Thomas Chou
2015-12-15 2:09 ` [U-Boot] [PATCH 4/5] nios2: Enable support for fitImage Marek Vasut
2015-12-15 5:31 ` Thomas Chou
2015-12-15 10:26 ` Marek Vasut
2015-12-15 13:26 ` Thomas Chou
2015-12-15 23:18 ` Marek Vasut
2015-12-16 0:13 ` Thomas Chou
2015-12-15 2:09 ` [U-Boot] [PATCH 5/5] nios2: Soup up the shell experience Marek Vasut
2015-12-15 5:33 ` Thomas Chou
2015-12-15 10:27 ` Marek Vasut
2015-12-15 23:18 ` Marek Vasut
2015-12-15 5:25 ` [U-Boot] [PATCH 1/5] nios2: Calculate the env position from monitor size Thomas Chou
2015-12-15 13:16 ` Thomas Chou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=566FA46F.4020403@wytron.com.tw \
--to=thomas@wytron.com.tw \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox