The Motorola Development Community


Go Back   MotorolaFans.com Forums > Motorola EZX Phones > E6 General Chat > E6 Applications
Notices

E6 Applications Complied E6 applications

Reply

MotoFans NWBE

Join Date: Apr 2007
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
Quote  
#1
04-15-2007
Default INFO: A1200/E6 cross-compile (by yan0)

From CCMOVE(http://club1.ccmove.com/nclub/topicd...-682222-1.html)

yan0's computer:
Desktop PC: Install Linux; Notebook: WinXP+SP2. Using cable to connect 2 PC to exchange data.

Please install Linux OS first.

Data exchange between Linux and Windows:
1、Linux: Can read/copy files from Windows drivers directly.
2、Windows: Can run the program of "explore2fs-1.08beta9.exe" and access linux ext partition to read/copy files. Just download and run it.
explore2fs-1.08beta9.rar

The files prepare for cross-compile:
release.rar, filesize 124M. Please download first:
Download URL1: Release.rar
Download URL1: Release_yan0.rar

Refer:
1、YouHeng's EZX cross compile setting for E680/i
2、pcs306's first native ezx
3、psysun's source of ezxphoneassist,tbsl,lcdsleep

A1200/E6 cross-compile setting:
Please use WINRAR to extract release.rar on Win2K or XP and get below files:
A1200_lib --include lib.gz,usr_lib.gz
ezx-sdk.tar.gz
Other_lib_headers.gz
qt-2.3.gz
tmake-1.8.tar.gz
xscale-gcc-vfp-3.3.tar.gz

Step on Linux: Please notes difference of upcase and lowcase:
1、login with root
2、Step in GUI:
a. Open root folder, then open "home", create a new folder and name as "mkezx". Open "mkezx" and create new folder of "myfile" to put our source file.
b. Copy these files in the folder of "mkezx": usr_lib.gz,ezx-sdk.tar.gz,Other_lib_headers.gz,qt-2.3.gz,tmake-1.8.tar.gz,xscale-gcc-vfp-3.3.tar.gz
3、Step in terminal(Start-program-accessories-Terminal)
a. Go to the directory of root:cd /
b. Extract xscale-gcc-vfp-3.3.tar.gz:
tar xvzf /home/mkezx/xscale-gcc-vfp-3.3.tar.gz
c. Go to the folder of "mkezx":cd /home/mkezx
d. Extracr below files:
tar xvzf qt-2.3.gz
tar xvzf ezx-sdk.tar.gz
tar xvzf Other_lib_headers.gz
tar xvzf tmake-1.8.tar.gz
tar xvzf usr_lib.gz

Now there are new folder created under /home/mkezx: qt-2.3.6,ezx,other,tmake-1.8,lib,usr. You can delete all files end with "gz" if you like.

4、Step in GUI:
a. copy all files in ezx/include to qt-2.3.6/include;
b. Copy all files in other/include to qt-2.3.6/include;
c. copy all files begined with libezx in usr/lib to qt-2.3.6/lib;
d. Copy all files and all subfolder in usr/lib/ezx/lib to qt-2.3.6/lib.

5、Setup tmake:
a. In tmake-1.8/lib/qws, duplicate the folder of "linux-arm-g++" and name as "linux-e680-g++;
b. In folder of "linux-e680-g++", double click tmake.conf to edit line 53:
Original content:TMAKE_LIBS_QT = -lqte
Revied to:
TMAKE_LIBS_QT = -lezxappsdk -lipp-jp -lezxopenwindow -lipp-miscGen -lezxappbase -lqte-mt -lezxjpeg

Ok, yan0 has followed above steps and can cross-compile below sample program file.

Cross-Compile Our Own Program
Set up enviroment before cross-compile:
export PATH=/usr/local/arm/bin:/home/mkezx/tmake-1.8/bin:$PATH
export QTDIR=/home/mkezx/qt-2.3.6
export TMAKEPATH=/home/mkezx/tmake-1.8/lib/qws/linux-e680-g++
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH

We can save these commands as a file named as "path" and store in myfike folder. Open Termianl, go to myfile folder:cd /home/mkezx/myfile
Run this path file, notes there is a space between 2 ".": . ./path

To better know the compile step, yan0 provide a sample, please download it first:
yan0_file1.rar
Extract under Win2k or Xp to get 3 files: path,test1.cpp,test1. path is the file contain above env setting; test1.cpp is source program, yan0 has written English deSCRIPTion. test1 is compiled from test1.cpp, it can run on A1200/E6 under telnet.

Copy path,test1.cpp to /home/mkezx/myfile。
Open Terminal to go to myfile: cd /home/mkezx/myfile
Run path,notes there is a space between 2 ".": . ./path
Follow below step to compile our program:
progen test1.cpp >test1.pro
tmake test1.pro >Makefile
make
After make, test1 will be created that can be run on A1200/E6.
If revised test1.cpp, just enter make to re-compile. If not change on test1.cpp and need to re-compile, enter "rm -f *.o" then make.

yan0 provided test1.cpp with 3 functins: To display Chinese word; Display a dialog with 3 buttons; Return selected button code; Display a dialog with down count while select Yes.
If delete "//" in line 37 and re-compile, running test1 on phone, select Yes will lead phone to restart.


Phone display after running test1 on phone.

How to display system icon in dialog, yan0 has no way till now.

Running program on Phone:
Phone connect with computer Win2K/XP thru USB mode
On Win2k/XP, open phone folder thru \\192.168.16.2\system, open TF/SD card by open mmc/mmca1, create a new folder and name as test. Copy test1 from computer to the folder of test in phone.
Telnet phone and login with root.
Go to test foler:cd /mmc/mmca1/test
Set up environment:. /home/native/.profile Notes there is space between first "." and "/"
Run test: ./test1 No space in it
Reply With Quote


User Information
louies is offlineReport Post
The Following User Says Thank You to louies For This Useful Post:
singtoester (04-22-2008)
MotoFans XPRT

joaorodrigo's Avatar

Join Date: Apr 2007
Posts: 346
Thanks: 8
Thanked 77 Times in 24 Posts
Quote  
#2
05-21-2007
Default

anyone tried with sucess ?
If yes i will try mfile myself
Reply With Quote


User Information
Current Phone: a1200 Amin´s Extreme -C2 2gb Markvision
joaorodrigo is offlineReport Post
MotoFans MODR

bagus's Avatar

Join Date: May 2007
Posts: 125
Thanks: 0
Thanked 2 Times in 2 Posts
Location: Indonesia

Send a message via Yahoo to bagus
Quote  
#3
05-22-2007
Default

$ make
arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/home/mkezx/qt-2.3.6/include -o test1.o test1.cpp
make: arm-linux-g++: Command not found
make: *** [test1.o] Error 127

Where I can download arm-linux-g++?

And I can't download Releases.rar, I can download Releases_yan0.rar.
__________________
Reply With Quote


User Information
Current Phone: Motorola ROKR E6
Firmware: 08P
Location: Indonesia

bagus is offlineReport Post
MotoFans XPRT

joaorodrigo's Avatar

Join Date: Apr 2007
Posts: 346
Thanks: 8
Thanked 77 Times in 24 Posts
Quote  
#4
05-22-2007
Default

i guess Releases.rar and Releases_yan0.rar are the same
Reply With Quote


User Information
Current Phone: a1200 Amin´s Extreme -C2 2gb Markvision
joaorodrigo is offlineReport Post
MotoFans MODR

bagus's Avatar

Join Date: May 2007
Posts: 125
Thanks: 0
Thanked 2 Times in 2 Posts
Location: Indonesia

Send a message via Yahoo to bagus
Quote  
#5
05-23-2007
Default

Got arm-linux-g++ after compile ezx-crosstool from http://lsb.blogdns.net/ezx-crosstool
Attached Files
File Type: zip arm_linux_g_130.zip (87.3 KB, 168 views)
__________________
Reply With Quote


User Information
Current Phone: Motorola ROKR E6
Firmware: 08P
Location: Indonesia

bagus is offlineReport Post
MotoFans NWBE

Join Date: Jun 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Quote  
#6
06-06-2007
Default

Glad I found this thread, but NOT glad that this being a linux based phone isn't supported under linux. Is there a thread somewhere that discusses using this phone with a linux PC?
Reply With Quote


User Information
cjperera is offlineReport Post
MotoFans NWBE

fjchou's Avatar

Join Date: May 2007
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Quote  
#7
06-07-2007
Default

plz refer to this page
http://club1.ccmove.com/nclub/topicd...-682222-1.html

BTW, google can help to translate chinese into english, just in case. :-p
http://www.google.com/language_tools
__________________
phone: Motorola E6
firmware version: R533_G_11.12.02P
with old old old kernel in the OS:
MontaVista(R) Linux(R) Consumer Electronics Edition 3.1
Linux/armv5tel 2.4.20_mvlcee31-mainstone_pxa27x
Reply With Quote


User Information
fjchou is offlineReport Post
MotoFans MODR

bagus's Avatar

Join Date: May 2007
Posts: 125
Thanks: 0
Thanked 2 Times in 2 Posts
Location: Indonesia

Send a message via Yahoo to bagus
Quote  
#8
06-08-2007
Default

I'm using this phone with Linux, and I have no trouble with it except when I need to upgrade firmware
__________________
Reply With Quote


User Information
Current Phone: Motorola ROKR E6
Firmware: 08P
Location: Indonesia

bagus is offlineReport Post
MotoFans NWBE

Join Date: Jun 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Quote  
#9
06-08-2007
Default

Quote:
Originally Posted by bagus
I'm using this phone with Linux, and I have no trouble with it except when I need to upgrade firmware
What utility do you use to sync your contacts/calendar?

As I was typing this I just plugged the phone in USB-net mode and found I can telnet to it! I read previously about the need for a package that could control inetd. But it worked with no problems!
Reply With Quote


User Information
cjperera is offlineReport Post
MotoFans MODR

bagus's Avatar

Join Date: May 2007
Posts: 125
Thanks: 0
Thanked 2 Times in 2 Posts
Location: Indonesia

Send a message via Yahoo to bagus
Quote  
#10
06-12-2007
Default

I try j2mesync, but the phone won't let the application use the bluetooth API.
Maybe if I can edit it to "trusted" application it gonna work.
__________________
Reply With Quote


User Information
Current Phone: Motorola ROKR E6
Firmware: 08P
Location: Indonesia

bagus is offlineReport Post
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:03 PM. Search Engine Friendly URLs by vBSEO 3.2.0 Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd. VBulletin Skin by ForumMonkeys.