Dear András.

Thanks for you answer.

I'm trying to cross compile the blip on a mote telosb from a sheevaplug
(based on ARM). With this command:

root@debian:/opt/tinyos-2.1.1/apps/IPBaseStation# make telosb blip

But finally I am obtaining this error message.

mkdir -p build/telosb
    compiling BaseStationC to a telosb binary
ncc -o build/telosb/main.exe  -Os -O -DPACKET_LINK -DDEF_MEMCPY
-DENABLE_SPI0_DMA -DBLIP_MULTICAST -DCC2420_HW_ACKNOWLEDGEMENTS
-DTOSH_DATA_LENGTH=102 -I/opt/tinyos-2.1.1/tos/lib/net/
-I/opt/tinyos-2.1.1/support/sdk/c/blip/lib6lowpan/
-I/opt/tinyos-2.1.1/support/sdk/c/blip/libtcp/
-I/opt/tinyos-2.1.1/tos/lib/net/blip/
-I/opt/tinyos-2.1.1/tos/lib/net/blip/interfaces/ 
-I/opt/tinyos-2.1.1/tos/lib/net/blip/nwprog/
-I/opt/tinyos-2.1.1/tos/lib/net/blip/shell/
-I/opt/tinyos-2.1.1/tos/lib/net/blip/serial/
-I/opt/tinyos-2.1.1/tos/lib/net/blip/platform/
/opt/tinyos-2.1.1/support/sdk/c/blip/lib6lowpan/lib6lowpan.c 
/opt/tinyos-2.1.1/support/sdk/c/blip/lib6lowpan/lib6lowpanIP.c
/opt/tinyos-2.1.1/support/sdk/c/blip/lib6lowpan/lib6lowpanFrag.c
/opt/tinyos-2.1.1/support/sdk/c/blip/lib6lowpan/in_cksum.c
/opt/tinyos-2.1.1/support/sdk/c/blip/lib6lowpan/ip_malloc.c
/opt/tinyos-2.1.1/tos/lib/net/blip/table.c -mdisable-hwmul
-fnesc-separator=__ -Wall -Wshadow -Wnesc-all -target=telosb
-fnesc-cfile=build/telosb/app.c -board= -DDEFINED_TOS_AM_GROUP=0x22
-DNO_IP_MALLOC  -DIEEE154FRAMES_ENABLED -DIDENT_APPNAME=\"BaseStationC\"
-DIDENT_USERNAME=\"root\" -DIDENT_HOSTNAME=\"debian\"
-DIDENT_USERHASH=0x0dbc5c03L -DIDENT_TIMESTAMP=0x4f8fe7b4L
-DIDENT_UIDHASH=0xdfde0b6dL  BaseStationC.nc -lm
Couldn't execute msp430-gcc
make: *** [exe0] Error 2

Yours faithfully,

Alejandro.




> Hi Alejandro,
>
> If you only want to use the tinyos java tools, it's possible to
> compile the getenv/tosserial on ARM (tested on a Crossbow netbridge,
> which is a Linksys  NSLU2):
> -install JDK
> -check out the tinyos-svn
> -go to /tools/tinyos/java/env
> -compile getenv:
> gcc  -I$(JDK)/include/linux" "-I$(JDK)/include" -shared -fpic
> net_tinyos_util_Env.c -o libgetenv.so
> -go to /tools/tinyos/java/serial
> -compile toscomm:
> gcc -O1 -shared -fPIC "-I$(JDK)/include" "-I$(JDK)/include/linux"
> NativeSerial_linux.cpp -o libtoscomm.so
> (you could probably also use -O2 -s on both of these commands to
> reduce to size of the libs, but these are the original commands from
> the Makefile)
> -copy both .so files where your JRE can see them (e.g. on my computer
> it's /opt/java/jre/lib/amd64)
>
> It's probably also possible to recompile nesc and gcc toolchain on
> ARM, but I didn't need them.
>
> By the way: If anyone's intrested, I can add these to tinyos.jar
> (which already includes and autoloads them on some platforms). I also
> generated successfully the modules for win64 with mingw-w64 on cygwin,
> but unfortunatly toscomm didn't compile without -static, therefore
> it's quite big.
>
> Andris
>
>
> On Tue, Apr 17, 2012 at 9:53 PM,  <[email protected]> wrote:
>> Dear Erick.
>>
>> Thanks for you answer.
>>
>> Yes is for ARM architecture...
>>
>> But do you know about another solution in this cases?
>>
>> Thanks in advance.
>>
>> Alejandro.
>>
>>> what's armel?   I believe it is ARM based.   So isn't supported by
>>> TinyProd.
>>>
>>> TinyProd only provides cross compiler toolchains for AVR and MSP430.  
>>> The
>>> host architecture provided is only i386 and amd64.
>>>
>>>
>>> On Mon, Apr 16, 2012 at 3:00 AM, Alex FP <[email protected]> wrote:
>>>
>>>> Dear all.
>>>>
>>>> I've added this in the sourcelist of my sheevaplug (with debian lenny)
>>>>
>>>>   deb http://tinyprod.net/repos/debian squeeze main
>>>>
>>>>
>>>> But when I do the "aptitude update" this error appears
>>>>
>>>>
>>>> Err http://tinyprod.net squeeze/main armel Packages
>>>>   404  Not Found
>>>>
>>>> Please someone have any idea about how to fix it?
>>>>
>>>> Thanks in advance,
>>>>
>>>> Alex.
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Tinyos-help mailing list
>>>> [email protected]
>>>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>>>
>>>
>>>
>>>
>>> --
>>> Eric B. Decker
>>> Senior (over 50 :-) Researcher
>>> _______________________________________________
>>> Tinyos-help mailing list
>>> [email protected]
>>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>>
>> _______________________________________________
>> Tinyos-help mailing list
>> [email protected]
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>


_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to