[KERNEL]Lightning kernel for stock roms

nikhil18

Senior Member
May 9, 2012
2,276
4,794
0
bangalore
Lightning kernel

this kernel is made for stock roms and i take no responsibility if you brick,destroy your device due to this kernel

features
sound control 3.6
gpu overclock to 627mhz
intelli thermal
cpu overclock upto 1836mhz(disable mpdecision)
compiled with linaro 4.9.1
added intelliactive,intellidemand,preservative,hyper,wheatley,lionheart governors
row,fiops,tripndroid io schedulers
undervolting
sweep to wake and double tap to wake
auto mpdecision (turn off stock qcom mpdecession)
sound stuttering fixed(zzz sound while hearing music)
Motorola MSM memcpy enhancements
cpu unallingnment access
kernel mode neon
exfat support
gpu voltage control
multi rom by Olivier
81mhz lowest cpu frequency
more to come


source code https://github.com/nikhil18/android_kernel_sony_apq8064

installation instructions

flash the boot.IMG file first then flash the normal version 1 in recovery
then flash the overclock file you want uploaded in 2nd post


for extreme overclocking disable qcom mpdecision


Setting custom GPU Voltages via sysfs

NB:
- Safe lock is present on MIN/MAX values:

Quote:
#define GPU_MIN_VDD 900000
#define GPU_MAX_VDD 1200000
The default GPU voltages are:
Quote:
+ [VDD_DIG_NONE] = 0,
+ [VDD_DIG_LOW] = 975000,
+ [VDD_DIG_NOMINAL] = 1075000,
+ [VDD_DIG_HIGH] = 1175000
Verify the actual settings:
Quote:
cat /sys/devices/system/cpu/cpu0/cpufreq/gpu_mv_table

975000
1075000
1175000


Adjust to desired values and verify:

Quote:
echo "930000 1000000 1100000" > /sys/devices/system/cpu/cpu0/cpufreq/gpu_mv_table



XDA:DevDB Information
Lightning kernel, Kernel for the Sony Xperia Z

Contributors
nikhil18
Source Code: https://github.com/nikhil18/android_kernel_sony_apq8064

Kernel Special Features:

Version Information
Status: Testing

Created 2014-11-20
Last Updated 2014-11-20
 
Last edited:

Diatomix98

Senior Member
Jun 24, 2012
681
382
93
Johor Bahru
This is cool! Have always been wanting to have your aosp kernel's features after changing to existenz from aosp. Anyway, one issue I encountered. Whenever I try to adjust the gpu voltage via es file explorer, the device just reboots itself. Never had that issue on your aosp version.
 

nikhil18

Senior Member
May 9, 2012
2,276
4,794
0
bangalore
This is cool! Have always been wanting to have your aosp kernel's features after changing to existenz from aosp. Anyway, one issue I encountered. Whenever I try to adjust the gpu voltage via es file explorer, the device just reboots itself. Never had that issue on your aosp version.
did you even face this problem on my version 8 for cm

Great!! This is based off. 283 I assume?
yup you can even try it with 292 because it has anykernel
 
Last edited:
  • Like
Reactions: nkirk

langeveld024

Senior Member
Jun 7, 2012
1,720
805
113
I faced the reboot after gpu voltage change only when using v7 intelli-plug.
Will try and report back. Btw is this intelli-plug or auto-smp? Or both?
And it doesn't seem to have init.d enabled is it?
 

nikhil18

Senior Member
May 9, 2012
2,276
4,794
0
bangalore
I faced the reboot after gpu voltage change only when using v7 intelli-plug.
Will try and report back. Btw is this intelli-plug or auto-smp? Or both?
And it doesn't seem to have init.d enabled is it?
it has intelliplug and i think initd has to enabled in ramdisk so flash a kernel which has initd enabled then flash my kernel over it it should work because my kernel does not replace ramdisk
 

langeveld024

Senior Member
Jun 7, 2012
1,720
805
113
it has intelliplug and i think initd has to enabled in ramdisk so flash a kernel which has initd enabled then flash my kernel over it it should work because my kernel does not replace ramdisk
What I did was reflash existenz rom and the included stock kernel which has init.d support, but then when flashing this kernel I get error executing updater binary. I think it has to do with the stock Sony ramdisk cuz when flashing on hodorkernel it works fine. Although hodorkernel has no init.d support xD
Anyway thanks a lot for this!
 

nikhil18

Senior Member
May 9, 2012
2,276
4,794
0
bangalore
hi
so happy to see your strong kernel for stocks

can we use it for stock bases roms same as existenz v 3 ?


thank you
yup it is compatible with all the stock roms based on .283 available on xda but you can even try with .292

But why I'm getting the error executing updater binary on stock kernel and not on hodorkernel?
Does any kernel version of hodor gives binary error
 
Last edited:
  • Like
Reactions: nkirk and agha_jo0n

langeveld024

Senior Member
Jun 7, 2012
1,720
805
113
yup it is compatible with all the stock roms based on .283 available on xda but you can even try with .292
But why I'm getting the error executing updater binary on stock kernel and not on hodorkernel?

Btw reported the gpu reboot bug in bug report tab
 
Last edited:

langeveld024

Senior Member
Jun 7, 2012
1,720
805
113
yup it is compatible with all the stock roms based on .283 available on xda but you can even try with .292



Does any kernel version of hodor gives binary error
U mean flashing this kernel on top of anykernel version of hodorkernel, or do u mean flashing hodorkernel anykernel version on top of stock kernel?
 

nikhil18

Senior Member
May 9, 2012
2,276
4,794
0
bangalore
U mean flashing this kernel on top of anykernel version of hodorkernel, or do u mean flashing hodorkernel anykernel version on top of stock kernel?
Flashing anykernel version of hodor kernel on top of stock kernel

Gives same error.
Log: http://www.mediafire.com/view/uy4b3hmrxtlhhuv

Starting at line 376
Flashed lightning for stock, failed, after that flashed anyhodorkernel, failed also.

Guess it has something to do with the special unpacking tools needed for stock boot.img.
Maybe u can try build normal boot.img based on stock 283 FW?
Ok then I will make a boot IMG
 
Last edited:
  • Like
Reactions: langeveld024

langeveld024

Senior Member
Jun 7, 2012
1,720
805
113
Flashing anykernel version of hodor kernel on top of stock kernel
Gives same error.
Log: http://www.mediafire.com/view/uy4b3hmrxtlhhuv

Starting at line 376
Flashed lightning for stock, failed, after that flashed anyhodorkernel, failed also.

Guess it has something to do with the special unpacking tools needed for stock boot.img.
Maybe u can try build normal boot.img based on stock 283 FW?