[U-Boot-Users] necessary fix for ARM u-boot 1.1.1 and GCC3.4.0.

Woodruff, Richard r-woodruff2 at ti.com
Fri Jun 11 14:20:49 CEST 2004


Yes, I am now able to compile and boot a kernel using 1.1.1 and 3.4.0 after a few changes.  I think I've posted the main bits which needed changing (tool chain patch, examples/stubs tweak, lib_arm/board.c optimization stop, as you highlight out per-cpu make file tweak) it looks like it will be ok.

Short-load-bytes is deprecated and needs to be replaced or removed.  Per the manual it is only necessary for ARMv3 and below (Ie no half word load available).

Regards,

Richard W.

> -----Original Message-----
> From: Robert Schwebel [mailto:robert at pengutronix.de] On Behalf Of Robert
> Schwebel
> Sent: Friday, June 11, 2004 12:53 AM
> To: Woodruff, Richard
> Cc: u-boot-users
> Subject: Re: [U-Boot-Users] necessary fix for ARM u-boot 1.1.1 and
> GCC3.4.0.
> 
> On Thu, Jun 10, 2004 at 04:53:13PM -0500, Woodruff, Richard wrote:
> > I just found that lib_arm/board.c:start_armboot()'s GCC3.4.0 generated
> > code sequence breaks ARM u-boot's.  I am using the GCC3.4.0 which
> > CodeSourcery put out.
> 
> Hmm, that suggests that you have been able to compile it at all? I just
> tried current CVS with the crosstool-0.28-rc23 gcc and it breaks:
> 
> ----------8<----------8<----------8<----------8<----------8<----------
> arm-softfloat-linux-gnu-gcc -M -g  -Os   -fno-strict-aliasing -fno-common
> -ffixed-r8 -mshort-load-bytes -msoft-float -D__KERNEL__ -
> DTEXT_BASE=0xa1fe0000 -I/home/robert/work/u-boot-maintainance/include -
> msoft-float -fno-builtin -ffreestanding -nostdinc -isystem
> /ptx/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.0-glibc-
> 2.3.2/bin/../lib/gcc/arm-softfloat-linux-gnu/3.4.0/include -pipe  -
> DCONFIG_ARM -D__ARM__ -mapcs-32 -march=armv5 -mtune=xscale -Wall -Wstrict-
> prototypes hello_world.c stubs.c  > .depend
> cc1: error: invalid option `short-load-bytes'
> cc1: error: invalid option `short-load-bytes'
> make[1]: *** [.depend] Error 1
> ----------8<----------8<----------8<----------8<----------8<----------
> 
> Robert
> --
>  Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
>  Pengutronix - Linux Solutions for Science and Industry
>    Handelsregister:  Amtsgericht Hildesheim, HRA 2686
>      Hornemannstraße 12,  31137 Hildesheim, Germany
>     Phone: +49-5121-28619-0 |  Fax: +49-5121-28619-4




More information about the U-Boot mailing list