From: Robin Gilks Date: Tue, 08 Jul 2003 17:48:13 +1200 Subject: [U-Boot-Users] Function pointers after relocation In-Reply-To: <20030702223556.GA32001@zumanetworks.com> References: <20030702143117.B3B5EC592A@atlas.denx.de> <3F03564A.4090807@tait.co.nz> <20030702223556.GA32001@zumanetworks.com> Message-ID: <3F0A5B1D.5030203@tait.co.nz> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Nye Liu wrote: > Is this at all related to this problem: > > http://sourceforge.net/mailarchive/message.php?msg_id=5376039 > > i.e. env not being copied from flash in relocate() when ENV_IS_EMBEDDED > is set? > The effect is the same but the setting of ENV_IS_EMBEDDED is neither here nor there as I'm starting from a configuration file for the FADS board. This has only 8 sectors of 256k each so it makes no sense to embed the environment (wastes too much space) - the problem as you say is that it never gets copied out of Flash into RAM !! I'm going to 'have a go' at cpu/mpc8xx/start.S to modify it for the FADS case but since I've never used ppc assembler before it may take a while!! I think if I can identify where I get the source (presumably GOT(environment)) and destination (not found this yet) addresses and the length of the environment (I'll use the config define) at the assembler level then I'll be able to hack something together!! Never will so few lines of code have taken so long to write :-)) -- Robin Gilks Senior Design Engineer Phone: (+64)(3) 357 1569 Tait Electronics Fax : (+64)(3) 359 4632 PO Box 1645 Christchurch Email : robin.gilks at tait.co.nz New Zealand