I'l try installing a gnu-arm tool-chain from source and compiling my libraries. I'm running into other problems such as the finished contiki binary being about 250k. <br><br><div class="gmail_quote">On Mon, Dec 7, 2009 at 11:05 AM, Mariano Alvira <span dir="ltr"><<a href="mailto:mar@devl.org">mar@devl.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Mon, Dec 07, 2009 at 09:34:18AM -0500, Camilo, Alex wrote:<br>
> Thanks for the help. I made it to the linker and i got the following errors.<br>
> I don't understand why a library would use hardware floating point. I was under<br>
> the assumption that the arm7tdmi in this chip lacks the requisite coprocessor.<br>
<br>
</div><div class="im">> arm-elf-gcc -T ../../cpu/mc1322x/mc1322x.lds -nostartfiles -static<br>
> -DCONTIKI_TARGET_MC1322X -I. -I../../core -I../../cpu/mc1322x -I../../cpu/<br>
> mc1322x/loader -I../../cpu/mc1322x/dbg-io -I../../platform/mc1322x -DWITH_UIP<br>
> -DWITH_ASCII -DMCK= -Werror -mcpu=arm7tdmi-s -mthumb-interwork -march=armv4t<br>
> -mtune=arm7tdmi-s -DCONFIG_ARM -D__ARM__ -g -Os -DRUN_AS_SYSTEM -DROM_RUN<br>
> -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -DTEXT_BASE=<br>
> 0x00400000 -fno-builtin-printf -fno-builtin-sprintf -I. -I../../platform/<br>
> mc1322x/. -I../../platform/mc1322x/apps -I../../platform/mc1322x/net -I../../<br>
> cpu/mc1322x/. -I../../core/dev -I../../core/lib -I../../core/net -I../../core/<br>
> net/mac -I../../core/net/rime -I../../core/net/routing -I../../core/sys -I../..<br>
> /core/cfs -I../../core/ctk -I../../core/lib/ctk -I../../core/loader -I../../<br>
> core/. -nostartfiles -o hello-world.mc1322x <a href="http://hello-world.co" target="_blank">hello-world.co</a> obj_mc1322x/<br>
> contiki-mc1322x-main.o obj_mc1322x/startup.o obj_mc1322x/symbols.o<br>
> contiki-mc1322x.a contiki-mc1322x.a<br>
> /Users/acamilo/yagarto/yagarto-4.4.2/bin/../lib/gcc/arm-elf/4.4.2/../../../../<br>
> arm-elf/bin/ld: ERROR: /Users/acamilo/yagarto/yagarto-4.4.2/bin/../lib/gcc/<br>
> arm-elf/4.4.2/interwork/libgcc.a(_udivsi3.o) uses hardware FP, whereas<br>
> hello-world.mc1322x uses software FP<br>
<br>
</div>To me this looks like your glibc is using hardware FP. The OE<br>
toolchain builds glibc with "--without-fp"<br>
<br>
from glibc/glibc-package.bbclass:<br>
<br>
def get_glibc_fpu_setting(bb, d):<br>
if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]:<br>
return "--without-fp"<br>
return ""<br>
<br>
<br>
TARGET_FPU is set to soft in mc1322x/conf/machine/mc13224v.conf<br>
<br>
I've never used yagarto. Can you build glibc with --without-fp?<br>
<br>
-Mar.<br>
</blockquote></div><br><br clear="all"><br>-- <br>Alex Camilo<br>1-877-474-6038 ext#703<br>Head of Research and Design at Neuron Robotics, LLC.<br><a href="http://www.neuronrobotics.com">www.neuronrobotics.com</a><br>