Join Today
+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 13
Like Tree1Likes

Thread: INFO: A1200/E6 cross-compile (by yan0)

  1. #1

    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
    singtoester likes this.

  2. #2

    Default

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

  3. #3
    Join Date
    May 2007
    Location
    Indonesia
    Posts
    125

    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.

  4. #4

    Default

    i guess Releases.rar and Releases_yan0.rar are the same

  5. #5
    Join Date
    May 2007
    Location
    Indonesia
    Posts
    125

    Default

    Got arm-linux-g++ after compile ezx-crosstool from http://lsb.blogdns.net/ezx-crosstool
    Attached Files Attached Files

  6. #6

    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?

  7. #7

    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

  8. #8
    Join Date
    May 2007
    Location
    Indonesia
    Posts
    125

    Default

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

  9. #9

    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!

  10. #10
    Join Date
    May 2007
    Location
    Indonesia
    Posts
    125

    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 to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. [APP] Yan0 and Yan0 MPKG
    By kiwiguy in forum A1200 Applications
    Replies: 23
    Last Post: 09-18-2008, 01:52 PM
  2. Cross Compile
    By joaorodrigo in forum A1200 General Chat
    Replies: 2
    Last Post: 05-22-2007, 12:07 AM
  3. Is there any cross compile tools for Windows?
    By xstraber in forum Development
    Replies: 2
    Last Post: 02-09-2007, 07:55 PM
  4. best way to cross compile?
    By xcoldfyrex in forum A780 General Chat
    Replies: 0
    Last Post: 01-03-2007, 05:51 AM
  5. Replies: 0
    Last Post: 08-19-2006, 09:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Single Sign On provided by vBSSO

Search Engine Optimization by vBSEO 3.6.0 RC 1