From: Tolunay Orkun <listmember@orkun.us>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] MPC8641HPCN u-boot.lds problem with ELDK 4.0
Date: Thu, 30 Nov 2006 16:17:22 -0600 [thread overview]
Message-ID: <456F5872.5060309@orkun.us> (raw)
In-Reply-To: <1164920966.323.30.camel@kaboom.lisle.iphase.com>
Chris Fester wrote:
> Hi all,
>
> I recently have been attempting to get u-boot working on my MPC8641HPCN
> evaulation board (AKA the Argo Navis platform). I faced a problem
> compiling the latest git source with the ELDK 4.0 and getting it to work
> on the board. The processor would run off into the weeds when doing the
> command table relocation step in lib_ppc/board.c:633. After debugging
> with a BDI, some head scratching, and a few google searches, it came
> down to an issue with the linker, which seems to have been a common
> problem in the past for this mail list. Please see the thread at:
> http://sourceware.org/ml/binutils/2005-08/msg00412.html.
I answered the same issue for someone else this week. This issue is
fixed by the patch that went in Aug 31, 2005. As far as I can see, the
change was for all boards in the public tree back then.
http://www.denx.de/cgi-bin/gitweb.cgi?p=u-boot.git;a=commit;h=807d5d7319330e336ab34a5623c5e0d73b87d540
>
> * Fix to linker script for mpc8641hpcn platform to enable a correct
> symbol table with ELDK 4.0 linker.
>
>
> diff --git a/board/mpc8641hpcn/u-boot.lds b/board/mpc8641hpcn/u-boot.lds
> index b34de8e..c2f6727 100644
> --- a/board/mpc8641hpcn/u-boot.lds
> +++ b/board/mpc8641hpcn/u-boot.lds
> @@ -120,7 +120,7 @@ SECTIONS
> _edata = .;
> PROVIDE (edata = .);
>
> - __u_boot_cmd_start = .;
> + __u_boot_cmd_start = ADDR(.u_boot_cmd);
> .u_boot_cmd : { *(.u_boot_cmd) }
> __u_boot_cmd_end = .;
Please that a look at the fix done for other boards (say mpc8560ads).
They add two lines of ". = ." which fixes this and a similar issue with
__start___ex_table symbol. I think it would be better if the issue is
fixed in the same way. (I am not saying your solution is wrong, but this
is more consistent)
Tolunay
PS: Wolfgang, perhaps this should be a FAQ?
next prev parent reply other threads:[~2006-11-30 22:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-30 21:09 [U-Boot-Users] [PATCH] MPC8641HPCN u-boot.lds problem with ELDK 4.0 Chris Fester
2006-11-30 22:17 ` Tolunay Orkun [this message]
2006-11-30 23:15 ` Wolfgang Denk
2006-12-01 22:16 ` Chris Fester
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=456F5872.5060309@orkun.us \
--to=listmember@orkun.us \
--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.