FORUMS
Remove All Ads from XDA

[WIP][6.0][LineageOS13] (Marshmallow) Custom Droid 4/RAZR OC Kernel and SDSwap

615 posts
Thanks Meter: 500
 
By joojoobee666, Senior Member on 30th December 2015, 01:54 AM
Post Reply Email Thread
This is a custom kernel for D4/RAZR based off of the CM13.0 Kernel that was created by @stargo for Marshmallow. Below is the list of features this kernel adds to the Stock CM13 kernel:
  • Over-clocking to 1.3 and 1.4Ghz
  • A special SELinux permissive kernel (here's looking at you @daniel_m)
  • Additional Governors - InteractiveX, KToonservative, Lionheart, SmartassH3 and ZZMove.
  • Additional Schedulers - ROW, SIO, SIO Plus, VR and Zen
  • IntelliPlug driver - Hotplugging while sleeping for all governors (leave governor Hotplug disabled as this overrides)
  • Additional frequency and scaling scaling options:
    • RunNGun - all frequencies between 300Mhz and 1000Mhz removed.
    • Full Scale - all frequencies (in steps of 100Mhz) enabled up to max speed kernel supports
    • *** All are labeled in the downloads section below ****
  • Additional Voltage Options for 1.4Ghz frequency: HV (High Voltage), LV (Low Voltage) and ULV (Ultra-Low Voltage)
  • LMK optomizations thanks to @u.b.o.o.t.

Speeds up to 1.4Ghz. I have no issues with 1.4, but mileage may vary per device. Try the ULV (Low Voltage) first. If this does not work, try the LV. If neither work, try the HV. If it's still not working, you may just have to use one that maxes out at 1.3Ghz.

I've included my SDSwap in separate zip as well here for folks who would like to swap the internal and external SD storage devices around (makes external SD card primary storage as opposed to internal). See links at the bottom. NOTE: You should NOT remove the card while booted when using this as there is no way to safely unmount when booted.

If you need to remove the SDSwap, there are three methods to do so:
  • Boot to recovery and simply reinstall the ROM you are running do NOT reinstall.
  • Upgrade to the latest ROM and do NOT reinstall.
  • Extract the the ramdisk.img file from the current ROM zip from /system/etc/kexec and overwrite the ramdisk.img on your device while either booted in recovery (mount /system first) or booted in the ROM, then reboot.


Kernel Changelog:
  • 2017-10-02: Fixed missing f2fs module.
  • 2017-10-01: Sync to upstream and rebase: 47 fixes, securit patches and cleanup
  • 2017-02-20: Fixed issue causing install to fail.
  • 2017-02-19: Sync to upstream: 10 security fixes and one reversion. *PULLED*
  • 2016-12-11: Sync to upstream: 2 security fixes, one to patch CVE-2016-8655 the other is to patch old ABI handling.
  • 2016-11-30: Sync to upstream: Security fix to disable ION contig heap
  • 2016-11-08: Sync to upstream: 9 patches
    • 3 ALSA security/stability patches
    • 2 Event/Audit log security/statbilty patches
    • 3 Block related stability patches
    • 1 HID stability update
  • 2016-10-30: Sync to upstream: 7 more security patches
  • 2016-10-23: Sync to upstream: patch for CVE-2016-5195
  • 2016-10-11: Sync to Upstream: 2 security fixes
  • 2016-10-10: Updated LMK patches with latest changes from @u.b.o.o.t essentially moving to the 2.2 version.
  • 2016-10-06: Updates
    • Fixed missing modified libthermal-manager.cfg.
    • Added in kernel modules found in /system/lib/modules in the event these get updated but you aren't running the latest CM
  • 2016-10-02: Updates:
    • Sync to upstream: 6 security related updates
    • Added Low Mem Killer (LMK) optimizations from @u.b.o.o.t. See his thread here for more info.
  • 2016-07-15: Sync to upstream: 2 more security fixes
  • 2016-06-28: Sync to upstream: 4 more security fixes.
  • 2016-06-25: Sync to upstream: KSM (Kernel Same-page Merging) fixes to improve power management.
  • 2016-06-05: Sync to upstream: USB-fix potential infoleak in devio
  • 2016-05-17: Sync to upstream: 6 more security/bug fixes dealing with Alsa, networking and input.
  • 2016-05-10: Sync to upstream: one small USB security related fix.
  • 2016-05-08: Sync to upstream: just more security and bug fixes.
  • 2016-05-03: Updates:
    • Sync to upstream:eek:ver 170 small bug fixes, the majority around bluetooth. See full log here.
    • Some minor refactoring of #ifdefs to simplify things a bit for anyone compiling on their own.
  • 2016-03-23: Sync to upstream: poison pointer update to allow lower mmap_min_addr
  • 2016-03-19: Sync to upstream: Memory corruption fix
  • 2016-03-12: Sync to upstream: Security and big fixes
  • 2016-02-15: Sync to upstream:
    • Timekeeping fix: fix 32-bit overflow in get_monotonic_boottime
    • Wifi drop fix: Better handling of transition to NUD_PROBE state
  • 2016-02-14: Fixed compile issues causing incorrect clock speeds
  • 2016-02-13: Update: b0rked and not available
    • Another fuse fixes
    • Added a Low Voltage 1.4Ghz kernel in permissive mode
  • 2016-01-23: Sync with upstream:
    • Update for fuse, fixes issues with deletions
    • AK8975 update to fix compass issues (requires nightly 01-23 or later to benefit)
  • 2016-01-19: Complete removal of zcache.
  • 2016-01-14: Sync with Upstream:
    • Fixes to DSS to enable LiveDisplay/Color calibration.
    • Patch for Zram
  • 2016-01-03: Sync with upstream (block fixes) and set SELinux to enforced.
  • 2016-01-02: Sync with upstream. Just small bugfixes.
  • 2015-12-29: Initial port to CM13. For previous changes, see the cm12.x thread.


SDSwap Changelog:
  • 2017-10-01: updated to latest from device source, changes to init.
  • 2016-11-08: Updated fstab from upstream commit: Added ext4 support for /data partition
  • 2016-06-22: KSM (Kernel Samepage Merging) and ZRAM tweaks
  • 2016-05-05: Fixed issue causing boot-loops on RAZR (thanks @stargo and @jul515)
  • 2016-03-19: Updated just to update?
  • 2016-02-15: Updates:
    • Configure external storage as removable again. Eject at your own peril!
    • fixboot.sh update: add utf8 to mount-options for internal sd
  • 2016-01-23: Zram adjustments and fixes for compass (compass-fix requires nightly 01-23 or later)
  • 2016-01-19: Removal of zcache.
  • 2016-01-14: Allows usage of CM13 on stock slot
  • 2016-01-08: Allows usage of USB storage devices


Downloads:
Special SELinux permissive kernel
SD Card Swapper zipOlder/Archived kernels can be downloaded here if needed: https://droid.cs.fau.de/jjb666/Kernels


Disclaimer: You did it, not me.

XDA:DevDB Information
Custom 1.3Ghz and 1.4Ghz OC Kernel for Droid 4/RAZR on CM13, Kernel for the Motorola Droid 4

Contributors
joojoobee666, stargo, hashcode
Source Code: https://github.com/JooJooBee666/andr...n/tree/cm-13.0

Kernel Special Features: Overclock to 1.3Ghz and 1.4Ghz, additional governors

Version Information
Status: Testing

Created 2015-12-30
Last Updated 2017-10-01


XDA:DevDB Information
Custom 1.3Ghz and 1.4Ghz OC Kernel for Droid 4/RAZR on CM13, Kernel for the Motorola Droid 4

Contributors
joojoobee666, stargo, hashcode
Source Code: https://github.com/JooJooBee666/andr...n/tree/cm-13.0

Kernel Special Features: Overclock to 1.3Ghz and 1.4Ghz, additional governors

Version Information
Status: Testing

Created 2015-12-30
Last Updated 2017-10-02
The Following 25 Users Say Thank You to joojoobee666 For This Useful Post: [ View ] Gift joojoobee666 Ad-Free
 
 
30th December 2015, 12:14 PM |#2  
N.I.K.'s Avatar
Member
Thanks Meter: 13
 
More
joojoobee666, this is ****ing incredible, you are really cool. Thanks man.
The Following User Says Thank You to N.I.K. For This Useful Post: [ View ] Gift N.I.K. Ad-Free
30th December 2015, 02:23 PM |#3  
Bobcus Leper's Avatar
Senior Member
Thanks Meter: 1,248
 
More
Thanks for the new thread and CM13/MM overclock kernels!
30th December 2015, 03:19 PM |#4  
chuchipando's Avatar
Member
Flag Cartagena
Thanks Meter: 59
 
More
Could someone please advise on which kernel to use. There are so many, I have no Idea witch one to choose. Thanks.
30th December 2015, 03:37 PM |#5  
N.I.K.'s Avatar
Member
Thanks Meter: 13
 
More
Personally I've used OC Full Scale Lite Kernel or Run 'N Gun Lite Kernel , because all the rest who had frequency more than 1300MHz lead to boot loop on my phone.
The Following User Says Thank You to N.I.K. For This Useful Post: [ View ] Gift N.I.K. Ad-Free
30th December 2015, 04:02 PM |#6  
Bobcus Leper's Avatar
Senior Member
Thanks Meter: 1,248
 
More
I tried all of the 1.4 GHz kernels on my RAZR, and they still don't boot. On the bright side, the 1.3 GHz OC kernel works super smoothly with the ktoonservative CPU governor, on my RAZR.
The Following 2 Users Say Thank You to Bobcus Leper For This Useful Post: [ View ] Gift Bobcus Leper Ad-Free
31st December 2015, 10:33 PM |#7  
Septfox's Avatar
Senior Member
Thanks Meter: 223
 
More
Knew we could count on you, joojoobee. Thanks for spinning these up!

Quote:
Originally Posted by chuchipando

Could someone please advise on which kernel to use. There are so many, I have no Idea witch one to choose. Thanks.

Try the CM13 OC 1.4ghz LV kernel first. If it freezes or spontaneously reboots, try the HV version. If that freezes or reboots, then you're one of us unfortunates with a less tolerant SoC; run the 1.3ghz kernel.


Other options:

Full-range kernel includes all frequency steps (not just stock ones) which combined with a well-tuned governor can save a bit of power. Literally "a bit" though, most of our power usage is the screen.

Run n Gun has most of the frequency steps removed, leaving idle (300mhz), two intermediate for light work (1ghz/1.2ghz) and full-speed for heavy work (1.3/1.4ghz). Slightly better performance because the governor can skip everything under 1ghz, but this is less of an advantage than it sounds (we can use Touch/Input Boost for the same effect) and there's a hit to battery life because light continous loads can't use under 1ghz.

You also might want to get Kernel Adiutor and configure Touch Boost to pull the speed to 1ghz/500ms, for a bit more responsiveness. This is kernel-independent, even stock can use it.
The Following 2 Users Say Thank You to Septfox For This Useful Post: [ View ] Gift Septfox Ad-Free
31st December 2015, 11:34 PM |#8  
chuchipando's Avatar
Member
Flag Cartagena
Thanks Meter: 59
 
More
The CM13 OC 1.3Ghz Kernel is working awesome. I took Bobcus' advice and didnt flash any of the 1.4Ghz ones as I too have a razr XT912.
I'm interested in the Full Scale Lite 1.3Ghz Kernel. Do I need to factory wipe If I want to switch to another Kernel? or just wipe cache and dalvik cache?
The Following User Says Thank You to chuchipando For This Useful Post: [ View ] Gift chuchipando Ad-Free
1st January 2016, 03:51 PM |#9  
Bobcus Leper's Avatar
Senior Member
Thanks Meter: 1,248
 
More
Quote:
Originally Posted by chuchipando

The CM13 OC 1.3Ghz Kernel is working awesome. I took Bobcus' advice and didnt flash any of the 1.4Ghz ones as I too have a razr XT912.
I'm interested in the Full Scale Lite 1.3Ghz Kernel. Do I need to factory wipe If I want to switch to another Kernel? or just wipe cache and dalvik cache?

I don't even wipe cache when i flash a kernel. There is no need to.

Happy New Year!
The Following User Says Thank You to Bobcus Leper For This Useful Post: [ View ] Gift Bobcus Leper Ad-Free
1st January 2016, 05:29 PM |#10  
joojoobee666's Avatar
OP Senior Member
Thanks Meter: 500
 
More
Quote:
Originally Posted by chuchipando

The CM13 OC 1.3Ghz Kernel is working awesome. I took Bobcus' advice and didnt flash any of the 1.4Ghz ones as I too have a razr XT912.
I'm interested in the Full Scale Lite 1.3Ghz Kernel. Do I need to factory wipe If I want to switch to another Kernel? or just wipe cache and dalvik cache?

@Bobcus Leper is correct; there is no need to wipe for a kernel change. Also, as far as the 1.4's go, no harm in trying. Some SOC's are more tolerant than others so just because the 1.4 doesn't work for some, it doesn't mean it won't work for you. Worst case scenario? Yeah, there really isn't. If the phone doesn't boot or reboots too often on the 1.4, try different voltage levels. If it still gives you trouble, just flash a 1.3 and curse the SOC gods for giving you a less tolerant chipset. I use the 1.4 ULV with no issues here.
The Following 3 Users Say Thank You to joojoobee666 For This Useful Post: [ View ] Gift joojoobee666 Ad-Free
2nd January 2016, 03:06 AM |#11  
3Dota's Avatar
Senior Member
Flag Jakarta
Thanks Meter: 158
 
More
Run 'n Gun Lite working just fine on my maxx (xt910)
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