[KERNEL]CivZ SkyWalker_RF2.5rm (MAX OC 1.504GHz) for ICS / New bootloader(6/7/2013)

civato

Inactive Recognized Contributor
Apr 20, 2011
4,296
19,222
0
These kernels should work on every stock ICS LG rom or custom rom based on LG ICS rom.

Civato kernels build with V30B LG source & compiled on google 4.4.3 toolchain.

Thanks to :
WKPARK patchesRamHack and first OC patch

Also want to thank pengus77 , ezterry, godmachine81 , Thor2002ro, Faux123,chad0989 , Pidozz



NOTE:

I'm not a DEV and not pretending to be one, I'm a android enthusiast.

I would like to thank all XDA members that are helpful.
I build and mod stuff for my personal needs and then I share them.
Do I want something in return? NO.
You don't like it, no problem, there are enough good DEV's with there kernel to help you along.

So on request I started a separate thread for this kernel , it started with my rom and the need for a good custom kernel.


I don't provide any guarantee or a lawer if your phone explode and you get accused and charged for a terrorist act.

To be clear , the kernel got the POSSIBILITY to OC and tweak , if you don't do anything it runs at stock settings.
Meaning = MAX speed 1000MHz , Noop scheduler , interactive governor= LG default settings.

CivZ_SkyWalker_RF2.5rm

Sithlord in 3 different versions.
Ramhack or no ramhack
usb FastCharge
Compiled with Optimized flags-O3/-O2

-OC up to 1.5GHz , UV/OV , default boot up speed is 1.0GHz
-Minimum UV 650mV , Maximum OV 1400mV
Best CPU control app when you want to UV is free for XDA members SETCPU , download 2.24 or buy it, SUPPORT the devs! (it allows you to type in voltage changes and not only slide), Remember only steps of 10mV are real values , if you apply a step of 25mV it will actually be 20mV. So use setcpu to type in voltage steps of 10mV , 20mV , 30mV, ...............

-GPU 3D & 2D ( scales from 300 - 425MHz)
(stock is 300)

-Terminal kernel control commands
(Led light , FSYNC control , ZRam , Modules, SWAP increase)

-USB FastCharge
(disabled at default)

-Available RamHack :No ramhack /24mb / 32mb

- Extra zRam 96Mb
(disabled by default)

-Governors:
Powersaver
PERFORMANCE
USERSPACE
ONDEMAND
INTERACTIVE in dynamic mode (default)
CONSERVATIVE

LulzActive

(LulzActive tegrak tweak app included)
LionHeart


-Shedulers
NOOP(default)
DEADLINE
CFQ
SIO
ROW
BFQ-v5
Zen
VR



-Led control thanks to pengus77 (Max at default)

-Dynamic FSYNC @ Faux123 & Pengus77 (Disabled at default)

-Extra Modules loadable/unloadable on the fly

-Voltages / Frequencies:
NO 5mV steps as they are not supported by the LG regulator (Thanks Pengus77 for the heads-up)
750mV(216MHz) ; 780mV(312MHz) ; 800mV(456MHz) ; 850mV(608MHz) ; 900mV(760MHz); 920mV(816MHz) ; 950mV(912MHz) ; 1000mV(1000MHz boot up speed) ; 1050mV(1100MHz) 1100mV( 1200MHz); 1150mV(1300MHz); 1200mV(1408MHz) ; 1300mV(1504MHz)

Kernel control options to use with Terminal: (Settings are applied immediately and stick even after reboot now)

For a list of the commands on your phone (in case you forgot)
Type in terminal
su(enter)civz(enter)



Dynamic FSYNC control: (disabled by default)
Terminal command:
su (enter) df_on (enter) = This will enable Dynamic FSYNC (setting are applied immediately and sticks after reboot)
su (enter) df_off (enter) = This will disable Dynamic FSYNC (setting are applied immediately and sticks after reboot)

Led Brightness control: (Maximum brightness by default)
Terminal command:
su (enter) ledmin (enter) = This will set led at minimum brightness (setting are applied immediately and sticks after reboot)
su (enter) ledmed (enter) = This will set led at medium brightness (setting are applied immediately and sticks after reboot)
su (enter) ledmax (enter) = This will set led at maximum brightness (setting are applied immediately and sticks after reboot)

Load/unload Extra Modules : (Modules are unloaded by default)
(Cifs; hfs; hfs+; md4; nls_utf8; sha256; sha512)
Terminal command:
su (enter) m_load (enter) = This will load the extra modules (setting are applied immediately and sticks after reboot)
su (enter) m_unload (enter) = This will unload the extra modules (setting are applied immediately and sticks after reboot)

Enable/Disable EXTRA ZRam96MB: (Disabled by default)
Terminal command:
su (enter) zram_on (enter) = This will enable ZRam96MB (Reboot is needed to apply changes and sticks after reboot)
su (enter) zram_off (enter) = This will disable ZRam96MB (Reboot is needed to apply changes and sticks after reboot)

Enable/Disable LG 131MB SWAP or 260MB SWAP: (131MB is LG default)
Terminal command:
su (enter) lg_swap_of (enter) = This will disable LG swap (Reboot is needed to apply changes and sticks after reboot)
su (enter) lg_swap130_on (enter) = This will enable LG 130MB swap (Reboot is needed to apply changes and sticks after reboot)
su(enter)lg_swap260_on(enter) = This will enable LG 260MB swap (Reboot is needed to apply changes and sticks after reboot)

Note on LG swap: The 131Mb is default of LG
LG got this enabled in the stock LG rom and it uses the dev/block/mmcblk0p4 (unused partition) for it so not the same as ZRam that uses /dev/block/zram0 file. The LG Swap partition is enabled by default , I just add this command so if a user don't want to use the LG swap it can be done now with a single command.


Change system swappines value: (Android default is 60)
(setting are applied immediately and sticks after reboot)
Terminal command:
su(enter)swappines_0(enter) = set swappines at 0 = system waits very long to swap , Kills tasks very quick
su(enter)swappines_20(enter) = set swappines at 20 = Performance setting for gaming
su(enter)swappines_40(enter) = set swappines at 40 = Performance setting and some multitasking
su(enter)swappines_60(enter) = set swappines at 60 = Androids default , balanced setting
su(enter)swappines_80(enter) = set swappines at 80 = Aimed for multitasking/Balanced
su(enter)swappines_100(enter) = set swappines at 100 = Aimed for extreme multitasking , NOT GAMING

Update GPS lto
(this is done automatically with a init.d script , so in case it failed, here a way to do this manually)
Terminal command:
su (enter) gps_update (enter) = This will update gps lto file , if the file is not older then 5 days it won' t update.

Change system Fatsdormancy setting:
(setting are applied immediately and sticks after reboot)
Terminal command:
su(enter)fastdormancy_on(enter)=enable Fastdormancy = android default
su(enter)fastdormancy_off(enter)=disable Fastdormancy


Note about fastcharge option in kernel:
It is OFF at default, user needs to enable it.
Use at own risk, it is meant to use on car/plain chargers, don't know the effect in the long term.
And I don't know the effect when ussed on a PC usb connection.

The "FastCharge" app from playstore is installed in data, use it to toggle ON/OFF.
Or use the following terminal commands:
To enable it = echo 1 > /sys/kernel/fast_charge/force_fast_charge
To disable it= echo 0 > /sys/kernel/fast_charge/force_fast_charge

If you use fastcharge on a pc, usb will not be mounted and no data can be received or send.
Based on the work of chad0989 , Pidozz and Pengus77.



LG-SU660-VERSIONS

CivZ_SkyWalker_RF2.5rm-SU660

Side note on USB BSOD (screen off and pluging in usb resulting in BSOD)
I noticed that with enabled Dynamic FSYNC or a to high OC it can still occur.
So in that case please turn on screen before plugging in USB.


