• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

Recompiled &amp; Optimized Werewolf Kernel [SM-T211]

mat1371

Senior Member
Sep 28, 2008
183
23
0
Hi!
I was looking through @laufersteppenwolf's kernel source and noticed it was compiled with -Os flag and an old toolchain. I decided to recompile it with graphite and -Ofast flags (the highest optimization level) and with a newer toolchain. Though the later failed (All builds with 4.9+ toolchains failed to boot on this device :() it still feels faster than the original build. I have also disabled some debugging options so that the kernel would fit in the boot partition in addition to some performance gain.


Features
  • Compiled with graphite and -Ofast flags (linaro 4.7.4)
  • Undervolted Wi-Fi, Vibration, LCD and Touch by 10% (Not sure if they're effective or not)
  • Disabled some debugging options
  • Added a lower charging current level (1700mA) to fast charge options (To reduce heating during charge but must be selected by user, Default is 1800)

Download
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 :p :D ). 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


XDA:DevDB Information
Recompiled Werewolf SM-T211, ROM for the Samsung Galaxy Tab 3 7.0

Contributors
mat1371
ROM OS Version: 4.4.x KitKat
ROM Kernel: Linux 3.4.x

Version Information
Status: Testing

Created 2018-08-23
Last Updated 2018-08-23
 

Attachments

Last edited:

mat1371

Senior Member
Sep 28, 2008
183
23
0
Reserved

Tweaking Guide
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? ;)
 
Last edited:

sscsps

Senior Member
Nov 17, 2013
620
187
43
delhi
Hi!
I was looking through @laufersteppenwolf's kernel source and noticed it was compiled with -Os flag and an old toolchain. I decided to recompile it with graphite and -Ofast flags (the highest optimization level) and with a newer toolchain. Though the later failed (All builds with 4.9+ toolchains failed to boot on this device :() it still feels faster than the original build. I have also disabled some debugging options so that the kernel would fit in the boot partition in addition to some performance gain.


Features
Compiled with graphite and -Ofast flags (linaro 4.7.4)
Undervolted Wi-Fi, Vibration, LCD and Touch by 10% (Not sure if they're effective or not)
Disabled some debugging options
Added a lower charging current level (1700mA) to fast charge options (To reduce heating during charge but must be selected by user, Default is 1800)


Download




XDA:DevDB Information
Recompiled Werewolf SM-T211, ROM for the Samsung Galaxy Tab 3 7.0

Contributors
mat1371
ROM OS Version: 4.4.x KitKat
ROM Kernel: Linux 3.4.x

Version Information
Status: Testing

Created 2018-08-23
Last Updated 2018-08-23
Great! Did you upload your source?
I had been working on it to compile with GCC 8, but haven't got enough time to complete the cherry picks
 

mat1371

Senior Member
Sep 28, 2008
183
23
0
Great! Did you upload your source?
I had been working on it to compile with GCC 8, but haven't got enough time to complete the cherry picks
It's on github but I didn't link to it cause it's messy. BTW There is no source code change aside from makefile and defconfig.
 

mat1371

Senior Member
Sep 28, 2008
183
23
0
BTW, that link is blocked in India, can you upload it somewhere else? and also, cna you provide link to your source?
Sorry for late reply, I'm busy with my thesis these days. I've attached the file to the post. Will send you a link to the source (GitHub) in your PV.
 

Samw13

New member
Dec 24, 2018
1
0
0
Tried installing on a T210 with TRWP but get an error message. Anyone any ideas?

Tried to attach the error but it won't let me... Error talks about asset failed getprop ro.product.device == lt023g etc