[Galaxy S3 Neo Original Android Development] Renix63:
[KERNEL][CM12.1]🌟Kernel NEOX🌟 v6.9 Fix Charge UBERTC-700 and Dual Sim 9300I

Kernel is for CM 12.1 5.1.1

My device is GT-I9301i

[COLOR="Red"]* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/[/COLOR]

Features

Add KCAL - Advanced color control for Qualcomm MDSS 8226 use OC-KAL and apk in Attach Files

/sys/devices/platform/kcal_ctrl.0/kcal - (0-256 0-256 0-256) - Controls R/G/B Multipliers
/sys/devices/platform/kcal_ctrl.0/kcal_min - (0-256) - Controls minimum RGB Multiplier value
/sys/devices/platform/kcal_ctrl.0/kcal_enable - (0-1) - Enables/Disables RGB Multiplier Control
/sys/devices/platform/kcal_ctrl.0/kcal_invert - (0-1) - Enables/Disables Display Inversion Mode
/sys/devices/platform/kcal_ctrl.0/kcal_sat - (224-383 or 128) - Controls saturation intensity - use 128 for grayscale mode
/sys/devices/platform/kcal_ctrl.0/kcal_hue - (0-1536) - Controls display hue - may have issues with msm8x26 in the higher values
/sys/devices/platform/kcal_ctrl.0/kcal_val - (128-383) - Controls display value
/sys/devices/platform/kcal_ctrl.0/kcal_cont - (128-383) - Controls display contrast

http://xdaforums.com/android/software-hacking/dev-kcal-advanced-color-control-t3032080

Last Github Rox sources

Overclock add 1497600, 1593600 freq.

Add new Governors for CPU:

PERFORMANCE POWERSAVE USERSPACE ONDEMAND INTERACTIVE CONSERVATIVE INTELLIACTIVE PEGASUSQ PEGASUSQPLUS ZZMOOVE

Add LZ4 COMPRESS

Use Toolchain Linaro gcc 5.2.1 20151005 Graphite

( no more Use Toolchain Uber gcc 5.3.x Optimized)

GRAPHITE = -fgraphite -fgraphite-identity -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-loop-linear -floop-nest-optimize
HOSTCFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -Ofast -fomit-frame-pointer -pipe -DNDEBUG -fgcse-las $(GRAPHITE) -pthread
HOSTCXXFLAGS = -pipe -DNDEBUG -Ofast -fgcse-las -mfpu=neon-vfpv4 $(GRAPHITE)
KERNEL_FLAGS = -pipe -DNDEBUG -Ofast -marm -mtune=cortex-a9 -mcpu=cortex-a9 -march=armv7-a -mfpu=neon-vfpv4 \
-mvectorize-with-neon-quad -fgcse-after-reload -fgcse-sm -fgcse-las \
-ftree-loop-im -ftree-loop-ivcanon \
-fivopts -ftree-vectorize -ffast-math -fno-schedule-insns2 \
-fmodulo-sched -fmodulo-sched-allow-regmoves -fno-tree-vectorize $(GRAPHITE)
MOD_FLAGS	= -DMODULE -fno-pic $(KERNEL_FLAGS)

ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
KBUILD_CFLAGS	+= -Os $(call cc-disable-warning,maybe-uninitialized)
else
KBUILD_CFLAGS	+= -Ofast
KBUILD_CFLAGS	+= $(call cc-disable-warning,maybe-uninitialized) -fno-inline-functions
KBUILD_CFLAGS	+= $(call cc-disable-warning,array-bounds)
endif

Tricks

Controll TCP: veno

Scheduler: Tripnoid - Buffer size 1024

Freq Cpu:

MIN 300000

MAX 1593600

Governor: Lionheart

Fast Charge: ON

MPDecision: OFF

Intelli-Plug: ON or OFF

MSM HOTPLUG: ON always

GPU Governor: msm-adreno-tz

Enable Adreno Idler

Profiles for my kernel Thanks to neonkat

#Gaming(performance)

gov-performance

max cpu freq-1593Mhz

i/o-zen

#Balanced

gov-yankactive/yankdemand

max cpu freq-1401Mhz

i/o-sio

#Heavy Multi-tasking

gov-zzmove

max cpu freq-1593Mhz

i/o-bfq

#Insane battery life

gov-smartmax/powersave

max cpu freq-1190Mhz/1094 Mhz

i/o-noop

Credits

Rox

CyanogenMOD

Samsung

Google

CodeAurora

Qualcomm

Guide

Use Trickster Mod or Kernel Adiutor for Setup Kernel

https://play.google.com/store/apps/details?id=com.bigeyes0x0.trickstermod&hl=it

Version

v1.1 Update Ramdisk new Rox Rom

v1.2 add news Features:

CONFIG_INTELLI_PLUG=y
CONFIG_LAZYPLUG=y
CONFIG_POWERSUSPEND=y
CONFIG_FORCE_FAST_CHARGE=y
CONFIG_FRANDOM=y
CONFIG_KERNEL_MODE_NEON=y
CONFIG_ALLOW_CPU_ALIGNMENT=y

v1.3 add news Features:

CONFIG_SOUND_CONTROL_HAX_3_GPL=y
For Faux SOUND CONTROL Use Trickster Mod or Kernel Adiutor
Pics Sound Control
CONFIG_INTELLI_THERMAL_V2=y

Pass Antutu Benchmark v5.7.2
ZRAM point: 21430
ZSWAP point: 21544

Undecided whether it is better 'ZSWAP' or 'ZRAM'
Please you decide you...
otherwise I do double version.

ZSWAP parameters:

in '/sys/modules/zswap/parameters'
max_compression_rate = 80 default
max_pool_percent = 20 default

Fix Hardware msm8226
Fix battery drain

New Version v2.0 zswap zram

Fix ALL :cool:
Fix zram and intellitermalV2 too
Problem with RR 5.5.8 (please update to Rom's Rox last build or RR 5.5.9 )

New Version v2.1 for RR 5.5.9 and Rom's Rox last build
update Adreno driver from kernel 3.4.108 experimental

Add version kernel 2.0 for Rom RR558 and old rom Rox.

New Version v2.2 for RR 5.5.9 and Rom's Rox last build
Patch take of CyanogenMod 13, ROM for the Moto G 2015
[URL="http://xdaforums.com/2015-moto-g/orig-development/rom-cyanogenmod-13-t3254236"]http://xdaforums.com/2015-moto-g/orig-development/rom-cyanogenmod-13-t3254236[/URL]

drivers: /drivers/mmc/core/core.c

mmc: disable software CRC checks for 30% performance
/*
* Enabling software CRCs on the data blocks can be a significant (30%)
* performance cost, and for other reasons may not always be desired.
* So we allow it to be disabled.
*/
bool use_spi_crc = 0;
module_param(use_spi_crc, bool, 0644);

Kernel v2.3

Build with 'The SaberMod Project' 20150804

+ CONFIG_BLU_PLUG=y
The Dynamic hotplug driver automatically online/offline CPUs proportional to system load.

Enable setting security contexts on rootfs inodes.

+ CONFIG_UID_CPUTIME=y
Per UID based cpu time statistics exported to /proc/uid_cputime

Kernel v2.4

News: Build with Toolchains SaberMod 4.9 with a15, vfpv4 optimizations and Google GCC
arm-eabi-gcc (GCC) 4.9.x-sabermod 20150828 (prerelease) so
CONFIG_ARM_UNWIND=y enable for Cortex-a7.

Update "force fast charge" Port to Nexus 5
and fix in /drivers/usb/otg/msm_otg.c

Add "Support for xor-neon"

Fix some gorvernors.
Active disable software CRC
Active Blu Plug (if you wont disable Intelliplug with Kernel Adiutor)

Kernel v2.5

Build Full -O3
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
KBUILD_CFLAGS	+= -O3

revert - mmc: disable software CRC checks -

+CONFIG_CPU_FREQ_GOV_SMARTMAXMOD=y
Add governor SMARTMAXMOD with powersuspend

Networking options CONFIG_XFRM all

Update from kernel v3.4.109:

update /drivers/platform/msm

+CONFIG_USR_RESET_WARNING=y
This option enables a device driver that monitors user reset warning
GPIO.If the driver receives the warning it calls kernel_halt to notify
drivers registered for the reboot notification about incoming HW reset.

+CONFIG_DROPBOX=y (this is usefull)
This option enables a sysfs interface for drivers to send text or
binary events to the Android dropbox. A lightweight userspace daemon
polls the sysfs files and copies the data into dropbox using the built
in dropbox manager service. This enables fast and simple logging of
various critical events from kernel drivers.

+CONFIG_HOB_SHARED_RAM=y
Provide mechanism to access hob storage shared memory on apps
processor. HOB - or the Hand Over Block - is the staging area for
phasing data.

+CONFIG_ALSA_TO_H2W=y (this is usefull)
This option enables a device driver that attach to the input queue and
and exposes EV_SW events SW_HEADPHONE_INSERT & SW_MICROPHONE_INSERT in
/sys/class/switch/h2w/state used by Android headset observer.

The caf kernel is optimized for Qualcomm phones. I'm replacing files possible without altering operation, but do not rule out some bugs.

Now is just the time to really test the phone but for now I think

almost everything ok .... If you find any bugs warn but for me the camera works in both zram that zswap ...

Install : Flash in Recovery mode

kernel_cm-13.0-20151119-s3ve3g-v2.0-zswap.zip ( Problem with RR 5.5.8 (please update to Rom's Rox last build) )

kernel_cm-13.0-20151119-s3ve3g-v2.0-zram.zip ( Problem with RR 5.5.8 (please update to Rom's Rox last build) )

Note : this version update Adreno driver from kernel 3.4.108 experimental (but works)

kernel_cm-12.1-20151122-s3ve3g-v2.2-zswap.zip ( for RR 5.5.9 and Rom's Rox last build )

kernel_cm-12.1-20151122-s3ve3g-v2.2-zram.zip ( for RR 5.5.9 and Rom's Rox last build )

Note : this version is Build with Toolchains SaberMod 4.9 with a15, vfpv4 optimizations and Google GCC

kernel_cm-12.1-20151127-s3ve3g-v2.4-zswap-crc-google.zip ( for RR 5.5.9 and Rom's Rox last build )

kernel_cm-12.1-20151127-s3ve3g-v2.4-zram-crc-google.zip ( for RR 5.5.9 and Rom's Rox last build )

NEW KERNEL CAF v1.1 by n1kolaa

Note : this version is Build with Toolchains SaberMod 4.9 with a15, vfpv4 optimizations and Google GCC

I decided to build the kernel with the sources of Thread by n1kolaa v3.4.67 for testing With all my changes:

kernel_cm-12.1-20151129-s3ve3g-caf-v1.1-zram-google.zip ( for Rom's Rox last build )

kernel_cm-12.1-20151129-s3ve3g-caf-v1.1-zswap-google.zip ( for Rom's Rox last build )

NEW Kernel v2.7

Note : Build Full -O3 Toolchains SaberMod 4.9 with a15, vfpv4 optimizations and Google GCC

kernel_cm-12.1-20151226-s3ve3g-v2.7-zswap-google.zip ( for last build )

kernel_cm-12.1-20151226-s3ve3g-v2.7-zram-google.zip ( for last build )

* ZZMoove Governor profiles header file modified by Zane Zaminsky 2013/14
*
* currently available profiles by ZaneZam and Yank555:
*
* - (1)'def' -> Default -> will set governor defaults -
*
* - (2)'ybat -> Yank Battery -> a very good battery/performance balanced setting -
* - DEV-NOTE: highly recommended! -
*
* - (3)'ybatext'-> Yank Battery Extreme -> like yank battery but focus on battery saving -
*
* - (4)'zzbat' -> ZaneZam Battery -> a more 'harsh' setting strictly focused on battery saving -
* - DEV-NOTE: might give some lags! -
*
* - (5)'zzbatp' -> ZaneZam Battery Plus -> NEW! reworked 'faster' battery setting -
* - DEV-NOTE: recommended too!:) -
*
* - (6)'zzopt' -> ZaneZam Optimized -> balanced setting with no focus in any direction -
* - DEV-NOTE: relict from back in the days, even though some people still like it! -
*
* - (7)'zzmod' -> ZaneZam Moderate -> NEW! setting based on 'zzopt' which has mainly (but not strictly only!) 2 cores online -
*
* - (8)'zzperf' -> ZaneZam Performance -> all you can get from zzmoove in terms of performance but still has the fast -
* - down scaling/hotplugging behaving -
*
* - (9)'zzinz' -> ZaneZam InZane -> NEW! based on performance with new insane scaling active. a new experience! -
*
* - (10)'zzgame' -> ZaneZam Gaming -> NEW! based on performance with scaling block enabled to avoid cpu overheating during gameplay -
*
* - (11)'zzrelax'-> ZaneZam Relax -> NEW! based on moderate (except hotplug settings) with relaxed sleep settings -
*

Old version:

NEW Kernel v4.0:

Kernel Version 4.0

Change Toolchain Dorimanx-LG-G2-D802-Kernel

Change to KCAL V2 mdss_mdp_kcal_ctrl.c

Change fastcharge driver

NEW Kernel v4.1:

Kernel Version 4.1

Powersuspend driver Default to userspace mode

NEW Kernel v4.2:

Kernel Version 4.2

Add MSM_HOTPLUG by myfluxi

Fix Bluetooth Stuttering by P.A.N@xda

update commit CAF kernel v3.4.67

NEW Kernel v4.6:

Kernel Version 4.6

Zram rewrite and set lz4 compression

Add other CPU Governors

Update Powersuspend v1.7

Classic Toolchain arm-cortex_a7-linux-gnueabihf-linaro_4.9.4-2015.06

Initram KERNEL in GZIP

NEW Kernel v4.7:

Kernel Version 4.7

New Toolchains arm-eabi-5.3.1 UBERTC-5.3.x 20160401 (optimized)

NEW Kernel v4.9:

Kernel Version 4.9

New Toolchains arm-eabi-5.3.1 UBERTC-5.3.x 20160401 (optimized)

Add GRAPHITE optimizations

NEW Kernel v5.0:

NEW Kernel v5.1:

NEW Kernel v5.2:

NEW Kernel v5.5:

Fix SOUND

NEW Kernel v6.9:

Build with Toolchain GCC: (UBERTC-7.0.0) 7.0.0 20160421 (experimental)

Beta Sim working on GT-I9300I (test this)

Download: Kernel-CM12.1-Neox-v6.9-u700-zram.zip

Download: Kernel-CM12.1-Neox-v6.9-u700-zswap.zip

Download: Kernel-CM12.1-Neox-v6.9-u700-zcache.zip

This work on 9300I Carbon Ultimate Android 5.1.1 Dual Sim

Download: Kernel-9300I-DualSim-CM12.1-Neox-v6.9-u700-zram-b.zip

Download: Kernel-CarbonRom-test-Neox-v6.8-u700-zram.zip

If necessary flash this: Patch+RIL+(Dual+SIM).zip

Thanks to: MAXSIMUS96

old:

Download: Kernel-CM12.1-Neox-v6.8-u700-zram.zip

Download: Kernel-CM12.1-Neox-v6.8-u700-zswap.zip

Download: Kernel-CM12.1-Neox-v6.8-u700-zcache.zip

Download: Kernel-CM12.1-Neox-v6.7-u700-zram.zip

Download: Kernel-CM12.1-Neox-v6.7-u700-zswap.zip

Download: Kernel-CM12.1-Neox-v6.7-u700-zcache.zip

Download: Kernel-CM12.1-Neox-v6.5-u700-zram.zip

Download: Kernel-CM12.1-Neox-v6.5-u700-zswap.zip

Download: Kernel-CM12.1-Neox-v6.5-u700-zcache.zip

Build with Toolchain Linaro gcc 5.2.1 20151005 Graphite

Download: Kernel-CM12.1-Neox-v6.3-l521-zram.zip

Download: Kernel-CM12.1-Neox-v6.3-l521-zswap.zip

Download: Kernel-CM12.1-Neox-v6.3-l521-zcache.zip

Download: Kernel-CM12.1-Neox-v6.2-l521-zram.zip

Download: Kernel-CM12.1-Neox-v6.2-l521-zswap.zip

Download: Kernel-CM12.1-Neox-v6.1-l521-zram.zip

Download: Kernel-CM12.1-Neox-v6.1-l521-zswap.zip

Download: Kernel-CM12.1-Neox-v6.0-l521-zram.zip

Download: Kernel-CM12.1-Neox-v6.0-l521-zswap.zip

Download: Kernel-CM12.1-Neox-v5.9-l521-zram.zip

Download: Kernel-CM12.1-Neox-v5.9-l521-zswap.zip

How to use new ZRAM goto here

I used zram with this settings:

Cpu max : 1401
Governor : cyan
Multicore Power Saving : disabled
Schedule workqueues on awake CPUs to save power. off
Cpu Boost : off
Input boost frequency : disabled (all)
Hotplug Boost : on
Cpu Hotplug : Zen decision
Termic : intellithermal
GPU : default
Fast Charge: on
Scheduler I/O : deadline 256K
Misc :
Dynamic Fsync : off
Power Suspend Mode : UserSpace
Network : veno

Toolchain GCC: (UBERTC-7.0.0) 7.0.0 20160421 (experimental)

Thanks to: ZaneZam

Thanks to LGaljo@xda And sev3n85@xda

Commit: toolchain: multiple fixes and changes for gcc 5.0.0

Sources: https://github.com/MSM8226-Samsung/android_kernel_samsung_s3ve3g/tree/cm-12.1

Camera FIX only if camera not work :

Camera_fix.zip

or: cm12.1camera.zip

FIX Bug corrected the boring log :

QCOM PowerHAL Failed to acquire lock.

copy 'power.msm8226.so-cracked' to '/system/vendor/lib/hw/'

rename 'power.msm8226.so' to 'power.msm8226.so.original'

rename 'power.msm8226.so-cracked' to 'power.msm8226.so'

set octal attrib 0644 (use Root Explorer in Attributes). Reboot device...

Attach Files power.msm8226.so-cracked.zip

Flash in Recovery: