FORUMS
Remove All Ads from XDA

[Kernel][lux] Squid Kernel for Moto X Play

1,703 posts
Thanks Meter: 10,912
 
By squid2, Recognized Developer on 13th September 2015, 06:07 AM
Post Reply Email Thread
This is a port of my "Squid Kernel" to the Moto X Play. It is based off the Motorola stock kernel and includes updates from CodeAurora and Kernel.org, along with my original work and cherry picks from other sources.

Disclaimer:
This kernel is for the Moto X Play (lux) only! Don't flash it on surnia, osprey, otus, or any other device. This kernel is provided AS-IS, with no warranties. I am not responsible for bricking your device. Flash at your own risk. Versions r22 and up are only intended for Nougat ROMS!

Features:
  • LED notification support
  • Moderately undervolted
  • Slightly overclocked
  • Updated to Linux 3.10.108
  • Synced with latest CodeAurora changes
  • Improved memory management
  • Improved VMA caching backported from Linux 3.15
  • Optimized ARM crypto routines
  • Updated f2fs and WiFi drivers
  • FIOPS and BFQ I/O schedulers
  • Lionfish CPU governor
  • ClusterPlug big.LITTLE hotplug (designed for MSM8939)
  • KCAL MDP5 colour control (by savoca)
  • Improved zRAM backported from Linux 4.9
  • Vibration intensity control
  • Compiled with Linaro GCC 7.3 and optimized for Cortex A53
  • Stripped down and optimized configuration

Release History:
Code:
r23: August 15, 2018
- Restored aggressive BCL for deteriorated lux batteries
- Tonnes of security patches
- Updated binder
- Compiled with Linaro GCC 7.3.1

r22c: January 14, 2018
- Fix lux speakerphone on modern ROMs

r22b: January 13, 2018
- Audio driver fixes

r22: January 11, 2018
- Security patches
- Updated camera drivers

r21: December 6, 2017
- Updated to Linux 3.10.108
- Security patches
- Oreo support related patches

r20: August 2, 2017
- Updated to Linux 3.10.107
- Tonnes of security patches from many places
- Updated sdcardfs from Google
- Updated WiFi driver from CAF
- Compiled with Linaro GCC 6.3.1

r19: January 1, 2017
- Added support for Nougat ROMs
- Updated zRAM from Linux 4.9
- Updated (optimized) FUSE from CAF
- Kernel ASLR and many info leak fixes
- ARM PXN support for exploit mitigation
- Tons of security updates
- Some CAF updated from LA.BR.1.2.9_rb1.10
- Fixed kernel panic on VPN disconnection
- Updated compiler to Linaro GCC 6.2.1

r18: November 8, 2016
- Tons of security updates
- Updated to Linux 3.10.104
- Updates from Motorola Harpia kernel
- GPU driver latency reduction

r17: August 16, 2016
- Security updates
- Updated to Linux 3.10.102
- CyanogenMod compatibility updates

r16g: May 16, 2016
- Security updates

r16f: April 14, 2016
- Reverted f2fs update

r16e: April 10, 2016
- Lower BCL threshold voltage
- Updated zRAM from Linux 4.4

r16d: April 8, 2016
- Vibration intensity control
- Updated f2fs from Linux 4.6
- Patches for CM13 compatibility
- ClusterPlug bug fix
- Built with Linaro GCC 5.3

r16b: April 6, 2016
- ClusterPlug 2
- Security fixes
- Changes for CM13 compatibility

r16: March 20, 2016
- Updated to Linux 3.10.101
- Updated to Motorola MPD24.107
- Updated WiFi driver from CAF
- IO optimizations under heavy load
- Miscellaneous bug and security fixes

r15b: Feburary 27, 2016
- Updated to Linux 3.10.98
- ARMv8 crypto related fixes
- Use ARMv8 crypto for adopted storage

r15: February 6, 2016
- Updated to Linux 3.10.96
- Updated f2fs from Linux 4.5
- Kernel library optimizations
- Improved CFQ IO scheduler
- Improved kernel PRNG
- ARMv8 accelerated crypto support
- Better use of ARM instruction set
- Added minimum CPUs parameter for IntelliPlug
- Miscellaneous bug fixes

r14b: January 23, 2016
- Fixed speakerphone mic
- Fixed low/poor call audio
- Security fix for CVE-2016-0728

r14: January 16, 2015
- Partial update to CAF LA.BR.1.2.7_rb1.1
- More than a dozen CAF security fixes
- Slightly smoother performance

r13b: January 14, 2016
- Security and bug fixes from Linux 3.12.52

r13: January 14, 2016
- Updated to Motorola Marshmallow sources
- Should work on Marshmallow Stock ROM
- Miscellaneous fixes
- Animations seem smoother on CM13 now
- Compiled with Linaro GCC 5.2

r12: December 20, 2015
- CM13 ONLY!!!
- Updated zRAM
- Optimized memory caching, allocation, and management
- Optimized scheduler
- Optimized performance event tracking
- Updated camera driver for new CM13 build

r11f: December 17, 2015
- Updated to Linux 3.10.94
- Updated to LA.BR.1.1.3_rb1.41
- WiFi is a kernel module
- FOR CM13 ONLY!!!

r11e: December 1, 2015
- Fixed some cpufreq races
- ClusterPlug disabled by default on stock ROM
- Minor bug fixes

r11d: November 15, 2015
- Improved Lionfish load calculation

r11c: November 14, 2015
- Disabled the kernel interface for Qualcomm perfd

r11b: November 14, 2015
- Made ClusterPlug more tolerant of PowerHAL/perfd

r11: November 14, 2015
- Added my new ClusterPlug CPU hotplug
- Enabled my Lionfish CPU governor

r10g: November 11, 2015
- Patched Pronto CR-930533 vulnerability
- Fixed possible use-after-free in zRAM
- Updated to Linux 3.10.93

r10f: November 9, 2015
- Updated to Moto Maxx 2 Kernel

r10e: October 31, 2015:
- Security and stability improvements
- Updated to Linux 3.10.92
- Updated to CAF LA.BR.1.1.3_rb1.36
- MDSS brought closer to CAF
- Compiled with Linaro GCC 5.1 snapshot

r10d: October 26, 2015
- Fixed r10c SELinux regression on stock ROM

r10c: October 24, 2015
- Fixed encryption support
- Patches for Android 6.0 compatibility

r10b: October 4, 2015
- Fixed move app to SD card issue
- Cleaned up DTBs to reduce size

r10: October 3, 2015
- Added KCAL colour control (by savoca)
- Added optimized crypto routines for ARM
- Updated to Linux 3.10.90
- Optimized memory performance
- General cleanup and optimization

r9e: October 1, 2015
- Fixed reboot to recovery

r9d: October 1, 2015
- Fixed screen glitches

r9c: September 30, 2015
- Updated to proper kernel sources
- Updated to Linux 3.10.89
- Updated to LA.BR.1.1.3_rb1.32
- Small tweaks and optimizations

r8b: September 18, 2015
- Fixed Moto Voice
- Updated to Linux 3.10.88

r8: September 13, 2015
- Initial release for lux
Downloads:
Main downloads tab

Flashing Instructions:
Flash the zip with TWRP. I recommend making a nandroid backup before flashing. This kernel will work on both the stock ROM and custom ROMs that have WiFi configured as a kernel module.

XDA:DevDB Information
Squid Kernel for Moto X Play, Kernel for the Moto X Play

Contributors
squid2
Source Code: https://github.com/sultanqasim/andro...torola_msm8916

Kernel Special Features:

Version Information
Status: Stable
Current Stable Version: r23
Stable Release Date: 2018-08-15

Created 2015-09-13
Last Updated 2018-08-15
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2015-09-13-01-09-41.png
Views:	111510
Size:	117.6 KB
ID:	3471967  
The Following 149 Users Say Thank You to squid2 For This Useful Post: [ View ]
 
 
13th September 2015, 06:33 AM |#2  
squid2's Avatar
OP Recognized Developer
Flag Ontario
Thanks Meter: 10,912
 
Donate to Me
More
Initial Build Up
The first ever custom kernel for the Moto X Play is now available!

The kernel includes everything mentioned above. It includes notification LED support, and the notification LED will start working on the stock ROM after flashing this kernel. It does not include IntelliPlug or Lionfish, as they are incompatible with big.LITTLE systems in their present state.

I have tested the core functionality and everything appears to work. However, since this is a very early release, I would not be surprised if bugs exist. Please report any bugs or crashes you encounter.

Since everything appears to work in this kernel, we are all set for a CyanogenMod port. Tomorrow, I plan to start porting CM12.1 to this device. If you're lucky, you might be seeing a fully working CM build by tomorrow night.
The Following 42 Users Say Thank You to squid2 For This Useful Post: [ View ]
13th September 2015, 06:45 AM |#3  
ephumuris's Avatar
Senior Member
Flag Hull
Thanks Meter: 635
 
More
Mate you freakin legend. That's some quick development support for our battery beast. I'm working too long hours to test this just now if I get chance on a break I'll get twrp installed etc my device is only rooted so far.

Noticed you brought cm12 to osprey as well. Do you have a donations link as I'd like to donate a little when I get paid just as a thank you.

