[Kernel][26/11/14][LG][D855|F400|D852]Rin Kernel 1.8.5[KITKAT]

Search This thread

Tectas

Senior Member
Jul 26, 2011
3,344
2,942
RIN Kernel for D855/P/K | F400/K/S/L | D852

Close to stock with some sugar added ... delicous!

Hey guys and girls,
you may have seen my unified stock kernel thread already (or may not, but doesn't matter). This kernel is my attempt to build up on the fixed source and add some additional features for us mod lovers to thinker with and to personalize your device to your usage. For now, I'll keep it close to my stock source and just pull some additional features and fixes in, but not to much. That may change in the future (maybe even soon), but for now, I'll stick to that paradigm.

First of, DISCLAIMER, I'm not responsible for bricked devices, dead unicorns, rainbows with missing colors, world war, nose bleed, void warranty (you know that already, don't you? your warranty is void now and it's your fault :p) or any other harm happening to your device, you or people around you!


What does it serve? (Features)

  • Built with sabermod 4.9 toolchain
  • IO Schedulers

    • BFQ
    • CFQ
    • DEADLINE
    • FIFO
    • FIOPS
    • NOOP
    • ROW (default)
    • SIO
    • TRIPNDROID
    • VR
    • ZEN
  • Governors

    • Adaptive
    • Conservative
    • DanceDance
    • IntelliActive
    • IntelliDemand
    • Interactive (default)
    • Lagfree
    • Lionheart
    • OnDemand
    • Performance
    • Powersave
    • SmartassV2
    • Userspace
    • Wheatley
    • Smartmax
  • TCP Congestion Algorithms

    • BIC
    • Westwood
    • Vegas
    • Veno
    • Yeah
    • HTCP
    • Cubic (default)
    • Reno
  • init.d support
  • intelliplug
  • intelli thermal v2
  • Memutil optimizations
  • Voltage control
  • SoundControl
  • OC to 2.7GHz and UC support
  • Cpu limiter
  • 2-Way Call Recording support
  • Simple GPU Algorithm
  • Simple_ondemand GPU Governor fixed
  • exFat support
  • ntfs support (bugged)
  • Oversharpening fix
  • DriveDroid support
  • android logger sysfs toggle (disabled by default)
  • high priority workqueue
  • Many under the hood fixes
  • Stability
  • More to come


How to apply it? (Installation)

IMPORTANT: Read through all the requirements, steps and warnings before you do anything, if any requirement doesn't match or you don't know what one or more of the steps below mean or do, ask before you do any of them, if you don't know how all the steps can be done, let it be, I warned you, if you don't do and something bad happens, I'll just laugh at you!!

Requirements? Yes!

  • D855/P/K, F400/K/S/L, D852
  • Custom Recovery
  • Stock or Stock based ROM (no AOSP)

How to flash the kernel?

  • Download zip
  • Place on internal or external SD
  • Reboot to recovery
  • Choose install zip
  • Search for the downloaded zip
  • Confirm flashing
  • Wipe cache
  • Reboot
  • Have fun


How to boot unbumped kernels?

Only needed for the img files prior version 1.7


  • Plugin your device to the PC
  • Open a terminal and execute
    Code:
    adb shell                                                                                                                                # open a shell over adb
    su                                                                                                                                                    # change to superuser
    dd if=/dev/block/platform/msm_sdcc.1/by-name/laf of=/storage/external_SD/stock-laf.img    # backup the stock download mode to your external sd
    exit                                                                                                                                                  # exit the superuser shell
    exit                                                                                                                                                  # exit the adb shell
    adb pull /storage/external_SD/stock-laf.img .                                                                             # backup the download mode image from you external sd to the PC
    adb shell
    su
    dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/laf                                                # remove the stock download mode
    BEWARE, THIS WILL REMOVE YOUR DOWNLOAD MODE!!! YOU WON'T BE ABLE TO FLASH KDZ FILES BEFORE YOU RESTORED IT!!!!

    Turn off the device completely, plug in the USB-cable, if you pulled it out and start the device by holding vol up + power till you see some white text on the screen, fastboot should be written somewhere on the screen, afterwards execute the following command on the PC (while in the directory you've downloaded the kernel image to).

    D855:
    Code:
    fastboot boot D855-rin-1.6.img             # boot the kernel

    F400:
    Code:
    fastboot boot F400-rin-1.6.img             # boot the kernel

    BEWARE, NEVER USE FLASH AT FASTBOOT ONLY BOOT, IT WILL TRIGGER SECURITY OF THE LOCKED BOOTLOADER AND YOU WON'T BE ABLE TO BOOT ANYMORE!!!!

You're done now and booted to the custom kernel!

How to make sure you're running the kernel?

To check if you properly booted into the kernel execute this in the command line (terminal emulater or through adb shell):

Code:
cat /proc/version

it should show

Code:
Linux version 3.4.0-rin-g58903a9-dirty ([email protected]) (gcc version 4.9.1 20140710 (prerelease) (crosstool-NG linaro-1.13.1+bzr2673 - Linaro GCC 2014.07 - Cortex-A15) ) #53 SMP PREEMPT Thu Aug 14 13:26:42 CEST 2014

Once more a warning READ IT!!:

BEWARE, when you reboot you'll boot to the stock kernel, you'll have to boot the custom kernel over fastboot every time, when you boot normally, you'll be on the stock kernel, this won't lead to issues, but you'll miss the benefits of this kernel, I know that's not optimal, but the best we can get with the locked bootloader.

How to restore Download mode?

Code:
adb shell                              # open a shell over adb
su                                                   # change to superuser
dd if=/storage/external_SD/stock-laf.img of=/dev/block/platform/msm_sdcc.1/by-name/laf    # restore the stock download mode from the backup on your external sd



Changes? (Changelog)

26.11.2014/1.8.5
  • Less frequency steps to UC (better performance for governors hitting each step)
  • Oversharpening fix (Credits to @Skin1980)
  • Kernel now flashed with dd within recovery
  • Added external radio-iris-transport module to fix fm radio


20.11.2014/1.8
  • lollipop support (credits to @Skin1980 and his rooted ramdisk)
  • build with sabermod 4.9
  • Graphite build flags
  • NTFS support
  • sysfs interface for android logger (Logger disabled by default)
  • TCP cong algorithms (BIC, Westwood, HTCP, Vegas, Veno, Yeah)
  • More frequency steps between 300Mhz and 2.7Ghz

17.11.2014/1.7.2
  • Raise max microvolt at cpu for pm8941 and pma8084 (Possible Green Screen Fix)
  • Additional warnings fixed

11.11.2014/1.7
  • D852 support added
  • images bumped
  • flashable zip
  • init.d support (busybox required)
  • AIO optmimizations enabled
  • intelli plug added (credits to @faux123)
  • ****load of warnings fixed

23.10.2014/1.6
  • D850 support added
  • Simple GPU Algorithm Support
  • Overclocking up to 2.76 Ghz
  • exfat support
  • intelli-thermal v2 added
  • smartmax governor added
  • memutil optimizations
  • build with NEON kernel mode
  • 2-way call recording patch
  • DriveDroid cdrom emulation support
  • Faux SoundControl
  • Simple-OnDemand fixed
  • Cpu Freq Limiter
  • some small fixes and enhancements

17.08.2014
  • Support for F400 variants added

14.08.2014/1.0.1
  • net/ipv4|include/asm-generic: Enhancement of out of bounds fix

14.08.2014
  • Initial release

Full list of commits can be found here


Where to get it from? (Download)

AndroidFileHost | xda | dev host | google drive | trialsrider1


Let me test!! (Beta Testing Community)

Google+ LG G3 Beta Testing Community


Show me the so(u)rce(ry)! (Source Code)

https://github.com/tectas/android_kernel_lge_msm8974ac/tree/rin-kitkat


Donators (huge thanks, you're simply great :) )


Credits


If you like my work, please show your appreciation by pressing the thanks button, if you want to do more, i've nothing against a little donation, but I'm as happy when you just thank me by pressing the button :)

XDA:DevDB Information
Rin Kernel, Kernel for the LG G3

Contributors
Tectas
Source Code: https://github.com/tectas/android_kernel_lge_msm8974ac/tree/rin-kitkat

Kernel Special Features:

Version Information
Status: Stable
Current Stable Version: 1.8.5
Stable Release Date: 2014-11-26

Created 2014-08-14
Last Updated 2015-01-09
 
Last edited:

Tectas

Senior Member
Jul 26, 2011
3,344
2,942
Any questions? (FAQ)

  1. How can I toggle the android logger?
    • File Explorer Method:
      Go with a root explorer to /sys/kernel/logger_mode and open the logger_mode file.
      Remove everything inside that file and put the number 1 to enable and 0 to disable the logger into it and save the file.
    • Terminal Method:
      • Enable the logger
        Code:
        echo 1 > /sys/kernel/logger_mode/logger_mode
      • Disable the logger
        Code:
        echo 0 > /sys/kernel/logger_mode/logger_mode
  2. My internal sd is not working, what to do?
    • Open adb shell or a terminal emulator and type
      Code:
      su
      restorecon -v -R /data/media
 
Last edited:
Jan 30, 2013
40
8
Roma
Eccellent!first build for d855,I'm really happy for this!

Is it for 16g,32g or all version?

-------------------LG G3 [D-855]
recovery = stock..
kernel = stock..
rom = stock..
-------------------previous phones:
-ZOPO ZP990 = rom by me
-XPERIA PLAY = kernel by me
-LG L7 = change with xperia play
-MOTOROLA FLIPOUT = OC 1,2ghz
 
  • Like
Reactions: Tectas

Tectas

Senior Member
Jul 26, 2011
3,344
2,942
Eccellent!first build for d855,I'm really happy for this!

Is it for 16g,32g or all version?

-------------------LG G3 [D-855]
recovery = stock..
kernel = stock..
rom = stock..
-------------------previous phones:
-ZOPO ZP990 = rom by me
-XPERIA PLAY = kernel by me
-LG L7 = change with xperia play
-MOTOROLA FLIPOUT = OC 1,2ghz

Works on both.
 
  • Like
Reactions: DanieleD'Ignazio

mikeyinid

Senior Member
Sep 4, 2010
8,873
4,000
Boise
Sorry I already posted in the source thread, prolly shoulda posted here. Can you do a 851 version? Or will this version work for 851?
 

edowar

Senior Member
Oct 4, 2010
317
468
Jakarta
Thank you for your kernel :good:
So far so good....just test it and I will reporting to you if I found some bugs
 
  • Like
Reactions: Tectas

spiderio

Senior Member
Aug 28, 2009
1,209
917
Jakarta
Congratulations for the First Custom Kernel for LG G3...
I wish LG G3 can use LOKI like G2 :(
too bad we still can't boot custom kernel every reboot

btw Smooth Works you got here
awesome bro, just awesome
 
Last edited:
  • Like
Reactions: Tectas

Tectas

Senior Member
Jul 26, 2011
3,344
2,942
any chance of this working on the 851 :p

Sure, just go to D851 original development section, download the zip of rin, extract the boot image and do the steps described here, just replace the image name to boot, but I'd recommend simply flashing the zip :p

Sent from my LG-D855
 
Last edited:

atxbang56

Senior Member
Jan 28, 2011
958
343
Redmi K20 Pro
Unfortunately not yet, the bootloader has to be more or less tricked to be able to boot the kernel.

Sent from my LG-D855
ok I understand (hope that this bootloader unlocked will come soon). so just other questions please :
- onDemand works well with your kernel ?
- is there any other usable governor for gpu ?

I think I'm gonna try to install adb and fastboot at work if I have a reboot or something like that.
thank you for your hard work for such a locked phone....

Tapatalked from my LG G3
 
  • Like
Reactions: Tectas

Top Liked Posts

  • There are no posts matching your filters.
  • 117
    RIN Kernel for D855/P/K | F400/K/S/L | D852

    Close to stock with some sugar added ... delicous!

    Hey guys and girls,
    you may have seen my unified stock kernel thread already (or may not, but doesn't matter). This kernel is my attempt to build up on the fixed source and add some additional features for us mod lovers to thinker with and to personalize your device to your usage. For now, I'll keep it close to my stock source and just pull some additional features and fixes in, but not to much. That may change in the future (maybe even soon), but for now, I'll stick to that paradigm.

    First of, DISCLAIMER, I'm not responsible for bricked devices, dead unicorns, rainbows with missing colors, world war, nose bleed, void warranty (you know that already, don't you? your warranty is void now and it's your fault :p) or any other harm happening to your device, you or people around you!


    What does it serve? (Features)

    • Built with sabermod 4.9 toolchain
    • IO Schedulers

      • BFQ
      • CFQ
      • DEADLINE
      • FIFO
      • FIOPS
      • NOOP
      • ROW (default)
      • SIO
      • TRIPNDROID
      • VR
      • ZEN
    • Governors

      • Adaptive
      • Conservative
      • DanceDance
      • IntelliActive
      • IntelliDemand
      • Interactive (default)
      • Lagfree
      • Lionheart
      • OnDemand
      • Performance
      • Powersave
      • SmartassV2
      • Userspace
      • Wheatley
      • Smartmax
    • TCP Congestion Algorithms

      • BIC
      • Westwood
      • Vegas
      • Veno
      • Yeah
      • HTCP
      • Cubic (default)
      • Reno
    • init.d support
    • intelliplug
    • intelli thermal v2
    • Memutil optimizations
    • Voltage control
    • SoundControl
    • OC to 2.7GHz and UC support
    • Cpu limiter
    • 2-Way Call Recording support
    • Simple GPU Algorithm
    • Simple_ondemand GPU Governor fixed
    • exFat support
    • ntfs support (bugged)
    • Oversharpening fix
    • DriveDroid support
    • android logger sysfs toggle (disabled by default)
    • high priority workqueue
    • Many under the hood fixes
    • Stability
    • More to come


    How to apply it? (Installation)

    IMPORTANT: Read through all the requirements, steps and warnings before you do anything, if any requirement doesn't match or you don't know what one or more of the steps below mean or do, ask before you do any of them, if you don't know how all the steps can be done, let it be, I warned you, if you don't do and something bad happens, I'll just laugh at you!!

    Requirements? Yes!

    • D855/P/K, F400/K/S/L, D852
    • Custom Recovery
    • Stock or Stock based ROM (no AOSP)

    How to flash the kernel?

    • Download zip
    • Place on internal or external SD
    • Reboot to recovery
    • Choose install zip
    • Search for the downloaded zip
    • Confirm flashing
    • Wipe cache
    • Reboot
    • Have fun


    How to boot unbumped kernels?

    Only needed for the img files prior version 1.7


    • Plugin your device to the PC
    • Open a terminal and execute
      Code:
      adb shell                                                                                                                                # open a shell over adb
      su                                                                                                                                                    # change to superuser
      dd if=/dev/block/platform/msm_sdcc.1/by-name/laf of=/storage/external_SD/stock-laf.img    # backup the stock download mode to your external sd
      exit                                                                                                                                                  # exit the superuser shell
      exit                                                                                                                                                  # exit the adb shell
      adb pull /storage/external_SD/stock-laf.img .                                                                             # backup the download mode image from you external sd to the PC
      adb shell
      su
      dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/laf                                                # remove the stock download mode
      BEWARE, THIS WILL REMOVE YOUR DOWNLOAD MODE!!! YOU WON'T BE ABLE TO FLASH KDZ FILES BEFORE YOU RESTORED IT!!!!

      Turn off the device completely, plug in the USB-cable, if you pulled it out and start the device by holding vol up + power till you see some white text on the screen, fastboot should be written somewhere on the screen, afterwards execute the following command on the PC (while in the directory you've downloaded the kernel image to).

      D855:
      Code:
      fastboot boot D855-rin-1.6.img             # boot the kernel

      F400:
      Code:
      fastboot boot F400-rin-1.6.img             # boot the kernel

      BEWARE, NEVER USE FLASH AT FASTBOOT ONLY BOOT, IT WILL TRIGGER SECURITY OF THE LOCKED BOOTLOADER AND YOU WON'T BE ABLE TO BOOT ANYMORE!!!!

    You're done now and booted to the custom kernel!

    How to make sure you're running the kernel?

    To check if you properly booted into the kernel execute this in the command line (terminal emulater or through adb shell):

    Code:
    cat /proc/version

    it should show

    Code:
    Linux version 3.4.0-rin-g58903a9-dirty ([email protected]) (gcc version 4.9.1 20140710 (prerelease) (crosstool-NG linaro-1.13.1+bzr2673 - Linaro GCC 2014.07 - Cortex-A15) ) #53 SMP PREEMPT Thu Aug 14 13:26:42 CEST 2014

    Once more a warning READ IT!!:

    BEWARE, when you reboot you'll boot to the stock kernel, you'll have to boot the custom kernel over fastboot every time, when you boot normally, you'll be on the stock kernel, this won't lead to issues, but you'll miss the benefits of this kernel, I know that's not optimal, but the best we can get with the locked bootloader.

    How to restore Download mode?

    Code:
    adb shell                              # open a shell over adb
    su                                                   # change to superuser
    dd if=/storage/external_SD/stock-laf.img of=/dev/block/platform/msm_sdcc.1/by-name/laf    # restore the stock download mode from the backup on your external sd



    Changes? (Changelog)

    26.11.2014/1.8.5
    • Less frequency steps to UC (better performance for governors hitting each step)
    • Oversharpening fix (Credits to @Skin1980)
    • Kernel now flashed with dd within recovery
    • Added external radio-iris-transport module to fix fm radio


    20.11.2014/1.8
    • lollipop support (credits to @Skin1980 and his rooted ramdisk)
    • build with sabermod 4.9
    • Graphite build flags
    • NTFS support
    • sysfs interface for android logger (Logger disabled by default)
    • TCP cong algorithms (BIC, Westwood, HTCP, Vegas, Veno, Yeah)
    • More frequency steps between 300Mhz and 2.7Ghz

    17.11.2014/1.7.2
    • Raise max microvolt at cpu for pm8941 and pma8084 (Possible Green Screen Fix)
    • Additional warnings fixed

    11.11.2014/1.7
    • D852 support added
    • images bumped
    • flashable zip
    • init.d support (busybox required)
    • AIO optmimizations enabled
    • intelli plug added (credits to @faux123)
    • ****load of warnings fixed

    23.10.2014/1.6
    • D850 support added
    • Simple GPU Algorithm Support
    • Overclocking up to 2.76 Ghz
    • exfat support
    • intelli-thermal v2 added
    • smartmax governor added
    • memutil optimizations
    • build with NEON kernel mode
    • 2-way call recording patch
    • DriveDroid cdrom emulation support
    • Faux SoundControl
    • Simple-OnDemand fixed
    • Cpu Freq Limiter
    • some small fixes and enhancements

    17.08.2014
    • Support for F400 variants added

    14.08.2014/1.0.1
    • net/ipv4|include/asm-generic: Enhancement of out of bounds fix

    14.08.2014
    • Initial release

    Full list of commits can be found here


    Where to get it from? (Download)

    AndroidFileHost | xda | dev host | google drive | trialsrider1


    Let me test!! (Beta Testing Community)

    Google+ LG G3 Beta Testing Community


    Show me the so(u)rce(ry)! (Source Code)

    https://github.com/tectas/android_kernel_lge_msm8974ac/tree/rin-kitkat


    Donators (huge thanks, you're simply great :) )


    Credits


    If you like my work, please show your appreciation by pressing the thanks button, if you want to do more, i've nothing against a little donation, but I'm as happy when you just thank me by pressing the button :)

    XDA:DevDB Information
    Rin Kernel, Kernel for the LG G3

    Contributors
    Tectas
    Source Code: https://github.com/tectas/android_kernel_lge_msm8974ac/tree/rin-kitkat

    Kernel Special Features:

    Version Information
    Status: Stable
    Current Stable Version: 1.8.5
    Stable Release Date: 2014-11-26

    Created 2014-08-14
    Last Updated 2015-01-09
    14
    Sooo, because it still seems to take some time till the bump tool is available, here is a new build, unfortunately still without bump, so it still has to be boot with fastboot the old way, sorry.

    Much fun :)

    Changes:

    23.10.2014/1.6
    • D850 support added
    • Simple GPU Algorithm Support
    • Overclocking up to 2.76 Ghz
    • exfat support
    • intelli-thermal v2 added
    • smartmax governor added
    • memutil optimizations
    • build with NEON kernel mode
    • 2-way call recording patch
    • DriveDroid cdrom emulation support
    • Faux SoundControl
    • Simple-OnDemand fixed
    • Cpu Freq Limiter
    • some small fixes and enhancements

    Download:

    D855-rin-1.6.img: AndroidFileHost | xda | dev host
    md5sum: 7c67d2817d58941fd596e8ed16e21a5c

    F400-rin-1.6.img: AndroidFileHost | xda | dev host
    md5sum: 11df4fb2f2955c0f6d6f33bd8b5a1483

    Temporary removed d850

    Press thanks if you like it :)
    10
    1.8 is up:

    20.11.2014/1.8

    • lollipop support (Credits to @Skin1980 for his rooted stock ram disk!!!)
    • build with sabermod 4.9
    • Graphite build flags
    • NTFS support
    • sysfs interface for android logger (Logger disabled by default)
    • TCP cong algorithms (BIC, Westwood, HTCP, Vegas, Veno, Yeah)
    • More frequency steps between 300Mhz and 2.7Ghz

    Download at the first post, have fun :)

    Edit: Lollipop up on gdrive and dev host, download, as always, much fun :)
    9
    Little update, a breakthrough in lollipop has been achieved, further testing needs to be done though, but 1.8.5 for kitkat and lollipop will most likely be released tomorrow (if it's tomorrow, don't expect it to coming before evening [GMT+1], and every question for ETA will delay the release for one hour :p)

    Sent from my LG-D855
    9
    New kitkat build up and running (lollipop will hopefully follow later today):

    26.11.2014/1.8.5

    • Less frequency steps to UC (better performance for governors hitting each step)
    • Oversharpening fix (Credits to @Skin1980)
    • Kernel now flashed with dd within recovery
    • Added external radio-iris-transport module to fix fm radio

    Because of the external module I've made a flashable (bumped), I'm feeling dirty, but because I had to build one for the module anyway ....
    Download at the first post as always, have fun still :)