From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Tue, 02 Nov 2010 09:33:18 +0100 Subject: [U-Boot] [RFC] arm926ejs: fix jump to RAM nand_boot In-Reply-To: <4CCFAFE4.3000600@denx.de> References: <20101031203243.478E9EA47F@gemini.denx.de> <1288547025-16877-1-git-send-email-albert.aribaud@free.fr> <20101031181244.419EDEA47F@gemini.denx.de> <4CCDB78D.506@ahsoftware.de> <20101031190136.64829EA47F@gemini.denx.de> <4CCDBE71.1010805@free.fr> <20101031192243.7AF531522C0@gemini.denx.de> <4CCDC625.3010209@free.fr> <20101031195941.5AB961522C0@gemini.denx.de> <4CCDD02D.2050304@free.fr> <1288560046-6458-1-git-send-email-albert.aribaud@free.fr> <4CCDED8D.0@ahsoftware.de> <4CCDF5FC.4060704@free.fr> <20101101091515.C8BDD1522C0@gemini.denx.de> <4CCEF2E4.5080003@free.fr> <20101101192318.06C231522C0@gemini.denx.de> <4CCFAFE4.3000600@denx.de> Message-ID: <20101102083318.CE0C44C7@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 Heiko Schocher, In message <4CCFAFE4.3000600@denx.de> you wrote: > > - preloader copies first page of nand (nand_spl code) to > 0xbb000000 (some cpu internal mem) and jumps to this address > - nand_spl does lowlevelinit, relocate itself to TEXT_BASE (nand_spl code) Why is this relocation needed? I understand that this 0xbb000000 address is determined by the given hardware ans as such always fix? > But as codesize changes (and with it relocation address) this > is not a perfect solution. Indeed. CONFIG_SYS_NAND_U_BOOT_SIZE should be dropped, and the avtual value should be derived from the actual U-Boot image building process. 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 "I've seen it. It's rubbish." - Marvin the Paranoid Android