From: Wolfgang Denk Date: Wed, 08 Feb 2012 00:23:17 +0100 Subject: [U-Boot] [PATCH] arm: Add option to disable code relocation In-Reply-To: <4F30C794.50206@de.bosch.com> References: <1328424259-12914-1-git-send-email-sjg@chromium.org> <4F2F9294.4030805@gmail.com> <201202061427.02208.vapier@gentoo.org> <4F30C794.50206@de.bosch.com> Message-ID: <20120207232317.D164482373@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Dirk Behme, In message <4F30C794.50206@de.bosch.com> you wrote: > > > Also, if SPL can determine total SDRAM, copy U-Boot to the final location > > and perform the relocations, there is no need for relocation to be done by > > U-Boot. As I understand it, SPL loads U-Boot into a fixed address and then > > U-Boot copies itself to top-of-RAM. We can save one copy > > Yes, exactly, saving this one copy was the the reason for me to start > this thread. Is nobody _reading_ what I try to explain again and again and again? If SPL was to determing the relocation address, it would also have to read the environment, because there are a number of environment variables which can cause (dynamically) the relocation address to change. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Is not that the nature of men and women -- that the pleasure is in the learning of each other? -- Natira, the High Priestess of Yonada, "For the World is Hollow and I Have Touched the Sky", stardate 5476.3.