Unofficial EZX Crosstool and SDK for Motorola EZX Phones (A780, E680i, A1200, E6) from Sam Revitch (samr7) and FoxE6. Cygwin/Windows XP version. packing and documentation by eakrin@gmail.com
release date Mar 3, 2008 LICENSE : THIS ARTICLE AND EZX-CROSSTOOL AND SDK PACKAGE RELEASED UNDER GPLv2.DO NOT USED IT OR DISTRIBUTED IT FOR COMMERCIAL PURPOSE EZX CROSSTOOL is compiler that use to develop application for another architectures like create application for EZX on PC. see detail about crosstool from
http://www.kegel.com/crosstool/curre...ool-howto.html Normally Crosstool is a portable shell script that need time and harddisk space to build it in your PC. but here is a binary of EZX crosstool in Cygwin on M$ Windows. This Crosstool was create by Samr7's scripts (Sam Revitch) at
http://lsb.blogdns.com/ezx-crosstool EZX SDK is a set of C++ header file (*.h) for QT libraries and EZX libraries for EZX phones. EZX-SDK for A780 was develop by Samr7 (Sam Revitch)
http://lsb.blogdns.com/ezx-devkit it can use for E680i too. EZX-SDK for A1200 and E6 was develop by FoxE6 (ccmove.com). Until now there have no sign from Motorola to release official EZX SDK. so we need to hack it ourself. like FoxE6 and Samr7 did.
QT is a application development platform for C++ see more detail from
http://trolltech.com/products/qt. QT version on A780 and E680i is 2.3.6 and on A1200 and E6 is 2.3.8.
Specification of EZX-Crosstool and SDK. - Support for A780, E680i, A1200, and ROKR E6 EZX/QT/C++ development.
- A780 and E680i have the same SDK from Samr7.
- A1200/E6 have the same SDK from FoxE6.
- This is not an Official SDK from Motorola. so some class or header file not 100% working.
- use progen to create project file.
- use tmake to create Makefile.
- presetting tmake spec for each phone model. Requirements. 1. install Cygwin on Windows XP with 3 optional packages. Cygwin is
here Quote:
devel->gcc
devel->make
perl->perl
|
2. copy EZX library files from phone by commands
Quote:
cd /usr/lib
tar zcvf /mmc/mmca1/ezx-lib.tar.gz *
|
3. 400MB harddisk space for cygwin, crosstool, sdk, and ezx library files.
4. C++ programming basic knowledge.
5. Linux shell command basic knowledge.
How to setup EZX Crosstool and EZX SDK on cygwin 1. download Samr7-EZX-Crosstool-cygwin-FoxE6-SDK.tar.gz file.
2. copy it to cygwin folder. ie. C:\cygwin
3. open cygwin command prompt and extract it by commands
Quote:
cd /
tar zxvf samr7-ezx-crosstool-foxe6-sdk.tar.gz
|
Crosstool should be in /opt/crosstool and EZX sdk in /opt/dev-ezx in cygwin main folder.
4. copy ezx-library.tar.gz file from phone to /opt/dev-ezx/{PHONEMODEL}/lib
when {PHONEMODEL} is your phone model e6, a1200, e680i, or a780.
5. extract ezx library files by command
Quote:
cd /opt/dev-ezx/{PHONEMODEL}/lib
tar xvf ezx-lib.tar.gz
|
make sure that all files in /usr/lib from phone are in /opt/dev-ezx/{PHONEMODEL}/lib.
Now EZX-Crosstool is ready to use.
How to coding your ezx application.
- Do it in Windows by your favorite text editor ie. editplus.
How to create Hello EZX program by EZX Crosstool. 1. Open Cygwin and set crosstool environment variables for your phone model by
Quote:
|
. /opt/dev-ezx/setENV.sh e6 <-- be careful this command start with dot and space.
|
when e6 is your phone model. for convenient you can copy setENV.sh to anywhere for easy calling or can ln it to anywhere. and this step need to do everytime you open Cygwin.
2. now goto your work space folder and try to create HelloEZX application. extract and copy helloezx folder into your home folder (ie /home/eakrin) and change cygwin to your home folder by
3. this helloezx project contain 3 files. main.cpp, helloezx.h, and helloezx.cpp. first create a project file for helloezx by
4. create makefile for complier by command
Quote:
|
tmake helloezx.pro -o Makefile
|
5. create helloezx 's binary file by
if everything is ok you 'll get HelloEZX file in your folder.
6. testing your first app by copy helloezx file into your mmc and execute this commands via telnet.
Quote:
. /home/native/.profile <-- this command start with dot and space too.
/mmc/mmca1/HelloEZX
|
if you done a right step Hello EZX application should appear on phone screen. VIVA! you are new Ezx developer now!
7. package it into mpkg format for testing and distribute your application.
What to do next?
If you want to learn more QT goto
http://doc.trolltech.com/2.3/ If you have a problem about ezx header files. try to compare it with standard qt. or read its header file (*.h) in /opt/dev-ezx/e6/include/ some class will not 100% working. they need more modding and hacking because they are not official sdk from Motorola. feel free to asking problem at www.motorolafans.com. PS. If you got error in like this in cygwin Quote:
(2216): *** system shared memory version m
ismatch detected - 0x75BE007A/0x75BE007E.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version. The most recent version *should*
reside in x:cygwinbin, where 'x' is the drive on which you have
installed the cygwin distribution. Rebooting is also suggested if you
are unable to find another cygwin DLL.
|
try to copy cygwin1.dll from c:\cygwin\bin to replace old cygwin1.dll in c:\windows\system32. this is mezzy because cygwin cannot delete its old library when installation. and Windows search can not find cygwin1.dll in c:\windows\system32. This error is occur after you reinstall or update cygwin version and have a error Can not delete cygwin1.dll. I got this solution from http://www.governmentsecurity.org/archive/t14374.html.
Download File here
from MotoFans
samr7-ezx-crosstool-foxe6-sdk-20080304.tar.gz
or
http://61.47.60.185/rebirthstory.com...0080304.tar.gz Thanks to Samr7 for EZX-Crosstool and SDK for A780/E680i.
FoxE6 for EZX-SDK for A1200/E6.
blackhawk for setting complier environments.
Donga for progen and tmake.
E.&O.E. Errors and omissions excepted 

