The Source for Java Technology Collaboration


Nokia 770/ARM

MR1 and MR2 can be build with Foundation Profile for the 770.

building

The following steps provide an easy way for maemo developers to build phoneME for the Nokia 770. It is assumed you follow the referenced documentation closely.

1. Add the following line to your /etc/apt/sources.list on your Debian (stable) or Ubuntu box.

deb http://scratchbox.org/download/files/sbox-releases/0.9.8/deb/ ./
and run
apt-get update
as root.

2. Install the packages corresponding to the instructions for setting up the maemo development environment found in the Maemo 2.1. tutorial.

3. Don't enter the scratchbox environment (exit if you did) for the following steps. They all have to be performed outside of scratchbox! Maybe this can be changed if anybody finds out how to use the J2SDK1?.4.2 inside of scratchbox. (This should be possible with more recent versions of scratchbox which are announced to be available by end of January.)

4. Install J2SDK1?.4.2.

5. Download the phoneME Advanced MR1 source bundle and extract it.

6. Change into the build dir of the extracted source bundle, create a new build dir for the 770 and copy a makefile as template into it

cd phoneme-advanced-mr1/build
mkdir linux-arm-maemo
cp linux-arm-familiar/GNUmakefile linux-arm-maemo
cd linux-arm-maemo

7. Change the makefile with an editor. Add the line

CVM_TARGET_TOOLS_PREFIX = /scratchbox/compilers/cs2005q3.2-glibc-arm/bin/arm-linux-
to tell the build process where your scratchbox toolchain for ARM is located. Comment out the line
CC_ARCH_FLAGS           = -mcpu=strongarm110
The toolchain in scratchbox seems to be usable without that flag for the 770.

8. If using MR1 source, apply this patch, or you will see a hang or crash.

9. Now you build the CDC with

make >& build.log
add support for the Foundation Profile by
J2ME_CLASSLIB=foundation make >& build-FP.log

10. Now you can build an installable tarball with

make bin >& build-bin.log

Most of this steps are described in the cdc_build_system.pdf!

download

Usable builds of MR1 for the Nokia 770 can be found here. Currently they don't provide any GUI capabilities. These builds are the result of the previously described step 9. of the build instructions.

install

  1. Copy the tarball onto your 770.
  2. Open the xterm for the following steps.
  3. Extract the tarball into a new directory on the 770. (Don't use the memory card for that - binaries there can't be executed there!)
  4. Change into the new dir and run "> bin/cvm -cp testcalsses.zip Test" to test the build as described in section 4.11 of the cdc_build_system.pdf.

TODO

  • investigate what has to be done to get GUI support with GTK+/hildon (PBP and PP) (a first discussion can be found in the forum)
  • JSR 82 (support for bluetooth) - the Nokia 770 supports bluetooth through Bluez

Update

-- Main.jonek - 13 Feb 2007

Topic PhoneMEAdvancedPlatformsNokia770 . { Edit | Ref-By | Printable | Diffs r7 < r6 < r5 < r4 < r3 | More }
 XML java.net RSS

Revision r7 - 19 May 2007 - 16:22:26 - Main.jonek
Parents: WebHome > PhoneMEAdvanced