[Avrora] Compiling Avrora
ibrahim1711973 at yahoo.com
Sun Feb 15 22:38:59 PST 2009
if you run windows ,
you should have downloaded this:
you have vmware player installed.
extract the content of the tar.gz in some folder and
then open the .vmx file in that folder with wmware player.
you might run avrora directly from any terminal if you have java installed,but you still need to build your code and use avr-objdump to do that.
download the vmware xubuntos image here http://sing.stanford.edu/tinyos/dists/xubuntos-2.0-vm.tar.gz
unpack it somewhere open vmware player, choose open a virtual machine select the xubuntos virtual machine as shown in the image here http://docs.tinyos.net/index.php/Running_a_XubunTOS_Virtual_Machine_Image_in_VMware_Player#Running_XubunTOS_in_Linux_VMware_Player
please note that the second link referes to a linux system, but it shouldn't
change much if you skip to the selection of the virtual machine.
Download and install vmware (server or player) Download the Xubuntos vmware image Run the vmware image with vmware (this means booting a virtual linux os inside your windows or linux installation, if you
are not familiar with virtualization) Use the username "xubuntos" and password "tinyos" to log in the vmware
xubuntos the default is tinyos-2. you may use it .
also in more details:
1. Download and install vmware ( server or player ).
2. Download the Xubuntos vmware image (tinyos-1.x,tinyos-2.x).
3. Run the vmware image with the vmware ( booting a virtual linux os inside your windows or linux installation , if you do not want to install linux in your pc ).
4. Use the username “xubuntos”and password “tinyos” to log in the vmware xubuntos , the default operating system for sensor node is tinyos-2.x that can be used and it is recommended or can edit the .bash_tos file in the home folder of the xubuntos user to switch to tinyos-1.x operating system .
5. Download and run avrora (from the vmware xubuntos installatin ) by just opening a terminal in the folder that you saved the jar in , and typing “ java –jar avrora ……..: “see below” or in avrora docs .
6. If your code is written in other programming language than Atmel Assembler syntax ,GNU assembler syntax(.asm, .s ,od ) you can change it to this format since avrora can not directly load ELF or SREC images , therefore binary programs in those formats must be converted to a textual format with avr-obidump.
$avr-gcc –o file.elf –mmcu=atmega128 file.c
$avr-objdump –zhD file.elf > file.od
To run our algorithms files (founded in the appendix ) and finding energy consumption we run this command from the bash terminal :
$cd opt/tinyos-2.x/apps/your file
$avr-objdump –zhD build/mica2/main.exe > your file
$java –jar avrora.jar –platform=mica2 –second=1000 –monitors=energy your file.od
[note: avrora is the name of the .jar file which is avrora-beta-1.104.jar ,the one you download][second is the simulation time ][file name is the algorithm you want to test ].
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Avrora