From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2] edminiv2: add support for ELF relocations
Date: Wed, 06 Oct 2010 07:30:11 +0200 [thread overview]
Message-ID: <4CAC0963.3040102@denx.de> (raw)
In-Reply-To: <1286307660-7969-2-git-send-email-albert.aribaud@free.fr>
Hello Albert,
Albert Aribaud wrote:
> Signed-off-by: Albert Aribaud <albert.aribaud@free.fr>
> ---
> board/LaCie/edminiv2/config.mk | 4 ++--
> include/configs/edminiv2.h | 7 +++++++
> 2 files changed, 9 insertions(+), 2 deletions(-)
>
> diff --git a/board/LaCie/edminiv2/config.mk b/board/LaCie/edminiv2/config.mk
> index 3dec1aa..942c4e5 100644
> --- a/board/LaCie/edminiv2/config.mk
> +++ b/board/LaCie/edminiv2/config.mk
> @@ -23,5 +23,5 @@
> # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
> # MA 02110-1301 USA
> #
> -
> -TEXT_BASE = 0x00100000
> +# TEXT_BASE must equal the intended FLASH location of u-boot.
> +TEXT_BASE = 0xfff90000
> \ No newline at end of file
> diff --git a/include/configs/edminiv2.h b/include/configs/edminiv2.h
> index ccfc660..8bcdfcc 100644
> --- a/include/configs/edminiv2.h
> +++ b/include/configs/edminiv2.h
> @@ -223,4 +223,11 @@
> #define CONFIG_SYS_RESET_ADDRESS 0xffff0000
> #define CONFIG_SYS_MAXARGS 16
>
> +/* additions for new relocation code, must be added to all boards */
> +#define CONFIG_RELOC_FIXUP_WORKS
Instead defining this in every board-config.h we should
define it in arch/arm/include/asm/config.h, as it is valid
with this relocation version for every arm board.
Can you add this to your 1/2 patch ?
> +#undef CONFIG_SYS_ARM_WITHOUT_RELOC
We don;t need this undef
> +#define CONFIG_SYS_SDRAM_BASE 0
> +#define CONFIG_SYS_INIT_SP_ADDR \
> + (CONFIG_SYS_SDRAM_BASE + 0x1000 - CONFIG_SYS_GBL_DATA_SIZE)
> +
> #endif /* _CONFIG_EDMINIV2_H */
bye,
Heiko
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
next prev parent reply other threads:[~2010-10-06 5:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-05 19:40 [U-Boot] [PATCH 1/2] arm: implement ELF relocations Albert Aribaud
2010-10-05 19:41 ` [U-Boot] [PATCH 2/2] edminiv2: add support for " Albert Aribaud
2010-10-06 5:30 ` Heiko Schocher [this message]
2010-10-06 5:55 ` Albert ARIBAUD
2010-10-06 5:37 ` [U-Boot] [PATCH 1/2] arm: implement " Heiko Schocher
2010-10-06 5:54 ` Albert ARIBAUD
2010-10-06 6:01 ` Reinhard Meyer
2010-10-06 6:29 ` Albert ARIBAUD
2010-10-06 6:45 ` Reinhard Meyer
2010-10-06 7:03 ` Albert ARIBAUD
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=4CAC0963.3040102@denx.de \
--to=hs@denx.de \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.