Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,729,985 Members 53,889 Now Online
XDA Developers Android and Mobile Development Forum

[Kernel]Cm7/AOSP[2.6.32.40](v2.6.6)MaxOC~1.84GHz,Smartass/UV/BFS/BFQ/SLQB[May-26]

Tip us?
 
faux123
Old
(Last edited by faux123; 21st June 2011 at 08:31 PM.)
#1  
faux123's Avatar
Senior Member - OP
Thanks Meter 33645
Posts: 8,451
Join Date: Dec 2010
Location: West Los Angeles

 
DONATE TO ME
Wink [Kernel]Cm7/AOSP[2.6.32.40](v2.6.6)MaxOC~1.84GHz,Smartass/UV/BFS/BFQ/SLQB[May-26]

THIS KERNEL IS NOW OBSOLETE. CM7 Nightly 90+ and my Nexus 1.2.5+ require TRUE 2.6.35+ 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
[/b]

Hi XDA members and fellow MT4G users:

This is my SECOND kernel hack. I want to thank Gr8Gorilla, Erasmux, dumfuq 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 2.6.3+ is COMPATIBLE ONLY with Android 2.3.4 ROMs such as latest CM7 nightlies, MIUI, RoyalGinger.

All Android version 2.3.3 ROMs such as older versions of CM7 including RC1, RC2, RC3, CM 7.0.1~7.0.3 should use version 2.5.2!

[ FINAL VERSION ]

[ CFS-Smartass ] (Mainline)
The File ==> CM Kernel 2.6.6 CFS Low Voltage #162 <==
The File ==> CM Kernel 2.6.6 CFS Stock Voltage #163 <==

[ BFS-Interactive ] (Enthusiast Edition)
The File ==> CM Kernel 2.6.6 BFS Low Voltage #164 <==
The File ==> CM Kernel 2.6.6 BFS Stock Voltage #165 <==


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!


[Optional CFS kernel ONLY]
If this is first time you FLASH my kernel or you just recently FLASHED any ROM,
To use my CFS-Tweaks from version xxx, you must FLASH xxx first, then FLASH the latest version.

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 2.6.6 is OUT!!!!

This is most likely the FINAL VERSION for this kernel. CM7 is moving to a real 2.6.35+ kernel from very soon. Once that happens, this 2.6.32 kernel will be made obsolete!!!


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 2.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

Follow me on :

If you find this Kernel useful, feel free to hit the [Thanks] button below
How to report Kernel Bugs!
Newest GeekTalk
Fight against Trolls, up vote my threads back to normal (1 star was due to trolling) Thanks!
FauxClock FAQ
The Following 141 Users Say Thank You to faux123 For This Useful Post: [ Click to Expand ]
 
faux123
Old
(Last edited by faux123; 27th May 2011 at 06:23 PM.)
#2  
faux123's Avatar
Senior Member - OP
Thanks Meter 33645
Posts: 8,451
Join Date: Dec 2010
Location: West Los Angeles

 
DONATE TO ME
Default Version History

History:

Version 1.0: (deprecated)

Baseline from CM7 kernel source code
Added OC all the way to 1.8 GHz (drawing Max VDD @ 1400)
Added SmartAss, MinMax Governors
Applied Cache clear routine from HTC Incredible line (better emulator performance)
Under volt (battery savings) frequencies below 902400 Hz (up to -100 mVolts)
Added more intermediate Overclock frequencies (all the way to 1.84 GHz for you brave souls )
Increased Bluetooth Volume Gains and Handset Volume Gains
Added BFS and SLQB technology (see above)
Tweaked SmartAss governor slightly
Made built-in BFQ I/O scheduler as default I/O scheduler (see above)

Version 1.1.0: (deprecated)

Adjusted SmartAss to use the same adjustments as my Sense Kernel (This will further help prolonging battery life)
Updated CM7 CPU freq table to be the same as my Sense Kernel (added 1 more low CPU frequency @ 537600 KHz, to help battery life)

Version 1.2.0: (deprecated)

Adjusted SmartAss to use the same adjustments as my Sense Kernel (reduced Sampling time to 33ms for super smooth response)

Version 1.3.0: (deprecated)

Added my Sense Interactive and OnDemand Governors to CM line

Version 2.0.0: (deprecated)

Updated CPU Frequency/Voltage Table from my Sense ROM (includes the new 536 MHz clock for use with "SmarterAss Governor")
Updated Touch Panel Driver from my Sense ROM (Touch of Silk feeling, aka, Finger Porn)
Updated Sound Driver from my Sense ROM
Updated Bluetooth Driver from my Sense ROM
Updated Camera Driver from my Sense ROM
Updated Keyboard Driver from my Sense ROM
Updated Optical Joystick Driver from my Sense ROM
Updated Battery Driver from my Sense ROM

Version 2.0.2: (deprecated)

Updated WiFi driver
Updated General TCP/IP networking stack
Updated USB driver (not easy)
Compiler optimized for Neon FPU and ARM7 architecture

Version 2.0.3: (deprecated)

Updated Video Driver from EVO Shift 4G
Adjusted DMA Engine to work with CFS

Version 2.0.4: (deprecated)

Updated core Kernel version from 2.6.32.28 to 2.6.32.31 (some bug fixes and performances boost)
Added CIFS (read bulletin for details)

Version 2.0.5: (deprecated)

Corrected Kernel Version to indicate 2.6.32.31
Updated File System Components including Core, NFS and EXT3
Updated Crypto Kernel Component
Added UTF-8 support to show special characters to work with CIFS

Version 2.0.6: (deprecated)

Fixed WiFi error related to county code due to coding error (late night coding is bad )

Version 2.1.0: (deprecated)

Updated core Kernel version from 2.6.32.31 to 2.6.32.32 (Speedy Edition)

Version 2.1.2: (deprecated)

Maintenance release: Fixed minor errors in power management driver and video driver
Revert back from RWSEM_XCHGADD_ALGORITHM to GENERIC_SPIN_LOCK

Version 2.1.2.1: (deprecated)

Fixed screen tearing issue (coding error in private memory flush routine leads to screen tearing)

Version 2.1.4: (deprecated)

Updated Core Linux Kernel from 2.6.32.32 to 26.6.32.33
Fixed few issues in CFS
Updated WiFi driver
Updated I2C driver
Revert back to CM7 OnDemand and Interactive Governors
Updated SmartAss Governor
Added CGroup Freeze/Unfreeze control
Fixed potential stack overflow in BunZip2
Updated with latest base CM7 kernel changes

Version 2.1.5: (deprecated)

Cleaned up all remaining issues in CFS
Updated OnDemand Governor
Updated bunzip2 again
Updated G-Sensor Driver
Updated Compass Driver
Updated KeyReset Code for Inputs
Updated SDCard Driver

Version 2.1.6: (deprecated)

Fixed bugs in Speaker Amp and G-Sensor drivers which prevents screen rotation under certain conditions found by user [MadWolf27] MAJOR PROPS to him!!!

Version 2.2.0: (deprecated)

Updated Video Driver (openVG) per CM7 Changes (Now compatible with Nightly Build 29+)

Version 2.3.0: (deprecated)

Updated Core Linux Kernel from 2.6.32.33 to 2.6.32.34
Updated GPU code from latest HTC Incredible S Kernel (same as CM7 GPU updates)
Added native FUSE (file system in user space) per CM7 changes
Adjusted kernel compile configurations per CM7 changes

Version 2.4.2: (deprecated)

Updated Core Linux Kernel from 2.6.32.34 to 2.6.32.36
Updated kernel to latest HTC WiFi Driver from HTC Incredible S Kernel Source
Included the latest HTC WiFi Firmware from HTC Desire Z (leaked)
Added native CIFS+UTF-8 directly into kernel (CM7 kernel added CIFS+UTF-8 just 5 days ago, we had it for weeks). No more need for .ko files.
Fixed a minor mismatch bug in MMC driver
Revert back to my Old Interactive and OnDemand Governors
Adjusted CPU Voltage Tables again ONLY for LOW VOLTAGE versions.

Version 2.4.3: (deprecated)

Reverted Back to CM7 WiFi Driver to fix WiFi AP issue

Version 2.4.4: (deprecated)

Fixed bugs in Speaker Amp and G-Sensor drivers which prevents screen rotation under certain conditions found by user [MadWolf27] MAJOR PROPS to him!!!

Version 2.4.8: (deprecated)

Updated Headphone driver from HTC Thunderbolt kernel
Updated GPIO driver from HTC Thunderbolt kernel
Updated Battery Driver from HTC Thunderbolt kernel
Updated LED Driver from HTC Thunderbolt kernel
Updated Power Driver from HTC Thunderbolt kernel
Updated SPI Master Driver from HTC Thunderbolt kernel
Updated MMC/SD Driver from HTC Thunderbolt kernel
Updated USB Dock Driver from HTC Thunderbolt kernel
Applied CodeAuroraForum (CAF) Wake_Lock patches to new 2D/3D drivers to improve power management when Video is waiting for I/O to complete (save more JUICE!!!!)
Adjusted CPU Freq Table changed 536 MHz to 576 Mhz from using PLL_2 to PLL_3 (PLL2 reserved exclusively for OC)
Adjusted Smartass Governor's Max_Sleep_Freq to reflect CPU Freq Table change 536->576MHz
Fixed a couple issues in WiFi driver
Removed All Debugging code [boost performance]
BFS scheduler is BACK! [Enthusiast Versions]
Compiled with newer toolchain from 4.4.0 to 4.4.3 [more optimizations = better performance]

Version 2.5.0: (deprecated)

Patched Core Linux Version from .36 to .38
Patched BFS version from 3.3.0 to 3.6.3 (latest stable release of BFS)
Fixed minor Bluetooth driver error
Fixed minor Touch Screen driver error related to wireless charging update from before
Fixed minor issues in Camera Drivers (front and back)
Fixed minor issues in LED drivers
Fixed minor issue in Voice Processor Driver
Removed unnecessary / unused drivers

Version 2.5.1: (deprecated)

