[LG Optimus 2x] vadonka:
[CM7/MIUI Kernel][KANG][JUN14]CM7-ETaNa v3.0.34

Kernel 3.0.34 "stable" branch

Based on wkpark sources, cherry picked updates from the official linux kernel github source, Code Aurora and Linaro sources

I thank every developer who made their patches available to the public!

I wanna say thank you the following persons!

Spica1234

for the on the fly (aka OTF) pack. He is a great and dedicated developer, helping a lof about the OTF integration. Thank You bro! :)

Culblueswan

for the Etana config editor application. He is developing this app so fast, made it the config change userfriendly. Thank You! :)

Important!

The first boot may take while, its possible that after the second LG logo the screen will be black, DONT!! pull out the battery, just wait a few second, the bootanimation will be show soon. The second boot will be much more faster

Linux version 2.6.32.y is discontinued, only emergency bugfix will be available in the future

Touch CWM is incompatible with this kernel!! Use the normal CWM version! Its possible that the touch CWM cause the filesystem corruption and the r/w bug.

Latest SetCPU have a bug even with the 2.6.32 kernel sometimes (and the stock cm7 too), that the second core will be always active! Use the 2.2.4 version, its working fine.

Antutu CPU master 100% compatible with the kernel 3.0.y (have many profile and cpu1 deactivation is working fine)

Recommended using Antutu Battery Saver app

3G eat the battery fast, its a weak point of the O2X. Use the Toggle2G app for switch back to 2G if the screen is off or the network is not used. This will help to save a LOT battery life

Update 2012.06.17:

Linux kernel updated to 3.0.34

Disable ARCH power

Tweak CPU topology

Minor thermal adjustment

Minor voltage adjustment

Some small fix

Update 2012.06.08:

Optimized build flags for the new toolchain

Kernel is compiled with Spica (c) supersonic toolchain, specially optimized for ARM devices

Enabled ARCH POWER

Updated ARM CPU topology code

sched: minor fix

FS: Backport dynamic writeback feature from 3.1

Small hotplug fix

Disabled frame pointer (this will increase performance)

Update 2012.06.05_16h:

NEW: Fixed wrong SDRAM speed and voltage definitions

Linux Kernel updated to 3.0.33

Optimized build flags

Update 2012.06.03:

CPU freq lowered to 1504Mhz max, 1552 not stable for everyone, 1504mhz enough for good

Revert CPU based alignment handling (cause random poweroff and bsod)

Update 2012.06.03:

Max CPU speed increased to 1552Mhz (can be use in xoc mode)

SDRAM freq increased to 333Mhz

Kernel is compiled with CPU alignment support and updated build flags

USB mass storage speed issue fix

CPU1 control increase max threshold values

Set HZ to 250 and user HZ to 150

Older changelogs:

Update 2012.05.30:

Major voltage and stability fix.

Various code cleanup.

Update 2012.05.28:

Fixed etana.conf parsing bug while the kernel install (its not depending on the endline character)

Minor Code Cleanup

New feature: Higher Min CPU freq (can be enabled in the etana app) use this if you have unexpected shutdown and/or bsod while the phone is sleep.

Update 2012.05.27:

OC max speed increased to 1504Mhz. The predefined 'hoc' level max speed remain in 1408Mhz. 1504Mhz only can use in the custom settings.

Accepted freqs: 216000 312000 324000 456000 503000 608000 760000 816000 912000 1000000 1100000 1216000 1232000 1336000 1408000 1424000 1472000 1504000

Accepted voltages: 775-1325

Update 2012.05.25:

Add sysfs like OC control, see Etana app and /system/etc/init.d/99overclock for detailed information. If you dont want to use custom freqs just select one of the OC levels in the etana app otherwise see the top of the 99overclock file.

AVP, VDE, GPU freq can be adjusted in the etana.conf (used only when the kernel installed!) or after that with the 'otf' script. follow the script on screen order

Minor bugfix, and adjustment

Update 2012.05.23:

Fixed (hopefully) every bug

Update 2012.05.22:

Updated to Linux Kernel 3.0.32

Fix touch screen lag

All wifi driver issue is fixed, including connection loss, battery drain, etc.

Fix a minor bug in the second core OTF code

Fix some incomplete tegra code

Cleanup tweakaio init script, remove some useless stuff

Adjust read ahead sizes for better io speed

Update 2012.05.21:

Use the v20f nvrm_daemon binary, i tested all binary and this one is far the most stable and have great battery life

Minor voltage fixup

Minor OTF code cleanup

OTF: remove screen off max freq part, its malfunctions (use your favorit third party app)

Etana app: remove cpu undervolt (use your favorit third party app)

Update 2012.05.16:

Light voltage adjustment

Minor bugfix

Update 2012.05.15:

NEW: Kernel based protection for the sysfs values (in that case the init script missing or something)

NEW: Fixed busybox 1.20 incompatibility issue

New NITRO feature (immediately boost everything, override the current values. after disabled change back everything to the previous value. use: "echo 1 > /sys/class/misc/nitrocontrol/nitro" for enable or "echo 0 > /sys/class/misc/nitrocontrol/nitro" for disable) NITRO can be enabled permanently from the etana app, but its not recommended.

New Tweakaio factory reset option (see in the Etana editor app)

Readjust GPU, VDE, AVP and CPU1 threshold's

Use a new CPU freq/voltage table

Remove LPDDR2 and DDR2MIN from the OTF

Introduce the sysfs OTF

video: tegra host nvhost syncpt fix up from v21 source drop

star powersupply/battery: code fix up from v21y source drop

star/headset_det: add wakelock for headset_det from v21y source drop

mach-tegra/suspend: AVP suspend code fixup from v21y source drop

Fixup: tegra2 clocks: APB peripheral clock fixup from v21y source drop

video: tegra-fb disable addr change via sysfs interface

kernel/printk: disable console_suspend_enabled from v21y source

Update 2012.05.12:

Fix Battery drain

Minor bugfix

Update 2012.05.11:

Add Vibrator Control v1 by Benee (adjustable from the ETaNa app or realtime)

Force fast charge patch by Chad Froebel (see here)

Update 2012.05.09:

Enable some netfilter option

ARM console flushed on restart

Enable resource counters

Re-Enable CPU ThumbEE extension support (it was temporary disabled)

Separate cpu sysfs removal process from the main table

Lowering EMC Core Voltage

Adjust default AVP freq

Revert sound quality patch

Update 2012.05.07:

Fixed compatibility issues with some games (Draw something, Plants vs Zombies, etc..)

AdBlock hosts 2012-05-05

Remove sqlite patch (its a quite old binary and not faster like the original, so use the cm7 sqlite library instead)

tweakaio app moved to the system partition

TweakAIO init script: check the param and help file size, if its zero or not exsist then recreate

Many defconfig change

Linux kernel updated to 3.0.31

Anton Vorontsov's lowmemory killer patch set, backported from kernel 3.3.y

Adjust default VDE Freq

Added FSync Control version 1

lib: introduce some memory copy macros and functions

Optimized ARM RWSEM algorithm

Add the optimized crc32 algorithm

Update 2012.05.06:

fix: the tweakaio.conf will be recreated at boot if doesn't exsist or have zero byte size

Increase KSM sleep millisecs

Adjusted build.prop tweaks

Battery overheat patch by wkpark (this can be help to avoid charging SOD's)

Wireless: PM_FAST for bcm4329 - from Myshkinbob of XDA

LGE: use v21y battery driver

Backported fixes from the LG p999 v21y kernel

Update 2012.05.03:

Minor code cleanup

Updated ZRAM driver

Enabled Sched MultiCore Scheduler powersave mode

John Stultz ram console patch set

Switch to sysfs console

Disabled the framebuffer console (it useless in a headless device, and interfered with the sysfs console)

Various memory fix

Adjust voltages for better stability

sched: fix OOPS when build_sched_domains percpu allocation fails

Switch to SLAB allocator

Linux kernel is updated to 3.0.30

Update 2012.04.27:

Revert SLQB allocator (it seems this caused the boot issues)

Update 2012.04.26H14:flash this latest version if you have boot problem with the OC version, otherwise dont really need

Minor Cleanup

Disabled CPU Topology support (it might be cause "strange" issues)

Update 2012.04.26:

Integrated morckx ext4 reinit script to the installer (its now fully automatic)

Adjust KSM values (c) Owain and add a new feature to the etana app (KSM enable/disable)

TweakAIO init script is now fully independent, at the first run "install/update" himself, if you have any custom value it wont be lost

CPU alignment patch (c) Spica (maybe this can be help to avoid the boot issues)

Update 2012.04.25

- Improved OTF battery protection support in the DS battery driver too

- Adjust protected low virtual memory size for help to avoid kernel NULL pointer bugs

- Catalin Marinas: Kmemleak patches (backported from kernel 3.3.y) see this link for the details (+20-30MB free memory)

- Adjust PMEM allocator for better performance

- Kernel HZ = User HZ which eliminates HZ USER_HZ conversions. Should slightly increase battery life without effecting performance

- Enable ARM ThumbEE CPU feature (should give some minor JIT performance improvement)

- Remove BPF_JIT (no need for kernel 3.0.y)

Update 2012.04.24

- Compiled with a brand new build server using the latest stable linaro gcc 4.5 (i hope its gonna be solve the boot hang)

Update 2012.04.23-b1640

- Kernel is build with Linaro GCC 4.5.4 and disabled ccache

- Revert: EXT4 module use for EXT2/3 (it seems this cause problem on some case)

Update 2012.04.23

- Linux Kernel is updated to 3.0.29

- Adjust the kernel for better powersave (better battery life)

- Add VR io scheduler support (default is SIO)

- Add back an updated SLQB allocator (its still the fastest)

- Adjusted read ahead for optimal io performance

- EXT4 module use for EXT2/3

- Enable Kernel Samepage Merging (its the same like in the CM9)

- Adjusted memory management

Update 2012.04.18

- Minor bugfix

- Optimize for better battery life (hopefuly)

- Compiled with latest linaro gcc 4.7.1 source 2012.04 (own build)

Update 2012.04.17

- Add google "snappy" compression support

- Advance zram that can be use the snappy compressor (twice as fast like the lzo)

- Adjust the kernel config for better performance

- Optimize Cleancache/Zcache/Frontswap

Update 2012.04.16

- Backported frontswap from the kernel 3.3.y, and used together with cleancache

- Enabled SMT (multicore) scheduler

- Kernel is compiled in Thumb-2 mode (O2, hardfloat), using with gcc 4.7.1 (own build)

Update 2012.04.15

- Kernel updated to 3.0.28

- Owain KSM values, provide better battery life

- Ramhack changer script fixed, but make sure that you have root right before run the script (i suggest that use the script manager app)

- Some source code cleanup

Update 2012.04.12

- OverClock version now available with undervolt support

- More speed tweak for better speed and responsiveness

- Use SLUB allocator by default

- Better memory management

Update 2012.04.11

- Alternative ZRAM driver, what is can be working as a module

- Disable cleancache, its just causing lag

- Disable some debug features

- Code cleanup, optimized build flags

Update 2012.04.10

- SU binary update only optional, put the 'update_su' row to the etana.conf if you want to update the su binary

- Adjust ext4 module options, maybe it will fix the system r/w mount issue (im not sure)

- Some minor config change for better stability

- Still no OC, i cant get that part work for now

Update 2012.04.09

- MMC IO speed fix (wkpark patch)

- Touch screen tweak

- Optimized makeflags

- Various speed tweak, system is more responsive even without the OC

- Compiled with gcc 4.5.4 for better compatibily

- Installer will find and check the su binary version, if outdated it will be replaced with the latest version (3.0.3.2)

- TUN, nfs client is compiled to the kernel, cifs, ntfs, wireless as a module

Update 2012.04.07

- no overclock at the moment because it seems this caused the boot and the bsod problems

- full otf and ramhack support

- improved touch screen responsiveness, merged from the cm7 kernel

- improved power management support, better battery life

- many small fix..

Update 2012.04.05

- Kernel updated to 3.0.27

- Assimilated the Lite driver to the Stock, only the DS driver left separated

- All of the goods is integrated, ramhack, otf, oc/uv, tweakaio, etc...

- Thx to imperticus for some source cleanup!

Changing ramhack, avp, gpu, vde:

start the terminal app then write:

su

otf

follow the on screen instructions then reboot

Spica OTF tweaks realtime parameters can be adjusted via the official HP kernel tweaker app (found on the market). The boot time parameters can be adjusted from the Etana config editor app (included in the kernel installer).

Spica OTF pack further information can be found in this forum: http://xdaforums.com/showthread.php?t=1295486

You can find any information what you need in there.

Installer configuration file need to be place in the sdcard root. You can set what you need and the future version respect that file, so dont need to change anymore. Example: you can exclude that install the custom font.

Note: The kernel installer just update your tweakaio config file with the cpu uv parameters, not overwrite, so if you have custom values you not loose them.

The New parameter file location is: /data/tweakaio/tweakaio.conf

Log files in: /data/tweakaio/tweakaio.log

The installer script respect the parameter file in the future, so if you have some custom settings you will not loose this in a kernel update.

Parameter file is optimized for the phone screen, it can editable with any text editor app or with the Etana kernel tweaker app.

Kernel Features

Balanced AVP OC freq

Balanced 3D OC Freq

Balanced DDR OC Freq

Balanced Second Core Management (lag free)

Default CPU freq is 1015Mhz

Max CPU speed is 1216Mhz/1408Mhz depend on OC profile

Optional Compcache (disabled by default) (you can enable that by editing the /system/etc/init.d/90tweakaio file and change COMPCACHE="off" to COMPCACHE="on"

System logger is leave enabled by default (you can disable that by editing the /system/etc/init.d/90tweakaio file and change LOGGER="on" to LOGGER="off"

Voltage adjustment

216Mhz: Def: 790mV Min: 770mV

324Mhz: Def: 830mV Min: 780mV

503Mhz: Def: 880mV Min: 800mV

655Mhz: Def: 900mV Min: 820mV

816Mhz: Def: 930mV Min: 850mV

1015Mhz: Def: 1030mV Min: 950mV

1216Mhz: Def: 1200mV Min: 1150mV

1408Mhz: Def: 1300mV Min: 1250mV

Recommended CPU profiles for optimal performance

No1: In call: 216-456 or 324-456(*)

No2: Screen off: 216-324 or 324-324(*)

No3: Charging: 216-1408 or 324-1408(*)

No4: Battery <20%: 216-816 or 324-816(*)

Note: (*) Use this if you're having a problematic phone (which doesn't like UV and has a lot of BSODs). The stock kernel doesn't use the 216Mhz setting, some hardware may not support this(!), so that's why I recommend to use 324Mhz as the minimum value if you have problems with 216Mhz.

Primary Download location (10Gbps, instant no wait): Click here

File name description:

YYmmddHHMM-ETaNa_STOCK/OC_(DS)_OTF

STOCK: stock freq steps, no overclock

OC: overclock version

DS: DS battery driver

OTF: on the fly toolkit (c) Spica