Hi,

install java
using aptitude, simply type / to search for the kaffe package. press + to cue 
for installation.

check for successful install of java:

[EMAIL PROTECTED]:~$ java
usage: kaffe [-options] class
Options are:
        -help                    Print this message
        -version                 Print version number
...snip

So it looks like java is installed and according to the website, avrora should 
run. However, it fails to run.

kaffe is then removed and the sun java is installed following instructions 
here...
http://www.debian-administration.org/articles/142

once you get the java package from sun installed, test it like so:

[EMAIL PROTECTED]:~$ java -version
java version "1.5.0_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05)
Java HotSpot(TM) Client VM (build 1.5.0_05-b05, mixed mode, sharing)
[EMAIL PROTECTED]:~$

then you can proceed to running the avrora (I put all the demo programs under 
the avora* directory):

[EMAIL PROTECTED]:~/linuxtooling/foundry/avrora-beta-1.6.0$ ls
avrora-beta-1.6.0.jar      bin       doc                        LICENSE   
simple.c   src
avrora-src-beta-1.6.0.zip  blink.od  java-package_0.24_all.deb  Makefile  
simple.od
[EMAIL PROTECTED]:~/linuxtooling/foundry/avrora-beta-1.6.0$ java -jar 
avrora-beta-1.6.0.jar simple.od
Avrora [Beta 1.6.0] - (c) 2003-2005 UCLA Compilers Group

This simulator and analysis tool is provided with absolutely no warranty,
either expressed or implied. It is provided to you with the hope that it be
useful for evaluation of and experimentation with microcontroller and sensor
network programs. For more information about the license that this software is
provided to you under, specify the "license" option.

Loading simple.od...[OK: 1.827 seconds]
=={ Simulation events }=======================================================
Node          Time   Event
------------------------------------------------------------------------------
==============================================================================
Simulated time: 166 cycles
Time for simulation: 1.223 seconds
Total throughput: 1.3573181E-4 mhz
[EMAIL PROTECTED]:~/linuxtooling/foundry/avrora-beta-1.6.0$

next, setup the gdb for avr. you can get the package here...
http://packages.debian.org/stable/devel/gdb-avr

now just follow the instructions on the website to connect avrora and gdb

[EMAIL PROTECTED]:~/linuxtooling/foundry/avrora-beta-1.6.0$ 
$HOME/linuxtooling/bin/avr-gcc-3.4.4 -mmcu=atmega128 -ggdb -o simple.elf 
simple.c
[EMAIL PROTECTED]:~/linuxtooling/foundry/avrora-beta-1.6.0$ ls
avrora-beta-1.6.0.jar      bin       doc                        LICENSE   
simple.c    simple.od
avrora-src-beta-1.6.0.zip  blink.od  java-package_0.24_all.deb  Makefile  
simple.elf  src
[EMAIL PROTECTED]:~/linuxtooling/foundry/avrora-beta-1.6.0$ gdb simple.elf
GNU gdb 6.3-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-linux"...Using host libthread_db library 
"/lib/libthread_db.so.1".

(gdb) target remote :10001
Remote debugging using :10001
0x00000000 in __vectors ()
(gdb)

then close the gdb shell to see this on the avora shell...

[EMAIL PROTECTED]:~/linuxtooling/foundry/avrora-beta-1.6.0$ java -jar 
avrora*.jar -monitors=gdb simple.od Avrora [Beta 1.6.0] - (c) 2003-2005 UCLA 
Compilers Group

This simulator and analysis tool is provided with absolutely no warranty,
either expressed or implied. It is provided to you with the hope that it be
useful for evaluation of and experimentation with microcontroller and sensor
network programs. For more information about the license that this software is
provided to you under, specify the "license" option.

Loading simple.od...[OK: 2.409 seconds]
=={ Simulation events }=======================================================
Node          Time   Event
------------------------------------------------------------------------------
GDBServer listening on port 10001...
GDBServer: killed remotely
==============================================================================
Simulated time: 3 cycles
Time for simulation: 612.628 seconds
Total throughput: 4.8969357E-9 mhz
=={ Monitors for node 0 }=====================================================
[EMAIL PROTECTED]:~/linuxtooling/foundry/avrora-beta-1.6.0$

-- 
Patrick Blanchard


_______________________________________________
AVR-GCC-list mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to