[U-Boot-Users] [PATCH] Fixup relocation patch.]
Joakim Tjernlund
joakim.tjernlund at transmode.se
Wed Feb 14 10:24:37 CET 2007
> From: Txema Lopez [mailto:tlopez at aotek.es]
> Sent: 14 February 2007 09:01
> To: Joakim Tjernlund
> Cc: u-boot-users at lists.sourceforge.net
> Subject: Re: [U-Boot-Users] [PATCH] Fixup relocation patch.]
>
> Joakim Tjernlund wrote:
>
> >I wonder, how far off is a fully relocatable u-boot? That
> is, burn it anywhere
> >in flash and start it from there?
> >
> > Jocke
> >
> >
> >
> Hi Jocke,
> The patch was done precisely for it. You can copy a U-Boot
> image from an
> address in flash to another and calculate the new pointers in
> the GOT an
> FIXUP sections before do the copy.
> But you need another change in U-Boot to turn it fully relocatable.
> U-Boot is hardly joined with the link address TEXT_BASE. You must
> replace it for a label in U-Boot and change the lines in the
> U-Boot code
> where there is a direct or indirect reference (as
> CFG_MONITOR_BASE) to
> TEXT_BASE.
>
> Best regards,
> Txema
Hi Txema
Can you give an example on how to change these references to
TEXT_BASE/CFG_MONITOR_BASE?
Regards
Jocke
More information about the U-Boot
mailing list