MR1 and MR2 can be build for the 770. MR2 still has problems when started on 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 upate
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 the line
CC_ARCH_FLAGS = -mcpu=strongarm110
The toolchain in scratchbox seems to be usable without that flag for the 770.
8. Now you build the CDC with
make >& build.log
add support for the Foundation Profile by
J2ME_CLASSLIB=foundation make >& build-FP.log
9. 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
- Copy the tarball onto your 770.
- Open the xterm.
- Extract the tarball into a new directory on the 770. (Don't use the memory card for that - binaries there can't be executed!)
- 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
- fix MR2 build for the 770
- investigate what has to be done to get GUI support with GTK+/hildon (PBP and PP)
- JSR 82 (support for bluetooth) - the Nokia 770 supports bluetooth through Bluez
-- Main.jonek - 11 Jan 2007 |