Skip to main content

meet problem: porting phoneME to OMAP3530

2 replies [Last post]
luofuchong
Offline
Joined: 2009-04-28

Hi all,

I am a newer to phoneMe, and i try my best to porting phoneME to OMAP3530, but when i compile, i meet some problems?and i hope to get some help from you, thanks.

1 environment
1) ubuntu 8.04
2) phoneME get from svn
3) jdk1.6.0_13
4) arm-none-linux-gnueabi(2007q3)

2 build
1)build script:

build-phoneme.sh
**********************************************************************************************
#!/bin/bash

#==========================================================
# Figure out which component to build for which platform
#==========================================================
COMPONENT="none"
TARGET_PLATFORM="i386"
#CROSS_COMPILE=arm-none-linux-gnueabi-

if [ $# -gt 0 ]
then
COMPONENT=$1
fi

if [ $# -eq 2 ]
then
TARGET_PLATFORM=$2
fi

#==========================================================
# Setup some environment variables and create dirs.
#==========================================================
export MEHOME=${HOME}/work/svn/phoneME
export LOG=$MEHOME/log.txt
export BUILD_OUTPUT_DIR=$MEHOME/build-$TARGET_PLATFORM
export JDK_DIR=${HOME}/work/java/jdk1.6.0_13
#export GNU_TOOLS_DIR=${HOME}/work/toolchain/CodeSourcery/Sourcery_G++_Lite/arm-none-linux-gnueabi

if [ "$TARGET_PLATFORM" = "arm" ]
then
echo
echo "Building for ARM"
echo
export PCSL_PLATFORM=linux_arm_gcc
export GNU_TOOLS_DIR=${HOME}/work/toolchain/CodeSourcery/Sourcery_G++_Lite/arm-none-linux-gnueabi
CROSS_COMPILE=arm-none-linux-gnueabi-
else
echo
echo "Building for i386"
echo
export PCSL_PLATFORM=linux_i386_gcc
export GNU_TOOLS_DIR=/usr
CROSS_COMPILE=
fi

if ! [ -d $BUILD_OUTPUT_DIR ]
then
mkdir $BUILD_OUTPUT_DIR
fi

#==========================================================
# Build PCSL
#==========================================================
if [ "$COMPONENT" = "pcsl" ]
then
export PCSL_OUTPUT_DIR=$BUILD_OUTPUT_DIR/pcsl
cd $MEHOME/pcsl

if [ "$TARGET_PLATFORM" = "i386" ]
then
make NETWORK_MODULE=bsd/generic
else
make NETWORK_MODULE=bsd/generic \
CC='$(CROSS_COMPILE)gcc' \
CPP='$(CROSS_COMPILE)g++' \
AR='$(CROSS_COMPILE)ar cqs' \
LD='$(CROSS_COMPILE)ld'
fi
fi

#==========================================================
# Build PCSL documentation
#==========================================================
if [ "$COMPONENT" = "pcsl-doc" ]
then
cd $MEHOME/pcsl &&\
make doc
fi

#==========================================================
# Build CLDC
#==========================================================
if [ "$COMPONENT" = "cldc" ]
then
export JVMWorkSpace=$MEHOME/cldc
export JVMBuildSpace=$BUILD_OUTPUT_DIR/cldc

if [ "$TARGET_PLATFORM" = "i386" ]
then
cd $JVMWorkSpace/build/linux_i386
make ENABLE_PCSL=true \
ENABLE_ARM_V7=true \
PCSL_OUTPUT_DIR=$BUILD_OUTPUT_DIR/pcsl \
ENABLE_ISOLATES=true
else
cd $JVMWorkSpace/build/linux_arm
make ENABLE_PCSL=true \
PCSL_OUTPUT_DIR=$BUILD_OUTPUT_DIR/pcsl \
CC='$(CROSS_COMPILE)gcc' \
CPP='$(CROSS_COMPILE)g++' \
AR='$(CROSS_COMPILE)ar cqs' \
LD='$(CROSS_COMPILE)ld'
fi
fi

#==========================================================
# Build CLDC documentation
#==========================================================
if [ "$COMPONENT" = "cldc-doc" ]
then
export JVMWorkSpace=$MEHOME/cldc
cd $JVMWorkSpace/build/linux_i386
make docs_html
fi

#==========================================================
# Build MIDP
#==========================================================
if [ "$COMPONENT" = "midp" ]
then
export MIDP_OUTPUT_DIR=$BUILD_OUTPUT_DIR/midp

if [ "$TARGET_PLATFORM" = "i386" ]
then
cd $MEHOME/midp/build/linux_fb_gcc
make PCSL_OUTPUT_DIR=$BUILD_OUTPUT_DIR/pcsl \
CLDC_DIST_DIR=$BUILD_OUTPUT_DIR/cldc/linux_i386/dist \
TOOLS_DIR=$MEHOME/tools \
TARGET_CPU=i386 \
USE_MULTIPLE_ISOLATES=true
else
make PCSL_OUTPUT_DIR=$BUILD_OUTPUT_DIR/pcsl CLDC_DIST_DIR=$BUILD_OUTPUT_DIR/cldc/linux_arm/dist TOOLS_DIR=$MEHOME/tools TARGET_CPU=arm USE_MULTIPLE_ISOLATES=true CC='$(CROSS_COMPILE)gcc' CPP='$(CROSS_COMPILE)g++' AR='$(CROSS_COMPILE)ar cqs' LD='$(CROSS_COMPILE)ld'
fi
fi

echo
echo "======================================"
echo "FINISHED"
echo
***********************************************************************************************

2)build command
$ ./build-phoneme.sh pcsl arm
$ ./build-phoneme.sh cldc arm

3 Error

luofc@LINUXSERVER:phoneME$ ./build-phoneme.sh cldc arm

Building for ARM

==================================
JVMBuildSpace = /home/luofc/work/svn/phoneME/build-arm/cldc
JVMWorkSpace = /home/luofc/work/svn/phoneME/cldc
ROMIZING = true
SHELL = /bin/sh
ENABLE_ISOLATES =
ENABLE_MONET =
==================================
==============================
creating build tools...
==============================
make[1]: Entering directory `/home/luofc/work/svn/phoneME/build-arm/cldc/linux_arm/tools'
make[1]: Nothing to be done for `default'.
make[1]: Leaving directory `/home/luofc/work/svn/phoneME/build-arm/cldc/linux_arm/tools'
done
==============================
creating ASM loop generator in debug mode
build flags: NO_DEBUG_SYMBOLS=true
==============================
make[1]: Entering directory `/home/luofc/work/svn/phoneME/build-arm/cldc/linux_arm/loopgen/app'
make[1]: Nothing to be done for `dependencies'.
make[1]: Leaving directory `/home/luofc/work/svn/phoneME/build-arm/cldc/linux_arm/loopgen/app'
make[1]: Entering directory `/home/luofc/work/svn/phoneME/build-arm/cldc/linux_arm/loopgen/app'
make[1]: Leaving directory `/home/luofc/work/svn/phoneME/build-arm/cldc/linux_arm/loopgen/app'
done
==============================
creating ROM generator in debug mode
build flags: NO_DEBUG_SYMBOLS=true
==============================
make[1]: Entering directory `/home/luofc/work/svn/phoneME/build-arm/cldc/linux_arm/romgen/app'
make[1]: Nothing to be done for `dependencies'.
make[1]: Leaving directory `/home/luofc/work/svn/phoneME/build-arm/cldc/linux_arm/romgen/app'
make[1]: Entering directory `/home/luofc/work/svn/phoneME/build-arm/cldc/linux_arm/romgen/app'
make[1]: Leaving directory `/home/luofc/work/svn/phoneME/build-arm/cldc/linux_arm/romgen/app'
done
==============================
starting DEBUG build
==============================
make[1]: Entering directory `/home/luofc/work/svn/phoneME/build-arm/cldc/linux_arm/target/debug'
make[1]: Nothing to be done for `dependencies'.
make[1]: Leaving directory `/home/luofc/work/svn/phoneME/build-arm/cldc/linux_arm/target/debug'
make[1]: Entering directory `/home/luofc/work/svn/phoneME/build-arm/cldc/linux_arm/target/debug'
==================================================
GNU_TOOLS_DIR = /home/luofc/work/toolchain/CodeSourcery/Sourcery_G++_Lite/arm-none-linux-gnueabi
==================================================
... _MergedSrc001.cpp
{standard input}: Assembler messages:
{standard input}:29: Error: suffix or operands invalid for `mov'
{standard input}:83275: Error: no such instruction: `swi 0x9f0001'
{standard input}:84155: Error: no such instruction: `swi 0x9f0001'
{standard input}:84167: Error: no such instruction: `swi 0x9f0001'
{standard input}:84193: Error: no such instruction: `swi 0x9f0001'
{standard input}:84687: Error: no such instruction: `swi 0x9f0001'
{standard input}:84718: Error: no such instruction: `swi 0x9f0001'
{standard input}:84882: Error: no such instruction: `swi 0x9f0001'
{standard input}:84945: Error: no such instruction: `swi 0x9f0001'
{standard input}:84965: Error: no such instruction: `swi 0x9f0001'
{standard input}:85279: Error: no such instruction: `swi 0x9f0001'
make[1]: *** [_MergedSrc001.o] Error 1
make[1]: Leaving directory `/home/luofc/work/svn/phoneME/build-arm/cldc/linux_arm/target/debug'
make: *** [_debug] Error 2

======================================
FINISHED

anyone can tell me what's wrong and how to fix it,thank!
sorry for my pool english and hope for your help soon.

Message was edited by: luofuchong

Message was edited by: luofuchong

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
atalanta0505
Offline
Joined: 2009-03-06

Hi, I think I used your makefile shell script posted on your blog, is the same...

atalanta0505
Offline
Joined: 2009-03-06

OMG...I have the exactly same problem...may cause by this makefile shell script?
Dunno...I tried port feature onto MIPS32 platform, there was aslo the assembler message...I tried on arm, also got quite like problem...

Message was edited by: atalanta0505