Sent from my XT1562 using Tapatalk
The Following 4 Users Say Thank You to ephumuris For This Useful Post: [ View ] Gift ephumuris Ad-Free
13th September 2015, 07:17 AM |#4  
dictionary's Avatar
Senior Member
Thanks Meter: 1,575
 
Donate to Me
More
So far haven't noticed any performance improvements (still fresh) but I am LOVING this notification light!!! I can finally at a quick glance tell if it's worth reaching for my phone. And at night, I know where it is. You're awesome! Definitely need a donate link ..
The Following 2 Users Say Thank You to dictionary For This Useful Post: [ View ] Gift dictionary Ad-Free
13th September 2015, 04:49 PM |#5  
Senior Member
Flag Sheffield, UK
Thanks Meter: 44
 
More
Firstly thanks for working on the X Play. Installed fine but Moto Voice now not working? Cannot switch on in Moto app, was fine prior to flashing this kernel?

Sent from my XT1562 using XDA Premium HD app
The Following User Says Thank You to CharlesW123 For This Useful Post: [ View ] Gift CharlesW123 Ad-Free
13th September 2015, 05:14 PM |#6  
squid2's Avatar
OP Recognized Developer
Flag Ontario
Thanks Meter: 10,912
 
Donate to Me
More
Quote:
Originally Posted by CharlesW123

Firstly thanks for working on the X Play. Installed fine but Moto Voice now not working? Cannot switch on in Moto app, was fine prior to flashing this kernel?

Sent from my XT1562 using XDA Premium HD app

I just checked and can confirm that the kernel breaks audio input for Moto Voice. The microphone works fine everywhere else though. There is probably a small change Motorola made to the audio path for always listening audio between the osprey and lux kernels, or it might have been broken by a CodeAurora change. I'll do some more investigating when I get time.
The Following 4 Users Say Thank You to squid2 For This Useful Post: [ View ]
13th September 2015, 06:59 PM |#7  
Senior Member
Flag Vancouver
Thanks Meter: 168
 
More
Deep sleep issues, the device stay awake 2h now after flashing the kernel.
13th September 2015, 07:45 PM |#8  
Senior Member
Thanks Meter: 462
 
More
Quote:
Originally Posted by XMoDuLeSx

Deep sleep issues, the device stay awake 2h now after flashing the kernel.

Seeing that myself as well. Guessing something related to the Moto Voice glitch (mine Force Closes from time to time).
Attached Thumbnails
Click image for larger version

Name:	uploadfromtaptalk1442169903011.png
Views:	5348
Size:	96.8 KB
ID:	3472605  
The Following 2 Users Say Thank You to Devhux For This Useful Post: [ View ] Gift Devhux Ad-Free
13th September 2015, 08:55 PM |#9  
Member
Thanks Meter: 18
 
More
Quote:
Originally Posted by squid2

...but vache's TWRP will probably work as well.

Nope, didn't work. I try it 3 times. TWRP says "successfully" after the zip flash but Android reboot with the original Kernel.

With your TWRP it is no problem.

The deep sleep issues: i have no, BUT i have disabled many Motorola apps with Titanium (Moto Voice too)

the kernel is going well
the system runs a little better and the CPU is clocked down faster which saves battery.
However, the read / write rates from the internal memory card have become worse. Have tested it with Androbench.
about 1000 iops fewer
I/O Scheduler: Fiops with 1024kb Read-Ahead

but that's not so bad
Thank you for your effort
if I may donate you a coffee / beer, tell me
The Following 3 Users Say Thank You to Denni2306 For This Useful Post: [ View ] Gift Denni2306 Ad-Free
13th September 2015, 09:11 PM |#10  
Mennooo's Avatar
Senior Member
Flag Stockholm
Thanks Meter: 153
 
More
Thank you, finally some led notifikation action

Skickat från min XT1562 via Tapatalk
The Following 3 Users Say Thank You to Mennooo For This Useful Post: [ View ] Gift Mennooo Ad-Free
13th September 2015, 09:56 PM |#11  
Senior Member
Flag Sheffield, UK
Thanks Meter: 44
 
More
Quote:
Originally Posted by squid2

I just checked and can confirm that the kernel breaks audio input for Moto Voice. The microphone works fine everywhere else though. There is probably a small change Motorola made to the audio path for always listening audio between the osprey and lux kernels, or it might have been broken by a CodeAurora change. I'll do some more investigating when I get time.

Thanks, also to note have flashed back a stock boot.img file via fastboot and can't get on WiFi? The WiFi toggle goes straight back to off? So can either go back to stock and have working Moto Voice but no WiFi, or use your Kernel and have no Moto Voice I used the boot.img here: http://forum.xda-developers.com/moto...t-img-t3191436 My phone is the same version as listed, XT1562 EU any ideas please?
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes