From mboxrd@z Thu Jan 1 00:00:00 1970 From: Txema Lopez Date: Wed, 14 Feb 2007 09:01:03 +0100 Subject: [U-Boot-Users] [PATCH] Fixup relocation patch.] In-Reply-To: <01f001c74f9d$fd684f80$1e67a8c0@Jocke> References: <01f001c74f9d$fd684f80$1e67a8c0@Jocke> Message-ID: <45D2C1BF.9060800@aotek.es> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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