From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerry Van Baren Date: Tue, 13 Oct 2009 22:40:57 -0400 Subject: [U-Boot] Running u-boot without relocation to RAM? In-Reply-To: <528f13590910130750w2542eb0bsdb0e2818788e1ee3@mail.gmail.com> References: <6105146B697B3049A2C2C04C0EE9088D0701CFA810@WW001E1ERLMM11.ww001.siemens.net> <528f13590910130750w2542eb0bsdb0e2818788e1ee3@mail.gmail.com> Message-ID: <4AD53A39.8000306@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de alfred steele wrote: >> So is it possible to completly disable the relocation process at startup and run U-Boot with having opcode in PROM and data in RAM? If yes, how could I achieve this? >> >> I already tried to remove the corresponding code in the start.S and searched the README for switches, but without success. > Did you try the "CONFIG_SKIP_RELOCATE_UBOOT" ? I am not sure if it > serves your purpose here. It depends upon whether or not your > "start.S" uses it at all. > > -Alfred Tobias can try CONFIG_SKIP_RELOCATE_UBOOT, but it isn't likely to work as is. That flag is to configure u-boot to be loaded directly into RAM and run out of RAM (i.e. no relocation from flash to RAM). U-Boot was not designed to run from flash (aka. XIP - eXecute In Place) and nobody has done that as far as I know. That doesn't mean u-boot cannot run XIP, it means that it will take an unknown amount of effort to make it happen. gvb