[Galaxy S Plus I9001 Android Development] CastagnaIT:
[KERNEL][&#10004;ICS&#10004;JB] CastagnaIT v12.5 (OC/UV, Governors, I/O, More feature) [28/10/2013]

​

This kernels versions is based on Arco / DevConnectionTeam kernel for JellyBean

With this kernel yours device it will come back to life! have fun!

You can help me with testing this kernel and signaling the problems to me.

If you have some request, you ask, if are able i implement it ;)

VERSIONS

• JB-CM10.1 Kernel version 3.4.67

• JB-CM10 Kernel version 3.0.94

• ICS Kernel version 3.0.94

OPTIMIZATIONS

✔ Compiled with Linaro 4.7.4 2013.09

✔ Linaro O3 optimizations

✔ Snapdragon optimizations

CIT FEATURES (the features in gray are completely realized by myself)

✔ Overclock until 1804 Mhz (default 1401 Mhz) [VIEW TABLE OF FREQUENCIES]

✔ Extreme undervolted kernel version available

✔ Standard kernel have 355MB of free memory

✔ Bigmem kernel have 377MB of free memory (720P video recorder does not work, but you can record with 480P)

✔ Governors: Lulzactive(v.2) (default), Ondemand, OndemandX, Interactive, InteractiveX, Powersave, Performance, SmartAssV2, MinMax, Lagfree, Savagedzen, Smoothass, Lionheart, BrazilianWax, Scary, Lazy, Intellidemand, Fantasy, Hyper

✔ I/O scheduler: SIO (Default) , ROW, V(r), BFQ, CFQ, Deadline, Noop, FIOPS (JB-CM10.1 ONLY), ZEN (ICS/JB-CM10 ONLY)

✔ Con Kolivas performance improvements - BFS

✔ Init.d support

✔ Custom AriesPart for customize kernel settings

✔ FAT and NTFS filesystem support

✔ CIFS support

✔ TUN support

✔ BLNv9 - Led backlight notification (see**1)

✔ Increased boot speed

✔ Increased audio loudness

⋅⋅⋅⋅⋅⋅ more power for your speaker

✔ Do Not Kill process (see**2)

⋅⋅⋅⋅⋅⋅ this feature protect apps/launcher/system process from being killed by the internal Low Memory Killer

✔ Improved Low Memory Killer

✔ USB Forced Fast Charge support (see**2) (info)

✔ HQ Photo - without compression (see**2) (default enabled)

⋅⋅⋅⋅⋅⋅ save camera pictures without compression

✔ FULL Touch Screen customization (see**2)

⋅⋅⋅⋅⋅⋅ you can customize your touchscreen as you like, sensitivity, movement, response time, number of touches and more...

✔ Battery Life eXtender (BLX) (see**2)

⋅⋅⋅⋅⋅⋅ extend the life of your battery by limiting the maximum charge

✔ Brightness of display tweaked

⋅⋅⋅⋅⋅⋅ now you can lower the brightness of two points more than the stock, there are no changes to be done is automatically managed

✔ Speed up SD card read-write (see**2)

✔ Default readahead based on the size of the connected disk

✔ VDD level sysfs interface

✔ Timer Slack Controller

✔ Dynamic manegement of Timer Slack Controller

✔ Dynamic sync control (see**2)

✔ Writeback optimized for slight best smooth performace

✔ Frandom fast random generator (with hacked random and urandom linked to frandom)

✔ Stochastic Fair Blue (SFB) network scheduler

✔ Cleancache & QCache

✔ Lowered display voltage

✔ Lowered wi-fi voltage

✔ Lowered touchscreen voltage

✔ Zram swap ready (default disabled)

✔ Google snappy compression for zram

✔ SLUB memory allocator

✔ UI speed up tweaks

✔ Memory/vm tweaks

✔ ...and much more!! For detailed information read the changelog below

CIT FEATURE ONLY FOR ICS/JB-CM10 KERNEL

✔ Ported from google Proportional Rate Reduction for TCP

✔ Ported from kernel 3.1 Dynamic writeback and I/O-less dirty throttling

✔ Updated Zram

**1 To easily activate this function uses BLN Control or similar app / widget

**2 To personalize this feature install CIT AriesPart see below.

CIT AriesPart for customize the CIT kernel features!

➤You can download all versions of this kernel from the link to the folder donwload.

❓You do not know which kernel to use? Use this: I9001_3.X_JB_OC_CITKernel

Kernel for JB 4.2.2 (support all roms based on ADC Team CM10.1 release)

⏩CIT KERNEL FOR JELLYBEAN CM10.1

CIT Custom AriesPart (support all roms with CIT kernel except for ICS)

⏩CIT - AriesPart v2.0 (CWM flashable zip)

Summary filenames abbreviations:

BIGMEM - Version with much more memory free

OC - CPU Overclockable with slight undervolt voltages

ExUV - CPU Overclockable with extreme undervolt voltages for maximize battery longevity

1) Copy the zip of the kernel to the sdcard

2) Reboot to recovery mode and install the file

3) Wipe cache

4) Wipe dalvik cache

5) Fix permissions

6) Reboot

FAQ: (some solutions for problems.. how to... etc)

Q: How to check if Zram swap running?

A: To check if it is active, open the Terminal and type FREE in the line Swap column Total should be the number 98300.

What is zram swap?

ZRAM (formerly ramzswap) is a block device which is created in your computer’s memory, or RAM. It looks and acts to the system like a disk drive.

However, this disk drive has only one function, to act as a swap disk. One difference between ZRAM and a normal swap partition is that the pages swapped to ZRAM are compressed before being stored.

This technique has two advantages. (1) More page data can be stored because the data is compressed. (2) Because the swapped memory is stored in RAM, rather than a normal disk drive, read and write access times are much quicker.

Please note the use of zram, requires a calculation twice for the CPU (compress / decompress), and may slow down some operations.

Q: How to maximize the SDcard read/write cache?

A: Follow this istructions:

1) Flash of the kernel

2) Do wipe cache and Dalvik

3) Normal reboot

4) Restart in Recovery

5) Do a second time Wipe cache and Dalvik

6) Fix permissions

Q: DeepSleep seem not to work?

A: 1) Check usb cable/charger cable, it is not connected, otherwise remove it

2) Check if you have wifi active, disable it

3) Check if you have similar app like facebook or active services that they activate the data continuously

4) Try to disable data connection

5) If you use a custom rom they could be to me other problems that i do not know

Q: Why i don't succeed to change governor through the menu? the setting does not change.

A: If you use IncrediControl or similar app, you must only use that to change governor.

Q: Why compass does not work?

A: Need to do a Horizontal calibration, Settings > Advanced > Horizontal calibration.

Q: What is the difference between normal OC/UV kernel and the Extreme Undervolt kernel version?

A: The Extreme Undervolt kernel version have a maximized undervolted voltages, so it consumes less battery.

But it can also be that the values are to low and your phone will shut down.

A my advice is to try it if you do not have problems like shoutdown, it means your telephone supports it.

Table of the linearity of the voltages/frequencies

Q: In which order the scripts are executed in INIT.D?

A: The scripts are excuted in this order: <0-9><0-9>scriptname, <E>scriptname, <S>scriptname

Q: What are the sysfs commands to manually change the configuration?

A:

HQ Photo no compression:

Status: "cat /sys/kernel/jpeg_compression/zero_jpeg_compression"

For enable: "echo 1 > /sys/kernel/jpeg_compression/zero_jpeg_compression"

For disable: "echo 0 > /sys/kernel/jpeg_compression/zero_jpeg_compression"

Adjust vibration intensity:

Vibration value: "cat /sys/class/vibetonz/pwmvalue_intensity"

For change vibration value: "echo 121 > /sys/class/vibetonz/pwmvalue_intensity"

The only accepted values are: From 0 to 127 (default 121)

Do Not Kill Process:

Status enabled/disabled: "cat /sys/module/lowmemorykiller/parameters/donotkill_proc"

Process list names: "cat /sys/module/lowmemorykiller/parameters/donotkill_proc_names"

For change processes names: "echo 'com.cyanogenmod.trebuchet,org.adwfreak.launcher' > /sys/module/lowmemorykiller/parameters/donotkill_proc_names"

For enable: "echo 1 > /sys/module/lowmemorykiller/parameters/donotkill_proc"

For disable: "echo 0 > /sys/module/lowmemorykiller/parameters/donotkill_proc"

Do Not Kill System Process:

Status enabled/disabled: "cat /sys/module/lowmemorykiller/parameters/donotkill_sysproc"

Process list names: "cat /sys/module/lowmemorykiller/parameters/donotkill_sysproc_names"

For change processes names: "echo 'android.process.acore,android.process.voicedialer' > /sys/module/lowmemorykiller/parameters/donotkill_sysproc_names"

For enable: "echo 1 > /sys/module/lowmemorykiller/parameters/donotkill_sysproc"

For disable: "echo 0 > /sys/module/lowmemorykiller/parameters/donotkill_sysproc"

Fast Charge:

Status: "cat /sys/kernel/fast_charge/force_fast_charge"

For enable: "echo 1 > /sys/kernel/fast_charge/force_fast_charge"

For disable: "echo 0 > /sys/kernel/fast_charge/force_fast_charge"

v12.5
Compiled with Linaro 4.7.4 2013.09
Some improvement on LowMemoryKiller and other stuff
Solved the problems of slowdowns in certain situations and memory full with some apps
Updated bootsplash to a bit more ADC Team (credits to Nello and Krislibaeer)
Sync. kernel source with the latest changes made by ADCTeam

### No future updates for CM9 / CM10 CIT Kernels ###

v12.4
Compiled with Linaro 4.7.4 2013.07 optimized from Christopher
Sync. all kernels source with the latest changes made by ADCTeam

v12.3
Compiled with Linaro 4.7.4 2013.07 optimized from Christopher
[JB-CM10.1]
Fixed Timer Slack Controller dynamic manegment (thanks to christopher)
Fixed audio loudness increase
Enabled 10 point for multi-touch
Fine tuning pmem memory allocations (now standard kernel have 355MB and BigMem 377MB)
SCHEDULER: Autogroup patch group by current user android UID instead of task ID
Some updates for dynamic sync
Updated LZO compression
Sync. kernel source with the latest changes made by Arco / TeamConnection RC5
[ICS]
Kernel completely reworked from the lastest source of ICS kernel 3.0
Readded all functions and features of CIT kernel from oldest & newest releases
Sync. kernel source with the latest changes made by Arco EOL Final release
[JB-CM10]
Kernel completely reworked from the lastest source of JB kernel 3.0
Readded all functions and features of CIT kernel from oldest & newest releases
Sync. kernel source with the latest changes made by Ivendor CM10 Final release 2.5

v12.2
[JB]
Added Timer Slack Controller (Thanks to Christopher83!)
Added dynamic manegement of Timer Slack Controller (Thanks to Christopher83!)
Added scheduler fiops
Added LZ4 support
Hack touchscreen driver for your personal custom configuration (use CIT AriesPart) (made by me)
Enable unaligned memory access for v6 and above (for kernel/ramdisk)
Sync. kernel source with the latest changes made by Arco / TeamConnection RC4
[CIT AriesPart v2.0]
--For now only English language--
Enhanced all functions!
Added CIT Touchscreen options (custom configuration of touchscreen!!)
Added readahead option for internal/external sd card
Added option for Clear init.d directory
Added option for Clear pagecache from memory

v12.1 [JB]
Updated [CastagnaIT - AriesPart v1.5 - CM10.1]
Sync. kernel source with the latest changes made by Arco / TeamConnection RC2

v12.0 [JB]
This kernel contains all of custom optimizations from my 3.0 CIT kernel,
so i write only the differences.

Added CK3 Con Kolivas performance improvements
CM BLN not available (next releases)
Updated dynamic fsync to v1.2 (by faux)
Patch for avoids loadavg Moire
Some performance optimization for deadline scheduler
Soft tuned lulzactive governor
Changed linaro optimizations flags
Sync. kernel source with the latest changes made by Arco / TeamConnection RC1

View full changelog history

Note:

First test: CM10.1 Dev Connection Team RC4 with CastagnaIT kernel v12.2 BIGMEM ExUV

Configuration used: Frequencies Min. 245 and Max 1401, Governor SmartAssV2, I/O Scheduler FIOPS (The SD test is excuted without external SD Card inserted)

Second test: CM10.1 Dev Connection Team RC4 with CastagnaIT kernel v12.2 BIGMEM ExUV

Configuration used: Frequencies Min. 245 and Max 1804, Governor SmartAssV2, I/O Scheduler FIOPS (The SD test is excuted without external SD Card inserted)

Credits

CyanogenMod Team

Ariesve Device Connection Team

--- ---

Arco68, Ivendor for his kernel updates

Smeroni68 for his big help to testing and support to adjust frequencies/voltages

Xellar, Christopher83 and KTulu84 for his help to testing

--- ---

To all the developers mentioned in the changelog that have contributed with patches and updates

And to all SGW and SGS+ users that helped with testing and donations

All the firmwares, custom ROMs, official firmware updates, mods and tools mentioned here belong to their respective developers/owners.

You will be doing everything at your own risk.

We nor the developers cannot be held responsible if you end up damaging or bricking your device.

​

XDA:DevDB Information

CastagnaIT kernel, a Kernel for the Samsung Galaxy S I9000

Contributors

CastagnaIT, smeroni68, XeLLaR*

Kernel Special Features:

Version Information

Status: Stable

Current Stable Version: 12.5

Stable Release Date: 2013-10-28

Created 2013-09-23

Last Updated 2013-10-27