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; Hi all! Welcome to the Android development thread! A lot is been changed over the past year, most of all ...


Reply
 
Thread Tools Display Modes
Old 06-25-2009   #1
Valued Member
 
evow04's Avatar
 
Join Date: Aug 2008
Location: Belgium
Posts: 2,023
Thanks: 108
Thanked 153 Times in 110 Posts
My Meizu
Lightbulb [project]Port android to meizu M8




Hi all!

Welcome to the Android development thread!
A lot is been changed over the past year, most of all thanks to the release of a kernel by Meizu themselfs.
Since multiple teams do work on a port of android to m8, it is hard to keep track in a forum post.

Therefor if you want to work on a port, review a status or other use the following links:



Android DevelopmentAndroid / WinCE 6 ROM´sFAQPlease feel free to help us maintain the wiki, you can simply register and edit content right away to keep things up-to-date.



Last edited by evow04; 4 Weeks Ago at 07:04 AM.
evow04 nincs online  
Reply With Quote
5 members have thanked evow04:
Old 06-25-2009   #2
Valued Member
 
evow04's Avatar
 
Join Date: Aug 2008
Location: Belgium
Posts: 2,023
Thanks: 108
Thanked 153 Times in 110 Posts
My Meizu






















Last edited by evow04; 4 Weeks Ago at 06:45 AM.
evow04 nincs online   Reply With Quote
2 members have thanked evow04:
Old 06-25-2009   #3
Valued Member
 
evow04's Avatar
 
Join Date: Aug 2008
Location: Belgium
Posts: 2,023
Thanks: 108
Thanked 153 Times in 110 Posts
My Meizu
*content deleted*

Last edited by evow04; 4 Weeks Ago at 06:40 AM.
evow04 nincs online   Reply With Quote
Member who thanked evow04 for the post:
Old 06-25-2009   #4
Passing By
 
