[ROM][UNOFFICIAL][WIP] Cyanogenmod 11 (4.4.4 - kitkat) for Wiko Stairway (mtk6589)

Search This thread

EnerJon

Senior Member
Jan 29, 2014
350
212
The device was getting unstable after some time. It seems as if it was a memleak. This gralloc lib is from E3 KitKat rom.

Chris

Sent from my wiko using Tapatalk
Yes, there was a memleak issue in this cm11 rom when we ported it using stock kitkat kernel to Elife E3 clone , and the issue was fixed by replacing the same file... Glad to see you back on this project (y)

One more issue i would like to mention is random reboots, after a lot of digging i found that you disabled "CONFIG_MTK_AEE_POWERKEY_HANG_DETECT" in your kernel source which is by default enable in mt6589 stock kernels and it is causing those random reboots for us... Unfortunately, those who don't have their device kernel sources can't disable it in their stock kitkat kernels, and such devices are stuck on mtk roms... The whole mt6589 community having stock kitkat kernels will be thankful to you if you can implement powerkey_hang_detect in your CM11 rom... Thankyou :)
 

chrmhoffmann

Inactive Recognized Developer
Nov 11, 2006
928
3,149
Yeah, not sure how this hang detection works. There must be something missing in user space that makes this work. Where is the project on xda that also found this gralloc problem?

Chris
 

I.nfraR.ed

Senior Member
May 9, 2013
234
275
Sofia
I can confirm those 2 issues with my kernel and AOSP source for my device - Lenovo A820.
Initially, I had a huge mem leak with "original" gralloc lib. So hyperion70 gave me an idea to replace that file. I took it from bq Aquaris 5 stock KK rom and it worked.

The second issue was about AEE_HANG DETECT. It was a problem if the ROM does not have this functionality, but the kernel has it enabled (it is the case with all default 6589 kernels).
Since CyanogenMod does not have it (as opposed to leaked MT6589 AOSP source), it is probably causing this problem.
The other case when kernel has it disabled and ROM enabled was fine. So IMO it is better to disable this in the kernel config and I even removed that function completely from the source.
It was leading to random reboots, as mentioned in this thread.

Btw, this is how I fixed the random reboot issue on the CM11 port for A820 someone else did - disabled the hang detect in kernel.
I still can't boot the compiled CM11. There must be something I'm missing.
I didn't know you have the same issue, otherwise would have reported the fix much earlier.

PS: Actually used the gralloc from the kernel source on github: https://github.com/bq/aquaris-5/tree/aquaris-5/mediatek/platform/mt6589/hardware/gpu/user
 
Last edited:

bhargav.k

Member
Jun 29, 2014
49
5
I can confirm those 2 issues with my kernel and AOSP source for my device - Lenovo A820.
Initially, I had a huge mem leak with "original" gralloc lib. So hyperion70 gave me an idea to replace that file. I took it from bq Aquaris 5 stock KK rom and it worked.

The second issue was about AEE_HANG DETECT. It was a problem if the ROM does not have this functionality, but the kernel has it enabled (it is the case with all default 6589 kernels).
Since CyanogenMod does not have it (as opposed to leaked MT6589 AOSP source), it is probably causing this problem.
The other case when kernel has it disabled and ROM enabled was fine. So IMO it is better to disable this in the kernel config and I even removed that function completely from the source.
It was leading to random reboots, as mentioned in this thread.

Btw, this is how I fixed the random reboot issue on the CM11 port for A820 someone else did - disabled the hang detect in kernel.
I still can't boot the compiled CM11. There must be something I'm missing.
I didn't know you have the same issue, otherwise would have reported the fix much earlier.

PS: Actually used the gralloc from the kernel source on github: https://github.com/bq/aquaris-5/tree/aquaris-5/mediatek/platform/mt6589/hardware/gpu/user

bro there is rom 4.4.4 port for canvas 4 working fine except cam it might help you pls get us a stable rom we want to taste kitkat
 

I.nfraR.ed

Senior Member
May 9, 2013
234
275
Sofia
bro there is rom 4.4.4 port for canvas 4 working fine except cam it might help you pls get us a stable rom we want to taste kitkat

There are plenty of ported KK roms for A820 already in 4pda forums.
However, this is not the correct thread for that. All I wanted was to give a heads up to the OP, since he did a great job with CM11 for MTK6589.
Chinese people use the fixed kernel with the patch I did back in April and all of them report that the reboot issue is gone.
 

andreya108

Senior Member
Dec 7, 2010
129
57
Moscow
github.com
Guys,
thanks for your work!
We've ported this CM11 build to Lenovo P780, but there are three problems (at least).
1) accidental reboots
2) cpu does not scales frequency down (always at 1.2GHz, though switches cores off and shows 0% cpu load when idle)
3) no deep sleep when gps is enabled

Do you experience such problems on Wiko? Any ideas how to fix?

Thanks!
 

I.nfraR.ed

Senior Member
May 9, 2013
234
275
Sofia
Not sure about Wiko, but all these issues are present on other devices with ported ROM.
Perhaps the OP has newer build, but currently I still can't boot mine compiled from source.

The first issue is due to the power key hang detect function in kernel. If you recompile the kernel with this option disabled, then the issue is gone.
So, ask your developers to recompile the kernel.
Don't know about other two, haven't played with CM much, since I can't boot it atm and I don't like ports.

One option would be to compare both kernel sources and see if there is some significant difference in platform config.

Perhaps I can add P780 in my kernel, as I did with A830, but I need you to point me out a good config/custom folders for your device, which are proved to work.

PS: I see you're the developer of P780 kernel. Maybe you can add your config and custom folders to my kernel and compile it, then see if there's a difference.
 
Last edited:

andreya108

Senior Member
Dec 7, 2010
129
57
Moscow
github.com
Yes, I've recompiled kernel and reboots are gone... (seems that i'm the only kernel developer for p780)
But the issue with fixed cpufreq is very strange. It's only under CM11. My kernel works almost perfectly with all other roms.
 

I.nfraR.ed

Senior Member
May 9, 2013
234
275
Sofia
Yes.
As far as I know it is the same on A820 and probably other ports. Don't know about Wiko though.
Most of the people who once worked on MT6589 already moved to other devices.
 
Last edited:

sstassin

Member
Aug 26, 2008
41
3
Hi chrmhoffmann.

A big big thank from France for your amazing help to keep wiko users up to date the last android version (a lack of great number of manufacturer).

May i suggest you to add the following requirements for installing your rom in the first post:

  • Boot en CWM
  • Wipe data / factory reset
  • Wipe cache partition
  • Wipe dalvik cache
  • Install Rom from zip
  • install Gapps
  • restart

Because a lot of people have a "7 error code" while installing the zip. And if you are
not flashing your rom very often (just like me), it is a good reminder to have all the step described in the first post.

"Bien le bonjour de Toulouse !"
 

kickban

Senior Member
Feb 17, 2012
219
16
Xiaomi Redmi 5
TCL Plex
A big big thank from France for your amazing help to keep wiko users up to date the last android version (a lack of great number of manufacturer).

Not Wiko Cink Peax 2 users.. I can't find anything for this model..

I know this is not the right thread but anyone knows some ROM or clone port for this?

Thanks



Sent from my CINK PEAX 2 using XDA Free mobile app
 

foober

Senior Member
Jul 31, 2014
314
50
Hi, i have et t45e (isa 1000) and i want to port cm for my phone. The last custom rom was end on jb. Can you tell me what i should to do? I don't stay in android 4.2.1. :( Thx!
 

Top Liked Posts