The Source for Java Technology Collaboration

Home » java.net Forums » Phone ME » phoneME Advanced software

Thread: Which JVM should I use on linux/arm926 platform?

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
This question is answered. Helpful answers available: 2. Correct answers available: 1.

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 19 - Last Post: Dec 7, 2007 8:07 AM by: drwatts Threads: [ Previous | Next ]
feng_tian

Posts: 35
Which JVM should I use on linux/arm926 platform?
Posted: Sep 20, 2007 6:09 AM
 
  Click to reply to this thread Reply

We need a JVM on the linux/arm926ej-s(Atmel AT91SM9260 platform) platform, and the JVM must be based on CDC not CLDC.
Which JVM should I use, I found that PhoneMe Advanced suports this, but it doesn't declare that it can run on a linux/arm platform.
Does anyone have the experience in this area, thanks.

mlam

Posts: 44
Re: Which JVM should I use on linux/arm926 platform?
Posted: Sep 20, 2007 8:05 AM   in response to: feng_tian
 
  Click to reply to this thread Reply

PhoneME Advanced is exactly what you want. It does run on linux/ARM platforms. Depending on your board/OS configuration you may need to change some settings for endianness, ABI, etc. to suit your board if its configuration does not match the default. Other than that, it should just work. -- Mark

feng_tian

Posts: 35
Re: Which JVM should I use on linux/arm926 platform?
Posted: Sep 20, 2007 6:10 PM   in response to: mlam
 
  Click to reply to this thread Reply

Thank you very much, but I found that PhoneMe Advanced MR2 doesn't support Linux/Arm
according to platform info. in https://phoneme.dev.java.net/content/phoneme_advanced_r2.html
I think I should use MR1, right?
We also have a bluetooth device, does MR1 also supports this?
Thanks In advance.

lua2010

Posts: 21
Re: Which JVM should I use on linux/arm926 platform?
Posted: Sep 20, 2007 2:47 PM   in response to: feng_tian
 
  Click to reply to this thread Reply

recently, I have switched to the AT91SM9260 platform (from EP9302). A first, short test (bin/cvm -cp testclasses.zip Test) of the CDC-Foundation Profile ran successfully. On my EP9302 board PhonemeAdvanced runs perfectly.

Andreas

feng_tian

Posts: 35
Re: Which JVM should I use on linux/arm926 platform?
Posted: Sep 20, 2007 6:13 PM   in response to: lua2010
 
  Click to reply to this thread Reply

Wow, cool. That's exactly what we are working on. I think we can share some experiences on this. Our platform is gonna support bluetooth, gps, etc.
Thank you very much.

cjplummer

Posts: 343
Re: Which JVM should I use on linux/arm926 platform?
Posted: Sep 20, 2007 7:16 PM   in response to: feng_tian
 
  Click to reply to this thread Reply

MR2 will run on linux/ARM. I think what that page is referring to is that for MR2 most testing effort was on linux/x86, but the code continues to run on linux/ARM.

Chris

feng_tian

Posts: 35
Re: Which JVM should I use on linux/arm926 platform?
Posted: Oct 9, 2007 12:53 AM   in response to: lua2010
 
  Click to reply to this thread Reply

Hey, I'm tring to build PhoneMe advanced now, and want't to run it on 9260EK board.
Which src bundle did you use?
Which build directory did you use, there are
/cdc/build/linux-arm-familia
/cdc/build/linux-arm-generic
/cdc/build/linux-arm-strongarm
/cdc/build/linux-arm-thumb
......
Which one should I use then, thanks

BR
Feng

cjplummer

Posts: 343
Re: Which JVM should I use on linux/arm926 platform?
Posted: Oct 9, 2007 7:29 AM   in response to: feng_tian
 
  Click to reply to this thread Reply

Start with linux-arm-generic, but read through the comments in the GNUmakefile and see if there are any makefile variables you need to set. At the very least you'll need to set CVM_TARGET_TOOLS_PREFIX to point to your cross tools.

Chris

lua2010

Posts: 21
Re: Which JVM should I use on linux/arm926 platform?
Posted: Oct 10, 2007 12:16 AM   in response to: feng_tian
 
  Click to reply to this thread Reply

Hi Feng,

i used the latest from the repository
https://phoneme.dev.java.net/svn/phoneme/components/cdc/trunk

i use my own build directory linux-arm-at91sam9260 with a GNUMakefile like the following

JDK_VERSION = jdk1.4.2
JDK_HOME = /usr/java/j2sdk1.4.2_13
CVM_TARGET_TOOLS_PREFIX = /home/linux/kernel/buildroot/build_arm/staging_dir/usr/bin/arm-linux-
ASM_ARCH_FLAGS = -mcpu=arm926ej-s
CC_ARCH_FLAGS = -mcpu=arm926ej-s
CC_ARCH_FLAGS_FDLIB =
CC_ARCH_FLAGS_LOOP =
LINK_ARCH_FLAGS =
LINK_ARCH_LIBS =
include ../share/top.mk


My build options are:

make CVM_JIT=true CVM_TRACE_JIT=true J2ME_CLASSLIB=foundation CVM_DEBUG_CLASSINFO=true CVM_JAVAC_DEBUG=true

hope this helps

Andreas

drwatts

Posts: 3
Re: Which JVM should I use on linux/arm926 platform?
Posted: Nov 29, 2007 11:02 AM   in response to: lua2010
 
  Click to reply to this thread Reply

Andreas,
We are currently using JAMVM and our application has about 18-22 threads. We're running into problems where the threads are not being suspended and managed properly. Does your experience with PhoneME Advanced make you think that threading is working well?
drr

rlougher

Posts: 1
Re: Which JVM should I use on linux/arm926 platform?
Posted: Nov 29, 2007 2:41 PM   in response to: drwatts
 
  Click to reply to this thread Reply

Hi,

Which version of JamVM are you using? Several problems with thread suspension and uClib was fixed in JamVM 1.5.0. If you've tried 1.5.0 and are still seeing problems please submit a bug report. If people don't report bugs I can't fix them!

Rob.

drwatts

Posts: 3
Re: Which JVM should I use on linux/arm926 platform?
Posted: Dec 5, 2007 12:15 PM   in response to: rlougher
 
  Click to reply to this thread Reply

We recently tried v1.5 but it made the problem worse. We're running osgi on JAM VM and build all threads through osgi bundles. We'll go ahead and submit a bug report, but I'm not yet sure this is a JAM VM problem. It may be an osgi problem or even be caused by our code.

drwatts

Posts: 3
Re: Which JVM should I use on linux/arm926 platform?
Posted: Dec 7, 2007 8:07 AM   in response to: drwatts
 
  Click to reply to this thread Reply

I wanted to follow up on this. Turns out the problem was our use of the fixedThreadPool in OSGI. When we switched to cachedThreadPool the problem went away, and by putting JAMVM v1.5 on the system it became much more responsive. Sorry for the misdirect.

lua2010

Posts: 21
Re: Which JVM should I use on linux/arm926 platform?
Posted: Nov 30, 2007 12:46 PM   in response to: drwatts
 
  Click to reply to this thread Reply

Hallo,

No, we have had up to now no problems with threading. Our web server application with approx. 15 threads works well.

Andreas

feng_tian

Posts: 35
Re: Which JVM should I use on linux/arm926 platform?
Posted: Sep 20, 2007 7:52 PM   in response to: feng_tian
 
  Click to reply to this thread Reply

Which one support the linux/arm platform better, MR1 or MR2. Does PhoneMe Advanced supports arm jazelle technology? Thanks.

cjplummer

Posts: 343
Re: Which JVM should I use on linux/arm926 platform?
Posted: Sep 20, 2007 8:05 PM   in response to: feng_tian
 
  Click to reply to this thread Reply

I would say MR2 supports linux/arm better, because we've made some device support improvements based on feedback from the OSS community. These are mostly just minor things like fixing build problems that might turn up on various platforms, but greatly reduce the chances of you running into some sort of device specific build or runtime problem. However, MR1 was fully tested (but only on a Zaurus), and MR2 has had many changes go into it with only minimal testing.

If you want Jazelle support you'll need to talk to our Engineering Services organization since there are legal issues with supplying Jazelle support in OSS.

Chris

feng_tian

Posts: 35
Re: Which JVM should I use on linux/arm926 platform?
Posted: Sep 20, 2007 9:04 PM   in response to: cjplummer
 
  Click to reply to this thread Reply

Ok, thanks.
If I want to get support about Jazelle, do I need to pay royalty?
BTW, how can I get in touch with Your Engineering Services organization.

terrencebarr

Posts: 544
Re: Which JVM should I use on linux/arm926 platform?
Posted: Sep 21, 2007 5:52 AM   in response to: feng_tian
 
  Click to reply to this thread Reply

Hi,

Sun can sell you a license for the Jazelle technology by ARM but it does cost money. You should first consider if you really need Jazelle support. In our experience Jazelle is only really beneficial in certain environments such as very limited memory availability and requirements for very short application start-up times. In most general cases the runtime optimizations (JIT, others) performed by the VM are sufficient or better than Jazelle.

I would suggest you do benchmarking without Jazelle support first to determine whether you really need Jazelle. If you want more information on Jazelle license I can establish that contact for you. Please contact me off-list at evangelist@mobileandembedded.org.

Thanks,

-- Terrence

yyp226

Posts: 1
Re: Which JVM should I use on linux/arm926 platform?
Posted: Sep 21, 2007 6:16 PM   in response to: feng_tian
 
  Click to reply to this thread Reply

I have some puzzle with phoneME and linux/arm , just our ARM need has Jazelle technique
, the phoneME will support ?

linuxhippy

Posts: 646
Re: Which JVM should I use on linux/arm926 platform?
Posted: Sep 23, 2007 10:10 AM   in response to: yyp226
 
  Click to reply to this thread Reply

> I have some puzzle with phoneME and linux/arm , just
> our ARM need has Jazelle technique
> , the phoneME will support ?

What, sorry but even if tried to understand your question its not really clear for me what you would like to know?!
But if you asked wether phoneME does support Jazelle if your arm has one, the answer is no - you have to buy a license.

lg Clemens




 XML java.net RSS