[U-Boot] Compiling U-Boot
Andreas Bießmann
andreas.devel at googlemail.com
Wed Nov 27 14:39:25 CET 2013
Dear Alexey Smishlayev,
On 11/27/2013 01:26 PM, Alexey Smishlayev wrote:
> Hello!
> I would like to compile U-Boot with custom configuration.
> I downloaded source from the master git repository
> (http://git.denx.de/?p=u-boot.git;a=summary).
> I am trying to compile using following commands:
> $ cd u-boot/
> $ make ARCH=arm CROSS_COMPILE=arm-unknown-linux-gnu-
> at91sam9g20ek_nandflash_config
> $ make ARCH=arm CROSS_COMPILE=arm-unknown-linux-gnu- all
seems good to me.
> It goes on for a while, and then I get the error:
> crt0.S: Assembler messages:
> crt0.S:70: Error: register expected, not '#(184)' -- `sub sp,#(184)'
>
> make[1]: *** [crt0.o] Error 1
> make[1]: Leaving directory `/root/u-boot/arch/arm/lib'
> make: *** [arch/arm/lib/built-in.o] Error 2
crt0.S:70 subtracts the GD_SIZE from current stack pointer. The code
written seems to miss the Rn according to [1]. Could you please test to
change it from to: 'sub sp, sp, #GD_SIZE'?
I wonder why my toolchain ignore this. It obviously take Rd == Rn when
Rn is missing.
Best regards
Andreas Bießmann
[1]
http://infocenter.arm.com/help/topic/com.arm.doc.qrc0001m/QRC0001_UAL.pdf
More information about the U-Boot
mailing list