Join Date: May 2009
Posts: 15
Thanks: 2
Thanked 0 Times in 0 Posts
I can't get connect via haret to my pc it try's to connect to 169.254.2.1 and it say's he couldn't get a connection because the target denied and my usb ip is 192.168.55.101 if I change it exit the console. (maybe it's because I have win 7 64 bit)
erzincano nincs online   Reply With Quote
Old 06-25-2009   #5
Junior Member
 
Join Date: Apr 2009
Location: UK
Posts: 75
Thanks: 10
Thanked 1 Time in 1 Post
My Meizu
Presumably you don't mean the same thing in console for USB and wifi connections?

Edit: Maybe you did... strange way of phrasing it if so. Did you mean that? What is the IP for USB? :S

Last edited by Rich4443; 06-25-2009 at 06:00 PM.
Rich4443 nincs online   Reply With Quote
Old 06-25-2009   #6
Junior Member
 
Join Date: Apr 2009
Location: UK
Posts: 75
Thanks: 10
Thanked 1 Time in 1 Post
My Meizu
Haret won't run properly for me...
I get: "Haret is not running in 'system' mode. Major functionality will not be present." whenever I run Haret on the m8. I've tried it when unplugged and connected by USB and from explorer.exe.

Edit: Just found this thread:
HARET 0.5.2
Looks like others have same problem.

Last edited by Rich4443; 06-25-2009 at 06:10 PM.
Rich4443 nincs online   Reply With Quote
Old 06-25-2009   #7
Junior Member
 
Join Date: Apr 2009
Location: UK
Posts: 75
Thanks: 10
Thanked 1 Time in 1 Post
My Meizu
This is all I can get without system mode:

======== Connecting to haret ========
Exception on cpu id detect
Welcome, this is HaRET 0.5.2 running on WindowsCE v6.0
Minimal virtual address: 00010000, maximal virtual address: 7FFFFFFF
Detected machine Default/generic (Plat='miniOne' OEM='Meizu miniOne')
CPU is ? running in user mode
Enter 'HELP' for a short command summary.

HaRET(1)#

Edit: It looks like I can run commands properly. Do you want me to try anything specific?

Last edited by Rich4443; 06-25-2009 at 06:12 PM.
Rich4443 nincs online   Reply With Quote
Old 06-25-2009   #8
Freshman
 
Join Date: May 2009
Posts: 32
Thanks: 2
Thanked 2 Times in 2 Posts
I think the ARM 11 cpu of the M8 it's not supported by Haret.

Anyone can confirm this?

Also... how can we get Haret to run on "system mode"?
MartO nincs online   Reply With Quote
Old 06-25-2009   #9
Valued Member
 
evow04's Avatar
 
Join Date: Aug 2008
Location: Belgium
Posts: 2,023
Thanks: 108
Thanked 153 Times in 110 Posts
My Meizu
erzincano ,
the ip 169.x.x.x is so far i know not a valid ip.
this is an explanation from wikipedia:
169 is known in the computing world as the first number of an automatic IPv4 address assigned by TCP/IP when no external networking device is contactable
moreinfo see here : ExtremeTech Discussions - 169. IP Address Help
About the tools that are suddenly closing i can say that a 64 bit and win 7 system mostly gives problems while using develpoment tools. (my experiences)

Rich4443,
could you provide the steps you have made to get haret connected to your pc, it could help erzincano, cause there could be a flaw in my howto or maybe just a better and easier explanation can do the trick.

about the system mode, i still did not figure everything out about haret yet due the fact i can not try it myself. However, it is a good start that it runs in normal mode.
This is what google says about it :
> Haret is not running in 'system' mode. Major functionality will not be
> present.
I've only seen a handful of reports on this. What's happening is that
the WinCE OS isn't letting haret do any privileged instructions. This
basically prevents haret from doing anything interesting.
The other reporters were able to fix this by unlocking their phone.
(source Re: [Haret] spv c 100 (HTC #!) Oxygen) haret 0.52 problem )

Strange thing is that the device has no simlock, maybe it is an issue about firmware, could you inform us what firmware you have on your lovely m8?
And could you say if you have a beta (with wifi) or a production device?

what we can see in your log that meizu keeps calling the device "miniOne"
The bad news is that haret can not say what cpu is used, does anyone knows where to find cpu info on m8 provided by meizu? Cause this will be needed to proceed further in the project.
reason :
The HaRET tool should work on WinCE (2.10 or later) based ARM
processors (arm v4 or later).
About running commands, i would say try to play around?
(example :dump cp to find cpu info)

and can you try this :
On haret 0.5.x, there is an ability to turn on logging very early in the startup. To do so, create a file "earlyharetlog.txt" in the same directory as "haret.exe". Then run haret.exe - a file "haretlog.txt" should be created in the same directory.
maybe we can find some interesting info in the log.


ps thanks for helping!
ps 2 MartO you were just a bit faster then me about the cpu issue, thanks to contribute!

Last edited by evow04; 06-25-2009 at 09:05 PM.
evow04 nincs online   Reply With Quote
Old 06-25-2009   #10
Administrator
 
nice2know_u's Avatar
 
Join Date: Mar 2007
Location: Budapest, Hungary
Posts: 3,424
Thanks: 133
Thanked 584 Times in 209 Posts
My Meizu
This should be the specs sheet of M8's cpu:
SAMSUNG's Digital World
nice2know_u nincs online   Reply With Quote
Old 06-25-2009   #11
Valued Member
 
evow04's Avatar
 
Join Date: Aug 2008
Location: Belgium
Posts: 2,023
Thanks: 108
Thanked 153 Times in 110 Posts
My Meizu
update on the system mode issue:
The code was unable to place itself in "system" mode. Other users
have been able to resolve this problem by either "unlocking" the phone
or setting something in the registry to allow unsigned binaries. (I
don't have a clear report on how it was resolved.)
source :
Re: HTC S310 (HTC Oxygen) haret.log: msg#00027 handhelds.haret

@nice2know_u thanks! i will have a look on to it!
evow04 nincs online   Reply With Quote
Old 06-25-2009   #12
Junior Member
 
Join Date: Apr 2009
Location: UK
Posts: 75
Thanks: 10
Thanked 1 Time in 1 Post
My Meizu
Rich4443,
could you provide the steps you have made to get haret connected to your pc, it could help erzincano, cause there could be a flaw in my howto or maybe just a better and easier explanation can do the trick.
Ok so steps I took: (basically what you said)

1. Installed python and extracted haret console zip on PC.
2. Copied Haret exe to M8
3. Ran the exe with USB unplugged (in user mode) with wifi on.
4. Clicked on listen for connection (in the M8 program).
5. Started connection by typing:
(this is from C:\python26 as my python is not integrated into cmd)
python "C:\Program Files\HaretconsolePackageForWin\haretconsole\conso le" 192.168.0.8 9999
(192.168.0.8 is the M8's IP on my wifi network)

Strange thing is that the device has no simlock, maybe it is an issue about firmware, could you inform us what firmware you have on your lovely m8?
And could you say if you have a beta (with wifi) or a production device?
I found that same explanation on google (no way to run as admin or equivalent).
I have the latest official firmware (0.9.0.6?) and as you might have guessed from my instructions I have a wifi version.
and can you try this :
On haret 0.5.x, there is an ability to turn on logging very early in the startup. To do so, create a file "earlyharetlog.txt" in the same directory as "haret.exe". Then run haret.exe - a file "haretlog.txt" should be created in the same directory.
I'll try the logging thing now.
ps thanks for helping!
Glad to help any developers. I'd probably not use Android but it would be nice to see.
Rich4443 nincs online   Reply With Quote
Old 06-25-2009   #13
Junior Member
 
Join Date: Apr 2009
Location: UK
Posts: 75
Thanks: 10
Thanked 1 Time in 1 Post
My Meizu
On haret 0.5.x, there is an ability to turn on logging very early in the startup. To do so, create a file "earlyharetlog.txt" in the same directory as "haret.exe". Then run haret.exe - a file "haretlog.txt" should be created in the same directory.
Ok this flat-out doesn't work...
Rich4443 nincs online   Reply With Quote
Old 06-25-2009   #14
Junior Member
 
Join Date: Apr 2009
Location: UK
Posts: 75
Thanks: 10
Thanked 1 Time in 1 Post
My Meizu
Ok as for connecting via USB I was probably being dumb. The Haret console comes with a batch file named console-activesync.bat which connects to 169.254.2.1. So I guess that's the USB connection's "IP" and you probably have to be in activesync mode. Hope that helps people without wifi.

Edit: just read erzincano's post properly. If it says the M8 denied the connection then the IP is right. Did you press the listen for connection button in Haret.exe on the M8?

Last edited by Rich4443; 06-25-2009 at 09:35 PM.
Rich4443 nincs online   Reply With Quote
Old 06-25-2009   #15
Junior Member
 
Join Date: Apr 2009
Location: UK
Posts: 75
Thanks: 10
Thanked 1 Time in 1 Post
My Meizu
Originally Posted by evow04 View Post
About running commands, i would say try to play around?
(example :dump cp to find cpu info)
HaRET(7)# dump cp 1
EXCEPTION on access to coprocessor 1 register 0
EXCEPTION on access to coprocessor 1 register 8
c00: ffffffff | c08: ffffffff
EXCEPTION on access to coprocessor 1 register 1
EXCEPTION on access to coprocessor 1 register 9
c01: ffffffff | c09: ffffffff
EXCEPTION on access to coprocessor 1 register 2
EXCEPTION on access to coprocessor 1 register 10
c02: ffffffff | c10: ffffffff
EXCEPTION on access to coprocessor 1 register 3
EXCEPTION on access to coprocessor 1 register 11
c03: ffffffff | c11: ffffffff
EXCEPTION on access to coprocessor 1 register 4
EXCEPTION on access to coprocessor 1 register 12
c04: ffffffff | c12: ffffffff
EXCEPTION on access to coprocessor 1 register 5
EXCEPTION on access to coprocessor 1 register 13
c05: ffffffff | c13: ffffffff
EXCEPTION on access to coprocessor 1 register 6
EXCEPTION on access to coprocessor 1 register 14
c06: ffffffff | c14: ffffffff
EXCEPTION on access to coprocessor 1 register 7
EXCEPTION on access to coprocessor 1 register 15
c07: ffffffff | c15: ffffffff
HaRET(8)#

Looks like system mode might help us...
Rich4443 nincs online   Reply With Quote
Old 06-25-2009   #16
Freshman
 
Join Date: May 2009
Posts: 32
Thanks: 2
Thanked 2 Times in 2 Posts
For starts I think we need a version of Haret that recognize the CPU of the M8. The ARM1176JZF-S.

Maybe at xda-developers.com we might get help

Last edited by MartO; 06-26-2009 at 01:19 AM.
MartO nincs online   Reply With Quote
Old 06-26-2009   #17
Moderator
 
JkPwNsTeR's Avatar
 
Join Date: Jul 2008
Location: Canada
Posts: 1,655
Thanks: 15
Thanked 14 Times in 13 Posts
My Meizu
Great initiative! We've all got to start somewhere, and hopefully this may turn out to be a viable alternative to Meizu's offering.
JkPwNsTeR nincs online   Reply With Quote
Old 06-26-2009   #18
Valued Member
 
evow04's Avatar
 
Join Date: Aug 2008
Location: Belgium
Posts: 2,023
Thanks: 108
Thanked 153 Times in 110 Posts
My Meizu
Rich4443,
i will change the haret tut to yours. thanks for your specs btw.
(ps : it is not dumb, the.bat file could be writen in a better way)

About your cpu dump, it is sure for now that Haret does not support arm11 like Marto suggested.

MartO,
did you ever try the mailing list from haret support, to find info about support on the cpu or details why system mode does not run?

erzincano,
can you try to follow Rich4443 instructions and see if you can get system mode?

about the haret console and usb connection:
i found : HpIpaqRx3715Draft - Handhelds.org MoinMoin Wiki
It explains how to connect trough usb in *nix (ubuntu):
USING SYNCE:
/!\ Be sure to have ipaq kernel module loaded, you should have some similar output:

pc$ lsmod | grep ipaq
ipaq 38288 0
usbserial 29148 1 ipaq

*

Execute dccm which handles the SynCE connection:

pc$ dccm

*

In another shell, replace /dev/tts/USB0 with the proper device (debian: /dev/ttyUSB0):

pc# synce-serial-config /dev/tts/USB0 10.10.10.1:10.10.10.2
0:10.10.10.1:10.10.10.2

You can now run synce-serial-start to start a serial connection.

pc# synce-serial-start

synce-serial-start is now waiting for your device to connect

*

Now you can issue the SynCE commands: (debian: synce-[command])

pc$ pstatus
(iPaq info)

pc$ pls "/iPAQ File Store/"
(Filestore files)

pc$ pmkdir "/iPAQ File Store/Linux/"
pc$ pcp rx3715/default.txt ":/iPAQ File Store/Linux/default.txt"
pc$ pcp rx3715/haret-0.3.6.exe ":/iPAQ File Store/Linux/haret-0.3.6.exe"
pc$ pcp rx3715/initrd ":/iPAQ File Store/Linux/initrd"
pc$ pcp rx3715/zImage ":/iPAQ File Store/Linux/zImage"

*

After you are done, call as root:

pc# synce-serial-abort

synce-serial-abort has requested shutdown of the current connection.
I thought aswel that the haretlog.txt only could be made trough usb conenctions, but i can not find the confirmation anywhere.

now for the good news;
our cpu is supported by Android, there are builds allready existing.
carefully read as builds existing for the CPU

source :
[android-porting] Re: Porting Android to ARM11 Mpcore
> Hi,guy!
>
> It's easy to port android for S3C6410!
>
> Kernel with android patch:
>
> git clone git://www.kandroid.org/samsung-s3c6410-android.1.0
source : transplant Android to S3c6410,install android on smartq5 in the future | JT's World
attachment : http://www.jiongtang.com/blog/wp-con...nt_android.pdf
=> i cant read this cause it is chinese/japanese

source : About Google Android: Android on S3C6410 target board
Long time since we successfully ported Android on PXA270 evaulation board.
As you know, Google opened android full sources last year.
After that, we ported android to various system, and here is one of them, Samsung S3C6410 based target board.
source : s3c6410porting Samsung Android system transplanted into film development board official Docu www.pudn.com
Describe: Samsung Android system transplanted into film development board official s3c6410 steps (select downloading for file)
So i know where not ready with fully understanding haret, but we could actually start to build a kernel allready for android.
This just by using the arm chain provided in the above quote´s. Not sure if it will work like it should, but better this then nothing?
If this is done we could try to follow haret instructions on booting linux.
But i am not sure that without system mode it will work, however, if we get an error we can always find a solution ;-)


For people whou would try to build the kernel you would need ubuntu,:
*full install : Download Ubuntu | Ubuntu
*you can use the live cd (installs nothing) Download Ubuntu | Ubuntu
*Wubi : Wubi - Ubuntu Installer for Windows this installs next to windows whitout making dangerous changes.
for other needs see: Get source ?(Android Open Source Project)?


JkPwNsTeR,
no problem, together we can try to make it work!
only issue i have is that i still need to order an m8 somewhere:s
evow04 nincs online   Reply With Quote
Member who thanked evow04 for the post:
Old 06-26-2009   #19
Passing By
 
Join Date: May 2009
Posts: 15
Thanks: 2
Thanked 0 Times in 0 Posts
I get it with xp worked^^
but I can't get in system mode

Last edited by erzincano; 06-26-2009 at 09:32 AM.
erzincano nincs online   Reply With Quote
Old 06-26-2009   #20
Administrator
 
nice2know_u's Avatar
 
Join Date: Mar 2007
Location: Budapest, Hungary
Posts: 3,424
Thanks: 133
Thanked 584 Times in 209 Posts
My Meizu
Keep up the enthusiasm guys!
I'd be glad to help but I'm not sure how
nice2know_u 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. Meizu M8, miniPlayer and all related names are properties of MEIZU Electronic Technology, Inc. Copyright 2009 Meizu Me.
LinkBacks Enabled by vBSEO © 2010, Crawlability, Inc.