From overclocker to overclockers... LordMod kernel V5.5 CFS and V4.5.2 BFS
This is my first ever ROM and custom kernel for any device..
I tested it for a long time and I think that it's ready for the community..
I've only wanted to implement smartass because everybody (almost) wants it, but the project took me much further than I imagined.. I've lost 7 days on this so don't be harsh on commenting my work. I'm a BEGINNER in kernel building and ROM modding.
ROM is build from the latest commits of CM7
Kernel has been taken from “teamdesire” and modified a little to suit everybody!!
For those who care – Quadrant score is about 3400 on 1800MHz PERFOMANCE mod I use BFQhs (ATM) PUV edition @ 122/1380MHz 24/7
Decided to update only the kernel... because ROM is basicaly CM7 nightly...
I'll include kernel update.zip with and without SD Card Read speed increase patch!
KERNEL (for CM7 only, apparently works great for MIUI):
Kali-'s kernel 2.6.32.28
Battery drain fix included - by teamdesire (allready implemented in CM7)
Chose default I/O scheduler
New Adreno 205 drivers like in nightly kernels
Kernel patched to 2.6.32.41
SMARTASS governor added and tweaked
CPU freq table totaly rewriten with lower voltages
OC up to 1990 MHz, min 122 MHz – DON'T GO OVER 1800MHz EXCEPT FOR SHOWOFF AT THE BAR I AM IN NO WAY RESPONSABLE FOR DHD SMOKING!!!
Patched libsqlite.so to disable db loops – thanx to ownhere
Under volt editions, UUV edition might not work for all.. use -25mV edition
Tiny RCU subsystem, Bloatware edition
Low level memory tweaks and fixes
Fixed some bugs regarding sleep/awake for video driver
Fixed first boot Wlan crash
Implemented 2 way recording patch by avs333 and skvalex - thread - only kernel 4.4.1 and now 5.1
Removed some debugging and statistic logging
GPU+ patch for better 2D and 3D perfomance (thanx -snq)
Disabled write cache support to enhance SD write speed
Updated drivers from HTC Saga and HTC Vivo - All glory and credits go to James Zdziebkowski for porting drivers
[*]Tweaked Interacive and Ondemand governor[*]Added patches and fixes from latest CM7 kernel regarding Wlan chip, USB...[*]Added USB accessory gadget support - patch from newest CM7 kernel[*]Tweaks for video driver - patch from CM7 kernel (modified by me for Saga driver)[*]Hopefully compatible with all AOSP ROMS for DHD - CM7 all bases, MIUI, UltimateDroid...[*]Implemented USB thetering support - by James Zdziebkowski
"How to" for CM7 users:
Do a nandroid backup
Download desired zip from below
Copy to SD card
Go into recovery
Wipe cache partition
Wipe Dalvik cache
Flash from zip
Use 5.6 CFS or 4.5.2 BFS V400!
BEFORE flashing set your MIN freq to 230 or disable Set On Boot in Cyanogen Perfomance Menu!!!
V5.0 replaces some system libs for the video to work, so please do a BACKUP before flash if you want to return to other kernel!! - Use this if you want to restore to default libs, and than without restart flash kernel older than 4.5.2 - zip, older than 4.6 - zip
Scheduler flavours: BFQ I/O, BFQ I/O with hierarchical schedulling (only CFS), V(R) I/O
BFQhs V5.6 - CFS zip
VIO V5.6 - CFS zip
-25mV zip
-50mV zip
UUV zip
PUV zip - This is heavely UV even for UUV edition.. going from min 775mV trough all the freq range. If UUV worked for you, you must test this It's working fine for me 122/1380MHZ 24/7
Restore defaults zip
Restore defaults SCRIPT
If you want SD card speed patch, put this file into /etc/init.d folder and give it executable perrmision. It can corrupt your SD data! CAUTION - BACKUP
V5.5:
BFQhs V5.5 - CFS zip
VIO V5.5 - CFS zip
V5.1:
BFQhs V5.1 - CFS zip
VIO V5.1 - CFS zip
V5.0:
BFQhs V5.0 - CFS
VIO V5.0 - zip
V4.6:
BFQhs - CFS
VIO - CFS
V4.5.2:
BFQ - BFS
BFQhs - CFS
VIO - CFS - BFS
V4.4.1:
BFQ - BFS
BFQhs - CFS
V4.4:
BFQ - BFS
BFQhs - CFS
VIO - CFS - BFS
V4.3:
BFQ - CFS - BFS reuploaded
BFQhs - CFS
SIO - CFS - BFS
VIO - CFS - BFS
KERNEL V4.2 CFS - MIRROR MU
KERNEL V4.2 BFS - MIRROR MU UV editions 4.2 CFS and BFS:
Ultra Under Volt CFS - BFS
Under Volt -25mV CFS - BFS
Under Volt -50mV CFS - BFS
Pinky Under Volt CFS - BFS - REUPLOADED - This is heavely UV even for UUV edition.. going from min 750mV trough all the freq range. If UUV worked for you, you must test this It's working fine for me 122/1380MHZ 24/7
KERNEL V4.0 CFS - MIRROR MU
KERNEL V4.1 BFS - MIRROR MU
UV editions 4.0 CFS an 4.1 BFS:
Ultra Under Volt CFS - BFS
Under Volt -25mV CFS - BFS
Under Volt -50mV CFS - BFS
KERNEL V4.0 BFS - MIRROR MU
UV for 4.0 BFS:
Ultra Under Volt BFS
Under Volt -25mV BFS
KERNEL V3.1.3 BFS - MIRROR RS, MIRROR MU
KERNEL V3.0.3 CFS - MIRROR RS, MIRROR MU
UV editions 3.X.3:
Ultra Under Volt BFS and CFS
Under Volt -25mV BFS and CFS
KERNEL V3.1 BFS - MIRROR RS, MIRROR MU
KERNEL V3.0 CFS - MIRROR RS
KERNEL V2.1.1 noBFS VDD sqlite – MIRROR RS
KERNEL V2.1.1 BFS VDD sqlite – MIRROR RS
KERNEL V2.1 noBFS VDD - MIRROR RS
KERNEL V2.1 BFS VDD – MIRROR RS
KERNEL V2.0 - MIRROR RS
KERNEL V1.2.2 (without SD patch) only .zip (Hope it works ) - MIRROR RS
KERNEL V1.2.2_SDfix (kernel with script to increase SD card reading speed) - MIRROR RS
I hope I implemented it right!
KERNEL V1.1 - MIRROR RS
KERNEL V1.0 - MIRROR RS
To have this kernel on MIUI, follow these simple steps from htctouchelfin!
AGAIN - don't FORGET to do a nandroid backup prior to flashing!
No need for screen shots, because everybody knows how CM7 looks like.
Governors for NOOBS:
interactive - Instead of sampling the cpu at a specified rate, the governor will scale the cpu frequency up when coming out of idle. When the cpu comes out of idle, a timer is configured to fire within 1-2 ticks. If the cpu is 100% busy from exiting idle to when the timer fires then we assume the cpu is underpowered and ramp to MAX speed.
smartass - Is an improved version of interactive governor
ondemand – Available in most kernels, and the default governor in most kernels. When the CPU load reaches a certain point (see “up threshold” in Advanced Settings), ondemand will rapidly scale the CPU up to meet demand, then gradually scale the CPU down when it isn't needed.
conservative – Available in some kernels. It is similar to the ondemand governor, but will scale the CPU up more gradually to better fit demand. Conservative provides a less responsive experience than ondemand, but can save battery.
performance – Available in most kernels. It will keep the CPU running at the “max” set value at all times. This is a bit more efficient than simply setting “max” and “min” to the same value and using ondemand because the system will not waste resources scanning for CPU load.
powersave – Available in some kernels. It will keep the CPU running at the “min” set value at all times.
userspace – A method for controlling the CPU speed that isn't currently used by SetCPU. For best results, do not use the userspace governor.
History:
Code:
29-05-2011 V5.6 LorDmod kernel
Kernel patched to 2.6.32.41
11-05-2011 V5.5 LorDmod kernel
Implemented USB thetering support
Kernel patched to 2.6.32.40
Tweaked conservative and interactive governors a little
09-05-2011 V5.1 LorDmod kernel - Hopefully fixed for all AOSP ROM versions
Changed the update script (AnyKernel.zip + Apache14) to suite all AOSP roms
LOTS of fixes and cleanups for building and similar
06-05-2011 V5.0 LorDmod kernel - builded with boot.img from nightly 64+
Added 2 way recording patch to kernel based on V4.5.2 (V4.6) - all compliments go to avs333
01-05-2011 V4.6 LorDmod kernel - ONLY later kangs than nightly 57!!!
Tweaked Interacive and Ondemand governor
Added patches and fixes from latest CM7 kernel regarding Wlan chip, USB...
Added USB accessory gadget support - patch from newest CM7 kernel
Tweaks for video driver - patch from CM7 kernel (modified by me for Saga driver)
28-04-2011 V4.5.2 LorDmod kernel VR46 edition
Updated audio driver from HTC Vivo
Updated Adreno 205 drivers from HTC Saga
Updated aic3254 driver from HTC Saga
Updated panel driver from HTC Saga
Updated tpa2051d3 (audio subsystem) driver from HTC Saga
Removed 2 way voice recording - use kernel 4.4.1 for that
27-04-2011 V4.4.1 LorDmod kernel Ass edition
Disabled write cache support to enhance SD write speed
Remove SEGFAULT limit
Tweaked smartass governor for smooooth transitions :)
Reorganized kernel nameing by adding different I/O schedulers for CFS and BFS kernels at normal voltages
Added scripts to flash via CWM for UV - feel free to modify the scripts as you like for voltage - thanx gokhanmoral
Min default frequency set to 230 for stability, feel free to chose 122 after the update
22-04-2011 V4.2 LorDmod kernel
Removed Simple I/O scheduler and added V(R) I/O scheduler as default
Removed all other schedulers from compiling and hoping to clean out a kernel a little
Add last driver update regarding sleep/awake fix from Cyanogenmod's kernel from N#42
Added Pinky Ultra Voltage edition - thanx goes to jpinky (beta tester)
Lowered MIN voltage to 700mV for VDD users
20-04-2011 V4.0 and 4.1 LorDmod kernel
Added -50mV kernel for people that UUV isn't stable and 25UV is stable to test
18-04-2011 V4.1 LorDmod kernel (BFS only update)
Updated BFS to the latest V400 from 2.6.38 kernel (I've modified the patch to fit :) )
17-04-2011 V4.0 LorDmod kernel
Patched kernel to .38
Added Tiny RCU subsystem, Bloatware edition and set as default
Added Simple I/O scheduler and set as default (no more BFQ scheduler)
Lowmemory tweaks and fixes (by cyanogen)
17-04-2011 V3.X.3 LorDmod kernel
Added Under voltage editions
CFS or BFS, the choice is yours
15-04-2011 V3.X.3 LorDmod kernel
BFS updated to v363
Both version got more tweaked smartass gov for speed and response
Updated script for Wlan module, hopefully fixing Wlan in MIUI (test please)
11-04-2011 V3.1 LorDmod kernel
Added BFS CPU scheduler V330
10-04-2011 V3.0 LorDmod kernel
Kernel taken from different source with better primary patches (from Kali-)
Now has new Adreno 205 drivers included like kernel from nightlies (fast as hell)
Remodded from the beginning so it can be set up on my git
Patched to version 2.6.32.36 so you all stop bugging me ;)
08-04-2011 V2.1.1 kernel and CyanogenLordMod ROM 2.0
Added patched libsqlite.so (test in TAP benchmark before/after to kernel (will be from now on in every kernel)) and ROM (quite numerous updates for this nightly)
Yes, again new CPU table (don't use 122mhz (slightly upped 122 voltage, maybe will be better) if it's unstable, or 1990MHz)
Added BFS CPU scheduler (Brain **** Scheduler)
Lowered GPU memory allocation.. maybe this fixes some issues
No more SD Card Read patch kernel
05-04-2011 V1.2.2 kernel
Again totaly revorked cpufreq and smartass tracking
Lowest screen off freq 122MHz with big UV for battery saving
Min 2mA screenoff with mobile data set to ON
04-04-2011 V1.1 kernel only
Totally Revorked freq table for smoother scalability
Tweaks to smartass governor
Allocated more memory to GPU
Volume boost to 20% and some other volume tweaks (thanks LeeDroid)
03-04-2011 V1.0 Initial release
Finaly only 1 screenshot (1920MHz Perfomance gov LorDmod V3.1.3 BFS)
Special thanks goes to DOALaboratories and teamdesire (all of them)!!
Thanks goes to hrkfdn and BuzzBumbleBee and Leedroid for their kernel sources on the git!
After reading about Dan Rosenberg’s bootloader exploit for the Samsung Galaxy S 4,I … more
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?