From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Mon, 28 Feb 2011 12:43:20 +0100 Subject: [U-Boot] Info on NAND-SPL In-Reply-To: <20110227181128.BACE4D0B123@gemini.denx.de> References: <96382.60182.qm@web95116.mail.in2.yahoo.com> <20110227181128.BACE4D0B123@gemini.denx.de> Message-ID: <4D6B8A58.9040609@free.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Wolfgang, Le 27/02/2011 19:11, Wolfgang Denk a ?crit : > nand_spl loads the U-Boot code into RAM, and then relocates it (which > includes copying it to the final location). There is no relocation > done twice, only the copying, and this cannot be avoided as the > bootstrap loader cannot determine the final position of the image > yet. If you are sure that you have a static system with a fixed > memory map you can configure nand_spl such that it copies U-Boot to > the final location, one copy operation can be saved (you still need > the relocation, though). Note that in the case of ARM -- don't know about other archs -- if the final U-Boot location is known in advance, then one could try linking U-boot to that final location, in which case the relocation would not be needed either and should normally be skipped by the code currently in start.S. Amicalement, -- Albert.