FORUMS
Remove All Ads from XDA

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

4,281 posts
Thanks Meter: 19,974
 
By RenderBroken, Recognized Developer on 3rd July 2014, 06:31 PM
Thread Closed Email Thread
Render_Logo

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/msm8...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/msm8..._render_kernel

Kernel Special Features:

Version Information
Status: Stable

Created 2014-07-03
Last Updated 2015-12-10
The Following 214 Users Say Thank You to RenderBroken For This Useful Post: [ View ]
 
 
3rd July 2014, 06:32 PM |#2  
RenderBroken's Avatar
OP Recognized Developer
Flag /home/renderbroken/android
Thanks Meter: 19,974
 
Donate to Me
More
LP-CAF Downloads: HERE

Old Builds (Deprecated): HERE
The Following 115 Users Say Thank You to RenderBroken For This Useful Post: [ View ]
3rd July 2014, 06:32 PM |#3  
RenderBroken's Avatar
OP Recognized Developer
Flag /home/renderbroken/android
Thanks Meter: 19,974
 
Donate to Me
More
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!!
The Following 44 Users Say Thank You to RenderBroken For This Useful Post: [ View ]
3rd July 2014, 06:33 PM |#4  
RenderBroken's Avatar
OP Recognized Developer
Flag /home/renderbroken/android
Thanks Meter: 19,974
 
Donate to Me
More
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/
The Following 35 Users Say Thank You to RenderBroken For This Useful Post: [ View ]
3rd July 2014, 06:45 PM |#5  
Senior Member
Flag San Jose
Thanks Meter: 52
 
More
THANK YOU!

Edit: Oh no d801? Is that coming later today or still working on it?
3rd July 2014, 06:47 PM |#6  
1ceb0x's Avatar
Senior Member
Flag Bucharest
Thanks Meter: 6,450
 
Donate to Me
More
i like this kernel!!! thumbs up for Render! thank you mate

Sent from my LG-D802 using Tapatalk
3rd July 2014, 06:47 PM |#7  
RenderBroken's Avatar
OP Recognized Developer
Flag /home/renderbroken/android
Thanks Meter: 19,974
 
Donate to Me
More
Quote:
Originally Posted by iytrix

THANK YOU!

Edit: Oh no d801? Is that coming later today or still working on it?

Yep! I am trying to work out the new script so I dont have to build all the variants and for each panel type.
The Following 2 Users Say Thank You to RenderBroken For This Useful Post: [ View ]
3rd July 2014, 06:54 PM |#8  
Senior Member
Flag San Jose
Thanks Meter: 52
 
More
Quote:
Originally Posted by RenderBroken

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!
The Following User Says Thank You to iytrix For This Useful Post: [ View ] Gift iytrix Ad-Free
3rd July 2014, 07:20 PM |#9  
undeadking's Avatar
Senior Member
Flag Palm Springs
Thanks Meter: 80
 
More
Interested to flash this, Anyone know if I can/should flash this with gummy 4.4.4 VS980 today's nightly?
3rd July 2014, 07:30 PM |#10  
Lazy79's Avatar
Senior Member
Flag Munich
Thanks Meter: 246
 
More
Quote:
Originally Posted by undeadking

Interested to flash this, Anyone know if I can/should flash this with gummy 4.4.4 VS980 today's nightly?

I guess so.. Just flashed it on latest AICP nightly. Works great.
The Following 3 Users Say Thank You to Lazy79 For This Useful Post: [ View ] Gift Lazy79 Ad-Free
3rd July 2014, 07:36 PM |#11  
SeVIIn's Avatar
Senior Member
Thanks Meter: 141
 
More
Can't wait to give this a try on my D801
Thread Closed Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes