FORUMS

[KERNEL] [4.4] Werewolf kernel v008 [15/02/2015] SM-T210(R) and T211

2,888 posts
Thanks Meter: 7,058
 
By laufersteppenwolf, Inactive Recognized Developer / Retired Forum Moderator on 18th July 2014, 10:29 PM
Post Reply Email Thread
Announcement from laufersteppenwolf: v008 online
Hey guys

As you already might have read in either the CM11 dev thread or the Q&A section, I am working on a custom kernel for our T210(R) and T211. It's still in a pretty early stage, but the current build is fully stable, so I thought why not share it

As I'm pretty new to this community, a few words about myself: My (only) device I have been working on is the LG Optimus 4x HD, for which I also made a custom kernel (also named werewolf kernel, who would have thought of that ). Me and 2 other fellow RDs were able to "switch" many blobs with the ones from grouper, which fixed many, many issues we were facing in 4.4 with the stock 4.1 blobs. I am the official maintainer of namelessROM and vanir for the 4x HD, and am also compiling GummyROM, LegoROM, unofficial CM 11 (using grouper blobs) and SlimKat for the 4x HD on a nightly base. And as soon as we have a proper device tree for our tab, I'm sure I can port the Tab3 to all those ROMs

Now, enough chit chatting, let's talk about the kernel
It's based on @ketut.kumajaya's blackhawk kernel (thanks again, mate ) From v004 on we are based on official KitKat sources, with some additions such as:


Features:
  • Various network tweaks
  • Entropy tweaks
  • I/O speed improvements
  • cortex a9 and neon omtimizations
  • Added frandom
  • Tweaked vm dirty ratios
  • Dynamic read-ahead values
  • Added I/O schedulers: ROW, SIO, BFQ, FIOPS, V(R)
  • Optimized AES and SHA1 routines
  • Added CPU governors: Lionheart, Adaptive, Intellidemand, Hotplug, Hyper
  • Reduced RAM usage from logger
  • Updated lowmemkiller
  • Overclocked to 1.420 GHz by default
  • Disabled vsync for better 2D performance
  • Overclocked GPU up to 624MHz (default 416MHz)
  • Custom user voltage control (CPU)
  • Undervolted by default (-25mV)
  • S2W and DT2W (WIP)
  • Fast Charging
  • KSM

Bugs:
  • You tell me!

Installation:
  1. Download the kernel from HERE
  2. Reboot into recovery (recommended to make a nandroid)
  3. Flash the kernel zip
  4. Recommended to wipe /cache
  5. Reboot and enjoy!
And remember to remove phservice if you want to change some CPU/GPU settings yourself

Notes:
See 2nd post

GPL:
Kernel sources
Kernel Modules (only for v001 - v003)
Used defconfig
Used build script

Thanks:
@ketut.kumajaya for the initial kernel base
@gr8nole for general help, info and testing

XDA:DevDB Information
Werewolf kernel SM-T210/T211, Kernel for the Samsung Galaxy Tab 3

Contributors
laufersteppenwolf
Kernel Special Features: Tuned for best possible performance

Version Information
Status: Stable

Created 2014-07-21
Last Updated 2015-05-25
The Following 69 Users Say Thank You to laufersteppenwolf For This Useful Post: [ View ] Gift laufersteppenwolf Ad-Free
18th July 2014, 10:29 PM |#2  
laufersteppenwolf's Avatar
OP Inactive Recognized Developer / Retired Forum Moderator
Flag Baden-Württemberg
Thanks Meter: 7,058
 
Donate to Me
More
Tweaks and other stuff
Since v002, we have an updated lowmemorykiller. It behaves a bit snappier than the old one, also with the default minfree values. However, in case you like to tweak your device a bit to make it even more snappy (like me :D ), I tweaked the minfree values a bit to slightly increase the free RAM without really affecting the multitasking experience. The script can be found in the attachment. All you need to do is to extract the script and place it in your /system/etc/init.d/ folder and that's it. The values will be automatically set on boot.


UV interface
The min possible voltage is 1000mV for now, and the max one is 1400mV. If you want me to lower the min voltage, please let me know.
Also, please note, that the voltage has to be changed in 12.5mV steps. If you apply for example 1110mV, it will be rounded down to 1100mV.

Fast Charge interface
The main interface is inside /sys/kernel/fast_charge/*
/sys/kernel/fast_charge/force_fast_charge (rw)
0 - disabled (default)
1 - use custom mA configured through the sysfs interface (see below)

/sys/kernel/fast_charge/ac_charge_level (rw)
rate at which to charge when on AC (1.8A to 2.3A)

/sys/kernel/fast_charge/usb_charge_level (rw)
rate at which to charge when on USB (0.5A to 1.0A)

/sys/kernel/fast_charge/failsafe (rw)
0 - disabled - allow anything up to 2.3A to be used as AC / USB custom current (USE WITH CAUTION!)
1 - enabled - behaviour as described above (default)

/sys/kernel/fast_charge/version (ro)
display fast charge version information

New kmsg layout
From v008 onwards the kmsg looks a tiny bit different. Instead of displaying the time since boot, it logs the actual time and date.
Now, you may ask yourself: "does that any good?" Sure it does. When you encounter an issue and grab a log, you can send it my way saying "the issue happened at 15:35". It is way harder to find out the exact time (in seconds) since the device booted, right? ;)
Attached Files
File Type: rar 20lowmemkiller.rar - [Click for QR Code] (206 Bytes, 3409 views)
The Following 9 Users Say Thank You to laufersteppenwolf For This Useful Post: [ View ] Gift laufersteppenwolf Ad-Free
18th July 2014, 10:31 PM |#3  
laufersteppenwolf's Avatar
OP Inactive Recognized Developer / Retired Forum Moderator
Flag Baden-Württemberg
Thanks Meter: 7,058
 
Donate to Me
More
When changing the CPU gov, you might want to keep THIS (4.1) or THIS (4.4) in mind

Changelog:
v008 [15/02/15]
- Disabled zcache
- Added KSM (including deferred timer to save battery)
- Tweaked zRAM
- New kmsg log layout (see 2nd post for more details)
- Fixed kernel version in settings
- Disabled S2W and DT2W by default

When you flash this version, please wipe cache, otherwise bad things could happen

v007 [08/12/04] RIP Beth
- Slightly more RAM from logger
- S2W and DT2W (Still WIP)
- Decreased min possible CPU voltage to 800mV
- Undervolted by default (-25mV)
- Fast Charge support

v006 [01/11/14] MOAH CPU
- Added CPU UV interface
- OC'ed further to 1420MHz
- Max GPU freq limited to 624MHz until all issues are resolved
- Fixed init.d support on T211

v005a Minor fix
- Fixed DeviceControl GPU support
- Output all GPU freqs in Hz instead of KHz

v005 [18/10/2014] SM-T211 support
- Added support for the T211 variant (thanks to @sscsps for testing)
- Merged latest Sammy updates
- Enabled I/O accounting (only needed for devs)
- zcache enabled by default
- GPU OC up to 624MHz (default is 416MHz)

v004 [25/09/2014] Android 4.4 support
- Re-based on latest KitKat sources
- Re-added almost all features from v003
- Removed 156MHz freq step (causing trouble for still unknown reasons)
- Overclocked to 1.344 GHz (instead of 1.205GHz)
- Disabled vsync for better 2D performance
- Disabled "reboot recovery" to avoid being stuck in recovery on old recoveries (special version)

v003 [31/08/2014]
- new govs: Hotplug, Hyper
- new freq step @ 156MHz

v002 [25/07/2014]
- reduced RAM usage from logger
- new/updated lowmemkiller (see attachment in 2nd post for init.d script with tweaked minfree values)

v001 [18/07/2014]
- initial release
The Following 7 Users Say Thank You to laufersteppenwolf For This Useful Post: [ View ] Gift laufersteppenwolf Ad-Free
18th July 2014, 10:40 PM |#4  
Account currently disabled
Flag sakarya
Thanks Meter: 52
 
More
good work you link where ? and nice job workıng 4.1.2 ???? 4.2.2 .4.4.2 kernel android version what? @safariking gr8nole[/MENTION
not working dont flash ı using ultimate rom safarinking by 4.1.2 soft brick device
19th July 2014, 12:55 AM |#5  
Senior Member
Thanks Meter: 270
 
More
Not working yet hope you get it working good luck

Sent from my SPH-L720 using XDA Premium 4 mobile app
19th July 2014, 01:30 AM |#6  
laufersteppenwolf's Avatar
OP Inactive Recognized Developer / Retired Forum Moderator
Flag Baden-Württemberg
Thanks Meter: 7,058
 
Donate to Me
More
sorry guys, I just found the issue... my last commit breaks the GPU module so it doesn't compile, doesn't get copied over into the zip and so does not get replaced on your system, but the new kernel cannot load the stock module as I used another defconfig name...

Will be fixed ASAP

EDIT: Fixed and uploaded
The Following 5 Users Say Thank You to laufersteppenwolf For This Useful Post: [ View ] Gift laufersteppenwolf Ad-Free
19th July 2014, 04:21 AM |#7  
trazfer's Avatar
Senior Member
Flag Philippines
Thanks Meter: 99
 
More
Quote:
Originally Posted by laufersteppenwolf

sorry guys, I just found the issue... my last commit breaks the GPU module so it doesn't compile, doesn't get copied over into the zip and so does not get replaced on your system, but the new kernel cannot load the stock module as I used another defconfig name...

Will be fixed ASAP

EDIT: Fixed and uploaded

Nice work. This kernel works. Will monitor battery life and game performance.

Sent from my SM-T210R using XDA Free mobile app
Attached Thumbnails
Click image for larger version

Name:	1405736383225.jpg
Views:	7266
Size:	63.3 KB
ID:	2858992  
The Following User Says Thank You to trazfer For This Useful Post: [ View ] Gift trazfer Ad-Free
19th July 2014, 06:31 AM |#8  
Anil Shovo's Avatar
Senior Member
Thanks Meter: 52
 
More
Quote:
Originally Posted by laufersteppenwolf

When changing the CPU gov, you might want to keep THIS in mind

is there anyway to flash it on tab 3 t211 kk 4.4.2 firmware
19th July 2014, 07:54 AM |#9  
Account currently disabled
Flag sakarya
Thanks Meter: 52
 
More
big job thank can you add overclock gpu ? downclock?
19th July 2014, 04:33 PM |#10  
Senior Member
Flag Somewhere over the rainbow!!
Thanks Meter: 180
 
More
Quote:
Originally Posted by gr9nole

big job thank can you add overclock gpu ? downclock?

You can check if there is OC available by installing "No-Frills CPU Control" from the google play store
moonbutt74
20th July 2014, 01:32 AM |#11  
Guest
Thanks Meter: 0
 
More
Question a question about toolchain
@laufersteppenwolf

hi, i would like to know which toolchain you used to build this kernel, a direct link to it would be helpful.
also, using the supplied defconfig can i make [defconfig] and then make -j# or are there additional things to do?
i build kernel for tab3 10 fine but setting up my system for sm-t210 is proving stubborn. there is another project going on
that i would like to learn from and help with, your help would be appreciated.

thank you for reading.

m
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes