[Kernel][LP-CAF] Render Kernel [D80x/LS/VS980/F320x][R3]

Status
Not open for further replies.
Search This thread

RenderBroken

Recognized Developer
Sep 14, 2013
4,297
20,084
33
/home/renderbroken/android
renderkernel_withbackground.jpg

for AOSP Based Roms!​

Now supporting LP-CAF Roms for the G2!! Note that I am no longer supporting my old Kernels for KK or LP.

Code:
/*  *** Disclaimer
*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards, thermonuclear war, 
* or you getting fired because the alarm app failed. Please do some research 
* if you have any concerns about features included in this KERNEL
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
* BOOM goes the Dynamite
*/

My goal with this kernel is to be a very fast and stable build that offers some things that the other kernels do not. I want to initiate Development Discussions amongst the community. This will be a noob friendly thread as long as the new users follow 2 rules. First is to do some research before asking. Most likely your question has already been asked. If not in this thread then in another. Second is BE RESPECTFUL. You do these two things and even the most hardened Dev will assist you.

Current Features
General List:

* Synapse Support - Complete Kernel Control!
* Built with UBER A15 Linaro 4.9.2 Toolchain
* Hotplugs: MSM_Limiter, Intelliplug, and Bricked Hotplug
* MSM_Limiter by @neobuddy89 adds Per-Core Functionality
* Simplified_Thermal by @Sultanxda
* Governors: Lionheart, Impulse, Blu_Active, YankActive, IntelliMinMax and SmartMAX
* Schedulers: FIOPS, ROW, BFQ-v7, SIO, DEADLINE, NOOP, CFQ and ZEN
* Adreno_Idler: Makes GPU Idle better when not in use
* GCC Tweaks for Cortex A15
* Numerous CAF Patches!
* Added Sysfs for GENTLE_FAIR_SLEEPERS
* Quick Wakeup (See HERE) * Dynamic FSync


I recommend Synapse and my special version of UKM for Kernel Tuning
Google Play Store Link
You can get my version of UKM here: Render-UKM

Instructions:

* Boot into Recovery
* (Recommended) Make a complete backup of entire rom (DUH?!)
* Make sure to flash the appropriate bootstack for your model!
* Flash Render Kernel
* Reboot


Download:
LP-CAF Downloads

Changelog:
https://github.com/RenderBroken/msm8974_G2_render_kernel/commits/master

THANKS!!!!
First I want to say thank you to everyone who has answered my questions and responded to my pm's when I know they are busy with their own lives. Pretty much everyone I have come into contact with here on XDA has been truly helpful and respectful. Here is a list of people that had helped me in one way or the other:

myfluxi, Dorimanx, Neobuddy89, Savoca, Faux123, Blechd0se, and Many More!

Thank you guys! Without your contributions to the community we would not have the level of performance, stability and interaction that we have today


Special Thanks!

Donators: @nfin1te, @MrDarkKV, @V1TRU, @Really now

XDA:DevDB Information
[Kernel][LP-CAF] Render Kernel [D80x/LS/VS980/F320x][R3], Kernel for the LG G2

Contributors
RenderBroken, MrDarkKV
Source Code: https://github.com/RenderBroken/msm8974_G2-CAF_render_kernel

Kernel Special Features:

Version Information
Status: Stable

Created 2014-07-03
Last Updated 2015-12-10
 
Last edited:

RenderBroken

Recognized Developer
Sep 14, 2013
4,297
20,084
33
/home/renderbroken/android
Special Notes!

F2FS Notes Below:

Before formatting ALL your partitions to F2FS keep in mind that due to F2FS's performance drop of Sequential Reads (when compared to EXT4) it may be better to leave /system as EXT4. Still its your choice and may find it runs better! With /system you mainly are reading from it than writing. Note that you cannot format /system UNLESS the Rom supports it! Also DO NOT format any other partitions other than:
/system
/data (this will format userdata too FYI)
/cache

The steps I used:
1. Backup EVERYTHING on your Internal Memory to another device (Pro Tip - Use an app like SD Maid and get rid of orphaned data first, could save you alot of time/space)

2. Boot into a F2FS enabled recovery - I use this one: [TWRP][2.8.4.0][2015.01.13][BUMPed] TWRP w/ Thermal & F2FS

3. Format the Desired partition to F2FS:
* Go to Wipe
* Select Format Data
* Select Advanced Wipe - Only select one partition at a time or you will get an error!
* Select Repair or Change File System
* Select Change File System
* Select F2FS

4 Now that you have formatted your desired partition Connect your phone back up to your back up Device. For me it was a computer then:
* Go to Mount
* Enable MTP
This should allow you to mount your phone while connected to a computer. I had issues with it mounting properly. It would show up but I couldn't add anything to it. I found that I needed to install the proper drivers for it to mount properly. For me I used Google Composite ADB Drivers. After that I just had to Reboot back into Recovery.

5. Now that you are mounted properly, go ahead and copy your files back so you can flash a rom and get back up and running. Also, if you made a backup and did not format /system, once you copy your TWRP files back you can restore from that backup.


DT2W

For those having issues with DT2W not working properly on AOSP roms, run this command in Terminal:

Code:
echo "1" > /sys/devices/virtual/input/lge_touch/firmware
Or use the "Update Touchscreen Firmware" button under the Tools tab in Synapse!

The most up to date guide on CPU governors and I/O schedulers!!
 
Last edited:

RenderBroken

Recognized Developer
Sep 14, 2013
4,297
20,084
33
/home/renderbroken/android
To build my kernel yourself:
Source for LP Kernel: LINK
Toolchain: LINK
I use a build script to help juggle all of the different variants (Thanks @savoca). LINK

First you will need to initialize the build environment, Follow this link to do so: LINK

So if using the build script you will need to setup certain folders in certain places. They are this way for a reason and if you really want to know, ask in thread and I would be happy to explain the reasoning.

You need to create folders using the command "mkdir". To create the folders:
Code:
mkdir ~/android
Note you can only create one folder at a time with "mkdir"
Code:
mkdir ~/android
mkdir ~/android/source
mkdir ~/android/source/toolchains
mkdir ~/android/source/kernel
mkdir ~/android/source/out
mkdir ~/android/source/out/g2
mkdir ~/android/source/zips
mkdir ~/android/source/zips/msm8974-zips

Now we need to clone the Source into the proper folders:
~/android/source/kernel/ < From here run:

Code:
cd ~/android/source/kernel/
git clone https://github.com/RenderBroken/msm8974_G2_render_kernel
git clone https://github.com/RenderBroken/msm8974_G2_render_kernel_ramdisk
~/android/source/toolchains/ < From here run:
Code:
cd ~/android/source/toolchains/
git clone https://github.com/RenderBroken/g2-linux-gnueabi-4.9.3
~/android/source/out/g2 < This is a temporary location to create Boot.img from Ramdisk.gz, dt.img, and zImage-dtb.
~/android/source/zips/msm8974-zips/ < Final Location of completed ZIP

Now that you have all the prerequisites you just need to "cd" into the kernel directory:

Code:
cd ~/android/source/kernel/msm8974_G2_render_kernel

Then run the build script:
Code:
./build

You will then be prompted to make selections. I use the D800 so my output would look like so:
Code:
Pick variant...
1) d800
2) d801
3) d802
4) d803
5) ls980
6) vs980
7) f320x
8) l01f
#? 1
Panel variant...
1) lgd
2) jdi
#? 2
Pick target...
1) lg
2) aosp
#? 2
Checking for build...
Nothing has been made...
Clean working directory..(y/n)? : y
  CLEAN   drivers/tty/vt
  CLEAN   firmware
  CLEAN   kernel
  CLEAN   lib
  CLEAN   security/selinux
  CLEAN   usr
  CLEAN   arch/arm/boot/compressed
  CLEAN   arch/arm/boot
  CLEAN   .tmp_versions
  CLEAN   scripts/basic
  CLEAN   scripts/dtc
  CLEAN   scripts/genksyms
  CLEAN   scripts/kconfig
  CLEAN   scripts/mod
  CLEAN   scripts/selinux/genheaders
  CLEAN   scripts/selinux/mdp
  CLEAN   scripts
  CLEAN   include/config include/generated arch/arm/include/generated
  CLEAN   .config .version include/linux/version.h Module.symvers
Working directory cleaned...
Begin build now..(y/n)? : y

