The Motorola Development Community


Go Back   MotorolaFans.com Forums > Developments > Development
Notices

Development Hacking, development, scripts etc

Reply

MotoFans NWBE

Join Date: Apr 2006
Posts: 14
Thanks: 0
Thanked 3 Times in 1 Post
Quote  
#1
01-19-2008
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 05:40 AM.
Reply With Quote


User Information
bitfly is offlineReport Post
Moto Fans SENR

Join Date: Sep 2005
Posts: 1,091
Thanks: 0
Thanked 132 Times in 67 Posts
Location: Jakarta, Indonesia

Quote  
#2
01-19-2008
Default

This better than turbo c on dosemu
Reply With Quote


User Information
Current Phone: Motorola E680i and A1200
Location: Jakarta, Indonesia

blackhawk is offlineReport Post
MotoFans XPRT

wyrm's Avatar

Join Date: Jan 2007
Posts: 251
Thanks: 8
Thanked 13 Times in 11 Posts
Location: Brazil

Send a message via MSN to wyrm
Quote  
#3
01-19-2008
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


User Information
Current Phone: a780, e680, a1200, a910
Location: Brazil

wyrm is offlineReport Post
Moto Fans SENR

Join Date: Sep 2005
Posts: 1,091
Thanks: 0
Thanked 132 Times in 67 Posts
Location: Jakarta, Indonesia

Quote  
#4
01-19-2008
Default

@wyrm
Maybe a big swap memory will help.
Reply With Quote


User Information
Current Phone: Motorola E680i and A1200
Location: Jakarta, Indonesia

blackhawk is offlineReport Post
MotoFans JUNR

Join Date: Nov 2006
Posts: 74
Thanks: 0
Thanked 5 Times in 5 Posts
Location: Jakarta

Send a message via MSN to keaglez Send a message via Yahoo to keaglez
Quote  
#5
01-19-2008
Default

Wow! BTW can we make the gcc run in E2?
Reply With Quote


User Information
Current Phone: Motorola ROKR E2
Firmware: Modified Katze3
Location: Jakarta

keaglez is offlineReport Post
MotoFans JUNR

Join Date: Oct 2007
Posts: 88
Thanks: 1
Thanked 4 Times in 4 Posts
Quote  
#6
01-19-2008
Default

E6/a12000???????
Reply With Quote


User Information
Current Phone: e6
ljty is offlineReport Post
based on a true rumor

naset's Avatar

Join Date: Jan 2006
Posts: 2,293
Thanks: 48
Thanked 149 Times in 102 Posts
Location: Alor Star, Kedah, Malaysia

Send a message via MSN to naset Send a message via Yahoo to naset
Quote  
#7
01-20-2008
Default

very nice. thx bitfly
__________________




Your Open Source Community
Reply With Quote


User Information
Current Phone: Motorola E680i
Firmware: E680G 009
Location: Alor Star, Kedah, Malaysia

naset is online nowReport Post
MotoFans JUNR

Join Date: Feb 2006
Posts: 84
Thanks: 0
Thanked 3 Times in 2 Posts
Quote  
#8
01-20-2008
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


User Information
Current Phone: MotorolaEzx
SigarRon is offlineReport Post
MotoFans JUNR

Join Date: Nov 2006
Posts: 74
Thanks: 0
Thanked 5 Times in 5 Posts
Location: Jakarta

Send a message via MSN to keaglez Send a message via Yahoo to keaglez
Quote  
#9
01-20-2008
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


User Information
Current Phone: Motorola ROKR E2
Firmware: Modified Katze3
Location: Jakarta

keaglez is offlineReport Post
MotoFans NWBE

Join Date: Jan 2008
Posts: 4
Thanks: 0
Thanked 2 Times in 1 Post
Location: China

Send a message via MSN to angel'swing
Quote  
#10
01-21-2008
Default

ya,thanks a lot for your work and share,it helps!!
Reply With Quote


User Information
Current Phone: e680g
Location: China

angel'swing 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:17 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.