From: Reinhard Meyer Date: Thu, 09 Dec 2010 12:27:29 +0100 Subject: [U-Boot] can't build u-boot-2010.12-rc2 for at91rm9200ek In-Reply-To: <4D00B577.1040103@gmail.com> References: <254449.55bd.12cc9b36881.Coremail.zzs213@126.com> <4D007227.7020106@free.fr> <20101209102609.E7909D08A93@gemini.denx.de> <4D00B577.1040103@gmail.com> Message-ID: <4D00BD21.7030604@emk-elektronik.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 Andreas Bie?mann, > Dear Wolfgang Denk, > Dear Albert Aribaud, > > Am 09.12.2010 11:26, schrieb Wolfgang Denk: >> Dear Albert ARIBAUD, >> >> In message <4D007227.7020106@free.fr> you wrote: >>>> start.S:251: Error: bad arguments to instruction -- `add r1,r9' >>>> >>>> It looks a illegal instruction in start.S >>>> >>>> my toolchain is eldk4.1 >>> ELDK 4.1 seems a bit old -- 4.2 has been available for some time now and >>> does not have the issue with this instruction. >>> >>> If you really cannot use 4.2, then you can rewrite the instruction in >>> its canonical form: 'add r1,r1,r9'. >> Well, we should actually do that. >> >> Patch following. > > So you need to fix _all_ of the arch/arm/cpu/*/start.S cause this was > copied from one relocation code to the other. > > Another cause to introduce a relocate.S in near future ;) Certainly you are referring to relocate.c, or even better adding the "C" relocation to the arm generic board.c on the path to an u-boot generic board.c :) We should only need a small stub in assembly for stack and pc switching. "Patches welcome" :) Best Regards, Reinhard