Changelog:
[New in RF1.3-Cleaned out the kernel source
-Powersaver governor activated
-Optimized deadline scheduler
-Nvidia USB plugin BSOD fix


New in RF1.4:
-Added BFQ-v5r1 scheduler
@ iBluemind
(More info see Q&A)
-More versions.

New in RF1.5:
-Fix for governor switching
(coming from hotplug to a other governor made one core stuck in sleep state , resulting in bad performance and instability).
-3 New governors: "Aggressive" , "Gallimaufry", "Sakuractive".
-Most governors optimized.
(reverted BFQ to V5 version, performance is smoother I think)
-New "Zen" scheduler and most schedulers optimized
-Reduced android logger time.
-Increased readahead (1024kb instead of the default 128kb)
-Included mmc_cap hard brick fix. (Don't know if it is needed on this phone but can't hurt, a lot of samsung phones died this way when wiping data in recovery)
-Controle led brightness
ledmin ; ledmed; ledmax

NEW RF1.5_FC edition
Added USB Fast Charge in this edition.


8-Feb-2013:
RF1.6:
-Only compiled on -03 CF flags and with FastCharge option.
-GPU 3D clock up to 400MHz
(Before it was 350 where stock is 300)
-Patch for EXt4 error.
-CPU Freq lock off
-Reverted deadline scheduler
-Ramdisk got back the old settings for better battery life when not OC'd.
-216 and 312 MHz default voltage dropped with 25mV.
-Ramp-up speed on interactive back to 80 , you can change this in setcpu.

10-Feb-2013
RF1.7:
-Max CPU OC is now 1.5GHz
-New Lower default Voltage table:
750mV(216MHz) ; 775mV(312MHz) ; 800mV(456MHz) ; 850mV(608MHz) ; 900mV(760MHz); 925mV(816MHz) ; 950mV(912MHz) ; 975mV(1000MHz) ; 1050mV(1100MHz) 1125mV( 1200MHz) ; 1150mV( 1248MHz) ;1200mV(1300MHz) 1250mV(1352MHz) ; 1275mV(1404MHz) ; 1300mV( 1456MHz) ; 1325mV(1500MHz)
-Voltage settings changed in tegra2_dvfs.c so the 1.5GHz is stable.
-GPU 2D clock OC'd up to 400MHz
(stock is 300)
-Secondary clock epp & mpe OC'd to 350MHz
(stock is 300)
-ARCH power enabled
12-Feb-2013:
RF1.8 released
Update for stability reason that some users experienced.
Thanks to all the testers and there feedback.


-2D & 3D clock decreased back to 350MHz OC
(this is the RF1.4 setting as this is the best for all users)
Performance gain is not enough to justified to OC to 400MHz.
The 400MHz version will not be released public as it is not good for most users, please don't ask for it.

-Secondary mpe clock back to stock for the stability reason.
-RATE_LIMIT of 3D back to stock for the stability reason.


13-Feb-2013:
RF1.9

-Bug fix for Reboot /shutdown freeze when OC'd.
-Voltage table updated.
-Lower voltage for 1500 and 1456 MHz
Minimum UV voltage is now 675mV
-3D GPU 400MHz OC.

16-Feb-2013:
RX2.0


  • New Voltage table for higher stability.
  • New CPU max speed 1.544GHz.
  • New GPU 2D clock of 400MHz.
  • New terminal kernel commands.
  • Compiled with new flags (-O2 with some parts of -O3 flags to reduce code size).
  • Updated voltage table to gain stability when OC'd.
  • Dynamic FSYNC @ Faux123 integrated (Disabled at default)
  • Kernell-HZ increased to 256HZ (stock is 100) for better performance and smoothness.
  • User HZ increased to 200HZ (stock is 100) for smoothness
  • Support for NTFS
  • Support for NFS 3/4
  • HFS & HFS+ as modules
  • CIFS as module
  • md4 as module
  • sha512 as module
  • utf8 as module.


16-Feb-2013:
RX2.0_b released
Fix for the terminal commands error.

21-Feb-2013:
RX2.1 Released

  • Reverted User and Kenrel HZ to stock for stability.
  • Reverted back to -O3 custom flags
  • New terminal commands for ZRam and Extra modules
  • USB OTG (on the go) enabled (testing)


22-Feb-2013:
RX2.2 released:

  • Changed some custom flags for decrease of code size.
  • Reverted OTG setting (not working and causing problems)
  • Shed_Features back to stock setting (causing USB pluggin BSOD)
  • New Terminal command 'civz"
I hope this is a 100% rock solid stable version and I'm truly sorry for the many releases the last few days.
I wish to bring a stable kernel so some features are reverted as wow factor is not what I look for.01-Mar-2013:
CivZ_SithLord_再见 released


  • Main goal 100% stable kernel with good battery life, that is why the following changes are applied:

  • Forced governor linked patch (Make sure both cpu's run at the same governor, even with "setcpu & antutu") thanks Ezterry.
  • Max OC 1500MHz with lower voltage table (see in kernel info) , this to reduce battery consumption.
  • Removed a bunch of governors as they caused problems in some situations (so it seemed), see kernel ifo for what is included.
  • LulzActive Governor (with app) , tweaked by me to be less aggressive.

02-Mar-2013:
CivZ_SithLord_再见_r2 released


  • Reverted voltage table to RX2.2 release as some users had problems on max OC with lower rail voltages.
I can UV with -50mV on all frequencies but that is all up to the quality of your tegra2 cpu.07-Mar-2013:
CivZ_SkyWalker_RF1.0 released


  • New name because the OC code totaly changed compared to SithLord.
  • Totally new OC code with new frequencies and very low default voltages.(Thanks to my friend ezterry)
  • Max = Min frequency really fixed (now it won't be stuck at 750MHz when setting max frequency below 760MHz and not just showing the value but actually applying it so now you can set screen-off max at example: 312MHz in a profile with a cpu app).
  • Dynamic MODE enable on the interactive governor.
  • Min Max cpu frequency code changed and editable in defconfig before compiling kernel(Thanks to my friend ezterry)
  • Compiling optimizations flags changed (again thanks to my friend ezterry)
  • LulzActive governor balanced settings with max screen-off frequency of 608MHz
I would like to thank all the beta testers and I hope the result is up to your expectations!

08-Mar-2013:
CivZ_SkyWalker_RF1.1 released


  • More aggressive lulzactive governor settings on user request
  • New terminal command for LG 131MB swap
  • New terminal command for manual updating GPS lto file
  • Also a SU660 version available
  • 96ZRam disabled by default from now on (not needed in my opinion, swap already got 131Mb on unused partition, but it is still available as a option)
10-Mar-2013:
CivZ_SkyWalker_RF1.2 released


  • New Max OC speed of 1544MHz
  • 2D GPU back to 400MHz OC
  • OC code updated
  • New Terminal command to increase LG SWAP to 260MB
  • Updated FSYNC with latest Pengus77 release
  • Enabled ARCH-Power
  • SU660 24RH version available
  • "civz" terminal command updated with latest commands


13-Mar-2013:
CivZ_SkyWalker_RF2.0 released


  • Reverted MAX OC to 1504MHz (this way I could drop rail voltages so it will stay cooler, settings of RF1.0)
  • New Voltage table (no 5mV steps as pengus77 mentioned the regulator doesn't except 5mV steps)
  • Real min voltage is now 650mV (again thanks for pengus77 pointing me this out that board power and regulator had to be modded)Best CPU control app when you want to UV is free for XDA members SETCPU , download 2.24 or buy it, SUPPORT the devs! (it allows you to type in voltage changes and not only slide), Remember only steps of 10mV are real values , if you apply a step of 25mV it will actually be 20mV. So use setcpu to type in voltage steps of 10mV , 20mV , 30mV, ..
  • New Governor , LionHeart , tweaked by me to be very battery friendly.
  • GPU 2 D & 3D scales from 300 - 450MAX . What does this mean: When you play a stressfull game it will go up to Max 450MHz if it can depending on = It scales with voltage and process ID , lower voltage/ lower stress/ lower CPU speed = lower GPU speed. I hope this is the best solution for all users and best for battery/performance.
  • FastCharge updated to pengus77 edition.
  • Kernel Panic Timeout increased to 10 so a automatic reboot can be prevented when running out of memory on multitasking.
  • SU660 gets all versions.
FOR RF2.0 I would like to thank Pengus77 for his contribution on the voltage control and the updates of FSYNC and FastCharge.
I would also like to thank my good friend ezterry and godmachine81 for the OC code and GPU code.
Next I thank all my beta testers for the info and stressing there phone.

14-Mar-2013:
CivZ_SkyWalker_RF2.0-b released


  • New terminal commands to control the swappines
  • LG terminal command name change !!!
  • civz command updated
The rest of the kernel is 100% the same!


23-Mar-2013:
CivZ_SkyWalker_RF2.2-b released


  • New secondary , GPU frequency table.
  • 3D Clock scales max to 425MHz.
  • 2D clock scales up to 400MHz max (only when needed in heavy load)
  • USB connection delay patch
  • Fastdormancy terminal command
29-Mar-2013:
CivZ_SkyWalker_RF2.3rm released


  • gspca_main.ko module moved to optional modules
  • Stripped of all debugging = Lighter and optimized code
  • Fixed some code errors while compiling


06-Jul-2013:
CivZ_SkyWalker_RF2.5rm released


  • SetCPU 3.1.0 and higher reverted voltage fixed so on older versions of setCPU this kernel won't report correctly.


Note on LG SWAP increase:
Remember that on stock LG rom the default LG swap is 131MB. If you change kernel that doesn't got this terminal option and you changed the swap size or disabled it , no problem the swap commands are installed in system/bin so if you didn't delete them you can always use it. This does not count for other terminal command that come with the kernel.


Side note on USB BSOD
It is very random and still not 100% solved.
I noticed that with enabled Dynamic FSYNC or a to high OC it can still occur.
Just turn on your screen before connecting to pc and safe yourself a battery pull.



Side note:
Kernels comes as a boot.img = ramdisk with zImage.
Reason is that I made some changes in ramdisk. , init.d support.......


The meaning of this kernel is if you don't OC you get supurb battery life and 100% stability. If you start changing default governors and schedulers it will and can have a effect on battery life and OC to much with to much UV it will get unstable.

I recommend 1.2-1.3GHz for 24/7 use and not more. Governors can have a great effect on battery life. The flexibility in the kernel is there for the user to pick his/her favorite setting.


Source see second post!
More info about Sithlord and the effect of RamHack and Zram
 
Last edited:

SuRMaJ

Senior Member
Jan 10, 2013
77
18
0
Thank you! you are the best developer.

antutu with CivZ_SkyWalker_RF1.0 released - 7561
antutu with CivZ_SkyWalker_RF2.0 released - 7026
nothing has changed, all standard
Why is that?
 
Last edited:
  • Like
Reactions: mark_hatred

civato

Inactive Recognized Contributor
Apr 20, 2011
4,296
19,222
0
Thank you! you are the best developer.

antutu with CivZ_SkyWalker_RF1.0 released - 7561
antutu with CivZ_SkyWalker_RF2.0 released - 7026
nothing has changed, all standard
Why is that?
Did some benchmarks.
All with 50mV UV and lulzactive /row
1000 MHz = 7002 points
1200MHz = 7480 points
1504 MHz = 8701 points

That is like 99% the same as RF1.0

Don't only look at benchmarks , look at user experience.
RF2.0 is a lot more balanced then 1.0
 

civato

Inactive Recognized Contributor
Apr 20, 2011
4,296
19,222
0
New RF2.0-B

could you please tell me how to build a su660 kernel form p990 sources? thanks
Linux , Time , source.
I think there are enough great guides here on XDA on how to...


---------------------------------------------------------------------------------------------------------------------------------------


14-Mar-2013:
CivZ_SkyWalker_RF2.0-b released


  • New terminal commands to control the swappines
  • LG terminal command name change !!!
  • civz command updated
The rest of the kernel is 100% the same!
How does it work: (so you got some inside info , please also take a look into the zips bin files for the people that want to learn a little more , this way you get a better understanding of what it does when you type in the commands)
A sysctl.conf is installed in system/etc
When you type in the command , the sysctl.conf is edited to hold the value for after a reboot
the vm swappines is changed when you typed in the command so it is applied immediately and it sticks after reboot.

If you should delete the sysctl.conf in system/etc for some reason the swappines will return to android default of 60.


PLEASE TAKE A LOOK AT THE NEW TERMINAL COMMANDS AS SOME CHANGED BY NAME!


Kernel control options to use with Terminal: (Settings are applied immediately and stick even after reboot now)

Enable/Disable LG 131MB SWAP or 260MB SWAP: (131MB is LG default)
Terminal command:
su (enter) lg_swap_of (enter) = This will disable LG swap (Reboot is needed to apply changes and sticks after reboot)
su (enter) lg_swap130_on (enter) = This will enable LG 131MB swap (Reboot is needed to apply changes and sticks after reboot)
su(enter)lg_swap260_on(enter) = This will enable LG 260MB swap (Reboot is needed to apply changes and sticks after reboot)

Note on LG swap: The 131Mb is default of LG
LG got this enabled in the stock LG rom and it uses the dev/block/mmcblk0p4 (unused partition) for it so not the same as ZRam that uses /dev/block/zram0 file. The LG Swap partition is enabled by default , I just add this command so if a user don't want to use the LG swap it can be done now with a single command.


Change system swappines value: (Android default is 60) (setting are applied immediately and sticks after reboot)
Terminal command:
su(enter)swappines_0(enter) = set swappines at 0 = system waits very long to swap , Kills tasks very quick
su(enter)swappines_20(enter) = set swappines at 20 = Performance setting for gaming
su(enter)swappines_40(enter) = set swappines at 40 = Performance setting and some multitasking
su(enter)swappines_60(enter) = set swappines at 60 = Androids default , balanced setting
su(enter)swappines_80(enter) = set swappines at 80 = Aimed for multitasking/Balanced
su(enter)swappines_100(enter) = set swappines at 100 = Aimed for extreme multitasking , NOT GAMING

SU660-VERSIONS

CivZ_SkyWalker_RF2.0-SU660-b


CivZ_SkyWalker_RF2.0_24RH-SU660-b

CivZ_SkyWalker_RF2.0_32RH-SU660-b

Side note on USB BSOD (screen off and pluging in usb resulting in BSOD)
I noticed that with enabled Dynamic FSYNC or a to high OC it can still occur.
So in that case please turn on screen before plugging in USB.



Enjoy!
 

genemini

Senior Member
Dec 27, 2012
146
38
0
Re: [KERNEL]CivZ SkyWalker_RF2.0-b (MAX OC 1.504GHz) for ICS / New bootloader

Thanks for your work hard. I like your kernel. But my phone is used old bootloader. Could you build this kernel for Old bootloder?
Mr.Civato only build kernel for ICS based ROM which uses NEW BL, So I guess the answer would be "NO"

Sent from my LG-P990 using xda app-developers app
 

mark_hatred

Senior Member
Oct 25, 2012
58
32
0
Taguig
Can't wait to get my hands on this update, really a big thank you to Sir Civato for including SU660,

Is there a possibility to have a none overclocked kernel for GPU sir? :D

P.S. Im still on 1.2 and it gave me no problems and this is the first time my device performed at its best on the battery and performance perspective. Can't wait to update 1.2 to 2.0b with FLEX_ICER!
 

genemini

Senior Member
Dec 27, 2012
146
38
0
I LOVE YOU Civato!! :D

really glad you're breathing life to this lonely ghost town. :)

My Set-up:
Flex_ICER 4.6
SkyWalker 2.0b
default freq
lionheart -50UV
+ row
gaming/surfing and overall performance is superb! :D
I can't really give relevant feedback regarding Battery Life since I'm a heavy DATA user.

Screen Off:
216-312mhz
both -60uv
powersave gov.

it sleeps but not die :)
 
  • Like
Reactions: mark_hatred

civato

Inactive Recognized Contributor
Apr 20, 2011
4,296
19,222
0
2.3 released

29-Mar-2013:
CivZ_SkyWalker_RF2.3rm released


  • gspca_main.ko module moved to optional modules
  • Stripped of all debugging = Lighter and optimized code
  • Fixed some code errors while compiling


LG-SU660-VERSIONS
CivZ_SkyWalker_RF2.3rm-SU660


Code:
Older kernel versions: 
LG-SU660-VERSIONS 
[URL="http://d-h.st/cOR"]CivZ_SkyWalker_RF2.2-SU660-b[/URL]
[URL="http://d-h.st/l9W"]CivZ_SkyWalker_RF2.2_24RH[/URL][URL="http://d-h.st/l9W"]-SU660-b[/URL] 
[URL="http://d-h.st/85i"]CivZ_SkyWalker_RF2.2_32RH[/URL][URL="http://d-h.st/85i"]-SU660-b[/URL]