[Nov. 8, 2012] (Kernel 2.6.32) tytung_gb_r16 (for Froyo and Gingerbread)

Status
Not open for further replies.
Search This thread

tytung

Senior Member
Jun 21, 2010
3,574
15,005
sites.google.com
My kernels are based on Hastarin's r8.6 SD kernel sources which are based on Markinus' EVO kernel sources.
  • I have modified them to be compatible with NAND ROMs and added a lot of new useful features since January 2011.
  • I mainly developed and tested them on my NexusHD2-Gingerbread and NexusHD2-Froyo ROMs.
  • If any feature doesn't work for other ROMs, I won't fix it.
My git repository: https://github.com/tytung/android_kernel_htcleo-2.6.32-ics/tree/gingerbread
  • The source code is released under the GNU General Public License version 2 (GPLv2).
  • So you must release your modified source code (it's better to use git for sharing purpose) if you would like to release a modified kernel based on my source code.

Primary features:

Credits: Markinus, Cotulla, TYTung, Hastarin, NetRipper, Dcordes, Letama, Rajko, Dan1j3l, Cedesmith, Arne, Trilu, Charansingh, Mdebeljuh, Jdivic, Avs333, Snq-, Savan, Drizztje, Marc1706, Franck78, Rick_1995, other devs, and testers.


Downloads:

Mod edit: Links removed


Issues:
  • WiFi issue:
    If you flash my kernel in Gingerbread 2.3.3 and the earlier versions, you will have DHCP issue when using WiFi. (i.e. Cannot connect to a wireless router and get an IP successfully.)
    This issue is related to Gingerbread's initrd.gz, not the kernel (i.e. zImage).
    Gingerbread 2.3.4+ must use the following setting in /init.htcleo.rc or /init.leo.rc or ... depending on your ROMs.
    Code:
    service [B][COLOR="Red"]dhcpcd_eth0[/COLOR][/B] /system/bin/dhcpcd -ABKL
    Gingerbread 2.3.3 must use the following setting.
    Code:
    service [B][COLOR="red"]dhcpcd[/COLOR][/B] /system/bin/dhcpcd -ABKL
  • Sound issue:
    If you feel that the maximum sound volume is still not high enough so that you cannot hear the sound (e.g. call, ringtone, alarm, etc.) clearly or your caller complain your in-call voice is a little low.
    The candidate solutions are as follows:
    • Go to a quiet place. :p
    • Go to see a doctor. :p
    • Modify the mic gain value by editing /system/etc/init.d/10mic_level (reboot to take effect or execute the below command manually).
      Content of 10mic_level: (You may need to enlarge the values below.)
      Code:
      #!/system/bin/sh
      echo '0 400' > /proc/mic_level
      echo '1 600' > /proc/mic_level
    • Install HD2 Mic Control (GUI for 10mic_level) or Volume+. :)


Installation for NexusHD2 ROMs:
  • Place your downloaded file in the SD card.
  • Enter CWM (ClockworkMod) Recovery
    • MAGLDR 1.13: Hold "Power" button during boot to enter MAGLDR, and then select "AD Recovery" or "Boot AD SD" (if ever copied CWM's initrd.gz and zImage to SD) to enter CMW.
    • cLK 1.4.0.1: Hold "Home" button during boot to enter CMW.
  • Choose install zip from sdcard and navigate to your downloaded file to finish the installation.
  • All done.


Installation for other ROMs:
  • For MAGLDR users, please delete initrd.gz from kernel_tytung_rX_update.zip before flashing it.
  • For cLK users, it's better to use initrd.gz from your ROMs for best compatibility. The steps are as follows.
    • Download kernel_tytung_rX_update.zip to get zImage and system folder.
    • Download and uncompress cLK_kernel_installer.zip to a temp folder, e.g. cLK_kernel_installer, and put zImage, system folder, and your ROM's initrd.gz to cLK_kernel_installer folder.
      • You can unpack boot.img of your cLK ROM to get initrd.gz.
      • Or download and unzip your MAGLDR ROM to get initrd.gz directly.
    • Plug your phone to your PC via USB cable.
    • Run cLK_kernel_installer.bat to install new kernel and the related stuff.
      Content of cLK_kernel_installer.bat:
      Code:
      adb remount
      adb shell rm /system/lib/modules/*
      adb push system /system/
      adb shell chown 0:2000 /system/bin/wpa_supplicant
      adb shell chmod 755 /system/bin/wpa_supplicant
      adb shell chown 0:2000 /system/etc/init.d/*
      adb shell chmod 750 /system/etc/init.d/*
      adb shell sync
      adb reboot bootloader
      
      fastboot -c "" -b 0x11800000 flash:raw boot zImage initrd.gz
      echo Press any key to reboot.
      echo Press any key to reboot.
      pause
      fastboot reboot
 
Last edited by a moderator:

tytung

Senior Member
Jun 21, 2010
3,574
15,005
sites.google.com
Changelog

Changelog:
  • Nov. 8, 2012: tytung_r16
    • Fixed broken USB Tethering in r15.
  • Nov. 8, 2012: tytung_r15
    • Merged r14 and r14_callrec.
    • Added InteractiveX governor.
    • Added Smartass2 governor.
    • Added Real WiFi and Bluetooth MAC addresses.
    • Added Fast charging.
    • And more.
  • Nov. 10, 2011: tytung_r14 (For new/desire camera libs and HTC extended battery.)
  • Nov. 5, 2011: tytung_r13 (For new/desire camera libs and HTC extended battery.)
    • Added HTC auto white balance calibration driver.
    • Added ALSA sound driver and compiled as kernel modules (alsa-pcm-htc-leo.ko and alsa-mix-htc-leo.ko). (Credits to Cotulla)
    • Included a branch r13_callrec which means the Two-way call recording is enabled. (It may cause the "No sound bug". Use at your own risk.)
  • Oct. 1, 2011: tytung_r12.4 package v3 (For new/desire camera libs and HTC extended battery.)
    • Based on r12
    • Fixed "No sound bug" (Disabled "call recording" in kernel config) (Thanks to drizztje who found the cause, ph03n!x who collected the related info and tested them, and all other testers.)
    • Enabled 128MHz CPU frequency support. (Default is 245~998 MHz)
    • Included Gpc's libaudio.so v2.8e in the kernel package again for remembering adjusted in-call volume and supporting mic gain fix.
    • Removed /system/etc/init.d/10mic_level when flashing.
    • Replaced default.acdb with letama's htcleo.acdb (113,910 bytes) (CRC: C3CDDB54) in the kernel package. (Thanks to kcfong2 who tested this new approach.)
  • Oct. 1, 2011: tytung_r12.4 package v1 (For new/desire camera libs and HTC extended battery.)
    • Based on r12
    • Fixed "No sound bug" (Disabled "call recording" in kernel config) (Thanks to drizztje who found the cause, ph03n!x who collected the related info and tested them, and all other testers.)
    • Enabled 128MHz CPU frequency support. (Default is 245~998 MHz)
    • Included Gpc's libaudio.so v2.8e in the kernel package again for remembering adjusted in-call volume and supporting mic gain fix.
    • Included Desire Gingerbread's stock default.acdb (129,346 bytes) (CRC: B0DCA53A) in the kernel package for fixing echo voice.
  • Sep. 30, 2011: tytung_r12.3 (For new/desire camera libs and HTC extended battery.)
    • Based on r12
    • Fixed "No sound bug" (Disabled "call recording" in kernel config) (Thanks to drizztje who found the fix, and ph03n!x who tested and collected the related info.)
    • Included Drizztje's libaudio.so v5 in the kernel package.
  • Sep. 12, 2011: tytung_r12 (For new/desire camera libs and HTC extended battery.) and tytung_r12_oldcam (For old/N1 camera libs and HTC extended battery.)
    • Added proc file interface /proc/mic_level to fix low speakerphone mic gain (Credits to mdebeljuh and jdivic)
    • Included /system/etc/init.d/10mic_level (Set to '0 400' for Handset and '1 600' for Speaker)
    • Removed support for specific htcleo.acdb file to improve the booting speed when htcleo.acdb is not present.
    • Loaded the real WiFi MAC address from SPL if running SD build on WinMo 6.5. (Not for MAGLDR and cLK bootloaders) (Credits: savan and tytung)
    • Added HTC official kineto_gan.ko kernel module for T-Mobile Wi-Fi Calling.
    • Included Gpc's libaudio.so v2.8e in the kernel package.
    • Included N1 Gingerbread's stock default.acdb (122,442 bytes) (CRC: 2A51EA54) in the kernel package. (It may cause echo voice.)
  • Aug. 22, 2011: tytung_r11 (For new/desire camera libs and HTC extended battery.) and tytung_r11_oldcam (For old/N1 camera libs and HTC extended battery.)
    • Used the same initrd.gz for MAGLDR and cLK (for Gingerbread 2.3.4 and above versions, otherwise no Wi-Fi.)
      (removed libhtc_ril_wrapper.so parameters from init.rc and added the required info to /system/default.prop if using cLK ROM)
    • Added RNDIS (Remote Network Driver Interface Specification) for supporting native USB Tethering.
    • Added wakeup lag fix for AUO panels. (Credits to mdebeljuh and jdivic)
    • Cleaned up during camera opening failure.
    • Changed unique WiFi address to IEEE Standards 00:23:76:XX:XX:XX for HTC. -- http://standards.ieee.org/cgi-bin/ouisearch?00-23-76
      (Caution: WiFi address has changed. Remember to update the white list of your wireless router if you ever enabled filtering feature.)
  • May 04, 2011: tytung_r10_oldcam (For old/N1 camera libs and HTC extended battery.)
    • Included my modified initrd.gz (removed libhtc_ril_wrapper.so in init.rc)
    • Added kineto_gan.ko module to support T-Mobile Wi-Fi Calling.
    • Fixed RIL on NAND boot in kernel, so we don't need ril wrapper library (libhtc_ril_wrapper.so) for MAGLDR anymore. (Only cLK needs ril wrapper library to support PPP.)
  • May 03, 2011: tytung_r10 (For new/desire camera libs and HTC extended battery.)
    • Included my modified initrd.gz (removed libhtc_ril_wrapper.so in init.rc and modified init.htcleo.rc to support Wi-Fi change in Gingerbread 2.3.4) (Don't use it in Gingerbread 2.3.3 and the earlier versions, otherwise no Wi-Fi.)
    • Added kineto_gan.ko module to support T-Mobile Wi-Fi Calling.
    • Fixed RIL on NAND boot in kernel, so we don't need ril wrapper library (libhtc_ril_wrapper.so) for MAGLDR anymore. (Only cLK needs ril wrapper library to support PPP.)
  • Apr. 12, 2011: tytung_r9 (For new/desire camera libs and HTC extended battery.) and tytung_r9_oldcam (For old/N1 camera libs and HTC extended battery.)
    • Supported two-way call recording. (Thanks to avs333, snq-, and skvalex.)
    • Supported unique Bluetooth MAC address.
    • Supported Bluetooth PAN (Personal Area Network) using android-wifi-tether. (Tested on v2.0.7)
    • Included my modified initrd.gz (modified init.htcleo.rc to support unique Bluetooth MAC address)
    • Added audio boost in another source file. (It seems to make the BT call quality clear than before.)
  • Mar. 27, 2011: tytung_r8.3 (For new/desire camera libs and HTC extended battery.) and tytung_r8.3_oldcam (For old/N1 camera libs and HTC extended battery.)
    • Updated Bluetooth stack.
    • Reverted all patches from the latest kernel 2.6.37 in r8 to make sure the video recording is stable.
  • Mar. 25, 2011: tytung_r8.2 (For new/desire camera libs and HTC extended battery.) and tytung_r8.2_oldcam (For old/N1 camera libs and HTC extended battery.)
    • Fixed Bluetooth 60mA battery drain (i.e. support Low Power Mode) (Big thanks to Trilu and Charansingh)
    • Included my modified initrd.gz (add --enable_lpm and mkdir /cache/recovery) for NexusHD2-Gingerbread (tytung_r8.2) and NexusHD2-Froyo (tytung_r8.2_oldcam).
  • Mar. 24, 2011: tytung_r8.1 (For new/desire camera libs and HTC extended battery.) and tytung_r8.1_oldcam (For old/N1 camera libs and HTC extended battery.)
    • Enabled universal TUN/TAP device driver support in the kernel to support opening a VPN connection.
    • Reverted some patches from the latest kernel 2.6.37 to fix video recording issue in r8. (See commit log for details.)
  • Mar. 23, 2011: tytung_r8 (For new/desire camera libs and HTC extended battery.) and tytung_r8_oldcam (For old/N1 camera libs and HTC extended battery.)
  • Mar. 12, 2011: tytung_r7 (For new/desire camera libs and HTC extended battery.) and tytung_r7_oldcam (For old/N1 camera libs and HTC extended battery.)
    • Added all the new commits from the "official" EVO kernel git repository. http://gitorious.org/linux-on-wince-htc/linux_on_wince_htc
    • Added cLK bootloader support. (Patch files from Cedesmith)
    • Added the official HTC extended battery support. (Integrated source code from Arne's Extended Kernel. All credit goes to him.)
    • Compiled RMNET (for 3G network) as a module. (Loaded it via /system/etc/init.rd/01_modules when booting)
    • Enabled ReiserFS file system support from the config file.
    • Improved the WiFi driver.
    • Fixed WiFi "When screen turns off" battery drain issue.
  • Feb. 23, 2011: tytung_r6 (For new/desire camera libs and HTC standard battery.) and tytung_r6_oldcam (For old/N1 camera libs, HTC standard battery and partly support HTC extended battery.)
    • Updated the WiFi driviers to AOSP version for supporting IEEE 802.1x/EAP authentication and fixing native WiFi Tethering.
    • Thanks to Charansingh's raiderx_htcleo AOSP kernel source.
    • Included Gingerbread's wpa_supplicant to match the latest AOSP WiFi drivier. (The oldcam kernel also works with NexusHD2-Froyo.)
  • Feb. 18, 2011: tytung_r5 (For new/desire camera libs and HTC standard battery.) and tytung_r5_oldcam (For old/N1 camera libs, HTC standard battery and partly support HTC extended battery.)
    • updated the LED related driviers to fix the LED Notification issue.
  • Feb. 16, 2011: tytung_r4 (For new/desire camera libs and HTC standard battery.)
  • Feb. 15, 2011: tytung_r4_oldcam (For old/N1 camera libs, HTC standard battery and partly support HTC extended battery.)
    • reverted the robot voice and frozen Phone app fix in r3 to solve the call quality issue (static sound).
    • You may need to enable Audible touch tones in Sound settings to avoid the frozen Phone app when dialing.
  • Feb. 13, 2011: tytung_r3_oldcam (For old/N1 camera libs, HTC standard battery and partly support HTC extended battery.)
  • Jan. 29, 2011: tytung_r2_eb (For new/desire camera libs and HTC extended battery.) (No HTC extended battery to test, please confirm its working or not.) (Not working)
    • based on hastarin's r8.6 eb branch
    • added normal RMNET driver
    • added unique Wi-Fi MAC address
    • supported CIFS UTF-8, Yaffs, Ext3, and Ext4 file system using modified build config.
    • added some commits from the "official" git (Please see my git repository for detail.)
    • added audio boost (With this you'll have large range of volume but may have worse sound quality.)
  • Jan. 29, 2011: tytung_r2 (For new/desire camera libs and HTC standard battery.)
    • based on hastarin's r8.6 master
    • added normal RMNET driver
    • added unique Wi-Fi MAC address
    • supported CIFS UTF-8, Yaffs, Ext3, and Ext4 file system using modified build config.
    • added some commits from the "official" git (Please see my git repository for detail.)
    • added audio boost (With this you'll have large range of volume but may have worse sound quality.)
  • Jan. 19, 2011: tytung_r2_eb_oldcam (For old/N1 camera libs and HTC extended battery.) (No HTC extended battery to test, please confirm its working or not.) (Not working)
    • based on hastarin's r8.6 eb_oldcam branch
    • added normal RMNET driver
    • added unique Wi-Fi MAC address
    • supported CIFS UTF-8, Yaffs, Ext3, and Ext4 file system using modified build config.
    • added some commits from the "official" git (Please see my git repository for detail.)
    • added audio boost (With this you'll have large range of volume but may have worse sound quality.)
  • Jan. 18, 2011: tytung_r2_oldcam (For old/N1 camera libs, HTC standard battery and partly support HTC extended battery.)
    • added some commits from the "official" git (Please see my git repository for detail.)
    • added audio boost (With this you'll have large range of volume but may have worse sound quality.)
  • Jan. 08, 2011: tytung_r1_oldcam (For old/N1 camera libs and HTC standard battery.)
    • based on hastarin's r8.6 oldcam branch
    • added normal RMNET driver
    • added unique Wi-Fi MAC address
    • supported CIFS UTF-8, Yaffs, Ext3, and Ext4 file system using modified build config.
 
Last edited:

tytung

Senior Member
Jun 21, 2010
3,574
15,005
sites.google.com
All Downloads

All Downloads:
  • cLK_ppp_tytung_r14_update.zip. (for cLK and Gingerbread 2.3.4+ only) (Included Letama's htcleo.acdb renamed as default.acdb, Gpc's libaudio.so v2.8e and Cedesmith's libhtc_ril_wrapper.so v8.0b4.)
  • kernel_tytung_r14_update.zip. (for MAGLDR and Gingerbread 2.3.4+ only) (Included Letama's htcleo.acdb renamed as default.acdb and Gpc's libaudio.so v2.8e.)
  • cLK_ppp_tytung_r14_callrec_update.zip. (for cLK and Gingerbread 2.3.4+ only) (Included Letama's htcleo.acdb renamed as default.acdb, Gpc's libaudio.so v2.8e and Cedesmith's libhtc_ril_wrapper.so v8.0b4.)
  • kernel_tytung_r14_callrec_update.zip. (for MAGLDR and Gingerbread 2.3.4+ only) (Included Letama's htcleo.acdb renamed as default.acdb and Gpc's libaudio.so v2.8e.)

  • cLK_ppp_tytung_r13_update.zip. (for cLK and Gingerbread 2.3.4+ only) (Included Letama's htcleo.acdb renamed as default.acdb, Gpc's libaudio.so v2.8e and Cedesmith's libhtc_ril_wrapper.so v8.0b4.)
  • kernel_tytung_r13_update.zip. (for MAGLDR and Gingerbread 2.3.4+ only) (Included Letama's htcleo.acdb renamed as default.acdb and Gpc's libaudio.so v2.8e.)
  • cLK_ppp_tytung_r13_callrec_update.zip. (for cLK and Gingerbread 2.3.4+ only) (Included Letama's htcleo.acdb renamed as default.acdb, Gpc's libaudio.so v2.8e and Cedesmith's libhtc_ril_wrapper.so v8.0b4.)
  • kernel_tytung_r13_callrec_update.zip. (for MAGLDR and Gingerbread 2.3.4+ only) (Included Letama's htcleo.acdb renamed as default.acdb and Gpc's libaudio.so v2.8e.)

  • cLK_ppp_tytung_r12.4_update_v3.zip. (for cLK and Gingerbread 2.3.4+ only) (Included Letama's htcleo.acdb renamed as default.acdb, Gpc's libaudio.so v2.8e and Cedesmith's libhtc_ril_wrapper.so v8.0b4.)
  • kernel_tytung_r12.4_update_v3.zip. (for MAGLDR and Gingerbread 2.3.4+ only) (Included Letama's htcleo.acdb renamed as default.acdb and Gpc's libaudio.so v2.8e.)
  • cLK_ppp_tytung_r12.4_update.zip. (for cLK and Gingerbread 2.3.4+ only) (Included Desire's stock default.acdb, Gpc's libaudio.so v2.8e and Cedesmith's libhtc_ril_wrapper.so v8.0b4.)
  • kernel_tytung_r12.4_update.zip. (for MAGLDR and Gingerbread 2.3.4+ only) (Included Desire's stock default.acdb and Gpc's libaudio.so v2.8e.)












 
Last edited:

Rick_1995

Inactive Recognized Developer
Sep 3, 2009
1,118
3,017
Santa Clara
@tytung
Regarding the real wifi mac on NAND boot, can i have the address you probe for the mac address string so i could see if it is available in bootloader or not. If it is, provide it as a part of the cmdline to the kernel.

Also if possible, how exactly you probe that area as this said feature has not been committed to your gitorious repo.
 
Last edited:

tytung

Senior Member
Jun 21, 2010
3,574
15,005
sites.google.com
@tytung
Regarding the real wifi mac on NAND boot, can i have the address you probe for the mac address string so i could see if it is available in bootloader or not. If it is, provide it as a part of the cmdline to the kernel.

Also if possible, how exactly you probe that area as this said feature has not been committed to your gitorious repo.

Here you are.
http://pastebin.com/pnpPE23S

Please visit [Dev] Real WiFi MAC address thread for more info.

Code:
static int parse_tag_msm_wifi_from_spl(void)
{
       uint32_t id1, id2, id3, id4, id5, id6;
       uint32_t id_base = 0xFC028; //real mac offset found in spl for haret.exe on WM
       id1 = readl(MSM_SPLHOOD_BASE + id_base + 0x0);
       id2 = readl(MSM_SPLHOOD_BASE + id_base + 0x1);
       id3 = readl(MSM_SPLHOOD_BASE + id_base + 0x2);
       id4 = readl(MSM_SPLHOOD_BASE + id_base + 0x3);
       id5 = readl(MSM_SPLHOOD_BASE + id_base + 0x4);
       id6 = readl(MSM_SPLHOOD_BASE + id_base + 0x5);
       sprintf(nvs_mac_addr, "macaddr=%2x:%2x:%2x:%2x:%2x:%2x\n", id1 & 0xff, id2 & 0xff, id3 & 0xff, id4 & 0xff, id5 & 0xff, id6 & 0xff);
       pr_info("Device Real Wifi Mac Address: %s\n", nvs_mac_addr);
       return 0;
}
 
Last edited:
  • Like
Reactions: Vedy and pirlano

mirroalex

Senior Member
Aug 14, 2009
667
151
Hi,
I read the first post and as i understand i have to delete initrd.gz in order to update my rom's kernel.

So i extract the zip file, delete initrd.gz and re zip it but when i want to install in cwm it said installation aborted, what i have to do?

PS i have typhoon rom version 3.6.2 and cwm 4.0.1.4
 

suncrawler

Member
Jan 28, 2010
11
1
Leipzig
I have installed on my BOYPPC Gingerbread Stable.V2 ROM and have some issues while i make a call. It seems that the proximity sensor have a fault by activation, when the screen shuts off the call will terminated.
Is there a possibility to fix that?

So long thank you so much for your great work...
 
  • Like
Reactions: zyclone

Rick_1995

Inactive Recognized Developer
Sep 3, 2009
1,118
3,017
Santa Clara
Here you are.
http://pastebin.com/pnpPE23S

Please visit [Dev] Real WiFi MAC address thread for more info.

Code:
static int parse_tag_msm_wifi_from_spl(void)
{
       uint32_t id1, id2, id3, id4, id5, id6;
       uint32_t id_base = 0xFC028; //real mac offset found in spl for haret.exe on WM
       id1 = readl(MSM_SPLHOOD_BASE + id_base + 0x0);
       id2 = readl(MSM_SPLHOOD_BASE + id_base + 0x1);
       id3 = readl(MSM_SPLHOOD_BASE + id_base + 0x2);
       id4 = readl(MSM_SPLHOOD_BASE + id_base + 0x3);
       id5 = readl(MSM_SPLHOOD_BASE + id_base + 0x4);
       id6 = readl(MSM_SPLHOOD_BASE + id_base + 0x5);
       sprintf(nvs_mac_addr, "macaddr=%2x:%2x:%2x:%2x:%2x:%2x\n", id1 & 0xff, id2 & 0xff, id3 & 0xff, id4 & 0xff, id5 & 0xff, id6 & 0xff);
       pr_info("Device Real Wifi Mac Address: %s\n", nvs_mac_addr);
       return 0;
}

Yes, accessing 0x0 + id_base + 0x0 is causing segfault in lk. Will dump memory and go through for address of mac in magldr and clk.
 
  • Like
Reactions: tytung

mickey-r

Senior Member
Jan 6, 2008
63
26
Hi tytung,

You have inclued libaudio.so but did we always need default.acdb of 122 442 octets ?

Thank for your job
 

w0nz3r

Senior Member
Jan 12, 2010
176
45
Milano
thank you

Thank you for all your great work...
If our HD2 is become so important, fast, stable, smooth, appreciated...
most of the credit is your!

THANKS TYTUNG
 

mfish123

Senior Member
Aug 22, 2010
328
19
awesome, we have a 99% android native experience!!!

next step is audio lib and bluetooth fix? now we can only choose between high drain fully working BT or low drain but 50% compatibility BT :D

can you please elaborate....which kernels / setup offers which scenario? thanks

Sent from my HD2 using xda premium
 

mfish123

Senior Member
Aug 22, 2010
328
19
I have an HTC official extended battery. Any plans for full support? (e.g. accurate battery readings and use of full capacity) We are so close to perfection!

Thanks for all the hard work!

Sent from my HD2 using xda premium
 
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 119
    My kernels are based on Hastarin's r8.6 SD kernel sources which are based on Markinus' EVO kernel sources.
    • I have modified them to be compatible with NAND ROMs and added a lot of new useful features since January 2011.
    • I mainly developed and tested them on my NexusHD2-Gingerbread and NexusHD2-Froyo ROMs.
    • If any feature doesn't work for other ROMs, I won't fix it.
    My git repository: https://github.com/tytung/android_kernel_htcleo-2.6.32-ics/tree/gingerbread
    • The source code is released under the GNU General Public License version 2 (GPLv2).
    • So you must release your modified source code (it's better to use git for sharing purpose) if you would like to release a modified kernel based on my source code.

    Primary features:

    Credits: Markinus, Cotulla, TYTung, Hastarin, NetRipper, Dcordes, Letama, Rajko, Dan1j3l, Cedesmith, Arne, Trilu, Charansingh, Mdebeljuh, Jdivic, Avs333, Snq-, Savan, Drizztje, Marc1706, Franck78, Rick_1995, other devs, and testers.


    Downloads:

    Mod edit: Links removed


    Issues:
    • WiFi issue:
      If you flash my kernel in Gingerbread 2.3.3 and the earlier versions, you will have DHCP issue when using WiFi. (i.e. Cannot connect to a wireless router and get an IP successfully.)
      This issue is related to Gingerbread's initrd.gz, not the kernel (i.e. zImage).
      Gingerbread 2.3.4+ must use the following setting in /init.htcleo.rc or /init.leo.rc or ... depending on your ROMs.
      Code:
      service [B][COLOR="Red"]dhcpcd_eth0[/COLOR][/B] /system/bin/dhcpcd -ABKL
      Gingerbread 2.3.3 must use the following setting.
      Code:
      service [B][COLOR="red"]dhcpcd[/COLOR][/B] /system/bin/dhcpcd -ABKL
    • Sound issue:
      If you feel that the maximum sound volume is still not high enough so that you cannot hear the sound (e.g. call, ringtone, alarm, etc.) clearly or your caller complain your in-call voice is a little low.
      The candidate solutions are as follows:
      • Go to a quiet place. :p
      • Go to see a doctor. :p
      • Modify the mic gain value by editing /system/etc/init.d/10mic_level (reboot to take effect or execute the below command manually).
        Content of 10mic_level: (You may need to enlarge the values below.)
        Code:
        #!/system/bin/sh
        echo '0 400' > /proc/mic_level
        echo '1 600' > /proc/mic_level
      • Install HD2 Mic Control (GUI for 10mic_level) or Volume+. :)


    Installation for NexusHD2 ROMs:
    • Place your downloaded file in the SD card.
    • Enter CWM (ClockworkMod) Recovery
      • MAGLDR 1.13: Hold "Power" button during boot to enter MAGLDR, and then select "AD Recovery" or "Boot AD SD" (if ever copied CWM's initrd.gz and zImage to SD) to enter CMW.
      • cLK 1.4.0.1: Hold "Home" button during boot to enter CMW.
    • Choose install zip from sdcard and navigate to your downloaded file to finish the installation.
    • All done.


    Installation for other ROMs:
    • For MAGLDR users, please delete initrd.gz from kernel_tytung_rX_update.zip before flashing it.
    • For cLK users, it's better to use initrd.gz from your ROMs for best compatibility. The steps are as follows.
      • Download kernel_tytung_rX_update.zip to get zImage and system folder.
      • Download and uncompress cLK_kernel_installer.zip to a temp folder, e.g. cLK_kernel_installer, and put zImage, system folder, and your ROM's initrd.gz to cLK_kernel_installer folder.
        • You can unpack boot.img of your cLK ROM to get initrd.gz.
        • Or download and unzip your MAGLDR ROM to get initrd.gz directly.
      • Plug your phone to your PC via USB cable.
      • Run cLK_kernel_installer.bat to install new kernel and the related stuff.
        Content of cLK_kernel_installer.bat:
        Code:
        adb remount
        adb shell rm /system/lib/modules/*
        adb push system /system/
        adb shell chown 0:2000 /system/bin/wpa_supplicant
        adb shell chmod 755 /system/bin/wpa_supplicant
        adb shell chown 0:2000 /system/etc/init.d/*
        adb shell chmod 750 /system/etc/init.d/*
        adb shell sync
        adb reboot bootloader
        
        fastboot -c "" -b 0x11800000 flash:raw boot zImage initrd.gz
        echo Press any key to reboot.
        echo Press any key to reboot.
        pause
        fastboot reboot
    47
    Changelog

    Changelog:
    • Nov. 8, 2012: tytung_r16
      • Fixed broken USB Tethering in r15.
    • Nov. 8, 2012: tytung_r15
      • Merged r14 and r14_callrec.
      • Added InteractiveX governor.
      • Added Smartass2 governor.
      • Added Real WiFi and Bluetooth MAC addresses.
      • Added Fast charging.
      • And more.
    • Nov. 10, 2011: tytung_r14 (For new/desire camera libs and HTC extended battery.)
    • Nov. 5, 2011: tytung_r13 (For new/desire camera libs and HTC extended battery.)
      • Added HTC auto white balance calibration driver.
      • Added ALSA sound driver and compiled as kernel modules (alsa-pcm-htc-leo.ko and alsa-mix-htc-leo.ko). (Credits to Cotulla)
      • Included a branch r13_callrec which means the Two-way call recording is enabled. (It may cause the "No sound bug". Use at your own risk.)
    • Oct. 1, 2011: tytung_r12.4 package v3 (For new/desire camera libs and HTC extended battery.)
      • Based on r12
      • Fixed "No sound bug" (Disabled "call recording" in kernel config) (Thanks to drizztje who found the cause, ph03n!x who collected the related info and tested them, and all other testers.)
      • Enabled 128MHz CPU frequency support. (Default is 245~998 MHz)
      • Included Gpc's libaudio.so v2.8e in the kernel package again for remembering adjusted in-call volume and supporting mic gain fix.
      • Removed /system/etc/init.d/10mic_level when flashing.
      • Replaced default.acdb with letama's htcleo.acdb (113,910 bytes) (CRC: C3CDDB54) in the kernel package. (Thanks to kcfong2 who tested this new approach.)
    • Oct. 1, 2011: tytung_r12.4 package v1 (For new/desire camera libs and HTC extended battery.)
      • Based on r12
      • Fixed "No sound bug" (Disabled "call recording" in kernel config) (Thanks to drizztje who found the cause, ph03n!x who collected the related info and tested them, and all other testers.)
      • Enabled 128MHz CPU frequency support. (Default is 245~998 MHz)
      • Included Gpc's libaudio.so v2.8e in the kernel package again for remembering adjusted in-call volume and supporting mic gain fix.
      • Included Desire Gingerbread's stock default.acdb (129,346 bytes) (CRC: B0DCA53A) in the kernel package for fixing echo voice.
    • Sep. 30, 2011: tytung_r12.3 (For new/desire camera libs and HTC extended battery.)
      • Based on r12
      • Fixed "No sound bug" (Disabled "call recording" in kernel config) (Thanks to drizztje who found the fix, and ph03n!x who tested and collected the related info.)
      • Included Drizztje's libaudio.so v5 in the kernel package.
    • Sep. 12, 2011: tytung_r12 (For new/desire camera libs and HTC extended battery.) and tytung_r12_oldcam (For old/N1 camera libs and HTC extended battery.)
      • Added proc file interface /proc/mic_level to fix low speakerphone mic gain (Credits to mdebeljuh and jdivic)
      • Included /system/etc/init.d/10mic_level (Set to '0 400' for Handset and '1 600' for Speaker)
      • Removed support for specific htcleo.acdb file to improve the booting speed when htcleo.acdb is not present.
      • Loaded the real WiFi MAC address from SPL if running SD build on WinMo 6.5. (Not for MAGLDR and cLK bootloaders) (Credits: savan and tytung)
      • Added HTC official kineto_gan.ko kernel module for T-Mobile Wi-Fi Calling.
      • Included Gpc's libaudio.so v2.8e in the kernel package.
      • Included N1 Gingerbread's stock default.acdb (122,442 bytes) (CRC: 2A51EA54) in the kernel package. (It may cause echo voice.)
    • Aug. 22, 2011: tytung_r11 (For new/desire camera libs and HTC extended battery.) and tytung_r11_oldcam (For old/N1 camera libs and HTC extended battery.)
      • Used the same initrd.gz for MAGLDR and cLK (for Gingerbread 2.3.4 and above versions, otherwise no Wi-Fi.)
        (removed libhtc_ril_wrapper.so parameters from init.rc and added the required info to /system/default.prop if using cLK ROM)
      • Added RNDIS (Remote Network Driver Interface Specification) for supporting native USB Tethering.
      • Added wakeup lag fix for AUO panels. (Credits to mdebeljuh and jdivic)
      • Cleaned up during camera opening failure.
      • Changed unique WiFi address to IEEE Standards 00:23:76:XX:XX:XX for HTC. -- http://standards.ieee.org/cgi-bin/ouisearch?00-23-76
        (Caution: WiFi address has changed. Remember to update the white list of your wireless router if you ever enabled filtering feature.)
    • May 04, 2011: tytung_r10_oldcam (For old/N1 camera libs and HTC extended battery.)
      • Included my modified initrd.gz (removed libhtc_ril_wrapper.so in init.rc)
      • Added kineto_gan.ko module to support T-Mobile Wi-Fi Calling.
      • Fixed RIL on NAND boot in kernel, so we don't need ril wrapper library (libhtc_ril_wrapper.so) for MAGLDR anymore. (Only cLK needs ril wrapper library to support PPP.)
    • May 03, 2011: tytung_r10 (For new/desire camera libs and HTC extended battery.)
      • Included my modified initrd.gz (removed libhtc_ril_wrapper.so in init.rc and modified init.htcleo.rc to support Wi-Fi change in Gingerbread 2.3.4) (Don't use it in Gingerbread 2.3.3 and the earlier versions, otherwise no Wi-Fi.)
      • Added kineto_gan.ko module to support T-Mobile Wi-Fi Calling.
      • Fixed RIL on NAND boot in kernel, so we don't need ril wrapper library (libhtc_ril_wrapper.so) for MAGLDR anymore. (Only cLK needs ril wrapper library to support PPP.)
    • Apr. 12, 2011: tytung_r9 (For new/desire camera libs and HTC extended battery.) and tytung_r9_oldcam (For old/N1 camera libs and HTC extended battery.)
      • Supported two-way call recording. (Thanks to avs333, snq-, and skvalex.)
      • Supported unique Bluetooth MAC address.
      • Supported Bluetooth PAN (Personal Area Network) using android-wifi-tether. (Tested on v2.0.7)
      • Included my modified initrd.gz (modified init.htcleo.rc to support unique Bluetooth MAC address)
      • Added audio boost in another source file. (It seems to make the BT call quality clear than before.)
    • Mar. 27, 2011: tytung_r8.3 (For new/desire camera libs and HTC extended battery.) and tytung_r8.3_oldcam (For old/N1 camera libs and HTC extended battery.)
      • Updated Bluetooth stack.
      • Reverted all patches from the latest kernel 2.6.37 in r8 to make sure the video recording is stable.
    • Mar. 25, 2011: tytung_r8.2 (For new/desire camera libs and HTC extended battery.) and tytung_r8.2_oldcam (For old/N1 camera libs and HTC extended battery.)
      • Fixed Bluetooth 60mA battery drain (i.e. support Low Power Mode) (Big thanks to Trilu and Charansingh)
      • Included my modified initrd.gz (add --enable_lpm and mkdir /cache/recovery) for NexusHD2-Gingerbread (tytung_r8.2) and NexusHD2-Froyo (tytung_r8.2_oldcam).
    • Mar. 24, 2011: tytung_r8.1 (For new/desire camera libs and HTC extended battery.) and tytung_r8.1_oldcam (For old/N1 camera libs and HTC extended battery.)
      • Enabled universal TUN/TAP device driver support in the kernel to support opening a VPN connection.
      • Reverted some patches from the latest kernel 2.6.37 to fix video recording issue in r8. (See commit log for details.)
    • Mar. 23, 2011: tytung_r8 (For new/desire camera libs and HTC extended battery.) and tytung_r8_oldcam (For old/N1 camera libs and HTC extended battery.)
    • Mar. 12, 2011: tytung_r7 (For new/desire camera libs and HTC extended battery.) and tytung_r7_oldcam (For old/N1 camera libs and HTC extended battery.)
      • Added all the new commits from the "official" EVO kernel git repository. http://gitorious.org/linux-on-wince-htc/linux_on_wince_htc
      • Added cLK bootloader support. (Patch files from Cedesmith)
      • Added the official HTC extended battery support. (Integrated source code from Arne's Extended Kernel. All credit goes to him.)
      • Compiled RMNET (for 3G network) as a module. (Loaded it via /system/etc/init.rd/01_modules when booting)
      • Enabled ReiserFS file system support from the config file.
      • Improved the WiFi driver.
      • Fixed WiFi "When screen turns off" battery drain issue.
    • Feb. 23, 2011: tytung_r6 (For new/desire camera libs and HTC standard battery.) and tytung_r6_oldcam (For old/N1 camera libs, HTC standard battery and partly support HTC extended battery.)
      • Updated the WiFi driviers to AOSP version for supporting IEEE 802.1x/EAP authentication and fixing native WiFi Tethering.
      • Thanks to Charansingh's raiderx_htcleo AOSP kernel source.
      • Included Gingerbread's wpa_supplicant to match the latest AOSP WiFi drivier. (The oldcam kernel also works with NexusHD2-Froyo.)
    • Feb. 18, 2011: tytung_r5 (For new/desire camera libs and HTC standard battery.) and tytung_r5_oldcam (For old/N1 camera libs, HTC standard battery and partly support HTC extended battery.)
      • updated the LED related driviers to fix the LED Notification issue.
    • Feb. 16, 2011: tytung_r4 (For new/desire camera libs and HTC standard battery.)
    • Feb. 15, 2011: tytung_r4_oldcam (For old/N1 camera libs, HTC standard battery and partly support HTC extended battery.)
      • reverted the robot voice and frozen Phone app fix in r3 to solve the call quality issue (static sound).
      • You may need to enable Audible touch tones in Sound settings to avoid the frozen Phone app when dialing.
    • Feb. 13, 2011: tytung_r3_oldcam (For old/N1 camera libs, HTC standard battery and partly support HTC extended battery.)
    • Jan. 29, 2011: tytung_r2_eb (For new/desire camera libs and HTC extended battery.) (No HTC extended battery to test, please confirm its working or not.) (Not working)
      • based on hastarin's r8.6 eb branch
      • added normal RMNET driver
      • added unique Wi-Fi MAC address
      • supported CIFS UTF-8, Yaffs, Ext3, and Ext4 file system using modified build config.
      • added some commits from the "official" git (Please see my git repository for detail.)
      • added audio boost (With this you'll have large range of volume but may have worse sound quality.)
    • Jan. 29, 2011: tytung_r2 (For new/desire camera libs and HTC standard battery.)
      • based on hastarin's r8.6 master
      • added normal RMNET driver
      • added unique Wi-Fi MAC address
      • supported CIFS UTF-8, Yaffs, Ext3, and Ext4 file system using modified build config.
      • added some commits from the "official" git (Please see my git repository for detail.)
      • added audio boost (With this you'll have large range of volume but may have worse sound quality.)
    • Jan. 19, 2011: tytung_r2_eb_oldcam (For old/N1 camera libs and HTC extended battery.) (No HTC extended battery to test, please confirm its working or not.) (Not working)
      • based on hastarin's r8.6 eb_oldcam branch
      • added normal RMNET driver
      • added unique Wi-Fi MAC address
      • supported CIFS UTF-8, Yaffs, Ext3, and Ext4 file system using modified build config.
      • added some commits from the "official" git (Please see my git repository for detail.)
      • added audio boost (With this you'll have large range of volume but may have worse sound quality.)
    • Jan. 18, 2011: tytung_r2_oldcam (For old/N1 camera libs, HTC standard battery and partly support HTC extended battery.)
      • added some commits from the "official" git (Please see my git repository for detail.)
      • added audio boost (With this you'll have large range of volume but may have worse sound quality.)
    • Jan. 08, 2011: tytung_r1_oldcam (For old/N1 camera libs and HTC standard battery.)
      • based on hastarin's r8.6 oldcam branch
      • added normal RMNET driver
      • added unique Wi-Fi MAC address
      • supported CIFS UTF-8, Yaffs, Ext3, and Ext4 file system using modified build config.
    33
    All Downloads

    All Downloads:
    • cLK_ppp_tytung_r14_update.zip. (for cLK and Gingerbread 2.3.4+ only) (Included Letama's htcleo.acdb renamed as default.acdb, Gpc's libaudio.so v2.8e and Cedesmith's libhtc_ril_wrapper.so v8.0b4.)
    • kernel_tytung_r14_update.zip. (for MAGLDR and Gingerbread 2.3.4+ only) (Included Letama's htcleo.acdb renamed as default.acdb and Gpc's libaudio.so v2.8e.)
    • cLK_ppp_tytung_r14_callrec_update.zip. (for cLK and Gingerbread 2.3.4+ only) (Included Letama's htcleo.acdb renamed as default.acdb, Gpc's libaudio.so v2.8e and Cedesmith's libhtc_ril_wrapper.so v8.0b4.)
    • kernel_tytung_r14_callrec_update.zip. (for MAGLDR and Gingerbread 2.3.4+ only) (Included Letama's htcleo.acdb renamed as default.acdb and Gpc's libaudio.so v2.8e.)

    • cLK_ppp_tytung_r13_update.zip. (for cLK and Gingerbread 2.3.4+ only) (Included Letama's htcleo.acdb renamed as default.acdb, Gpc's libaudio.so v2.8e and Cedesmith's libhtc_ril_wrapper.so v8.0b4.)
    • kernel_tytung_r13_update.zip. (for MAGLDR and Gingerbread 2.3.4+ only) (Included Letama's htcleo.acdb renamed as default.acdb and Gpc's libaudio.so v2.8e.)
    • cLK_ppp_tytung_r13_callrec_update.zip. (for cLK and Gingerbread 2.3.4+ only) (Included Letama's htcleo.acdb renamed as default.acdb, Gpc's libaudio.so v2.8e and Cedesmith's libhtc_ril_wrapper.so v8.0b4.)
    • kernel_tytung_r13_callrec_update.zip. (for MAGLDR and Gingerbread 2.3.4+ only) (Included Letama's htcleo.acdb renamed as default.acdb and Gpc's libaudio.so v2.8e.)

    • cLK_ppp_tytung_r12.4_update_v3.zip. (for cLK and Gingerbread 2.3.4+ only) (Included Letama's htcleo.acdb renamed as default.acdb, Gpc's libaudio.so v2.8e and Cedesmith's libhtc_ril_wrapper.so v8.0b4.)
    • kernel_tytung_r12.4_update_v3.zip. (for MAGLDR and Gingerbread 2.3.4+ only) (Included Letama's htcleo.acdb renamed as default.acdb and Gpc's libaudio.so v2.8e.)
    • cLK_ppp_tytung_r12.4_update.zip. (for cLK and Gingerbread 2.3.4+ only) (Included Desire's stock default.acdb, Gpc's libaudio.so v2.8e and Cedesmith's libhtc_ril_wrapper.so v8.0b4.)
    • kernel_tytung_r12.4_update.zip. (for MAGLDR and Gingerbread 2.3.4+ only) (Included Desire's stock default.acdb and Gpc's libaudio.so v2.8e.)












    30
    R15

    HTCLEO-Kernel_2.6.32_tytung_gb_r15-update.zip

    Add a lot of stuff.
    29
    R16

    HTCLEO-Kernel_2.6.32_tytung_gb_r15-update.zip

    Add a lot of stuff.

    HTCLEO-Kernel_2.6.32_tytung_gb_r16-update.zip

    Fix USB Tethering.