Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[KERNEL-3.4.67] MT6589 / MT6589M / MT6589T

OP Dr-Shadow

4th March 2014, 06:34 PM   |  #1  
Dr-Shadow's Avatar
OP Recognized Developer
Flag NANTES
Thanks Meter: 553
 
454 posts
Join Date:Joined: Sep 2013
Donate to Me
Hi,

I was working since a while on this :

android_kernel_mt6589

For releases (beta builds - maybe unstable/not working), see here

I'm trying to support other devices too. Please send me your mt6589 device name and his kernel source (stock source !!)

Actual features :
  • Built commit history (patches cherry-pick from AOSP inside mtk kernel)
  • Mtk generate&build scripts moved into kernel directory
  • Merging meditatek sources (some devices will benefit from others kernel changes)
  • Removed a lot of unusued debug
  • Cortex A7 Optimizations + NeonV2 + FPV4
  • Built with sabermod (4.8.3) arm-eabi 4.8
  • Can be used into Omnirom build process (kernel and modules)
Future releases :
  • Support for multiple devices
  • Mtk commits for kernel source (with comments or docs)
  • Improve mediatek source ?
  • Suggestions welcomed
Supported devices :
  • Faea F2S
Requested devices :
  • Oppo R819 - WIP
  • Wiko (MT6589 devices) - need check for GPL compliance (OTA and updates on kernel source)
  • Lenovo P780 - need check for GPL compliance (OTA and updates on kernel source)
  • ZTE V967S - need check for GPL compliance (OTA and updates on kernel source)
  • Acer Liquid E2

    Requested devices but no stock sources :
  • Xolo Q800 - need GPL compliance
  • Micromax A116 - need GPL compliance
Info about compatibility :
  • Kernel should be compatible with MT6589/MT6589M/MT6589T because the OC is hardware dependent (it gets the values of the board to detect which generation it is)
What I won't do :
  • Support overclocking for MT6589/MT6589M to act like MT6589/MT6589T
XDA:DevDB Information
[KERNEL-3.4.67] Source for MT6589 / MT6589M / MT6589T, a Kernel for the Android General

Contributors
Dr-Shadow
Kernel Special Features: Full source for kernel with commit history

Version Information
Status: Stable
Stable Release Date: 2014-03-04

Created 2014-03-04
Last Updated 2014-04-13
The Following 49 Users Say Thank You to Dr-Shadow For This Useful Post: [ View ]
4th March 2014, 06:34 PM   |  #2  
Dr-Shadow's Avatar
OP Recognized Developer
Flag NANTES
Thanks Meter: 553
 
454 posts
Join Date:Joined: Sep 2013
Donate to Me
Reserved
So I implemented a way to build easyly the kernel

All you need is repo, git and dependencies as described here : https://github.com/Dr-Shadow/android...t6589_manifest

So if you want to build latest kernel from my git :

For Faea F2S : ramdisk from stock ROM - almost stock kernel should be "stable"
Code:
repo init -u https://github.com/Dr-Shadow/android_kernel_mt6589_manifest.git -b master
cd kernel
./build.sh
For Oppo R819 : ramdisk from stock colorOS stable (V1.0.0i 140120) - BETA
Code:
repo init -u https://github.com/Dr-Shadow/android_kernel_mt6589_manifest.git -b r819-release
cd kernel
./build.sh
Next branch (released) :

For Faea F2S : ramdisk from stock ROM - BETA real 3.4.67 (should be stable)
Code:
repo init -u https://github.com/Dr-Shadow/android_kernel_mt6589_manifest.git -b devel-upstream
cd kernel
./build.sh
I improved the build.sh like this, you don't need to worry about vars and others.
Last edited by Dr-Shadow; 29th May 2014 at 02:44 AM.
The Following 9 Users Say Thank You to Dr-Shadow For This Useful Post: [ View ]
4th March 2014, 06:34 PM   |  #3  
Dr-Shadow's Avatar
OP Recognized Developer
Flag NANTES
Thanks Meter: 553
 
454 posts
Join Date:Joined: Sep 2013
Donate to Me
Reserved
Any help is welcomed for this kernel tree.

What you can actually do :
  • Check if you can compile actually suported devices
  • Do pull requests to add devices or drivers
  • Check changes between your original stock source of your device
  • Adapt configuration files (Remove drivers not added or not working, add missing var)
  • Create a build script with a var for TARGET_PRODUCT which would be able to check env, build kernel and modules to out/ (my build.sh is a example for e960 - Faea F2S)
Actually, I'm merging Oppo R819 sources and I saw there was differences on mediatek drivers (some things were added by Oppo)

For example, I got this diff :
https://docs.google.com/document/d/1...REXeZFJEA/edit

So for merging I'm replacing VENDOR_EDIT by OPPO_R819 so when kernel is compiling it should be able to keep Oppo changes only for Oppo R819 (thank you preprocessor for your hard work).
Of course, I'm not merging debug stuff.

The other idea would be to create documents, to document a specific change between another mtk source like those changes :
https://docs.google.com/document/d/1...1rXZiDiCg/edit
The focus of doc would be to show if the changes would be interesting for system part (better app for photos for example)

Example of new var introduced by recent mtk source (MAIN_SENSOR_ROTATE_DEGREE_X see config files) :
https://github.com/Dr-Shadow/android...mgsensor.h#L52
Ok this is for hal but it's still interesting to check changes and this is actually my focus.
Last edited by Dr-Shadow; 10th April 2014 at 03:47 AM.
The Following 5 Users Say Thank You to Dr-Shadow For This Useful Post: [ View ]
4th March 2014, 08:43 PM   |  #4  
superdragonpt's Avatar
Recognized Contributor
Flag Lisbon
Thanks Meter: 5,748
 
1,924 posts
Join Date:Joined: Apr 2013
Donate to Me
More
Awesome
You finnaly got the time to released it

The Following User Says Thank You to superdragonpt For This Useful Post: [ View ]
4th March 2014, 11:54 PM   |  #5  
Matx13's Avatar
Member
Thanks Meter: 21
 
78 posts
Join Date:Joined: Feb 2013
Kernel source code Acer E2 Duo v370:

http://global-download.acer.com/GDFi...CER&SC=EMEA_13

Extracted kernel:
https://www.mediafire.com/?anywf4e9d1mb755

That's what you want?
I'm starting with the kernels ...
Last edited by Matx13; 5th March 2014 at 12:00 AM.
5th March 2014, 12:01 AM   |  #6  
Dr-Shadow's Avatar
OP Recognized Developer
Flag NANTES
Thanks Meter: 553
 
454 posts
Join Date:Joined: Sep 2013
Donate to Me
Quote:
Originally Posted by Matx13

Kernel source code Acer E2 Duo v370:

http://global-download.acer.com/GDFi...CER&SC=EMEA_13

Extracted kernel:
https://www.mediafire.com/?anywf4e9d1mb755

That's what you want?

Thank you for your sources

I will reconsider working on this device if Acer updates the kernel source (I got a discussion for it with Acer - need some time to find a solution).
The Following 6 Users Say Thank You to Dr-Shadow For This Useful Post: [ View ]
5th March 2014, 07:01 AM   |  #7  
eagledipesh's Avatar
Senior Member
Thanks Meter: 122
 
505 posts
Join Date:Joined: Jan 2011
Donate to Me
More
There is a working kernel by @kashifmin, please check his gitrepo : http://d-h.st/zdN
Device : Micromax A116
this kernel have few bugs.
5th March 2014, 07:03 AM   |  #8  
Dr-Shadow's Avatar
OP Recognized Developer
Flag NANTES
Thanks Meter: 553
 
454 posts
Join Date:Joined: Sep 2013
Donate to Me
Quote:
Originally Posted by eagledipesh

There is a working kernel by @kashifmin, please check his gitrepo : http://d-h.st/zdN
Device : Micromax A116
this kernel have few bugs.

Yes but this is not a stock source.
The Following 2 Users Say Thank You to Dr-Shadow For This Useful Post: [ View ]
5th March 2014, 07:42 AM   |  #9  
kashifmin's Avatar
Senior Member
Flag Mangalore
Thanks Meter: 1,185
 
272 posts
Join Date:Joined: Oct 2012
Donate to Me
More
Quote:
Originally Posted by Dr-Shadow

Yes but this is not a stock source.

Great work sir. Check your pm for stock source links
The Following 2 Users Say Thank You to kashifmin For This Useful Post: [ View ]
5th March 2014, 10:46 AM   |  #10  
GuneetAtwal's Avatar
Recognized Contributor
Flag Punjab
Thanks Meter: 6,613
 
1,981 posts
Join Date:Joined: Oct 2012
More
I see that you cherry picked many commits but still can you provide a Changelog (With Major changes from Stock MTK Kernel and Features )

This will help me atleast for development of kernel for other MTK Chipsets

Btw Great work i always like development and i also bought a MTK Phone based on MT6572

The Following 5 Users Say Thank You to GuneetAtwal For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes