From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] Make MPC83xx one step closer to full relocation.
Date: Tue, 8 Apr 2008 12:06:21 +0200 [thread overview]
Message-ID: <200804081206.21726.sr@denx.de> (raw)
In-Reply-To: <1207647084.5826.14.camel@gentoo-jocke.transmode.se>
On Tuesday 08 April 2008, Joakim Tjernlund wrote:
> > I'm afraid, but the "other ppc's" did break with this patch. At least 4xx
> > does. With your patch applied relocation to SDRAM does not work anymore.
> > Here's what I get:
> >
> > CFG_MONITOR_BASE=fffa0000
> > (ulong)&_start + EXC_OFF_SYS_RESET=fffa2200
> > EXC_OFF_SYS_RESET=100
> >
> > I haven't looked into it closer yet. Any idea on how to fix this?
> >
> > Thanks.
> >
> > Best regards,
> > Stefan
>
> Oops, didn't see that coming. Your _start symbol in ppc4xx/start.S isn't
> pointing to your real start of execution. Seems like _start_440 is your
> real start but I can't be sure.
No, unfortunately it's not. _start_440 is loaded into the last 4k of bootrom
(via linker script), since 440 has a shadow TLB upon startup to only map 4k
of address space. After looking at System.map it seems that _start_of_vectors
seems to be the way to go for 4xx:
fffa0004 T version_string
fffa0100 t CritcalInput
fffa0100 T _start_of_vectors
But I don't want to introduce some #ifdef here. Perhaps it would be better to
introduce a common (PPC) label that points to the beginning of the U-Boot
image here.
BTW: I think this version:
len = (ulong)&_end - ((ulong)&_start - EXC_OFF_SYS_RESET);
instead of:
len = (ulong)&_end - (ulong)&_start + EXC_OFF_SYS_RESET;
is better. Makes the transition from CFG_MONITOR_BASE clearer, don't you think
so?
> There are some strange code in there
> that I don't understand.
Yes, it's quite complex because it supports all 4xx variants.
Best regards,
Stefan
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
next prev parent reply other threads:[~2008-04-08 10:06 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-28 14:41 [U-Boot-Users] [PATCH] Make MPC83xx one step closer to full relocation Joakim Tjernlund
2008-03-28 23:33 ` Kim Phillips
2008-03-28 23:47 ` Joakim Tjernlund
2008-03-29 0:01 ` Kim Phillips
2008-03-29 0:04 ` Joakim Tjernlund
2008-04-08 8:58 ` Stefan Roese
2008-04-08 9:31 ` Joakim Tjernlund
2008-04-08 10:06 ` Stefan Roese [this message]
2008-04-08 10:50 ` Joakim Tjernlund
2008-04-08 11:58 ` Wolfgang Denk
2008-04-08 13:07 ` Joakim Tjernlund
2008-04-08 13:25 ` Stefan Roese
2008-04-08 14:04 ` Joakim Tjernlund
2008-04-08 19:52 ` Stefan Roese
2008-04-08 20:30 ` Joakim Tjernlund
2008-04-08 20:41 ` Wolfgang Denk
2008-04-08 20:52 ` Joakim Tjernlund
2008-04-08 21:09 ` Wolfgang Denk
2008-04-08 21:51 ` Joakim Tjernlund
2008-04-08 22:17 ` David Hawkins
2008-04-09 9:40 ` Stefan Roese
2008-04-09 10:44 ` Wolfgang Denk
2008-04-09 11:14 ` Joakim Tjernlund
2008-04-09 11:45 ` Stefan Roese
2008-04-09 12:36 ` Wolfgang Denk
2008-04-08 11:52 ` Wolfgang Denk
-- strict thread matches above, loose matches on Subject: below --
2008-02-02 19:44 Joakim Tjernlund
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=200804081206.21726.sr@denx.de \
--to=sr@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox