Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,804,524 Members 42,946 Now Online
XDA Developers Android and Mobile Development Forum

[KERNEL][STOCK|CROMI] that10 stock++ kernel

Tip us?
 
_that
Old
(Last edited by _that; 17th February 2014 at 08:41 PM.)
#1  
Recognized Contributor - OP
Thanks Meter 2,401
Posts: 3,423
Join Date: Oct 2012
Default [KERNEL][STOCK|CROMI] that10 stock++ kernel

Introduction

This kernel is designed to be more stable than the stock kernel, with more features and more performance. Choose any three.
I do not include any changes that have no clear positive effect on these goals.


Features

zImage (kernel binary) features:
- Asus 10.6.1.14.10 base
- Support for Samsung's F2FS filesystem (experimental)
- ISO 9660 + UDF support (CD/DVD filesystems)
- CIFS (for mounting Windows shares)
- ROW I/O scheduler v4 included as default (https://patchwork.kernel.org/patch/1862241/), "deadline" is also available
- fsync control (echo 0 > /sys/class/misc/fsynccontrol/fsync_enabled)
- Overclocking up to 1800 MHz, based on clemsyn's patch, configurable clock frequencies for balanced and performance mode
- User voltage control for undervolting
- Crash fixes when reading various files in /sys
- mount space hack from http://forum.xda-developers.com/show...php?p=36889027 allows mounting across Android processes again (e.g. using CIFS Manager)
- NFS v3/v4 client (supports files > 2 GB)
- NFS v3/v4 server as module (untested, needs userspace tools which I haven't yet compiled)
- Framebuffer console at boot (Android penguins!)
- Keyboard dock: support for F1-F12 function keys, special key mappings for CyanogenMod and GNU/Linux (Esc, Insert, Delete, Alt, Windows)
- Support for various USB Ethernet adapters
- Kexec-able and able to kexec other kernels
- SELinux is not included for compatibility with the stock ROM's proprietary NTFS and exFAT drivers

Ramdisk features:
- adbd with root access enabled in default.prop, ro.secure=0
- optimized mount options (noauto_da_alloc)
- init.d script support
- USB IDs for all Tegra 3 based Transformer models (init.xx.rc)
- does not set lcd_density (dpi unlocked), must/can be set in /system/build.prop instead
- preinit system for easy ramdisk customization without repacking or reflashing the kernel: if exists, runs a custom script "/system/boot/preinit" before Android init, e.g. for adding Data2SD detection, ROM2SD, etc.
- File-system auto-detection for use in preinit scripts


Installation/Download

Flash the zip in recovery and reboot, the bootloader will move the kernel to its final place while showing a blue progress bar.

Compatibility
This kernel is compatible with the 10.6.1.14.x bootloaders and stock-based (Asus Android 4.2.1) ROMs that set lcd_density (dpi) in build.prop - in other words, this is the preferred kernel for CleanROM Inheritance. It also works with other ROMs up to Android 4.4 (requires a preinit script to provide the corresponding ramdisk files) but may not support their special features. The kernel is derived from the original TF700T sources but is known to work also on the TF300.

MD5 sum:
You don't need an MD5 sum. Enable "Zip file signature verification" in TWRP instead - it checks the SHA1 checksum embedded in the archive, which is both more secure and more convenient.

Download the latest version here -> http://forum.xda-developers.com/show...&postcount=446

Credits

- Linux kernel devs and Asus for the base
- Gentoo devs for their easy "crossdev" toolchain-generation tool
- scrosler for the original CleanROM
- sbdags for CleanROM Inheritance
- Ezekeel for the fsynccontrol patch (http://rootzwiki.com/topic/14685-ker...00#entry607555)
- faux123 for the user voltage control patch
- clemsyn for the overclocking patch. I still use his frequency and voltage tables but rewrote the EDP handling.
- Hundsbuah for decoding the EDP limit tables and finding an f2fs patch that applies cleanly to our kernel
- cogano for improving the dock key mapping for native Linux

Development Info

Guide for unpacking and repacking kernel blobs and boot images -> http://forum.xda-developers.com/show...80&postcount=4


XDA:DevDB Information
_that-kernel, Kernel for the Asus Transformer TF700

Contributors
_that
Kernel Special Features: Stock kernel with more stability, more features and more performance. Choose any three.

Version Information
Status: Stable
Current Stable Version: that10
Stable Release Date: 2014-05-14
Current Beta Version: that10
Beta Release Date: 2014-05-14

Created 2014-02-17
Last Updated 2014-06-12
The Following 54 Users Say Thank You to _that For This Useful Post: [ Click to Expand ]
 
_that
Old
(Last edited by _that; 14th May 2014 at 09:38 PM.)
#2  
Recognized Contributor - OP
Thanks Meter 2,401
Posts: 3,423
Join Date: Oct 2012
Changelog/History

2014-05-14: 3.1.10-that10
New features:
- Removed the special overclocking mode (system_mode 3) - instead, clock speeds for balanced and performance modes are now user-configurable.
- More options for dock key mapping for GNU/Linux and autorepeat
- File system auto-detection in init for use in preinit script
download -> http://forum.xda-developers.com/show...&postcount=446


2014-03-29: 3.1.10-10.6.1.14.10-that9-oc
New features:
- Dock function keys and CyanogenMod-compatible mode for dock keys
- Support for various USB Ethernet adapters
download -> http://forum.xda-developers.com/show...&postcount=414


2014-02-17: 3.1.10-10.6.1.14.10-that8-oc
New features:
- F2FS (Flash Friendly) filesystem by Samsung (experimental, may eat your data)
- USB mass storage support (needs a computer that understands ext4 (i.e. Linux))
- Enabled dual filenames on FAT filesystems for compatibility with some devices
download -> http://forum.xda-developers.com/show...&postcount=396


2013-11-22: 3.1.10-10.6.1.14.10-that7-oc
Security config options disabled to restore compatibility with proprietary exFAT/NTFS modules. Details and download -> http://forum.xda-developers.com/show...&postcount=358

The Data2SD auto-detection add-on is here: http://forum.xda-developers.com/show...7&postcount=56
Or if you prefer Data2SD with internal /sdcard: http://forum.xda-developers.com/show...&postcount=159
(these add-ons are unchanged since they were released, so if you already have them installed, you don't need to reinstall when updating the kernel)


2013-11-11: 3.1.10-10.6.1.14.10-that6-oc
Now with 100% more penguins! Get it here -> http://forum.xda-developers.com/show...&postcount=325


2013-09-06: 3.1.10-10.6.1.14.8-that5-oc
Overclocking is back! Get the new version here -> http://forum.xda-developers.com/show...&postcount=263


2013-07-03: 3.1.10-10.6.1.14.8-that4
The latest version is here -> http://forum.xda-developers.com/show...&postcount=237

New kernel features since -that2
- rebased on Asus source release 10.6.1.14.8
- mount space hack from http://forum.xda-developers.com/show...php?p=36889027 allows mounting across Android processes again (e.g. using CIFS Manager)
- some more sysfs crash fixes
- "deadline" I/O scheduler added (default is still ROW)
- NFS v3/v4 client (supports files > 2 GB)
- NFS v3/v4 server as module (untested, needs userspace tools which I haven't yet compiled)

New ramdisk features since -that2
- fstab: optimized mount options (added noauto_da_alloc)
- added init.xx.rc files for other Transformer models


2013-06-25: 3.1.10-10.6.1.14.8-that3

preview release, see http://forum.xda-developers.com/show...&postcount=201


2013-04-11: 3.1.10-10.6.1.14.4-that2
The Asus source release was surprisingly fast this time. I ported all my popular non-intrusive stock kernel improvements (http://forum.xda-developers.com/show....php?t=2125783) and recompiled the kernel. Special thanks to buhohitr for testing this release!

I couldn't get the framebuffer console to work, so no UltraCleanROM support for now.

(-that2 downloads deleted)
The Following 8 Users Say Thank You to _that For This Useful Post: [ Click to Expand ]
 
_that
Old
(Last edited by _that; 14th May 2014 at 09:32 PM.)
#3  
Recognized Contributor - OP
Thanks Meter 2,401
Posts: 3,423
Join Date: Oct 2012
Documentation

This kernel supports a few additional parameters. As usual these can be set from a root shell or an init script - for details how to do that, read a tutorial about using the Unix/Linux command line.

fsync
To turn off fsync (warning: read this and this before):
Code:
echo 0 > /sys/class/misc/fsynccontrol/fsync_enabled
To turn it on, write 1 instead of 0.

Clock speeds and overclocking
Note that the special overclocked system_mode 3 has been removed in -that10. There are now only 3 modes, as in the stock kernel (powersave, balanced, performance). To enable overclocking beyond 1700 MHz (or 1600 MHz for more than one core), you need to override the EDP limit:
Code:
echo 1 > /sys/module/cpu_tegra/parameters/override_edp
To set clock speeds for balanced and performance mode, for example:
Code:
echo 1300 > /sys/module/cpu_tegra/parameters/override_mhz_bal
echo 1800 > /sys/module/cpu_tegra/parameters/override_mhz_perf
User voltage control
works exactly like in upstream implementation - ask me to update this if you want to know more.

Keyboard dock tweaks
CyanogenMod has a slightly different mapping for some of the dock function keys. To enable compatibility with CM and CM-based ROMs:
Code:
echo 1 > /sys/module/asusdec/parameters/cm_mode
Function keys F1 to F12 can be entered using right Alt/AltGr and the keys from "Toggle WiFi" to "Next Track". This might only work in native Linux and maybe CM.

For native Linux users, I added additional parameters:
Code:
echo $flags > /sys/module/asusdec/parameters/key_flags
echo 1 > /sys/module/asusdec/parameters/key_autorepeat
where $flags is a number between 0 and 15, by combining these bit flags:
1 = inverts the meaning of Alt for function keys (F1-F12 without Alt, and special functions with Alt. Also, Mute is Insert and Lock is Delete.)
2 = Back is Esc
4 = Search is left Alt
8 = Home is left Windows (aka "Meta" aka "Super_L")
The Following 10 Users Say Thank You to _that For This Useful Post: [ Click to Expand ]
 
maxrdlf95
Old
#4  
maxrdlf95's Avatar
Senior Member
Thanks Meter 375
Posts: 850
Join Date: Sep 2012
Location: Caracas

 
DONATE TO ME
Thanks so much for the RIL patch that seems like fixed my compiling problems lets see

IM just a noob here trying to compile and learn hehe

EDIT: Yes it compiled

Now I ask myself why Asus released a bad source code lol?
Devices:

HTC One M8 - Android 4.4.2 Sense 6.0!
Asus Transformer Infinity (TF700) - Asus Stock - With my own kernel
The Following User Says Thank You to maxrdlf95 For This Useful Post: [ Click to Expand ]
 
_that
Old
#5  
Recognized Contributor - OP
Thanks Meter 2,401
Posts: 3,423
Join Date: Oct 2012
Quote:
Originally Posted by maxrdlf95 View Post
Thanks so much for the RIL patch that seems like fixed my compiling problems lets see
The RIL include fix is old news - it was already required in the 10.4.4.x kernel, and it's published in my 10.4.4.25 kernel release thread.

Quote:
Originally Posted by maxrdlf95 View Post
IM just a noob here trying to compile and learn hehe
Learning by doing is still the best way. If you manage to get your own kernel installed and running (if not, read my blob repacking guide), then you have definitely left the "n00b" status.

Quote:
Originally Posted by maxrdlf95 View Post
Now I ask myself why Asus released a bad source code lol?
Maybe they are using an older compiler that behaves differently.
The Following 3 Users Say Thank You to _that For This Useful Post: [ Click to Expand ]
 
maxrdlf95
Old
#6  
maxrdlf95's Avatar
Senior Member
Thanks Meter 375
Posts: 850
Join Date: Sep 2012
Location: Caracas

 
DONATE TO ME
Thanks man I already knew how to make the blob file and put the signing in, I used to help clemsyn packing its kernel when he didnt have time and well I did it tonight I compile my kernel thanks now will learn how to make it with linaro

EDIT:

P.D I left the n00b status some time ago lol
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2013-04-11-02-14-16.jpg
Views:	1921
Size:	23.3 KB
ID:	1874762  
Devices:

HTC One M8 - Android 4.4.2 Sense 6.0!
Asus Transformer Infinity (TF700) - Asus Stock - With my own kernel
 
lartomar2002
Old
#7  
lartomar2002's Avatar
Senior Member
Thanks Meter 99
Posts: 1,195
Join Date: Mar 2011
Location: Near Kennedy Space Center, Florida
To install this kernel, do I need to flash both the flash zip and the patch for sbdags' Asus stock rom . I have a US bootloader and a WW rom
Asus Transformer Infinity TF700T-CROMBi-kk 4.4.2
Nexus 7 2nd gen 32gb
Ouya (rooted)
http://www.xbmchub.com/forums/forum.php
Nothing left in my right brain, nothing right in my left brain
 
_that
Old
#8  
Recognized Contributor - OP
Thanks Meter 2,401
Posts: 3,423
Join Date: Oct 2012
Quote:
Originally Posted by lartomar2002 View Post
To install this kernel, do I need to flash both the flash zip and the patch for sbdags' Asus stock rom . I have a US bootloader and a WW rom
Which patch for sbdags' stock ROM?
The Following User Says Thank You to _that For This Useful Post: [ Click to Expand ]
 
lartomar2002
Old
#9  
lartomar2002's Avatar
Senior Member
Thanks Meter 99
Posts: 1,195
Join Date: Mar 2011
Location: Near Kennedy Space Center, Florida
Quote:
Originally Posted by _that View Post
Which patch for sbdags' stock ROM?
In the OP the line just brlow where the krrnel flash zip is.
Asus Transformer Infinity TF700T-CROMBi-kk 4.4.2
Nexus 7 2nd gen 32gb
Ouya (rooted)
http://www.xbmchub.com/forums/forum.php
Nothing left in my right brain, nothing right in my left brain
 
Pretoriano80
Old
#10  
Pretoriano80's Avatar
Recognized Contributor
Thanks Meter 1,577
Posts: 1,302
Join Date: Jun 2010

 
DONATE TO ME
Quote:
Originally Posted by lartomar2002 View Post
In the OP the line just brlow where the krrnel flash zip is.
That patch has nothing to do with sdbags roms,that patch contains all the changes made to the original kernel and it's for development only (you can apply that patch to the original or own 4.2.1 kernel source).

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes