Re: [kaffe] how to porting kaffe to a ebedded linux?

2005-09-27 Thread Gianluca Moro

--- muzzi [EMAIL PROTECTED] wrote:

 thank you for you email:)
  
 your embedded cpu is amd Au1XXX series with mips core?
 the core with or without mmu?
 have you modified the kaffe's configurations files by hand?
 

Hi,

I'm working on a AU1100, with MMU; from the datasheet:

The Au1100™ processor is a complete SOC based on the MIPS32™
instruction set.
Designed for maximum performance at very low power, the Au1100 runs up
to 500 MHz.
Power dissipation is less than 0.25 watt for the 400 MHz version.
Highly integrated with onchip
SDRAM, SRAM/Flash EPROM memory controllers, a LCD controller, 10/100
Ethernet
Controller, USB Host and Device, UARTs (3), and GPIOs (up to 48,24
dedicated). The
Au1100 processor runs a variety of operating systems, including
Windows® CE.NET, Linux
and VxWorks. Moreover, the integration of peripherals with the unique,
high performance,
MIPS-compatible core provides low system cost, small form factor, low
system power
requirement, simple designs at multiple performance points and thus,
short design cycles.


For the configuration it was not very direct:

I compiled kaffe on PC

# ./configure --with-engine=intrp --enable-pure-java-math --without-esd
--without-kaffe-x-awt --with-kaffe-nanox-awt
--without-classpath-gtk-awt

then I changed
/home/giammy/working/kaffe-1.1.6/libraries/javalib/Makefile
uncommenting the line:

#MAYBE_PEERLESS_KAFFE_AWT = awt-implementations

and gave the make.

Then I copied

libraries/javalib/rt.jar on the AMD built tree of kaffe (same place)

and copied

/home/giammy/working/kaffe-1.1.5/libraries/javalib/awt-implementations/kaffe/kaffeawt.jar

on AMD /home/AMDgiammy/kaffe-1.1.5/kaffeawt.jar

Then I configure the AMD kaffe:

./configure --with-jikes=no --with-engine=intrp 
--enable-pure-java-math --without-esd --without-kaffe-x-awt
--with-kaffe-nanox-awt
--with-rt-jar=/home/AMDgiammy/kaffe-1.1.5/libraries/javalib/rt.jar
--without-classpath-gtk-awt

Removed from file kaffe-1.1.5/Makefile
the raw

 libraries/javalib \

and changed in the file
kaffe-1.1.6/libraries/Makefile the raw

from
SUBDIRS = clib javalib extensions
to
SUBDIRS = clib extensions

and finally started the make




--
Gianluca Moro Visit  http://ilpinguino.altervista.org/
[EMAIL PROTECTED]  MyBlog http://blog.libero.it/giangiammy/



__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] Kaffe compilation with Nano-X awt interface (bug?)

2005-09-27 Thread Gianluca Moro
Hi all,

first of all my thanks to Dalibor for his help
in compiling kaffe on a MIPS platfor with Nano-X.

I could compile and run kaffe-1.1.6 using the Nano-X
awt interface with Dalibor help.

The problem I found was a 

java.lang.ExceptionInInitializerError
caused by: java.lang.NullPointerException
   at java.awt.Toolkit.fntInitFont (Toolkit.java:native)

Looking at the code, it seems that the function which initializa
the fonts return an id (an integer, i think) while the nativeData
field is declared as Pointer.

I think that this gives the exception.

I checked kaffe-1.1.5 and I saw tha nativeData was declared as Ptr:
compiling kaffe-1.1.5 and followinf the same steps I followed for
1.1.6,
I got a runnable kaffe which gave no exceptions.

Do I missed something? there's a reason why that field type
was changed?

Anyway, now kaffe starts correctly, with no errors, but I
see no output on my LCD

My command line is:

nano-X  nanowm  /usr/local/kaffe/bin/kaffe
-Dkaffe.awt.nativelib=nanoxawt
-Xbootclasspath/p:/home/AMDgiammy/kaffeawt.jar Hello

I see nanowm background but nothing else.

if I start another program, for example nxterm, I see it
correctly on the LCD.

There some option to give to kaffe to specify the output screen?

many thanks
giammy







--
Gianluca Moro Visit  http://ilpinguino.altervista.org/
[EMAIL PROTECTED]  MyBlog http://blog.libero.it/giangiammy/



__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe