Home Forums Gallery FAQs Downloads
 
 

Go Back   Meizu Me > Meizu M8 > Modding & Development

Register Today!  

[project]Port android to meizu M8

This is a discussion on [project]Port android to meizu M8 within the Modding & Development forums, part of the Meizu M8 category; I had bad luck with TortoiseSVL and with GNUWin32 patch.exe I think I'm missing something, like a folder tree structure ...


Reply
 
Thread Tools Display Modes
Old 06-29-2009   #41
Freshman
 
Join Date: May 2009
Posts: 32
Thanks: 2
Thanked 2 Times in 2 Posts
I had bad luck with TortoiseSVL and with GNUWin32 patch.exe

I think I'm missing something, like a folder tree structure or something.

I already patched Haret source code (downloaded using TortoiseCVS) with Notepad2, It's a long procedure but it's easy.

Now I have to compile the source code and hopefully get something new.

Anyone wants the modified source code to check it or compile it?
I can upload it here in zip format.

Last edited by MartO; 06-29-2009 at 03:12 AM.
MartO nincs online   Reply With Quote
Old 06-29-2009   #42
Valued Member
 
evow04's Avatar
 
Join Date: Aug 2008
Location: Belgium
Posts: 1,668
Thanks: 63
Thanked 104 Times in 79 Posts
My Meizu
nice2know_u,
thanks for the tip

MartO,
did you manage to edit all the files?

you may upload them, ive got a busy schedule but i can try to do it later on this week.
btw if you install the cegcc-mingw32ce package you shoud be able to build haret loading the modded source and just entering the make command if i am right.
evow04 nincs online   Reply With Quote
Old 06-30-2009   #43
Freshman
 
Join Date: May 2009
Posts: 32
Thanks: 2
Thanked 2 Times in 2 Posts
I also have a busy schedule this week and I don't have Linux installed.

I upload the file if someone has more time.

Remember that I patched al files manually... I suggest a double check (using notepad2) to ensure everything it's OK.

Download link :

http://uploading.com/files/M2R067SI/...icado.rar.html


Bye
MartO nincs online   Reply With Quote
Old 06-30-2009   #44
Valued Member
 
evow04's Avatar
 
Join Date: Aug 2008
Location: Belgium
Posts: 1,668
Thanks: 63
Thanked 104 Times in 79 Posts
My Meizu
MartO,
thanks for the link.
i will post back when i got time to compile it.

ps:
the package i mentioned runs on windows 32 bit os.
evow04 nincs online   Reply With Quote
Old 07-05-2009   #45
Freshman
 
Join Date: May 2009
Posts: 32
Thanks: 2
Thanked 2 Times in 2 Posts
Isn't there anyone that can compile it?
MartO nincs online   Reply With Quote
Old 07-05-2009   #46
Member
 
Join Date: Nov 2008
Location: Germany
Posts: 149
Thanks: 8
Thanked 11 Times in 7 Posts
My Meizu
Originally Posted by MartO View Post
Isn't there anyone that can compile it?
hmm... I didn't manage to compile it, I don't know where to start ...
raangu nincs online   Reply With Quote
Old 07-05-2009   #47
Valued Member
 
evow04's Avatar
 
Join Date: Aug 2008
Location: Belgium
Posts: 1,668
Thanks: 63
Thanked 104 Times in 79 Posts
My Meizu
i was just willing to try to compile, but i must have made an error in one of my old posts cause CeGCC does not run on windows without Cygwin,
so i will figure this out first cause i can not afford to install unix at the moment.

anyone using lunix at the moment? ;-)
evow04 nincs online   Reply With Quote
Old 07-05-2009   #48
Valued Member
 
evow04's Avatar
 
Join Date: Aug 2008
Location: Belgium
Posts: 1,668
Thanks: 63
Thanked 104 Times in 79 Posts
My Meizu
Mm that compiling stuff is not really something for me it seems
cause ive never did this kinda stuff.

But ive found out that windows users can compile it aswel:

install cygwin (simulate *nix in dos)
source : Cygwin Information and Installation
download package : http://www.cygwin.com/setup.exe

install CeGCC compiler:
source : CeGCC's web page
download package for cygwin for wince : Download CeGCC - Cross development for Pocket PC from SourceForge.net
To install CeGCC, you will need to unrar the package to a folder of choice.

Next is to run cygwin, browse to the folder that contains CeGCC,
run the compiler on the code from MartO

info on compiling :
SourceForge.net: cegcc Install
Using CeGCC to compile your Windows CE application
Make - a tutorial

I hope someone with experience on compiling could help us further?
evow04 nincs online   Reply With Quote
Member who thanked evow04 for the post:
Old 07-06-2009   #49
Freshman
 
Join Date: May 2009
Posts: 32
Thanks: 2
Thanked 2 Times in 2 Posts
evow04

Thank you for your post.

I'm trying to compile it under Ubuntu 9.04 installing CegCC 0.55 in my /OPT/ path...

