[Kernel]Cm7/AOSP[2.6.35.13](v1.0.7)MaxOC~2.03GHz,Smartass/UV/BFS/BFQ/SLQB[Jul-13]

faux123

Senior Member
Dec 16, 2010
8,536
34,426
113
West Los Angeles
www.canonspike.com
NOTICE: THIS KERNEL IS CURRENTLY ONLY COMPATIBLE WITH CM Nightly 91+ or my Nexus ROM 1.2.5+

Just a statement regarding kernel source: The Kernel Source is of course covered under GPL version 2. Free software does NOT mean no work or time was spent working on it. I have donated a large sum of my free time to hack this kernel. If you use my modified kernel source in its entirety, I kindly ask you to send me a github pull request or PM whenever you find bugs or think you can help improve my kernel hack further. This way the entire community will truly benefit from the spirit of open source. Thank you :cool:



All Old CM7/AOSP ROMs should use my Old CM7/AOSP Kernel
All GB Sense ROMs should use my GB Sense Kernel
All Froyo AOSP ROMs should use my Froyo AOSP Kernel
All Froyo Sense ROMs should use my Froyo Sense Kernel


Hi XDA members and fellow MT4G users:

This is my SEVENTH kernel hack. I want to thank Cyanogen, Zinx, Ricardo Cerqueira, Erasmux, and several others I cannot recall for inspiring me to venture into this unfamiliar territory for me.

What is a Kernel? The Kernel is the Foundation in which everything else builds upon in any software system.
[Car Analogy]: Kernel is like the Engine, Electrical system and the Transmission to a car. The Library, Framework and the Apps [AKA ROM] are the body frame and the rest of the Car.




THIS KERNEL is BASED ON AOSP/CM7 Source Code. So it is COMPATIBLE ONLY WITH AOSP/CM7 Builds.

Please DO NOT use any task killers, they DO NOT improve performance nor battery life. They INTERFERE with your phone's stability (more crashes) and App compatibilities (Forced Close).


MinMax Governor (Battery Saver)

This governor will try to minimize the frequency jumps/changes which cause voltage spikes/changes which supposedly drains more battery life... Supposedly designed to work with SetCPU... so give it a whirl...

SmartAss Governor (Balanced)

This governor has a built-in "profile" similar to SetCPU, so screen off will use lower clock rate thus conserve more battery, but it also has a fast wake up feature so that user interaction will not see the lag when switching from Sleep to Wake state.... (So SetCPU Profiles are sorta redundant when using this governor, you can still use SetCPU to OC to higher than default Clock frequency).

Interactive Governor (Performance)

This governor is designed to put more priority to User Interface (UI aka Apps) tasks, therefore appears more responsive then the traditional OnDemand governor. So if you want the smoothest UI interaction, this governor is for you...

Brain F*ck Scheduler - (BFS)

This scheduler is designed to be simple and speedy tailor specifically for user interface type systems such as desktop/smart phone devices where user interaction is MORE important than serving 1 million web requests (CFS, the default scheduler) at the same time (think of nimble desktop workstations vs large corporate servers).

SLQB - (SLAB allocator with Queue)

This memory allocator is designed for small number of CPUs system (such as desktop or smart phone devices). This allocator is design to be simple and it is optimized for using order-0 pages as much as possible (order-0 pages are the simplest therefore quickest type of memory in a Linux system to allocate). Not all kernels are using SLQB including CM7 main line...

Fair Budget Queue (BFQ I/O scheduler)

This I/O scheduler is an improvement on top of Completely Fair Queue (CFQ). CFQ is fair in terms of time but not in terms of throughput / bandwidth, so BFQ make sure that both time and throughput / bandwidth are balanced across all requests.

Installation Instructions:

Here's a step by step instruction to install this kernel:

Warning Version 0.0.3+ is COMPATIBLE ONLY with Android 2.3.4 ROMs such as latest CM7 nightlies 91+

[ CFS-Smartass ] (Mainline)
The File ==> CM Kernel 1.0.7 CFS Low Voltage <==
The File ==> CM Kernel 1.0.7 CFS Stock Voltage <==

[ BFS-Interactive ] (Enthusiast Edition)
The File ==> CM Kernel 1.0.7 BFS Low Voltage <==
The File ==> CM Kernel 1.0.7 BFS Stock Voltage <==


Low Voltage - Under Volt the processor, therefore uses Less Battery, but NOT ALL CHIPS can handle Under Volt.. If you experience instability, try the Stock Voltage Version.

Stock Voltage - Uses the voltage values from ORIGINAL HTC Kernel Source.

There are NO PERFORMANCE DIFFERENCE between the 2 versions!


1. download the above file (via phone directly or to a PC)
2. copy the downloaded zip file to /sdcard/download/
3. Open ROM Manager and select "Reboot into Recovery" and select "OK"
4. Once in recovery, select "wipe cache partition", select "Yes", then select "advanced", then select "Wipe Dalvik Cache", then select "Yes" again. Once finished, click the back button to go back to the main recovery menu. On that menu, select "Install Zip From SDCad", then select "Choose zip from SDCard", then go to /sdcard/download and select the downloaded zip file and let it run its script.
5. Once the script is done, select "reboot system now"

Note: After FLASHING, the first reboot may take longer than usual, please be patient... After the first reboot, it may lag during initial load (let everything finish loading). Once everything is loaded and phone is ready for use, reboot the phone a 2nd time and the lag will be gone and everything should be silky smooth...


NEWS BULLETIN:

Version 1.0.7 is OUT!!!!
Updated to allow Max overclock to 2.03 GHz... REMEMBER NOT EVERYONE can OC to 2.03 just keep in mind. My own phone can run @ 1.94 Stable but will experience random freeze @ 2.03. I enabled it just in case some of you have even better chip than mine.

Speaker Volume Boost, Headset Volume Boost and Bluetooth Volume Boost.


Please don't hesitate to talk among yourselves and help each other out... The MT4G/XDA community is what inspired me to hack kernels for everyone since everyone here is nice and helpful to each other... Keep helping each other.... Famous proverb: It's better to give than to receive...

BUGS:


[ Android 2.3.4 ROM ]
If you experienced WiFi issue, it means the bcm4329.ko modules was NOT installed properly.

Extract the bcm4329.ko from the same zip file, then

[ with ADB ]
adb push bcm4329.ko /system/lib/modules

[ with Root Exploror ]
1. touch Mount R/W
2. copy bcm4329.ko to /system/lib/modules
3. long press on the bcm4329.ko and select Permissions then check read, write for owner, read for group and read for others, click ok
4. long press again on the bcm4329.ko and select Change Owner, then pick 0-root for owner and pick 0-root for group, click ok

I will investigate to see if I can fix the updater script so this would be done automatically with 2.3.4 ROMs



Not All CHIPS ARE CREATED EQUAL

[NOT REALLY A BUG, when OC'ed, everything is questionable]
Interactive and OnDemand Governors will freeze the phone when the delta / difference between the Max and Min frequency is too large..
Ie, Max 1843MHz~Min 245MHz -- will lock up, but Max 1840MHz and Min 1000MHz will NOT...


TO DO:

version 0.x.x -- Haven't thought about it yet...

History:

See Post below...

Standard Disclaimer: Not responsible for bricking your phone, voiding your warranty, or any other pain or suffering you may feel as result of using this kernel!!!

My Github Complying with GPL :D

Follow me on :

If you find this Kernel useful, feel free to hit the [Thanks] button below
 
Last edited:

faux123

Senior Member
Dec 16, 2010
8,536
34,426
113
West Los Angeles
www.canonspike.com
[ Version History ]

Version 0.0.3 (deprecated)

Migrated everything from old 2.6.32 kernel settings to this
SmartAss, MinMax, Interactive Governors
SLQB memory allocator default
BFQ 2.1 I/O scheduler default
CIFS+UTF-8 support
Native GB Kineto_gan.ko support
TUN/TAP support
Default CPU ~1.13 GHz
Undervolted

Version 0.0.4 (Short Term Release)

The File ==> CM Kernel 0.0.4 CFS Low Voltage <==
The File ==> CM Kernel 0.0.4 CFS Stock Voltage <==
The File ==> CM Kernel 0.0.4 BFS Low Voltage <==
The File ==> CM Kernel 0.0.4 BFS Stock Voltage <==

Revert SmartAss to older tweaks
Added ARM/NEON specific compiler optimizations

Version 0.0.5 (deprecated)

Github Code Sync Update (no changes for Glacier)

Version 0.0.6 (Short Term release)

The File ==> CM Kernel 0.0.6 CFS Low Voltage <==
The File ==> CM Kernel 0.0.6 CFS Stock Voltage <==
The File ==> CM Kernel 0.0.6 BFS Low Voltage <==
The File ==> CM Kernel 0.0.6 BFS Stock Voltage <==

Incorporated kineto_gan as part of kernel image, this should resolve MMS on wifi issue (Thanks to thederekjay)


Version 1.0.7 (Current)

Version bumped to 1.0.7 to reduce confusion with my other kernel
Adjust Voltage/Frequency table to allow for 2.03 GHz overclock
Boosted Volume for Speaker, Headset and Bluetooth
 
Last edited:

synaesthetic

Senior Member
Aug 14, 2010
813
56
0
Oakland, CA
No wonder I'm having so many sluggishness/lag problems... I wasn't aware the kernel changed with nightly #91.

Apparently everything works with the old kernel, it just runs like poo and is draining the crap out of my battery.

Going to update this now. :)
 

ziggy34

Senior Member
Sep 2, 2010
1,147
272
0
SE Michigan
No wonder I'm having so many sluggishness/lag problems... I wasn't aware the kernel changed with nightly #91.

Apparently everything works with the old kernel, it just runs like poo and is draining the crap out of my battery.

Going to update this now. :)
from the change log it looks like the kernel change was in nightly #92

Sent from my HTC Glacier using XDA Premium App
 

chillwill11

Senior Member
Oct 18, 2010
212
39
0
Jerzey
Damn Faux ur really busy. This looks pretty sweet. I'm going to flash this on my sisters phone and will post results.

On a side note. I also use your LG-P999 AOSP 2.3.4 rom, Beautiful!! I was wondering. Do you think the Tegra 2/A9 can be pushed to 1.8-2.0GHz+. I know we are awhile away from that just wanted your thoughts
 

ziggy34

Senior Member
Sep 2, 2010
1,147
272
0
SE Michigan
Version 0.0.4 is out. Reverted back to my older (and better) version of smartass :D Added even more optimizations for ARM/NEON chip such as the one for Glacier. Enjoy!
LOL, to funny, just downloaded .0.0.3 no more then 30 minutes ago and flashed with nightly #92, well time to update.

Sent from my HTC Glacier using XDA Premium App
 

Robertleehadley

Senior Member
Sep 17, 2009
243
48
0
The wifi on the new kernel is scary good. Doesn't fluctuate at all like the others did.
That being said, tried this on miui and it was great!!! Except the camera didn't work :( any fix for that? Would LOVE to use this on miui rom.

Sent from my demonSPEED Glacier using XDA App
 

Towle

Retired Forum Moderator
Oct 26, 2010
3,472
1,973
0
The Wild
So if I am coming from ck's kernel can I just download and flash the CFS-stock voltage? I'm a little unsure because of the 'optional CFS kernel' instructions...

Sent from my HTC Vision using XDA App
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone