[U-Boot] can't build u-boot-2010.12-rc2 for at91rm9200ek

Reinhard Meyer u-boot at emk-elektronik.de
Thu Dec 9 12:27:29 CET 2010


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 at 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



More information about the U-Boot mailing list