Then I go where haret source code is and try to run the "make" file and I get:

make: /opt/mingw32ce/bin/arm-wince-mingw32ce-g++: Command not found
make: *** [out/machines.o] Error 127

My knowledge is too basic and I don't have too much time on my hands.
Someone who knew would probably patch the haret source and compile it in about 30 minutes...

Let's hope we get somewhere... If not we might have to wait for Meizu engineers to port Android.

Best Regards.
MartO nincs online   Reply With Quote
Old 07-06-2009   #50
Valued Member
 
evow04's Avatar
 
Join Date: Aug 2008
Location: Belgium
Posts: 1,668
Thanks: 63
Thanked 104 Times in 79 Posts
My Meizu
Hi Marto,

I do conform that someone with knowledge could do the job easily,
unfortunally i am not one of those guys , maybe we need to send out a bounty ;-)

About your error message, did you check if you can find the file
"arm-wince-mingw32ce-g++" manually by browsing the directory?

If we are about to wait meizu it could also take a while :P
but at least there would be a build kernel :P

I was wondering if an unpatched Haret could run android on m8.
evow04 nincs online   Reply With Quote
Old 07-06-2009   #51
Freshman
 
Join Date: May 2009
Posts: 32
Thanks: 2
Thanked 2 Times in 2 Posts
I've checked the file "arm-wince-mingw32ce-g++" and it's not there but I dont find it on the Internet to download.

I can run Haret unpatched but I still need an initrd an a zimage compatible with the M8's processor. If you know were I can fin those I would gladly try Haret and post the log file.

Best Regards.
MartO nincs online   Reply With Quote
Old 07-06-2009   #52
Valued Member
 
evow04's Avatar
 
Join Date: Aug 2008
Location: Belgium
Posts: 1,668
Thanks: 63
Thanked 104 Times in 79 Posts
My Meizu
Hey Marto,
to obtain those stuff the nice compile thingie is coming up again.
Android will needs to be compiled from the source i previously posted,
this one has support for M8 cpu.

but on compiling android there is lots of information to find on google;
compile android kernel - Google zoeken

On the initrd i read on google we could just download any and remove the stuff we would not need.
This means we could get android running, if haret lets us, but not running like there are no bugs (and i would allready be happy if it boots till the desktop without really functioning)

Im installing my pc for the moment so i can run ubuntu, so i can provide some help on this.

ps what version of CEGCC did you use?
Cause if you cannot find the executable that it looks for it sounds logic that it wont proces the make command?
evow04 nincs online   Reply With Quote
Old 07-08-2009   #53
Freshman
 
Join Date: May 2009
Posts: 32
Thanks: 2
Thanked 2 Times in 2 Posts
Hi...

Maybe you can help me here...

I'm having problems with Linux as I do not know the command to tell where a BIN is...

For example I downloaded the GNU toolchain, which file is:

arm-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2

I successfully extract it in my home folder, and after that I try the "make"
command in my Android folder and I get this sort of error:

make: arm-android-linux-gnueabi-gcc: Command Not Found.

The command is indeed extracted on my PC but the OS is obviously not looking in the correct folder.
I'm having a similar problem with the compiling of haret.

I'm having a rough time learning, but no problem.

Bye
MartO nincs online   Reply With Quote
Old 07-08-2009   #54
Valued Member
 
evow04's Avatar
 
Join Date: Aug 2008
Location: Belgium
Posts: 1,668
Thanks: 63
Thanked 104 Times in 79 Posts
My Meizu
Hello MartO, everything ok?

about your issue, did you install the package correctly?
What if you browse to the location where you extracted arm-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2,
and then use the make command?

About the learning time, i completly understand, its been a while for me too so
im getting into it whole over again.

I have some really good news thanks to a good friend.
He contacted the nice people from the "Gnufiish development project",
still remember the name? ;-) Those people were building a linux kernel to run on pda phones and made the patch file for haret.
link : gnufiish

Now it seems that they replied really fast with lots of information!
But before i post it i would like to say thanks to : Stefan, Michael, Nils !!!

Michael has provided us a link where a haret version with s3c64xx support is build in :
http://www.mikeasoft.com/~mike/haret.exe
not sure if it is going to run perfectly on m8, but give it a go and provide feedback ;-)

Nils informed us that haret support site is going to be moved to an other host:
LTG Projects: HaRET: Project Info

Stefan provided us some interesting links:
HaRET - Handhelds.org MoinMoin Wiki
Attachment ? gnufiish
Browse CeGCC - Cross development for Pocket PC Files on SourceForge.net
http://handhelds.org/cgi-bin/cvsweb.cgi/~checkout~/haret/INSTALL
Download CeGCC - Cross development for Pocket PC from SourceForge.net
And he also provided us an nice howto on haret :
Code:
The following will work on an older machine with debian lenny installed.
For those who want to try this themselves, here's what i did:

1. Grab a copy of mingw32ce that is known to work, e.g.
http://sourceforge.net/projects/cegcc/files/cegcc/mandriva-cegcc-mingw32ce-0.50.tar.gz
(got some errors on debian 4.0 with the latest version... that's why i
choosed 0.50)

2. Extract the package to your root directory (compiler should reside
in /opt/mingw32ce

3. Make sure you got cvs installed on your linux host. Create yourself
a working directory, step into it and
grab the latest version of haret from CVS rep using these commands:
cvs -d :pserver:anoncvs@anoncvs.handhelds.org:/cvs login
CVS password: anoncvs
cvs -d :pserver:anoncvs@anoncvs.handhelds.org:/cvs co haret

4. Download the patch from Harald in plain text:
http://gnufiish.org/trac/raw-attachment/wiki/DX900/haret-s3c64xx-dx900.patch

5. Place the patch in the haret source directory. Within the directory type:
patch -p1 < haret-s3c64xx-dx900.patch
Some lines will fail with the actual sources, but no problem just
insert some missing lines manually (e.g. /src/mach/machtypes.txt)
Though it has been reported, patching machtypes.h failed, everthing is
O.K. with this file, because Dx900 is already included and the other
part of the patch applies fine.

6. Modify the ../haret/Makefile.
Go to line 39, where the cegcc settings start:
Change the names from arm-mingw32ce-... to arm-wince-mingw32ce-...

7. Modify the file ../haret/tools/checkrelocs.
Go to line 16&17 and also change names form arm-mingw32ce-... to
arm-wince-mingw32ce-...

8. Step into haret root directory and type make!

There you go, good luck!
So aint this great news?
I would say, place android kernel aside for now and try to run haret or compile it and then run it?

ps, i would like to make a remark, i get lots of messages on this topic, its cool and keep on sending them if you wont,
but you can really place them here aswel so everyone knows it, because without feedback this project could die and we dont want that i guess? ;-)

have a happy playtime!
evow04 nincs online   Reply With Quote
Old 07-08-2009   #55
Freshman
 
Join Date: May 2009
Posts: 32
Thanks: 2
Thanked 2 Times in 2 Posts
Evow04,

Thanks for you reply. I'll read it more throughly as soon as I get home.

Right now I leave you with Haret logs from the modified version and the unmodified.

Hope it help us.

Haret Modified Log
haret_modified_log.txt

Haret Unmodified Log
haret_unmodified_log.txt

Best Regards.

FORGET TO SAY THIS IS A BASIC LOG, JUST RUNNING HARET AND SEE WHAT HAPPENS

Last edited by MartO; 07-08-2009 at 08:09 PM.
MartO nincs online   Reply With Quote
Old 07-08-2009   #56
Member
 
Join Date: Jan 2009
Location: Leeuwarden, NL
Posts: 141
Thanks: 12
Thanked 4 Times in 2 Posts
My Meizu
Hi,

i found this, i hope it is usefull.

Free File Hosting Made Simple - MediaFire
MaikelRunia nincs online   Reply With Quote
Old 07-08-2009   #57
Freshman
 
Join Date: May 2009
Posts: 32
Thanks: 2
Thanked 2 Times in 2 Posts
Hey, thank you Maikel.

Evow04,
I managed to compile Haret thanks to the dumb-proof guide there...

But as the logs show, it still does not recognize Meizu M8. I'll try to add Meizu to matchtypes.txt and other files and then compile it again.

UPDATE: Nothing happens, Haret still do not recognize our phone... Still I should try the Linux kernel. I already have the Android kernel with support for our CPU...

Compiling, InitRD and ZIMAGE are missing

Later I'll try a few things to see if I can run Haret in system mode.

Bye.

Last edited by MartO; 07-09-2009 at 12:30 AM.
MartO nincs online   Reply With Quote
Old 07-09-2009   #58
Member
 
Join Date: Jan 2009
Location: Leeuwarden, NL
Posts: 141
Thanks: 12
Thanked 4 Times in 2 Posts
My Meizu
Any news?? I like to see it running!

Regards Maikel
MaikelRunia nincs online   Reply With Quote
Old 07-09-2009   #59
LVL
Dutch Moderator
 
LVL's Avatar
 
Join Date: Jan 2009
Location: The Netherlands
Posts: 1,091
Thanks: 60
Thanked 106 Times in 44 Posts
My Meizu
Me to, i cannot believe that android can actually run on the M8

Btw: I dont understand any of this program-language, but i now that you need to do something to make haret run

Last edited by LVL; 07-09-2009 at 03:49 PM.
LVL online van   Reply With Quote
Old 07-09-2009   #60
Member
 
Join Date: Jan 2009
Location: Leeuwarden, NL
Posts: 141
Thanks: 12
Thanked 4 Times in 2 Posts
My Meizu
Google Vertaling
MaikelRunia nincs online   Reply With Quote

   
 
Meizu Me is an independent resource for all things Meizu. All rights reserved. Powered by vBulletin. Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. Meizu M8, miniPlayer and all related names are properties of MEIZU Electronic Technology, Inc. Copyright 2009 Meizu Me.