[Desire HD Android Development] LorD ClockaN:
​

Hi guys... and gals!!!

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

Volume boost 20%

SLQB slab memory allocator added

CFS (4.5.2) or BFS v400 (4.5.2) - difference for noobs

VDD user interface - usage

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 :cool: 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 :cool: 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

:

29-05-2011 V5.6 LorDmod kernel
[LIST]
[*]Kernel patched to 2.6.32.41
[/LIST]
11-05-2011 V5.5 LorDmod kernel
[LIST]
[*]Implemented USB thetering support
[*]Kernel patched to 2.6.32.40
[*]Tweaked conservative and interactive governors a little
[/LIST]
09-05-2011 V5.1 LorDmod kernel - Hopefully fixed for all AOSP ROM versions
[LIST]
[*]Changed the update script (AnyKernel.zip + Apache14) to suite all AOSP roms
[*]LOTS of fixes and cleanups for building and similar
[/LIST]
06-05-2011 V5.0 LorDmod kernel - builded with boot.img from nightly 64+
[LIST]
[*]Added 2 way recording patch to kernel based on V4.5.2 (V4.6) - all compliments go to avs333
[/LIST]
01-05-2011 V4.6 LorDmod kernel - ONLY later kangs than nightly 57!!!
[LIST]
[*]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)
[/LIST]
28-04-2011 V4.5.2 LorDmod kernel VR46 edition
[LIST]
[*]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
[/LIST]
27-04-2011 V4.4.1 LorDmod kernel Ass edition
[LIST]
[*]Disabled write cache support to enhance SD write speed
[*]Remove SEGFAULT limit
[*]Tweaked smartass governor for smooooth transitions :)
[/LIST]
25-04-2011 V4.4 LorDmod kernel Starvin Marvin edition
[LIST]
[*]Kernel patched to 2.6.32.39
[*]GPU+ patch to improve 2D and 3D (thanx to -snq)
[*]Removed some kernel debugging and statistic logging
[*]Implemented 2 way recording patch from avs333 and skvalex - [URL="http://xdaforums.com/showthread.php?t=1048182"]thread[/URL]
[*]Hopefully fixed Wlan on first boot (thanx MDJ)
[/LIST]
23-04-2011 V4.3 LorDmod kernel Eastern Bunny edition
[LIST]
[*]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
[/LIST]
22-04-2011 V4.2 LorDmod kernel
[LIST]
[*]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
[/LIST]
20-04-2011 V4.0 and 4.1 LorDmod kernel
[LIST]
[*]Added -50mV kernel for people that UUV isn't stable and 25UV is stable to test
[/LIST]
18-04-2011 V4.1 LorDmod kernel (BFS only update)
[LIST]
[*]Updated BFS to the latest V400 from 2.6.38 kernel (I've modified the patch to fit :) )
[/LIST]
17-04-2011 V4.0 LorDmod kernel
[LIST]
[*]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)
[/LIST]
17-04-2011 V3.X.3 LorDmod kernel
[LIST]
[*]Added Under voltage editions
[*]CFS or BFS, the choice is yours
[/LIST]
15-04-2011 V3.X.3 LorDmod kernel
[LIST]
[*]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)
[/LIST]
11-04-2011 V3.1 LorDmod kernel
[LIST]
[*]Added BFS CPU scheduler V330
[/LIST]
10-04-2011 V3.0 LorDmod kernel
[LIST]
[*]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 [URL="https://github.com/LorDClockaN/htc-kernel-msm7x30"]git[/URL]
[*]Patched to version 2.6.32.36 so you all stop bugging me ;)
[/LIST]
08-04-2011 V2.1.1 kernel and CyanogenLordMod ROM 2.0
[LIST]
[*]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)
[/LIST]
08-04-2011 V2.1 kernel
[LIST]
[*]Added VDD user interface - [URL="http://xdaforums.com/showthread.php?t=821372"]usage[/URL]
[*]BFS and noBFS version
[/LIST]
07-04-2011 V2.0 kernel
[LIST]
[*]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
[/LIST]
05-04-2011 V1.2.2 kernel
[LIST]
[*]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
[/LIST]
04-04-2011 V1.1 kernel only
[LIST]
[*]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)
[/LIST]
03-04-2011 V1.0 Initial release

Finaly only 1 screenshot :cool: (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!​

git

DONATIONS so far: Walker Street, alexmason14, McGyver85, danalive, justaguy84, ...