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