Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,806,750 Members 43,100 Now Online
XDA Developers Android and Mobile Development Forum

[KERNEL][AOSP]Torched Kernel KK-B4.6[07/10/14] F2FS

Tip us?
 
jrior001
Old
(Last edited by jrior001; 21st August 2014 at 04:47 AM.)
#1  
jrior001's Avatar
Senior Member - OP
Thanks Meter 2,627
Posts: 1,770
Join Date: Aug 2010
Location: Va Beach

 
DONATE TO ME
Introducing Torched Kernel for Evita!!

First I must give some thanks to all the great developers that paved the way for this, for I would have nothing if it wasn't for these guys. Most of this work is a collection of various pathes from many devs, adapted into our CM kernel. So, if you have the chance to speak with any of these guys, make sure you spread some appreciation around. The list includes but is not limited to:
Intervigil, H8rift, kushdeck, mdmower, flemmard, codeworxs, Faux123, Flar2, zarboz, showp1984, tbalden.

Also I'd like to add my fellow custom kernel devs rmbq (ville) and NineInchNails (evo 4G) whom i've had the oppertunity to bounce ideas off of and share some work.

Kernel for AOSP roms only!!
Based on CM's current 3.4 kernel
Compiled with Christopher83's custom tweaked GCC 4.8.3 linaro toolchain
This should work on all 4.4 AOSP roms for EVITA


FEATURES:
Interactive/ROW by default
1.7ghz OC available (1.5ghz is stock/default setting) - REMOVED IN noOC/noVC VERSION
3 stage 2D/3D GPU OC avaialable (200/400 stock/default setting, 320/512 max) - REMOVED IN noOC/noVC VERSION
Voltage Control -as implemented by Faux123 - REMOVED IN noOC/noVC VERSION
QCOM Vmin Bypass (allows CPU to follow stock voltages tables rather than qcom enforced minimum voltage for errata cases - REMOVED IN noOC/noVC VERSION
3 stagekernel based thermal control from Showp1984
S2W/DT2W/POCKET DETECTION from flar2 (off by default)
BLN (button light notification) from tbalden, blinks hardkey backlight when there are pending notifications (off by default)
Dynamic Fsync from Faux 123
Additional Gov/Sched options
USB FAST CHARGE
Faux sound control patches from Faux123
Advanced TCP Congestion Control Choices
Bunches of minor optimizations from all over github. My source is always current with my releases and possibly any new work, feel free to check in on it anytime for the full list of tweaks and thier sources.







JB CHANGELOGS
Code:
Initial build
Keeping it simple for the first build, more to come
-USB fast charge (off by default,turn on w/ trickster/KT)
-Added governors ( Intellidemand, smartmax)
-Added schedulers (BFQ, fiops, SIO)
-reverted recent linux .61/.62 updates as they may be root cause of frequent bootloops (TESTING THEORY HERE)
-dynaimc fsync, advanced SHA1/AES algorithms from faux123
-better cpu freq control (will help with OC later)
-all the linaro build flags and -O2 flags

 B2 
- BLN is working now (off by default)
-enable with trickster/kernel tuner
-IMPORTANT NOTE: This will break variable button brightness control recently added in CM and maybe other roms as well...sorry can't have both. 
-I will post a flashable revert zip for the required file permmisions change if there is a demand for it.
-Also made a few mods to boost freqs on smartmax gov. 

 B3 
TWO VERSIONS - OC/VC and NO OC/VC
-GPU OC 266 2d / 480 3d enabled by default on both
-Kernel updated to fix display issues
-OC/VC version allows OC to 1.7, 15 at boot and remains there by  default use KT or Trickster to enable
-OC/VC remove vmin errate cases that force a higher minimu voltage at low freq. Allows CPU to follow our designed coltage tables
If this causes issues on your device try raising voltage or switching to the NO OC/VC version.

B4
ONE VERSION ONLY
ALL OPTION OFF/STOCK BY DEFAULT 
- Faux sound control credit to Faux123
- 3 stage thermal control by showp1984 
     Allows users controlled controlled limits for thermal throttling
- S2W /DT2W fix from rmbq/thicklizard. 
- S2W/DT2W as implemented by flar2 with pocket detection. 
- GPU OC steps added and set to stock speeds by default 
Again all boots up like stock... If you want the options turn them on. Most kernel apps include options to set profiles at boot :) 

B5
-O3 optimizations
Added optional lower min frequency (168 mhz) 
All Cm updates

B6
-started over from B4 base
-Dropped lower min freq from B5
-updates to smartmax freqs
-Enabled XZ compression
-Enabled Zram
-Cleaned up linaro flags and cpu freq tables

B6.1  && B6.1.VMIN
-updates for faux sound 3.0
-VMIN version leave vmin check active, but still allows user controllable voltages
SEE VOLTAGE INFO BELOW

B7 && B7-noOC-noVC
FINAL VERSIONS for 4.3
-Updated with all recent CM updates including the CPUfix we are all so excited for( HUGE THANKS to Intervigil )
-bump to linux version 3.4.72
KK CHANGELOGS
Code:
KK-BUILD#1
-Back to basics, starting from a clean slate again
-CPU OC, GPU OC && Voltage Control
-GCC 4.8 with CFX linaro based tool chain here
-optimization level -O2 
-VMIN enabled for now

KK-BUILD#2
-update to linux v3.4.70
-3 stage thermal control
-S2W w/ user selectable swipe buttons (use kernel tuner)
-BLN
-Faux sound control 3.0
-Vmin disabled, voltages follow qcom voltage tables

KK-Build#2.1
-rework of S2W to fix initialization issues
-DT2W and pocket detection are back now as well (thanks flar2)

UPDATED WITH "SAFE" VERSION 
-Safe version disables all voltage/clock mods
-Operates at stock clocks and voltages w/vmin check enabled
-all other features carry over from normal build
-DO NOT FLASH VOLTAGE SCRIPT WITH THIS VERSION, IF YOU HAVE PREVIOUSLY FLASHED IT NAVIGATE TO /ETC/INIT.D/ WITH A ROOT EXPLORER AND DELETE THE OLD SCRIPT (74havsvoltage)

KK-Build#2.2
-Minor update to catch up with CM
-updated to 3.4.72
-Cpufix is now integrated
- noOC/noVC version available

KK-Build#3
-Most remaining features are back now
-Add governors(smartmax & Intellidemand)
-Add schedulars(BFQ,fiops,sio)
-Updates for Faux Sound (needs testing, still seems alittle off)
-USB FAST CHARGE
-optimized AES and SHA1 routines (faux123 && flar2)
-optimized string and memcopy routines from faux123
-dynamic fsync from faux123
-noOC/noVC version available as well

## All builds prior to Build 3.2 will lose WiFi on CM nightlies after 1/5/14 
     Use build 3.2 or newer for anything after 1/5/14  ##

KK-Build#3.2
-Catch up to CM
-Wifi module now built inside kernel, makes for smaller package

KK-Build#3.5
-Catch up to CM
-Bump max OC to 1.9
-remove a few commits that seem to be root cause of previous SOD issues

KK-Build#3.6
-Catch up to CM
-Reduce max OC back to 1.7, 1.9 thermals out way to fast to be useful
-complete patches for 3-stage thermal that i missed on original import
-update BFQ to latest v7.2
-fix s2w/BLN broken by new touchscreen/led drivers brought in by CM for M7 import

KK-Build#3.7
-Catch up to CM

KK-Build#4.0
-Catch up to CM
-TCP congestion control options 
-3.4.86 updates
-build with Christopher83's custom Cortex-A15 tweaked linaro 4.8.3 toolchains
 
KK-Build#4.1
- update to support new fstab formats
- should be backwards compatable so this is the only version supported at this point

KK-Build#4.2
- minor CM updates
- moved to 4.9.1 optimized linaro toolchains]

KK-Build#4.3
- headset fixes from CM 

KK-Build#4.5
-Catch up with CM
-ADD F2FS support!

KK-Build#4.6
- Add inline_data flag for F2FS performance
- fix minor derp with versioning

KK-Build#4.7
- Playing catch up with CM kernel base

KK-Build 4.8
- Catch up with CM, major update for wifi drivers hit on 8/19. All nightlies after will need this build to
 allow wifi to turn on.
My source : https://github.com/jrior001/Torched_kernel
Toolchain Source : https://github.com/Christopher83/linaro_toolchains_2014


Planned additions
- who knows what else...

Installer uses AnyKernel install method, will only work on s-off.

DOWNLOADS:
JB BUILDS
Torched.B1.zip - 20.32 MB
Torched.B2.zip - 20.32 MB
Torched.B3.zip - 20.15 MB or Torched.B3-noOC-noVC.zip - 20.15 MB
Torched.B4.zip - 20.15 MB
Torched.B5.zip - PULLED NOT happy with this one
Torched.B6.zip
Torched.B6.1 or Torched.B6.1.VMIN
Torched-JB.B7 or Torched-JB.B7-noOC-noVC

KK BUILDS
Torched-KK Build #1
Torched-KK Build #2
Torched-KK Build #2.1 or Torched-KK.Build2.1-novc-nooc
Torched-KK Build #2.2 or Torched-KK.Build2.2-noOC-noVC
Torched-KK Build #3 or Torched-KK.Build3-noOC-noVC
Torched-KK Build #3.2 or Torched-KK.Build3.2-noOC-noVC
Torched-KK Build #3.5 or Torched-KK.Build3.5-noOC-noVC
Torched-KK Build #3.6 or Torched-KK.Build3.6-noOC-noVC
Torched-KK Build #3.7 or Torched-KK.Build3.7-noOC-noVC
Torched-KK Build #4.0 or Torched-KK.Build4.0-noOC-noVC
Torched-KK Build #4.1 or Torched-KK.Build4.1-noOC-noVC
Torched-KK Build #4.2 or Torched-KK.Build4.2-noOC-noVC
Torched-KK Build #4.3 or Torched-KK.Build4.3-noOC-noVC
Torched-KK Build #4.5 or Torched-KK.Build4.5-noOC-noVC
Torched-KK Build #4.6 or Torched-KK.Build4.6-noOC-noVC

STARTING WITH B4.7
ALL DOWNLOADS WILL NOW BE HOSTED ON CODEFIRE SERVERS HERE
http://downloads.codefi.re/jrior001/Torched-kernel


Voltage bump init script

Disclaimer : While this has been thoroughly tested, I cannot garuntee your device will not melt, explode or scare away kittens and babies. You know the risks involved , if you don't you shouldn't be here.
The Following 63 Users Say Thank You to jrior001 For This Useful Post: [ Click to Expand ]
 
jrior001
Old
(Last edited by jrior001; 20th November 2013 at 05:05 PM.)
#2  
jrior001's Avatar
Senior Member - OP
Thanks Meter 2,627
Posts: 1,770
Join Date: Aug 2010
Location: Va Beach

 
DONATE TO ME
VOLTAGE INFO
*WARNING: messing with voltages can cause serious instability, luckily a clean flash will erase whatever you screw up*
Qcom knew our chips were shaddy and introduce a "vmin" check based on the chip Id's. If your chip is flagged, which most of ours are, it forces a minimum voltage on all freq of 1150mv instead of whatever the voltage table calls for. Since I introduced voltage control I've been disabling this check, this is why people have been getting such good battery life. Unfortunately this has caused instability or SOD on some users devices. The easy solution here is to use the VMIN version, (and give up 4hr screen time battery life) which leaves this check in place.
If your device can handle it use the normal version. Or if you like to tinker, try the normal version, if you have SOD issues raise the voltages slightly on the lower 5-6 frequencies until your device becomes more stable.

HOW TO FIND YOUR STOCK VOLTAGE TABLE:
usign a root file explorer, navigate to /proc/last_kmsg and copy the file to your sdcard. Many file readers will not oopen this file from the root directory. Open the file and search for " ACPU PVS", it should be around line 220 or so.

ACPU PVS : 0 = SLOW
ACPU PVS : 1 = NOM
ACPU PVS : 3 = FAST

Code:
STOCK VOLTAGE TABLES FOR REFERENCE
acpu_freq_tbl_slow[]acpu_freq_tbl_nom[]acpu_freq_tbl_fast[]
384000950000384000900000384000850000
486000975000486000925000486000875000
5940001000000594000950000594000900000
7020001025000702000975000702000925000
81000010750008100001025000810000975000
918000110000091800010500009180001000000
102600011250001026000107500010260001025000
113400011750001134000112500011340001075000
124200012000001242000115000012420001100000
135000012250001350000117500013500001125000
145800012375001458000118750014580001137500
151200012500001512000120000015120001150000
OC FREQUENCIESOC FREQUENCIESOC FREQUENCIES
167400012500001674000125000016740001250000
172800012750001728000127500017280001275000
The Following 8 Users Say Thank You to jrior001 For This Useful Post: [ Click to Expand ]
 
timmaaa
Old
#3  
timmaaa's Avatar
Recognized Contributor
Thanks Meter 6,226
Posts: 13,130
Join Date: Jun 2011
Location: Melbourne

 
DONATE TO ME
Nice work man, I applaud the amount of work you're putting into our device to keep it relevant :thumbup:

PS. Your OP is lame, like, totally jk

Sent from my Evita
OnePlus One | crDroid/AK | TWRP 2.7.1.1

Do not PM me asking for assistance, that's what my Q&A thread is for!
The Following 2 Users Say Thank You to timmaaa For This Useful Post: [ Click to Expand ]
 
freshlimes
Old
#4  
Member
Thanks Meter 13
Posts: 42
Join Date: Nov 2012
Location: Santa Cruz, CA
So far so good! I can finally run an AOSP 4.3 ROM and have it boot on the first try! Great work. Hope to see more from you
HTC One GSM // S-Off // AOSPA 4.4 Beta 6 // Stock Kernel
Nexus 7 FHD // OmniRom
 
Z1cK
Old
#5  
Z1cK's Avatar
Senior Member
Thanks Meter 230
Posts: 514
Join Date: May 2013
Location: the web ;)
Quote:
Originally Posted by timmaaa View Post
Nice work man, I applaud the amount of work you're putting into our device to keep it relevant :thumbup:

PS. Your OP is lame, like, totally jk

Sent from my Evita
hey man! Do you sleep sometimes ? :sly:
 
timmaaa
Old
#6  
timmaaa's Avatar
Recognized Contributor
Thanks Meter 6,226
Posts: 13,130
Join Date: Jun 2011
Location: Melbourne

 
DONATE TO ME
Quote:
Originally Posted by Z1cK View Post
hey man! Do you sleep sometimes ? :sly:
Lol, yeah sometimes. I am on the other side of the world though.

Sent from my Evita
OnePlus One | crDroid/AK | TWRP 2.7.1.1

Do not PM me asking for assistance, that's what my Q&A thread is for!
 
jrior001
Old
(Last edited by jrior001; 10th October 2013 at 01:12 PM.)
#7  
jrior001's Avatar
Senior Member - OP
Thanks Meter 2,627
Posts: 1,770
Join Date: Aug 2010
Location: Va Beach

 
DONATE TO ME
Quote:
Originally Posted by timmaaa View Post
PS. Your OP is lame, like, totally jk

Sent from my Evita
I do 95% of my xda from the phone, all those pretty colors and graphics don't show up in the mobile app anyways

Sent from my One Xl using Tapatalk 2
The Following 3 Users Say Thank You to jrior001 For This Useful Post: [ Click to Expand ]
 
dave-
Old
#8  
Senior Member
Thanks Meter 37
Posts: 369
Join Date: Feb 2010
Location: Melbourne
Giving it a go on cm10.2 10/09 build with intellidemand, didn't change anything else.

Looking forward to seeing where it goes.
 
timmaaa
Old
#9  
timmaaa's Avatar
Recognized Contributor
Thanks Meter 6,226
Posts: 13,130
Join Date: Jun 2011
Location: Melbourne

 
DONATE TO ME
Quote:
Originally Posted by jrior001 View Post
I do 95% of my xda from the phone, all those pretty colors and graphics don't show up in the mobile app anyways

Sent from my One Xl using Tapatalk 2
I'll take function over a purdy OP any day :thumbup:

Sent from my Evita
OnePlus One | crDroid/AK | TWRP 2.7.1.1

Do not PM me asking for assistance, that's what my Q&A thread is for!
 
twistedddx
Old
(Last edited by twistedddx; 10th October 2013 at 03:42 PM.)
#10  
Senior Member
Thanks Meter 478
Posts: 823
Join Date: Oct 2010
Tried to install this. Install aborted after doing a fair few things with status code 1. Reboot device just has CM left at the CM logo circling.

Now my CWM does not function even after reflashing it with fastboot. On booting into recovery it immediately reboots the device back to the white HTC logo then onto CM logo.

Installed TWRP 2.6.3.0 and that does the same boot loop.

Cant boot ROM, cant boot recovery. Fun fun

Not sure what has gone wrong but I would not suggest flashing this kernel without having full access to adb and fastboot. And dont do it at 1am when about to sleep

Edit:
fasboot erase cache seems to have gotten recoveries back on track.

The Following User Says Thank You to twistedddx For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes