xloader compile problem

Hi,

I have tried to compile X-loader following the tutorial http://elinux.org/index.php?title=BeagleBoard#X-Loader and I get this error :

maxime@g-64brouette:~/beagleboardSetup/xloader$ make distclean
find . -type f
( -name ‘core’ -o -name ‘.bak’ -o -name '~’
-o -name ‘.o’ -o -name '.a’ ) -print \

xargs rm -f
find . -type f
( -name .depend -o -name ‘.srec’ -o -name '.bin’ )
-print
xargs rm -f
rm -f cpu/omap3/start.o *.bak tags TAGS
rm -fr .~
rm -f x-load x-load.map x-load.bin System.map
rm -f include/asm/proc include/asm/arch
rm -f include/config.h include/config.mk
maxime@g-64brouette:~/beagleboardSetup/xloader$ make CROSS_COMPILE=~/bin/CodeSourcery/Sourcery_G_Lite/bin/arm-none-linux-gnueabi- omap3530beagle_config
rm -f include/config.h include/config.mk
Configuring for omap3530beagle board…
maxime@g-64brouette:~/beagleboardSetup/xloader$ make CROSS_COMPILE=~/bin/CodeSourcery/Sourcery_G_Lite/bin/arm-none-linux-gnueabi-
/home/maxime/bin/CodeSourcery/Sourcery_G_Lite/bin/arm-none-linux-gnueabi-gcc -Wa,-gstabs -D__ASSEMBLY__ -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -D__KERNEL__ -DTEXT_BASE=0x40200800 -I/home/maxime/beagleboardSetup/xloader/include -fno-builtin -ffreestanding -nostdinc -isystem /home/maxime/bin/CodeSourcery/Sourcery_G_Lite/bin/…/lib/gcc/arm-none-linux-gnueabi/4.3.2/include -pipe -DCONFIG_ARM -D__ARM__ -march=armv7a -c -o cpu/omap3/start.o /home/maxime/beagleboardSetup/xloader/cpu/omap3/start.S
cc1: error: bad value (armv7a) for -march= switch
make: *** [cpu/omap3/start.o] Error 1

I have use the toolchain from CoedSourcery.

Does someone knows what’s going wrong ?

cheers,

Maxime

Hi again,

I’m answering to myself in case some one has the same problem :wink:
The fix I have done is just to replace

PLATFORM_CPPFLAGS += -march=armv7a
by
PLATFORM_CPPFLAGS += -march=armv7-a # (with a dash)

in the file cpu/omap3/config.mk

Note that I’m not sure that It’s the correct fix :wink:

all the best,

Maxime

maxime louvel said the following on 01/20/2009 05:48 AM:

PLATFORM_CPPFLAGS += -march=armv7a
by
PLATFORM_CPPFLAGS += -march=armv7-a # (with a dash)

in the file cpu/omap3/config.mk <http://config.mk>

Note that I'm not sure that It's the correct fix :wink:

all the best,

If you were to use 2007Q3 compiler... I think the above option should
hold.. see [1] for more details..
Regards,
Nishanth Menon
[1] Beagleboard:Main Page - eLinux.org

maxime louvel said the following on 01/20/2009 05:48 AM:
>
> PLATFORM_CPPFLAGS += -march=armv7a
> by
> PLATFORM_CPPFLAGS += -march=armv7-a # (with a dash)
>
> in the file cpu/omap3/config.mk <http://config.mk>
>
> Note that I'm not sure that It's the correct fix :wink:
>
> all the best,
>
If you were to use 2007Q3 compiler... I think the above option should
hold.. see [1] for more details..
Regards,
Nishanth Menon
[1] Beagleboard:Main Page - eLinux.org

I just hit this "old problem" tonight. It seems, that the CodeSourcery
2007Q3 tool chain (GCC 4.2.1) supports both the "armv7a" and "armv7-a"
values for -march, while the newer ones (GCC 4.3.1) build with OE only
support the "armv7-a" value for -march.

In order to be compatible with newer tool chains I would therefore recommend
to make the change as suggested previously by Maxime. What is the official
procedure for making xloader changes? Can I directly update the
git-repository? Any policy for rolling the version number?

Best regards and thanks
  Søren