Updated PPP network driver (used by VPN)
Updated WiFi driver related to Address Resolution Protocol (ARP) offloading
Updated with Zinx's latest Video Frame Buffer Fix specifically for Glacier (should fix video playing while screen is off, hard lockup issue)

Version 2.5.2: (Long Term Stable Release For GB 2.3.3 ROMs)

The File ==> CM Kernel 2.5.2 CFS Low Voltage #137 <==
The File ==> CM Kernel 2.5.2 CFS Stock Voltage #138 <==
The File ==> CM Kernel 2.5.2 BFS Low Voltage #135 <==
The File ==> CM Kernel 2.5.2 BFS Stock Voltage #136 <==

Updated Core Kernel from .38 to .39
Updated the Light Sensor Value from Zinx

Version 2.6.1: (deprecated, AOSP 2.3.4)

Updated WiFi Driver with latest CM7 patches
Updated USB Driver with latest CM7 patches
Updated MDP (video) Driver with latest CM7 patches
Added USB Accessories Support for AOSP 2.3.4_r1

Version 2.6.3: (deprecated, AOSP 2.3.4)

Added Native GB HTC Kineto_Gan Support directly via kineto_gan.ko
Removed CM7's gan_eth Froyo WiFi Calling Hack

Version 2.6.5: (deprecated, AOSP 2.3.4)

Patched core kernel to .40 from .39
Re-adjusted Voltage table based on HTC's 2.6.35 kernel source for LV and SV
Adjusted SmartAss Governor Ramp Up/Down steps
Default Speed now set at 1.2 GHz
Applied USB Battery Drain patch
Removed more unnecessary drivers

Version 2.6.6: (Current, AOSP 2.3.4)

Revert SmartAss Tweaks back to 2.6.3
Revert AudioDSP drivers back to 2.6.3
Default Speed now set at 1.1 GHz

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!!!

Follow me on :

If you find this Kernel useful, feel free to hit the [Thanks] button below
How to report Kernel Bugs!
Newest GeekTalk
Fight against Trolls, up vote my threads back to normal (1 star was due to trolling) Thanks!
FauxClock FAQ
The Following 41 Users Say Thank You to faux123 For This Useful Post: [ Click to Expand ]
 
faux123
Old
#3  
faux123's Avatar
Senior Member - OP
Thanks Meter 33645
Posts: 8,451
Join Date: Dec 2010
Location: West Los Angeles

 
DONATE TO ME
Reserved 2 Just in case
How to report Kernel Bugs!
Newest GeekTalk
Fight against Trolls, up vote my threads back to normal (1 star was due to trolling) Thanks!
FauxClock FAQ
The Following 10 Users Say Thank You to faux123 For This Useful Post: [ Click to Expand ]
 
verysick
Old
#4  
verysick's Avatar
Senior Member
Thanks Meter 20
Posts: 202
Join Date: Jan 2011

 
DONATE TO ME
Downloading...

Sent from my HTC Glacier using XDA App
 
verysick
Old
#5  
verysick's Avatar
Senior Member
Thanks Meter 20
Posts: 202
Join Date: Jan 2011

 
DONATE TO ME
163 kb???

Sent from my HTC Glacier using XDA App
 
epsix
Old
#6  
epsix's Avatar
Senior Member
Thanks Meter 240
Posts: 1,777
Join Date: Aug 2010

 
DONATE TO ME
Quote:
Originally Posted by verysick View Post
163 kb???

Sent from my HTC Glacier using XDA App

Your download is corrupt re dl it the file should be over 3 MB
Sent from my HTC Glacier using XDA App
 
notxel21
Old
#7  
notxel21's Avatar
Senior Member
Thanks Meter 100
Posts: 1,266
Join Date: Dec 2008
Location: Jacksonville
Quote:
Originally Posted by verysick View Post
163 kb???

Sent from my HTC Glacier using XDA App
The file is 3.4 MB. Try downloading again.

Notxel21
Phone: T-Mobile Samsung Galaxy Note3//& GSM LG Nexus 5!!& T-Mobile HTC One M8 (With Root) Oppo Find 7a
RoM:CyanogenMod_11.x & TrickDroid Latest!!??DarthStalker
Unknown # of Apps, ?mb Free!!!
Firmware:4.4 KitKat!
Dropbox Why aren't you using this?
Follow me on Twitter
MT4G ICE-GLACIER ROM Click Here!
Donate
if you like
The Following User Says Thank You to notxel21 For This Useful Post: [ Click to Expand ]
 
bmach
Old
#8  
Junior Member
Thanks Meter 0
Posts: 9
Join Date: Jul 2007
Everything looking good, thanks.
 
feliciepr7
Old
#9  
Senior Member
Thanks Meter 0
Posts: 157
Join Date: Aug 2007
Location: Barceloneta
will try now
 
feliciepr7
Old
#10  
Senior Member
Thanks Meter 0
Posts: 157
Join Date: Aug 2007
Location: Barceloneta
Wow is seem more faster than before and Apps works fine.

Sent from my HTC Glacier using XDA App

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes