[Kernel][7.1][LineageOS14.1] (Nougat) Custom Droid 4/RAZR OC Kernel and SDSwap

Search This thread

joojoobee666

Senior Member
Jul 9, 2008
624
504
This is a custom kernel for D4/RAZR based off of the CM14.1 Kernel that was created by @stargo for Nougat. Below is the list of features this kernel adds to the Stock CM14.1 kernel:
  • Over-clocking to 1.3 and 1.4Ghz
  • 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 ****
    • SELinux permissive kernels on request
  • Additional Voltage Options for 1.4Ghz frequency: HV (High Voltage), LV (Low Voltage) and ULV (Ultra-Low Voltage)

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-04: Fixed issues with Wifi from previous build
  • 2017-10-02: (REMOVED from server)Rebased and synced to upstream so lost's of bug fixes and security updates
  • 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: Initial port to cm14.1. For previous changes, please see the cm13 thread.


SDSwap Changelog:
  • 2017-10-02: Updated for latest init changes
  • 2016-11-08: Initial release.


Downloads:

Special SELinux permissive kernel

SD Card Swapper zip
Older/Archived kernels can be downloaded here if needed: https://droid.cs.fau.de/jjb666/Kernels


Disclaimer: You did it, not me. :cool:

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

Contributors
joojoobee666, stargo, hashcode
Source Code: https://github.com/JooJooBee666/android_kernel_motorola_omap4-common/tree/cm-14.1

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

Version Information
Status: Testing

Created 2016-11-13
Last Updated 2017-10-04

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

Contributors
joojoobee666, stargo, hashcode
Source Code: https://github.com/JooJooBee666/android_kernel_motorola_omap4-common/tree/cm-14.1

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

Version Information
Status: Stable

Created 2016-11-13
Last Updated 2017-10-04
 

joojoobee666

Senior Member
Jul 9, 2008
624
504
How come some kernels are 3.0.8 and some are 3.0.31?

I believe you are referring to dtrail's kernel's. The mainline CM kernel here has a lot of patches well past 3.0.8 and 3.0.31 but not all parts of the kernel are updated. I was working on getting it up to 101 but ran in to some problems with stability that I just never had the time to debug. So as it stands, the version it SHOWS is 3.0.8 but it's actually (along with the stock CM kernel) a bit more convoluted. :cyclops:
 

Careless_

Senior Member
Nov 13, 2010
626
64
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.

que?
 

tmlind

Member
Sep 1, 2016
25
49
Hey all, another kernel update. This one is a couple of security patches. Most notably, this addresses CVE-2016-8655. :good:

Also slightly related is that you can now boot v4.10-rc1 and later mainline kernels. Not very usable right now, but UART, MMC, eMMC and WLAN work so kernel modules can be scp:ed over the WLAN. I'm still working on the CPCAP regulators and USB PHY driver for v4.11 hopefully.

I also posted the mainline kexec tools for booting v4.10-rc1 and later. Note that these modules are not backwards compatible with the SafeStrap modules in the stock kernel, so don't overwrite them! The mainline kexec tools are at muru.com linux/d4/

Sorry could not create a new thread for this as I'm noob.. Also could not attach tar.xz files it seems :p

Tony
 
  • Like
Reactions: stargo

tmlind

Member
Sep 1, 2016
25
49
Also slightly related is that you can now boot v4.10-rc1 and later mainline kernels. Not very usable right now, but UART, MMC, eMMC and WLAN work so kernel modules can be scp:ed over the WLAN. I'm still working on the CPCAP regulators and USB PHY driver for v4.11 hopefully.

I also posted the mainline kexec tools for booting v4.10-rc1 and later. Note that these modules are not backwards compatible with the SafeStrap modules in the stock kernel, so don't overwrite them! The mainline kexec tools are at muru.com linux/d4/

Sorry could not create a new thread for this as I'm noob.. Also could not attach tar.xz files it seems :p

Oops, messed up again, the kexec binary in ddroid4-mainline-kexec-0.2.tar.xz was the kexec wrapper I'm still working on for the SafeStrap boot images, the file to use is ddroid4-mainline-kexec-0.3.tar.xz for now.

Tony
 

tmlind

Member
Sep 1, 2016
25
49
Also slightly related is that you can now boot v4.10-rc1 and later mainline kernels. Not very usable right now, but UART, MMC, eMMC and WLAN work so kernel modules can be scp:ed over the WLAN. I'm still working on the CPCAP regulators and USB PHY driver for v4.11 hopefully.

I also posted the mainline kexec tools for booting v4.10-rc1 and later. Note that these modules are not backwards compatible with the SafeStrap modules in the stock kernel, so don't overwrite them! The mainline kexec tools are at muru.com linux/d4/

Sorry could not create a new thread for this as I'm noob.. Also could not attach tar.xz files it seems :p

Oops, messed up again, the kexec binary in ddroid4-mainline-kexec-0.2.tar.xz was the kexec wrapper I'm still working on for the SafeStrap boot images, the file to use is ddroid4-mainline-kexec-0.3.tar.xz for now.

Tony

Now also posted an initial version of ddroid to create installable SafeStrap images if anybody cares to go through all the hoops.

Tony
 

Flash-A-Holic

Senior Member
Jul 8, 2015
159
85
Does anyone else have boot loop issues with Droid 4? I have tried OC and non-OC custom kernels with Lineage OS 14.1 builds (unofficial and official) but every time I'm stuck to the boot loop. I can only see red M logo over and over again.

I have two Droid 4 phones and the other one is currently running Sailfish OS 2.1 so I haven't test Nougat build with it. Previously I was able to OC it with custom kernel and CM13 (Marshmallow). I don't know why I'm not able to flash custom kernels with this new Droid 4. Any ideas?
 

Bobcus Leper

Senior Member
Feb 6, 2014
2,078
1,257
Moto X4
Moto G Stylus
Does anyone else have boot loop issues with Droid 4? I have tried OC and non-OC custom kernels with Lineage OS 14.1 builds (unofficial and official) but every time I'm stuck to the boot loop. I can only see red M logo over and over again.

I have two Droid 4 phones and the other one is currently running Sailfish OS 2.1 so I haven't test Nougat build with it. Previously I was able to OC it with custom kernel and CM13 (Marshmallow). I don't know why I'm not able to flash custom kernels with this new Droid 4. Any ideas?

I could never use OC kernels on my Droid RAZR. I think certain SOCs are more tolerable to over clocking than others.
 
  • Like
Reactions: Flash-A-Holic

Flash-A-Holic

Senior Member
Jul 8, 2015
159
85
I could never use OC kernels on my Droid RAZR. I think certain SOCs are more tolerable to over clocking than others.
Thanks, good to know. Maybe I need to swap Sailfish OS to this phone which doesn't run with custom kernel. It is strange because it doesn't even work with LineageOS14.1 Custom NON-OC RunNGun Kernel.
 

joojoobee666

Senior Member
Jul 9, 2008
624
504
Last edited:
  • Like
Reactions: chuchipando

Top Liked Posts

  • There are no posts matching your filters.
  • 7
    This is a custom kernel for D4/RAZR based off of the CM14.1 Kernel that was created by @stargo for Nougat. Below is the list of features this kernel adds to the Stock CM14.1 kernel:
    • Over-clocking to 1.3 and 1.4Ghz
    • 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 ****
      • SELinux permissive kernels on request
    • Additional Voltage Options for 1.4Ghz frequency: HV (High Voltage), LV (Low Voltage) and ULV (Ultra-Low Voltage)

    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-04: Fixed issues with Wifi from previous build
    • 2017-10-02: (REMOVED from server)Rebased and synced to upstream so lost's of bug fixes and security updates
    • 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: Initial port to cm14.1. For previous changes, please see the cm13 thread.


    SDSwap Changelog:
    • 2017-10-02: Updated for latest init changes
    • 2016-11-08: Initial release.


    Downloads:

    Special SELinux permissive kernel

    SD Card Swapper zip
    Older/Archived kernels can be downloaded here if needed: https://droid.cs.fau.de/jjb666/Kernels


    Disclaimer: You did it, not me. :cool:

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

    Contributors
    joojoobee666, stargo, hashcode
    Source Code: https://github.com/JooJooBee666/android_kernel_motorola_omap4-common/tree/cm-14.1

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

    Version Information
    Status: Testing

    Created 2016-11-13
    Last Updated 2017-10-04

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

    Contributors
    joojoobee666, stargo, hashcode
    Source Code: https://github.com/JooJooBee666/android_kernel_motorola_omap4-common/tree/cm-14.1

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

    Version Information
    Status: Stable

    Created 2016-11-13
    Last Updated 2017-10-04
    4
    How come some kernels are 3.0.8 and some are 3.0.31?

    I believe you are referring to dtrail's kernel's. The mainline CM kernel here has a lot of patches well past 3.0.8 and 3.0.31 but not all parts of the kernel are updated. I was working on getting it up to 101 but ran in to some problems with stability that I just never had the time to debug. So as it stands, the version it SHOWS is 3.0.8 but it's actually (along with the stock CM kernel) a bit more convoluted. :cyclops:
    4
    Hey all, small security update so new kernels uploaded. Enjoy :D
    4
    New versions up. the 2017-02-19 builds did not install. New ones are up with install issue being resolved.:good:
    4
    Hey all,

    New kernels are up that include the recent updates to the kernel. Enjoy. :D