[U-Boot-Users] [PATCH] Fixup relocation patch.]

Txema Lopez tlopez at aotek.es
Wed Feb 14 09:01:03 CET 2007


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tlopez.vcf
Type: text/x-vcard
Size: 324 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20070214/5dee477f/attachment.vcf 


More information about the U-Boot mailing list