xen0n / android_device_meizu_arale

Device tree for Meizu MX4 (common part + Ubuntu Edition)
34 stars 28 forks source link

CM14.0 porting progress #21

Closed xen0n closed 1 year ago

xen0n commented 8 years ago

Expect progress to be very indeterminate; not only are the upstream branches floating, my free time is heavily fragmented too.

Don't drop by here often! Guaranteed to be a waste of time before the cm-14.0 branch (without the staging prefix) appears. cm-14.0 has just graduated from staging a while ago, but I'll still do my port slowly. Don't expect much progress at least until December.

xen0n commented 8 years ago

No SELinux is non-workaround-able now since CyanogenMod/android_system_core@4800dbf1da2b7d866c67c7375a55057f2b6c6d52, ALL services need an SELinux context to even get considered by init. Some serious troubles coming...

afaulkner420 commented 8 years ago

does this mean a prebuilt kernel is a long way off?

xen0n commented 8 years ago

@afaulkner420 No I have already worked around the SELinux part, but the most serious blocker now is gralloc blob segfaulting on SystemUI init. Can't seem to debug this for now 😕

xen0n commented 8 years ago

Just thought about giving dumpsys a shot and immediately got this:

Hardware Composer state (version 01040000):
  mDebugForceFakeVSync=0
  Display[0] configurations (* current):
    * 0: 1152x1920, xdpi=418.010986, ydpi=416.820007, refresh=16820857, colorTransform=0
  numHwLayers=3, flags=00000000
    type   |  handle  | hint | flag | tr | blnd |   format    |     source crop (l,t,r,b)      |          frame         | name 
-----------+----------+------+------+----+------+-------------+--------------------------------+------------------------+------
      GLES | 00000000 | 0000 | 0001 | 00 | 0105 | ? ffffffff  |   -0.2,   -0.2,   -0.8,   -0.8 |    0,    0, 1152, 1920 | DimLayerController/Stack=0
      GLES | b6592300 | 0000 | 0000 | 00 | 0105 | RGBA_8888   |    0.0,    0.0, 1152.0, 1920.0 |    0,    0, 1152, 1920 | BootAnimation
 FB TARGET | b692af00 | 0000 | 0000 | 00 | 0105 | RGBA_8888   |    0.0,    0.0, 1152.0, 1920.0 |    0,    0, 1152, 1920 | HWC_FRAMEBUFFER_TARGET

Seems interesting... Going deeper.

xen0n commented 8 years ago

Synced to latest sources and voila!

Please do note that I'll still be slow on the porting. Don't expect much progress at least until December.

screenshot_20161001-150106

afaulkner420 commented 8 years ago

So it was a bug all over? That's interesting lol! Will we all be able to get to this stage now? I want to bring it up on mt6592...

xen0n commented 8 years ago

@afaulkner420 Maybe, the crash originated in the MT6595 blob so I know nothing about them... I however applied a workaround in libgralloc_extra.so silently ignoring the bad queries with null handles, that wasn't pushed to GitHub. I'll remove the workaround to see how everything goes. That's precisely why the staging branch is distinct from the usual dev branch; it's meant for the unstable bits!

As for portability to other MTK chips, I have almost 100% confidence that the code is portable, considering the MTK chips are nearly identical looking from user-space. But you'd better wait until the official CM14.0 announcement is out, or be prepared with frequent rebases throughout the tree. 😄

afaulkner420 commented 8 years ago

Ahhh that's understandable. I'm not looking for anything stable as such. I'm just wanting to play. I want to get a head start for later on down the line. I'll resync my tree and get going I think... I know there's going to be a lot of changes, but if I can get to this stage too ;) then all is good! Its still progress ;) And the more people doing it, I recon the quicker things may become more stable ;) Is there any clues as to when the actual cm14 repo may come about?

xen0n commented 8 years ago

@afaulkner420 I don't know of any such "clue", but if things go fine I think it'll be early 2017? CM13.0 arrived several months after the Marshmallow code drop I remember.

BTW all my modifications are pushed to GitHub, so if you look closely at my repos you should be able to reproduce my progress (except vendor blobs perhaps). Good luck to your porting!

afaulkner420 commented 8 years ago

Yeah that makes sense. They have alot of changes to make! Then getting it all stable aswelll... Can't be an easy task... And funny you should say that, I was just looking at ur commits in ur staging forks... I see some cloning and a bit of git format-patch coming along ;) Thanks for that! Good luck to you too! Whenever u get the time anyway! If I get anywhere with anything, I'll be sure to keep u posted and post on here!

DarkKnight6499 commented 7 years ago

Any further progress for mediatek platform ? @xen0n @afaulkner420

diparthshah commented 7 years ago

device : gionee m2 , chipset : mt6582 , kernel : prebuilt 3.4.67 , ROM : CM-14.1 , status : recursive reboot to bootlogo

ISSUE : adb detects my device , but i cant get a logcat

error like this persist : error: exec '/system/bin/sh' failed: No such file or directory

ps: that sh file is present though

last_kmsg : http://hastebin.com/titoliqito.md

Thnaks in advance

@xen0n @ferhung-mtk

liyuhao56 commented 7 years ago

加油大神,期待android7.0,么么哒

ghost commented 7 years ago

Any news on this? It's really cool someone is taking care of MX4 users :)

xen0n commented 7 years ago

I'm really busy with academics and don't have time for this until June or maybe July. Sorry for the silence!

ghost commented 7 years ago

No problem, good luck for your academics !!!

TommyGunn52 commented 7 years ago

Hey, whats new? When i will be able to download the rom?

zub2 commented 7 years ago

Hi xen0n, Thank you and the others involved for all the work on mx4! I built the cm-14 version and indeed it boots into UI and wifi works. :+1: I was thinking I could look at the missing bits but I know very little about Android. :-( Is there something that needs to be done that is not particularly difficult? Looking at your list above, I see "N-compatible init.rc services without hacks" but that probably requires quite some android knowledge. What about audio? Could you (or anybody else here) point me to things to look at?

Looking at the sources I also have some questions:

tribual commented 7 years ago

On Elephone P9000 we have all running on Nougat except video recording and playback of 1080p and 1080p 60fps.

You have any idea how to solve this last bigger issue?

THX

kosoymiki commented 6 years ago

Yandex.Translate: Hello, I am asking you to resume work on the project.

xen0n commented 6 years ago

@kosoymiki Unfortunately my arale's battery died, and my mx4 was lost. I'm so occupied in real life that I can't resume porting at least until very late in the year, if at all...

kosoymiki commented 6 years ago

@xen0n without your work on my kernel, there will never be a android 7, I really hope that you will have the time and energy and you will still finish what you started.