[okl4-developer] big endian toolchain for gumstix

Ashish Bijlani ashish.bijlani at gmail.com
Thu Aug 21 12:04:53 EST 2008


Hello,

I'm trying to simulate gumstix platform on skyeye. I'm using prebuilt
gcc-3.4.4-glibc-2.3.5 from nicta website. however, it seems the
toolchain has been compiled for little endian systems and produces a
little endian okl4 bootable images under "build/images". the
image.boot file is little endian and doesn't boot on skyeye. i observe
the same problem as described at
http://lists.okl4.org/pipermail/developer/2008-June/001280.html.

With the prebuilt arm-linux toolchain from nicta, if I pass the flags
below to Xscale in "arch/arm/tools/machines.py", it fails linking
kernel

    c_flags = arm.c_flags + ["-mbig-endian"]
    as_flags = ["-mbig-endian"]
    link_flags = ["-EB"]

[LIB ] build/pistachio/lib/libplatform.a
[LINK] build/pistachio/bin/kernel
/opt/nicta/tools/gcc-3.4.4-glibc-2.3.5/arm-linux/bin/arm-linux-ld:
/opt/nicta/tools/gcc-3.4.4-glibc-2.3.5/arm-linux/bin/../lib/gcc/arm-linux/3.4.4/libgcc.a(_udivsi3.oS):
compiled for a little endian system and target is big endian
/opt/nicta/tools/gcc-3.4.4-glibc-2.3.5/arm-linux/bin/arm-linux-ld:
failed to merge target specific data of file
/opt/nicta/tools/gcc-3.4.4-glibc-2.3.5/arm-linux/bin/../lib/gcc/arm-linux/3.4.4/libgcc.a(_udivsi3.oS)

Am I missing something? Am I not suppose to pass the big endian flags
to xscale? Is the prebuilt toolchain indeed for little endians only?
where can i download toolchain for big endian system from? Please
help.



More information about the Developer mailing list