Motorola Development Community

Member Login

Quick Search



Development Hacking, development, scripts etc


Reply
  #1  
Old 03-04-2008
eakrin's Avatar
Moderator
 
Join Date: Jul 2005
Location: Thailand
Posts: 833
Thanks: 25
Thanked 233 Times in 80 Posts
Send a message via ICQ to eakrin Send a message via MSN to eakrin Send a message via Yahoo to eakrin Send a message via Skype™ to eakrin
Thumbs up EZX Crosstool and SDK for Motorola EZX phones [Windows + Cygwin Version]

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

Quote:
cd ~
cd helloEZX
3. this helloezx project contain 3 files. main.cpp, helloezx.h, and helloezx.cpp. first create a project file for helloezx by

Quote:
progen -o helloezx.pro
4. create makefile for complier by command

Quote:
tmake helloezx.pro -o Makefile
5. create helloezx 's binary file by

Quote:
make
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
Attached Images
 
Attached Files
File Type: zip helloEZX.zip (1.5 KB, 779 views)
__________________
Visit my Blog here.http://my.opera.com/eakrin

Last edited by eakrin; 03-05-2008 at 07:02 AM. Reason: Edited download link, Add file at MotoFans, mod samr7 link
Reply With Quote
The Following 11 Users Say Thank You to eakrin For This Useful Post:
29a (03-05-2008), addu (02-06-2010), Halftux (12-28-2008), KooNKHaR (04-11-2008), Lubomyr (03-04-2008), msri3here (06-29-2008), naset (03-06-2008), quakeboy (05-13-2008), sabrod (07-28-2008), ustrucx (03-05-2008), vodor (07-25-2008)
  #2  
Old 03-04-2008
swifty's Avatar
mostly harmless
 
Join Date: Jul 2005
Location: Franconia
Posts: 4,820
Thanks: 81
Thanked 198 Times in 173 Posts
Default

thanks eakrin!

Last edited by swifty; 03-04-2008 at 12:19 PM.
Reply With Quote
  #3  
Old 03-04-2008
MotoFans JUNR
 
Join Date: Oct 2007
Posts: 88
Thanks: 1
Thanked 4 Times in 4 Posts
Default

Thanks eakrin !
Reply With Quote
  #4  
Old 03-04-2008
MotoFans JUNR
 
Join Date: Oct 2007
Posts: 88
Thanks: 1
Thanked 4 Times in 4 Posts
Default

good job !
Reply With Quote
  #5  
Old 03-04-2008
29a 29a is offline
MotoFans NWBE
 
Join Date: Mar 2008
Posts: 3
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Can't download the link: http://www.motorolafans.com/docman/f...0080304.tar.gz:

Quote:
Hi, You have probably reached this page because we have upgraded our forums and most of our links has changed.

Please research the forums again for your item. Have a nice time =)
May be it is not correct? Could you give me a good link? Thanks!

Last edited by 29a; 03-04-2008 at 11:29 AM.
Reply With Quote
  #6  
Old 03-04-2008
swifty's Avatar
mostly harmless
 
Join Date: Jul 2005
Location: Franconia
Posts: 4,820
Thanks: 81
Thanked 198 Times in 173 Posts
Default

/me much links repairing today
http://motorolafans.com/MotoModFiles...0080304.tar.gz
Reply With Quote
The Following User Says Thank You to swifty For This Useful Post:
29a (03-05-2008)
  #7  
Old 03-04-2008
Moto Fans SENR
 
Join Date: Sep 2005
Location: Jakarta, Indonesia
Posts: 1,091
Thanks: 0
Thanked 136 Times in 67 Posts
Default

Thanks eakrin. I hope this howto can spread EZX application for our phone or at least you help introducing Qt to this community. Qt will bring you to Linux/Unix variant including Mac OS, embedded device and Windows developtment. Qtopia (Qt for embedded) officially support Greenphone, OpenMoko, and Nokia's Maemo, working on Windows Mobile also. When Nokia bought Trolltech and guarantee the open source version availability, it's make me really happy In short, starting to learn Qt is a good decision.
Reply With Quote
  #8  
Old 03-05-2008
29a 29a is offline
MotoFans NWBE
 
Join Date: Mar 2008
Posts: 3
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Thank swifty!

But the .gz file is corrupted, its size is 4.685.824, when I try unpack it, I got this error:
Quote:
~ tar zxvf samr7-ezx-crosstool-foxe6-sdk-20080304.tar.gz
...
opt/crosstool/gcc-3.3.6-glibc-2.3.2/arm-linux/arm-linux/include/linux/scx200.h
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

Last edited by 29a; 03-05-2008 at 12:36 AM.
Reply With Quote
  #9  
Old 03-05-2008
eakrin's Avatar
Moderator
 
Join Date: Jul 2005
Location: Thailand
Posts: 833
Thanks: 25
Thanked 233 Times in 80 Posts
Send a message via ICQ to eakrin Send a message via MSN to eakrin Send a message via Yahoo to eakrin Send a message via Skype™ to eakrin
Default

@29a

Let try new downlaod from rebirth.com. I try to upload to MotoModFiles 3 times. It's always failed.

@Admin can you upload this file to MotoModFiles?

@Any QT newbies (like me)
Here is a free pdf Qt 3 book that I found. I read few chapter it's good. Qt version is 4 now but the main concept of Signals, Slots, Layouts always the same as older version.


http://www.amazon.com/exec/obidos/tg...glance&s=books

@blackhawk
I fall in love with QT now. I decide to learn it after QT4 release opensource version on Windows + FoxE6 release EZX SDK. I hope that EZX/QT/C++ programming will spread all overthe world like you too. this is the main point that I try to build and release this Crosstool+SDK.
Do you interest to write article about basic EZX programming?
__________________
Visit my Blog here.http://my.opera.com/eakrin
Reply With Quote
The Following User Says Thank You to eakrin For This Useful Post:
29a (03-05-2008)
  #10  
Old 03-05-2008
BruceLee's Avatar
Moto Fans SENR
 
Join Date: Jan 2008
Location: Romania
Posts: 634
Thanks: 43
Thanked 148 Times in 90 Posts
Default

modify this link: http://lsb.blogdns.com/ezx-crosstool
because it shows http://lsb.blogdns.com/ezx-crosstool
but it accesses http://lsb.blogdns.net/ezx-crosstool
and it's not working. some users might not notice that and abort the sdk testing.

edit:
which is the cygwin command prompt?
is it tclsh84.exe?

Last edited by BruceLee; 03-05-2008 at 05:37 AM.
Reply With Quote
 
Reply

Tags
crosstool, ezx, motorola, phones, sdk

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Codeminders EZX crosstool [Linux]- *simple* kuratkull Development 0 12-20-2008 01:36 AM
Problem on compiling with EZX Crosstool arash A1200 General Chat 8 10-31-2008 05:43 PM
ezx-devkit and crosstool blackglasses Development 2 11-08-2007 01:18 AM
Need help with ezx-crosstool-0.5 on SuSE 10.0 Kenno Development 4 06-10-2006 11:53 AM
how to get ezx-crosstool work with E680? eakrin Development 0 05-14-2006 09:14 AM

 
Advertisement

Partner Links





Web Analytics