[HD2 Android SD Development] 3dak:
.:::.About the kernel

I compiled this kernel just for myself MIUI gingerbread SD/MAG ROM, supports SD boot from both WM and Mag.So I don't know if using on other SD ROM will be OK or not.Some friends ask me to share it ,but use this kernel at your risk.

This kernel's Source codes are based on hastarin r8.6 and ACA r612 source codes. (Credits to Hastarin and warrenb123 ) ,

Eventually , I figured out how to use git. Refer to 3dak git repository updates for source codes changes:

GIT repository 1. 3dak-linux_on_wince_htc new revision# will be 3dak_r3.xx , will not jump major revision# r3 any more.

Using HS UART driver, no BT battery drain issue but maybe poor compatibility for some BT devices.

GIT repository 2. 3dak-linux_on_wince_htc_bcm new revision# will be 3dak_r2.xx , will not jump major revision# r2 any more.

Using BCM driver, maybe has BT battery drain issue but GOOD compatibility for most BT devices.so if you BT device is not OK for r3.xx , try this r2.xx verision.

From now on (Rx.8) every repository has two branches, one is master ,another is Sense , the difference is

-Master branch keeps existing hastarin r8.6 GPU driver

-Sense branch uses HTC official 2.6.35 GPU driver, this branch is only used for Sense 3.x build ,don't use it on CM/AOSP/MIUI!or no camera preivew.You need correct HW+EGL+build.propfix (thanks boxmax)for sense build to ensure everything is ok.

Features:

SLQB as default Memory Allocator

EB. OC,exOC. up to 1.5Ghz,

default IO Scheduler:CFQ / BFQ

...

all others refer to GIT commit lists or change logs.

.:::.Change Logs

Kernel 3dak_Rx.9 (r3.9& r2.9 ) Changes
-GPU driver: fixed color banding issue (Credits to marc1706)
-added CPUfreq governor:smartassV2
-disable 2WCREC to avoid speaker sizz issue.

Kernel 3dak_Rx.8 (r3.8& r2.8 ) Changes
-both repositories are added SENSE branch
-Master branch keeps existing hastarin r8.6 GPU driver
-Sense branch uses HTC official 2.6.35 GPU driver
-Added ALSA sound driver (Credits to Cotulla & Tytung), and changed qdsp6 driver to QDSP6_1550 for ALSA sound driver.
-Default IO Scheduler:R3.x is BFQ, R2.x is CFQ.

Kernel 3dak_Rx.7 (r3.7& r2.7 ) Changes
-LED Notifications issue fixed.
-ExOC is not set now. now max. oc freq is 1190400

Kernel 3dak_Rx.6 (r3.6& r2.6 ) Change:
-Changed GPU driver to old version(same as Hastarin r8.6) because 2.6.35 driver has got camera preview issue.

Kernel 3dak_Rx.5 (r3.5& r2.5 ) Changes
-GPU driver udpated to HTC official kernel Bravo 2.6.35 driver & some speed tweak. faster than Rx.4.
-Added in BFQ IO Scheduler driver.
-3dak_r3.x : default IO scheduler is BFQ. meanwhile,I provide a CFQ dirty version.
-3dak_r2.x: default IO scheduler is CFQ. BFQ is not stalbe on this branch.

Kernel 3dak_Rx.4 (r3.4& r2.4 ) Changes
-Added SLQB Memory Allocator.
-Changed default Memory Allocator to SLQB from SLUB
-GPU driver optimized, and other tiny changes.
-No camera flashlight issue fixed (for R3.x only)
P.S. it is CFQ IO scheduler.

Kernel 3dak_Rx.3 (r3.3& r2.3 ) Changes
-Memory Optimized for sense build. Meomory Allocator changed to SLUB from SLAB
-CPU OC, default is interactive, Ondemand default min. 128Mhz, Max. 1.45Ghz
-kernel package:added in demanded files and some init.d scripts such as mic_level, cpuoc, undervolt, module load etc.

Kernel 3dak_Rx.2 (r3.2& r2.2) Changes:
- Compile options optimized and GPU Driver tweak for resloving laggy issue on sense build.
- added CONFIG_USB_ANDROID_RNDIS_WCEIS (Windows Internet Sharing Class/SubClass/Protocol)
- updated HTC Battery dirver, eb supported
- ppp drivers updated
- added HTC official Kineto Gan driver for WIF calling and loaded as a module.
- other stuffs maybe I forgot.

Kernel 3dak_Rx.1 (r3.1& r2.1) Changes:
- USB: gadget: android: check for null _android_dev in android_register_function() (Credits tolockwood@android.com)
-Upgraded camera clock
-Cpufreq: fix memory leak in cpufreq_add_dev (Credits to Xiaotian Feng)
-Drivers/media/video/msm: cleanups (Credits to snq )
-Added compiler optimizations (Credits to jan-willem3)

Kernel 3dak_r3 Changes:
Changed the BT driver to high speed uart driver from BCM driver.Finally fixed BT 60mA battery drain issue on SD/MAG ROM(confirmed on my MIUI Gingerbread SD/MAG ROM).

Kernel 3dak_r2 Changes:
Kernel 3dak_Rx.2 Changes
- Compile options optimized and GPU Driver tweak for resloving laggy issue on sense build.
- added CONFIG_USB_ANDROID_RNDIS_WCEIS (Windows Internet Sharing Class/SubClass/Protocol)
- updated HTC Battery dirver, eb supported
- ppp drivers updated
- added HTC official Kineto Gan driver for WIF calling and loaded as a module.
- other stuffs maybe I forgot.

-htcleo: wifi: Load the real MAC address from SPL if running SD build on WM.(Credits to Tytung savan)
-added HTC Auto White Balance Calibration
-htcleo: audio: add proc file interface /proc/mic_level and fix mic gain (Credits to mdebeljuh and jdivic)
Usage: echo 'device_id level' > /proc/mic_level
Level range: 0-1000; -1 use level from acdb
Current levels (device_id):
HANDSET (0): -1
SPKR_PHONE (1): -1
HEADSET (2): -1
TTY_HEADSET (3): -1
BT_SCO (4): -1
-usb: gadget: Add RNDIS (Remote Network Driver Interface Specification) for supporting native USB Tethering.

Kernel 3dak_r1 :

-Initial release.I compiled this kernel just for myself MIUI SD/MAG ROM, supports SD boot from both WM and Mag.So don't know if using on other SD ROM will be OK or not.Use this kernel at your risk.
-added wakeup lag fix for AUO panels. (credits to mdebeljuh and jdivic)
-This kernel's Source codes are based on hastarin r8.6 and ACA r612 source codes. (Credits to Hastarin and warrenb123 ) , I don't know how to use git, so no git repository update.

If you use this kernel in Gingerbread 2.3.3 and the earlier versions, and find WIFI DHCP issue,it is because of initrd.gz or rootfs.img file. not caused by kernel.

Pls check your initrd.gz or rootfs.img , search the DHCP service codes "service dhcpcd" in file /init.htcleo.rc or /init.rc or /init.leo.rc ... depending on your ROMs

For Gingerbread 2.3.4+ ,please use

service [COLOR="red"]dhcpcd_eth0[/COLOR] /system/bin/dhcpcd -ABKL

For Gingerbread 2.3.3 or earlier versions, please use:

service [COLOR="Red"]dhcpcd[/COLOR] /system/bin/dhcpcd -ABKL

P.S. If your wifi has problem ,You need CORRECT /system/bin/wpa_supplicant , for gingerbread 2.3.4+, refer to here if you use old one for gb2.3.4+, will be no wifi.

.:::. how to displace my MIUI SD ROM's (or yours) kernel with the latest one?

(Jut FYI, change ROM folder and update path per your ROM)

1. copy the zImage to folder: <sdcard root>\MIUIROM (or your SD ROM master folder)

2.copy the whole "root" folder in the compressed file to folder:

<sdcard root>\MIUIROM\MIUI_update\ (or your SD ROM update folder, setting by init file in initrd.gz or rootfs.img )

3.then reboot. (so far OK for my kernel's version update, no need to reboot again)

4. Sometimes need to reboot again. (If yur rom is other kernel before, please do this to ensure all kernel modules loaded are correct.)

.:::.Downloads

Kernel 3dak_R3.9 [BFQ]: [Master Version:] Download [Sense Version:] Download

Kernel 3dak_R2.9 [CFQ]: [Master Version:] Download [Sense Version:] Download

from now on, only provide Multiupload and drop dbank (100MB limitation ****) and mediafire (can not upload any more)

if you like my work, just need u press "THANKS" button enough :)

.:::.Old Versions

Kernel 3dak_R3.8: [Master Version]: Dbank Mediafire [Sense Version]: Dbank Mediafire

Kernel 3dak_R2.8: [Master Version]: Dbank Mediafire [Sense Version]: Dbank Mediafire

Kernel 3dak_r3.7 BFQ-version: Mediafire dbank CFQ-version: mediafire dbank

Kernel 3dak_r2.7 BFQ-version:NA CFQ-version: mediafire dbank

Kernel 3dak_r3.6 BFQ-version: Mediafire Dbank CFQ-version: Mediafire Dbank

Kernel 3dak_r2.6 BFQ-version:NA CFQ-version: Mediafire Dbank

Kernel 3dak_r3.5 BFQ-version:Mediafire Dbank CFQ-verison:Mediafire Dbank

Kernel 3dak_r2.5 BFQ-version:N/A CFQ-verison:Mediafire Dbank

BFQ is quite nice than CFQ on MIUI build :) Refer to new scores: BFQ vs. CFQ

Kernel 3dak_r3.4 Mediafire Dbank

Kernel 3dak_r2.4 Mediafire Dbank

Kernel 3dak_r3.3 : Mediafire Dbank

Kernel 3dak_r2.3 : Mediafire Dbank

Kernel 3dak_r3.2 : mediafire dbank

Kernel 3dak_r2.2 : mediafire dbank

Kernel 3dak_r3.1 : mediafire dbank

Kernel 3dak_r2.1 : mediafire dbank

Kernel 3dak_r3 : mediafire dbank

Kernel 3dak_r2 : mediafire dbank

Kernel 3dak_r1 : mediafire dbank

build config, refer to attachment. Since Revision Rx.xx, I put build config in the released .7z file.

-----------------

Useful links for Linux kernel and its features:

[Sourcery G++ Lite][BFS][SLQB][BFQ] [TinyRCU]