Motorola Development Community

Member Login

Quick Search



Development Hacking, development, scripts etc


Reply
  #1  
Old 01-19-2008
MotoFans NWBE
 
Join Date: Apr 2006
Posts: 14
Thanks: 0
Thanked 3 Times in 1 Post
Wink run zgcc(gcc for zaurus) under E680i

step1: download zgcc
download zgcc from http://s91215199.onlinehome.us/zaurus/
GCC and Qt binary files -- the zgcc2Bin.cramfs file
GCC and Qtopia include files -- the zgcc2Inc.cramfs file

step2: make directories

mkdir /mmc/mmca1/ezx
mkdir /mmc/mmca1/ezx/zgcc
mkdir /mmc/mmca1/ezx/include
mkdir /mmc/mmca1/ezx/lib
mkdir /mmc/mmca1/ezx/driver

step3: prepare files
copy zgcc2Bin.cramfs and zgcc2Inc.cramfs to /mmc/mmca1/ezx
copy loop.o to /mmc/mmca1/ezx/driver (loop.o can be found in some projects like opie and ezx-qtopia)

run qconsole or ekonsole
cp /lib/libc.so.6 /mmc/mmca1/ezx/lib/libc.so

step4: create scripts for zgcc
file /mmc/mmca1/ezx/zgcc.sh
==========================
insmod /mmc/mmca1/ezx/driver/loop.o
mount -t cramfs /mmc/mmca1/ezx/zgcc2Bin.cramfs /mmc/mmca1/ezx/zgcc -o loop
mount -t cramfs /mmc/mmca1/ezx/zgcc2Inc.cramfs /mmc/mmca1/ezx/include -o loop
===========================
file /mmc/mmca1/ezx/zgcc.env
==========================
export GCC_EXEC_PREFIX=/mmc/mmca1/ezx/zgcc/lib/gcc-lib/arm-linux/2.95.2/
export COMPILER_PATH=/mmc/mmca1/ezx/zgcc/lib/gcc-lib/arm-linux/2.95.2/
export CPATH=/mmc/mmca1/ezx/include/
export LIBRARY_PATH=/lib:/usr/lib:/mmc/mmca1/ezx/lib:/mmc/mmca1/ezx/zgcc/lib/:/mmc/mmca1/ezx/zgcc/lib/gcc-lib/arm-linux/2.95.2/
export CPLUS_INCLUDE_PATH=/mmc/mmca1/ezx/include/g++-3/
export PATH=/mmc/mmca1/ezx/zgcc/bin:$PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/mmc/mmca1/ezx/zgcc/lib
==============================
file unzgcc.sh
=============================
umount /mmc/mmca1/ezx/zgcc
umount /mmc/mmca1/ezx/include
=============================

step5: test
test.c
======================
#include <stdio.h>
int main()
{
printf("hello,world\n");
}
======================
open qconsole
cd /mmc/mmca1/ezx
./zgcc.sh
source zgcc.env
gcc -o test test.c
./test
hello,world

./unzgcc.sh

Last edited by bitfly; 01-19-2008 at 04:40 AM.
Reply With Quote
  #2  
Old 01-19-2008
Moto Fans SENR
 
Join Date: Sep 2005
Location: Jakarta, Indonesia
Posts: 1,091
Thanks: 0
Thanked 136 Times in 67 Posts
Default

This better than turbo c on dosemu
Reply With Quote
  #3  
Old 01-19-2008
wyrm's Avatar
caffeine addicted
kernel plumber
 
Join Date: Jan 2007
Location: Brazil
Posts: 387
Thanks: 8
Thanked 17 Times in 15 Posts
Send a message via MSN to wyrm
Default

bitfly, very good.
But i think that you can use standard gcc compiled for arm without a different libc on the phone.

have you tried standard gcc compiled with the mkezx toolchain? I believe it will work (altough big c++ files will not compile because of the lack of RAM).
Reply With Quote
  #4  
Old 01-19-2008
Moto Fans SENR
 
Join Date: Sep 2005
Location: Jakarta, Indonesia
Posts: 1,091
Thanks: 0
Thanked 136 Times in 67 Posts
Default

@wyrm
Maybe a big swap memory will help.
Reply With Quote
  #5  
Old 01-19-2008
MotoFans JUNR
 
Join Date: Nov 2006
Location: Jakarta
Posts: 74
Thanks: 0
Thanked 5 Times in 5 Posts
Send a message via MSN to keaglez Send a message via Yahoo to keaglez
Default

Wow! BTW can we make the gcc run in E2?
Reply With Quote
  #6  
Old 01-19-2008
MotoFans JUNR
 
Join Date: Oct 2007
Posts: 88
Thanks: 1
Thanked 4 Times in 4 Posts
Default

E6/a12000???????
Reply With Quote
  #7  
Old 01-20-2008
naset's Avatar
based on a true rumor
 
Join Date: Jan 2006
Location: Alor Star, Kedah, Malaysia
Posts: 2,315
Thanks: 49
Thanked 167 Times in 105 Posts
Send a message via MSN to naset Send a message via Yahoo to naset
Default

very nice. thx bitfly
__________________




Your Open Source Community
Reply With Quote
  #8  
Old 01-20-2008
MotoFans JUNR
 
Join Date: Feb 2006
Posts: 84
Thanks: 0
Thanked 3 Times in 2 Posts
Default

wow.....that is a great job you have done......
i have tried to run zgcc that used in zarus,but failed......
Reply With Quote
  #9  
Old 01-20-2008
MotoFans JUNR
 
Join Date: Nov 2006
Location: Jakarta
Posts: 74
Thanks: 0
Thanked 5 Times in 5 Posts
Send a message via MSN to keaglez Send a message via Yahoo to keaglez
Default

Btw i succeed run it in my E2... Anyone have the perl run in ezx? So we can use progen and tmake... Ah, one more...is it compatible with the SDK (unofficial) out here?

Anyway, thanks bitfly... ;D
Reply With Quote
  #10  
Old 01-21-2008
MotoFans NWBE
 
Join Date: Jan 2008
Location: China
Posts: 7
Thanks: 0
Thanked 2 Times in 1 Post
Send a message via MSN to angel'swing
Default

ya,thanks a lot for your work and share,it helps!!
Reply With Quote
 
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
enlightenment 1.7 run on e680i varo82 E680i General Chat 4 09-27-2006 07:39 AM
SHARP Zaurus application naset E680i General Chat 2 05-02-2006 11:21 AM
native gcc compiler for e680i bitfly Development 0 04-18-2006 03:22 AM
Can Smart movie run on E680I? nghinguyen E680i General Chat 1 07-13-2005 02:36 AM
Zaurus apps Yuretz E680 General Chat 1 05-04-2005 08:46 AM

 
Advertisement

Partner Links





Web Analytics