Essentially, you will first select what phone you are building for. Next you pick the panel variant which is now irrelevant since I use scripts to automatically select the proper one upon flashing. Lastly you are selecting if the kernel is for AOSP or Stock LG. At the moment only the AOSP version will work. Then it will ask if you want to clean then if you want to build. At the end you should have a completed zip in this folder:
Code:
~/android/source/zips/msm8974-zips/
 
Last edited:

iytrix

Senior Member
Dec 23, 2012
255
52
San Jose
Yep! I am trying to work out the new script so I dont have to build all the variants and for each panel type.

Oh that would be nice! As far as I've seen Mahdi was working more on that? It seemed like something was wrong but his latest kernel used that script (I have JDI) and it worked perfectly fine. Maybe I was mis-reading what he was saying.

Can't wait, I've heard great things about this kernel!
 
  • Like
Reactions: RenderBroken

Fuse8499

Senior Member
Jul 4, 2009
610
169
Does this support Cloudy or Optimus G3 ROM? I know it doesn't mention it in the OP, but I figured I'd ask before I flash it and cause myself a headache if it bootloops.
 

RenderBroken

Recognized Developer
Sep 14, 2013
4,297
20,084
33
/home/renderbroken/android
This kernel is not compatible with CM11, isn't it?

Not yet though I am seriously looking into building for it.

Into download page there is not the f320 version. It's in working for future release?

Can't wait to try this when the ls980 varient uploads. I use aosp and its great to see another kernel dev! Thanks for your hard work.

I will be releasing builds for all variants today. They will be in the Release folder when ready. I will also post about it.

Does this support Cloudy or Optimus G3 ROM? I know it doesn't mention it in the OP, but I figured I'd ask before I flash it and cause myself a headache if it bootloops.

I will be building for Stock as well but it uses a different ramdisk. I have to modify the Ramdisk for EACH variant and setup my build script to handle them before I can really start ripping them off.

Just installed on Mahdi. How can I use (switch on) Sweep2Wake?

TricksterMod would be easiest. I don't remember the sysfs command to do it via terminal at this time.
 
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 214
    renderkernel_withbackground.jpg

    for AOSP Based Roms!​

    Now supporting LP-CAF Roms for the G2!! Note that I am no longer supporting my old Kernels for KK or LP.

    Code:
    /*  *** Disclaimer
    *
    * Your warranty is now void.
    *
    * I am not responsible for bricked devices, dead SD cards, thermonuclear war, 
    * or you getting fired because the alarm app failed. Please do some research 
    * if you have any concerns about features included in this KERNEL
    * before flashing it! YOU are choosing to make these modifications, and if
    * you point the finger at me for messing up your device, I will laugh at you.
    * BOOM goes the Dynamite
    */

    My goal with this kernel is to be a very fast and stable build that offers some things that the other kernels do not. I want to initiate Development Discussions amongst the community. This will be a noob friendly thread as long as the new users follow 2 rules. First is to do some research before asking. Most likely your question has already been asked. If not in this thread then in another. Second is BE RESPECTFUL. You do these two things and even the most hardened Dev will assist you.

    Current Features
    General List:

    * Synapse Support - Complete Kernel Control!
    * Built with UBER A15 Linaro 4.9.2 Toolchain
    * Hotplugs: MSM_Limiter, Intelliplug, and Bricked Hotplug
    * MSM_Limiter by @neobuddy89 adds Per-Core Functionality
    * Simplified_Thermal by @Sultanxda
    * Governors: Lionheart, Impulse, Blu_Active, YankActive, IntelliMinMax and SmartMAX
    * Schedulers: FIOPS, ROW, BFQ-v7, SIO, DEADLINE, NOOP, CFQ and ZEN
    * Adreno_Idler: Makes GPU Idle better when not in use
    * GCC Tweaks for Cortex A15
    * Numerous CAF Patches!
    * Added Sysfs for GENTLE_FAIR_SLEEPERS
    * Quick Wakeup (See HERE) * Dynamic FSync


    I recommend Synapse and my special version of UKM for Kernel Tuning
    Google Play Store Link
    You can get my version of UKM here: Render-UKM

    Instructions:

    * Boot into Recovery
    * (Recommended) Make a complete backup of entire rom (DUH?!)
    * Make sure to flash the appropriate bootstack for your model!
    * Flash Render Kernel
    * Reboot


    Download:
    LP-CAF Downloads

    Changelog:
    https://github.com/RenderBroken/msm8974_G2_render_kernel/commits/master

    THANKS!!!!
    First I want to say thank you to everyone who has answered my questions and responded to my pm's when I know they are busy with their own lives. Pretty much everyone I have come into contact with here on XDA has been truly helpful and respectful. Here is a list of people that had helped me in one way or the other:

    myfluxi, Dorimanx, Neobuddy89, Savoca, Faux123, Blechd0se, and Many More!

    Thank you guys! Without your contributions to the community we would not have the level of performance, stability and interaction that we have today


    Special Thanks!

    Donators: @nfin1te, @MrDarkKV, @V1TRU, @Really now

    XDA:DevDB Information
    [Kernel][LP-CAF] Render Kernel [D80x/LS/VS980/F320x][R3], Kernel for the LG G2

    Contributors
    RenderBroken, MrDarkKV
    Source Code: https://github.com/RenderBroken/msm8974_G2-CAF_render_kernel

    Kernel Special Features:

    Version Information
    Status: Stable

    Created 2014-07-03
    Last Updated 2015-12-10
    115
    LP-CAF Downloads: HERE

    Old Builds (Deprecated): HERE
    51
    So far in R6:

    Sound Control Locking mechanism works automatically now! Yea!

    Slimbus Overclocked and optimized - Should further increase sound quality!

    Kexec Hardboot patched in

    Underclocking

    Ultra Conservative tuned (yet with no lag somehow?! lol)

    Setup CONFIG_MSM_RUN_QUEUE_STATS_BE_CONSERVATIVE (Essentially hot-plugging occurs when your run-queue aka load level gets to a certain level. What this new options does is make the calculation more conservative. TL DR Should help increasing batter performance)

    Oh and f2fs. (Finishing scripts to auto change fstab to mount partitions properly and automatically depending on whether you have EXT4 or F2FS!)

    I may add something else in last minute, WHO KNOWS! Also I will be working on R26 for KK as well such ass:

    Sound Control Locking

    Slimbus Overclocked and optimized

    Setup CONFIG_MSM_RUN_QUEUE_STATS_BE_CONSERVATIVE

    F2FS (ppl have been asking forever for this and have been asking nicely! Time to reward that!)

    LP-R6 s almost done and KK-R26 is mapped out and should be easy enough to complete.
    49
    Why Render is not a "Reconized Dev" on XDA ???
    What can we do to make what he deserve ?

    Actually, I guess its time to reveal. I have just recently been made a Recognized Developer! Just takes time on their end to get me all setup. I was gunna wait till it showed up but I guess now is as good a time as any!
    46
    Hey guys, I am currently working on R6 on my new VPS. It should be done today. I am pretty excited for its release because i feel it is one of the more complete releases for LP so far. Also @MrDarkKV has been working VERY hard with my new kernel site and I am pretty impressed with everything he has done on his own! He wanted to just help me and other devs out. So he told me about his battery crapping out last night and I talked him into setting up a PalPal accounts. It took some prodding because he didn't feel it was right but I convinced him that his work has made downloading my kernel easier than ever! Not only can you download it on the phone now, you can download it on almost ANY device/browser! That's pretty cool! You guys should know me by now that I don't do this for the money and neither does MrDarkKV. My argument was, if your battery went out and you had to buy a new phone and it wasn't the G2, you would not feel as invested in the G2 community and would lose interest. So I will post the paypal link below and in OP#1 and ONLY if you have the means and are happy with what he has done, feel free to donate. Do not feel obligated AT ALL. I just wanted to show him the appreciation I have for him. The battery on Ebay is about $30. Thanks Guys! Hand tight for today and I should have a brand new release incoming!

    PayPal for MrDarkKV

    Also one last bit of news:

    I am an official member of Team OSE (Open Source Evolution) and we have been very hard at work at building an LP rom that We as devs want to use as our own Daily Driver. I am happy to announce that we will soon be releasing our baby to the world. I have been testing and using it for about over a week now and I am VERY impressed, not only is it not just a CM12 clone, it has features that others do not have yet. It is based off of SlimLP. I cant wait to share this with you all. Of cource my kernel will be included! The other members of OSE are:

    @timpohladthomas
    @lownslow200sx

    Kind Regards,
    Zachariah
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone