[24 SEP 2012][DEV] HWA Kernel For HD2

Search This thread

uzziah0

Senior Member
Jan 14, 2008
301
14
I am using the Paranoid Android (PARANOID ANDROID LEO BETA V2.15) on my HD2, and I got my expanded battery (2400 mAh), and when I look at Battery Monitor Widget, it seems to think it is a standard (1230 mAh) battery.
I am not sure how the use /charging of this battery works, so I was asking on the Paranoid Android thread. slashas69 referred me to this thread saying I needed an update to the kernel.
Can someone help me with this?
 

securecrt

Senior Member
Aug 4, 2010
763
2,762
Shanghai
I am using the Paranoid Android (PARANOID ANDROID LEO BETA V2.15) on my HD2, and I got my expanded battery (2400 mAh), and when I look at Battery Monitor Widget, it seems to think it is a standard (1230 mAh) battery.
I am not sure how the use /charging of this battery works, so I was asking on the Paranoid Android thread. slashas69 referred me to this thread saying I needed an update to the kernel.
Can someone help me with this?
you should change the battery driver source code
 

dertester123

Senior Member
Oct 11, 2008
960
202
Hi,
My back light on hard button is never off, just dimmer. When i am entering recovery mode, it is fast flashing. I did clean install nexus rom and this kernel. Anything wrong? Tq

Sent from my GT-I9100 using xda app-developers app

Had this after my phone got wet in the rain. Try heating fan (hairdryer) or put it in a bag of rice over a few nights...

That's just what it sounds like to me ;)

Gesendet von meinem HTC HD2 mit Tapatalk 2
 
  • Like
Reactions: kampar4

dheerajk27

Senior Member
Sep 20, 2007
576
97
Mumbai
Samsung Galaxy Note 20 Ultra
I am using the Paranoid Android (PARANOID ANDROID LEO BETA V2.15) on my HD2, and I got my expanded battery (2400 mAh), and when I look at Battery Monitor Widget, it seems to think it is a standard (1230 mAh) battery.
I am not sure how the use /charging of this battery works, so I was asking on the Paranoid Android thread. slashas69 referred me to this thread saying I needed an update to the kernel.
Can someone help me with this?

My genuine HTC extended battery does show 2300 mAh on battery monitor widget, with this kernel. Just thought of reporting...

Sent from my HTC HD2 using xda premium
 

marc1706

Retired Recognized Developer
Dec 25, 2009
435
2,346
Clausthal-Zellerfeld / Munich
I am using the Paranoid Android (PARANOID ANDROID LEO BETA V2.15) on my HD2, and I got my expanded battery (2400 mAh), and when I look at Battery Monitor Widget, it seems to think it is a standard (1230 mAh) battery.
I am not sure how the use /charging of this battery works, so I was asking on the Paranoid Android thread. slashas69 referred me to this thread saying I needed an update to the kernel.
Can someone help me with this?

Your extended battery was definitely too cheap. The leo determines the type of battery via battery IDs. Those are defined with a resistor in the battery. The part regarding that in the battery driver:
Code:
  /* id resister range = [min, max)*/
  7150, 15500, /* Sony 1300mAh (Formosa) */ /* 7.1k~15k */
  27500, 49500, /* Sony 1300mAh (HTE) */ /* 28k~49.5k */
  15500, 27500, /* Sanyo 1300mAh (HTE) */ /* 16k~27k */
  100, 7150, /* Samsung 1230mAh */ /* 0.1k~7k */
  0, 100, /* HTC Extended 2300mAh */ /* 0k~0.1k */
I'm pretty sure your battery ID will be 4 (Samsung 1230 mAh) because the manufacturer of your battery has actually no idea what he is doing.
 
  • Like
Reactions: Burag and pirlano

denseye

Senior Member
Feb 22, 2009
144
40
Your extended battery was definitely too cheap. The leo determines the type of battery via battery IDs. Those are defined with a resistor in the battery. The part regarding that in the battery driver:
Code:
  /* id resister range = [min, max)*/
  7150, 15500, /* Sony 1300mAh (Formosa) */ /* 7.1k~15k */
  27500, 49500, /* Sony 1300mAh (HTE) */ /* 28k~49.5k */
  15500, 27500, /* Sanyo 1300mAh (HTE) */ /* 16k~27k */
  100, 7150, /* Samsung 1230mAh */ /* 0.1k~7k */
  0, 100, /* HTC Extended 2300mAh */ /* 0k~0.1k */
I'm pretty sure your battery ID will be 4 (Samsung 1230 mAh) because the manufacturer of your battery has actually no idea what he is doing.

Interesting Marc
my Leicke extended battery is not recognize at all (do not charge at all, show very strange T°).

in which file precisely can I found this code that manage the battery type ?...

thanks
 
  • Like
Reactions: pirlano

Xylograph

Senior Member
Sep 2, 2009
1,825
7,708
marc1706,

About your latest post in your kernel thread :

If anyone could also provide a jellybean ROM with a bcmdhd firmware for the HD2 around mid-october that would be awesome.

Don't know to much about it, but is that even possible without kernel changes ?
 
  • Like
Reactions: pirlano

marc1706

Retired Recognized Developer
Dec 25, 2009
435
2,346
Clausthal-Zellerfeld / Munich
marc1706,

About your latest post in your kernel thread :



Don't know to much about it, but is that even possible without kernel changes ?
No. That's why I added that driver a while back to my jb branch.


thank you for pointing me to the right file.

how can I add may "personnal battery" ? I mean : I can I obtain the characteristics of my Leicke battery and put it in the file ?...
That's the hard part. Your Leicke battery probably fits the same characteristics as the stock battery. The kernel will always think it's the Samsung battery so you'd have to hack into that file for your specific battery, which would also mean your stock battery won't work anymore.
 
  • Like
Reactions: Burag and Xylograph

Robbie P

Senior Member
Feb 8, 2011
5,115
4,014
London
You could try a hardware option and link out the resistor on the battery itself, giving 0k ohms and id as extended battery.
Only guarantee i give is that you own both pieces if it breaks;)
 

uzziah0

Senior Member
Jan 14, 2008
301
14
I opened the expanded battery, and I found a small circuit board. Does anyone know if the resistance is a connection between two of the the contacts on the battery? Or, something else communicated from the battery? uploadfromtaptalk1349445204548.jpg

Sent from my HTC HD2 using xda app-developers app
 
  • Like
Reactions: CR5N

securecrt

Senior Member
Aug 4, 2010
763
2,762
Shanghai
I opened the expanded battery, and I found a small circuit board. Does anyone know if the resistance is a connection between two of the the contacts on the battery? Or, something else communicated from the battery? View attachment 1377848

Sent from my HTC HD2 using xda app-developers app

It is danger to do that , you should stop.
My suggestion is just change the battery driver and made it work with your battery. change the 1230 to 2400

UINT32 FL_25[] =
{
2300, /* Unknown battery */
1280, /* Sony 1300mAh (Formosa) */
1280, /* Sony 1300mAh (HTE) */
1250, /* Sanyo 1300mAh (HTE) */
1230, /* Samsung 1230mAh */
2300, /* HTC Extended 2300mAh */
};

https://github.com/tytung/android_k...b/ics_HWA/include/linux/ds2746_param_config.h
 

Xylograph

Senior Member
Sep 2, 2009
1,825
7,708
It is danger to do that , you should stop.
My suggestion is just change the battery driver and made it work with your battery. change the 1230 to 2400

There is also a definition in the powerprofile inside the framework-res.apk, but I don't know how much influence this has if this is 'hard-set' in the kernel..

You could try to decompile it and change it into 2400 and see if android picks up that value..
 

uzziah0

Senior Member
Jan 14, 2008
301
14
Thanks for the warning, but I was really looking to see what the resistor might look like, it is a tiny one!
Also, I wanted to know which points are checked on the battery to determine the battery type?
There are 3 contacts on the battery, they are - blank +
so my guess is something with the middle one is related to getting the resistance.
Maybe I'll just bring the battery into work next week, and see what I can see.

Otherwise, don't worry, I won't do anything to explode the battery.
 
  • Like
Reactions: Robbie P

Robbie P

Senior Member
Feb 8, 2011
5,115
4,014
London
I am pretty sure that the 3 contact points (inset copper squares) to the left of the sim card are auxiliary charging contacts. It might be easier to link it out there with a shaped gizmo that fits under battery cover.
These are only suggestions for a solution, and I am sure you will do your research first.
(Sorry if my previous post sounded a bit flippant, I nearly spilt my tea when i saw your photo;))
 
  • Like
Reactions: CR5N

securecrt

Senior Member
Aug 4, 2010
763
2,762
Shanghai

the 2.6.32 kernel baseline is too old it seems that we can't use it :crying:

@marc1706 can you take a look at it? the source code can be find here

Code:
fs/f2fs/dir.c: In function 'find_in_block':
fs/f2fs/dir.c:98: error: implicit declaration of function 'find_next_bit_le'
fs/f2fs/dir.c: In function 'room_for_filename':
fs/f2fs/dir.c:336: error: implicit declaration of function 'find_next_zero_bit_le'
fs/f2fs/dir.c: In function 'f2fs_add_link':
fs/f2fs/dir.c:430: error: implicit declaration of function 'test_and_set_bit_le'
fs/f2fs/dir.c: In function 'f2fs_delete_entry':
fs/f2fs/dir.c:465: error: implicit declaration of function 'test_and_clear_bit_le'
fs/f2fs/dir.c: In function 'f2fs_make_empty':
fs/f2fs/dir.c:521: error: too few arguments to function 'kmap_atomic'
fs/f2fs/dir.c:540: error: too few arguments to function 'kunmap_atomic'
fs/f2fs/dir.c: In function 'f2fs_empty_dir':
fs/f2fs/dir.c:565: error: too few arguments to function 'kmap_atomic'
fs/f2fs/dir.c:574: error: too few arguments to function 'kunmap_atomic'
  CC      fs/f2fs/inode.o
fs/f2fs/dir.c: At top level:
fs/f2fs/dir.c:655: warning: initialization from incompatible pointer type
make[2]: *** [fs/f2fs/dir.o] 错误 1
make[2]: *** 正在等待未完成的任务....
fs/f2fs/file.c: In function 'need_to_sync_dir':
fs/f2fs/file.c:108: error: implicit declaration of function 'd_find_any_alias'
fs/f2fs/file.c:108: warning: assignment makes pointer from integer without a cast
fs/f2fs/file.c: In function 'do_attr_copy':
fs/f2fs/file.c:336: error: implicit declaration of function 'setattr_copy'
fs/f2fs/file.c: At top level:
fs/f2fs/file.c:379: error: unknown field 'get_acl' specified in initializer
fs/f2fs/file.c:379: warning: initialization from incompatible pointer type
fs/f2fs/file.c: In function 'f2fs_fallocate':
fs/f2fs/file.c:545: error: 'FALLOC_FL_PUNCH_HOLE' undeclared (first use in this function)
fs/f2fs/file.c:545: error: (Each undeclared identifier is reported only once
fs/f2fs/file.c:545: error: for each function it appears in.)
fs/f2fs/file.c: In function 'f2fs_ioctl':
fs/f2fs/file.c:589: error: implicit declaration of function 'inode_owner_or_capable'
fs/f2fs/file.c: At top level:
fs/f2fs/file.c:638: warning: initialization from incompatible pointer type
fs/f2fs/file.c:639: error: unknown field 'fallocate' specified in initializer
fs/f2fs/file.c:639: warning: initialization from incompatible pointer type
make[2]: *** [fs/f2fs/file.o] 错误 1
  CC      fs/eventfd.o
  CC      fs/aio.o
fs/f2fs/inode.c: In function 'do_read_inode':
fs/f2fs/inode.c:92: error: implicit declaration of function 'set_nlink'
 
Last edited:
  • Like
Reactions: ph03n!x and pirlano

Top Liked Posts

  • There are no posts matching your filters.
  • 404
    HWA Kernel for HD2

    My kernel is based on Tytyung's r2.5 base
    and mix the KGSL driver from Code Aurora

    This is a DEV thread. the latest code may cause some problems.


    HTC HD2 is still the KING!!!!


    Notes:
    1. this kernel can't be used in CM7 ROM
    2. the current(before 27 Apr 2012) existing android4.0 ROMs can not directly use this kernel, becasue they are not using the correct libs to match the latest KGSL driver.

    Update: 4 MAY 2012
    Rick_1995 back port all the KGSL , MDP from 2.6.38 to tytung's 2.6.32 and the latest build can be found here: link
    Update: 13 MAY 2012
    Rick_1995 and tytung made some more progress : link

    Update: 19 JUN 2012
    Memory tweaks : link
    msm: kgsl: Add support for the preamble context flag link

    Update: 21 JUN 2012
    backport the following items from the latest KGSL driver: link
    msm: kgsl: let postmortem dump find context switch IBs
    msm: kgsl: fix size checking in adreno_find_region
    msm: kgsl: Set default value of wait_timeout in the adreno_dev struct
    msm: kgsl: Make sure WPTR reg is updated properly
    msm: kgsl: fix error handling in adreno_waittimestamp()
    msm: kgsl: let postmortem dump find context switch IBs

    22 JUN 2012 update link
    msm: kgsl: remove readl/writel use for dma memory
    msm: kgsl: convert sg allocation to vmalloc
    msm: kgsl: Allocate physical pages instead of using vmalloc
    msm: kgsl: make cffdump work with the MMU enabled
    msm: kgsl: Add ION as an external memory source
    msm: kgsl: Fixup per-process memory statistics
    msm: kgsl: Make sure kmemleak tool does not report incorrect mem leak.
    msm: kgsl: Add a new property to IOCTL_KGSL_DEVICE_GETPROPERTY
    msm: kgsl: Poke regularly in adreno_idle
    msm: kgsl: increase valid timestamp range
    msm: kgsl: flush outer cache for alloc_page() pages
    msm: kgsl: Add a constant for adreno_ringbuffer_issuecmds flags

    Important Tips : don't turn on the Settings->Developer options-> Force GPU rendering
    Turn on this option will cause problem.

    23 JUN 2012 update link
    change back the pmem size to 32MB adsp_pmem to 41MB this is the default configuration, It seems resolved the crash problem with DesireC GPU libs.

    In this version I have already include the DesireC gpu libs in the zip file.
    With the new GPU libs the Chrome Browser is very smooth, the hardware H.264 decoder is working.

    25 JUN 2012 update
    need more people to do the new GPU libs test link

    25 JULY 2012 update link
    1. ignore the version check in Qdsp6 Vdec which can prevent some crash when the vdec being used.
    2. msm: kgsl: Write the retired timestamp on resume
    3. msm: kgsl: handle larger instruction store for adreno225
    4. msm: kgsl: Add support for the A3XX family of GPUs
    5. reduced the PMEM_ADSP size as the HW decoder still can't work on HD2 (now we have 420MB memory for userspace)
    6. msm: kgsl: Update the GMEM and istore size for A320
    7. msm: kgsl: return correct error code for unknown ioctls
    8. msm: kgsl: handle all indirect buffer types in postmortem
    9. msm: kgsl: Detach memory objects from a process ahead of destroy time
    10. msm: kgsl: Find a mem_entry by way of a GPU address and a pagetable base
    11. msm: kgsl: Cleanup header file macros
    12. msm: kgsl: Add GMEM size configuration in gpu list
    13. msm: kgsl: don't clear gpuaddr when unmapping global mappings
    14. msm: kgsl: Do not dereference pointer before checking against NULL
    add new GPU libs

    31 JULY 2012 link
    ics & jellybean HWA kernel updates
    1. msm: kgsl: Change name of vmalloc allocator
    2. msm: kgsl: Map a guard page on the back of GPU MMU regions
    3. msm: kgsl: Optimize page_alloc allocations
    4.msm: kgsl: Add markers to identify IB sequence start and end
    5.msm: kgsl: rework ib checking
    jellybean
    1. include: checkout msm_mdp from ics_chocolate

    6 AUG 2012 link
    JellyBean Kernel
    1. msm: kgsl: Add per context timestamp
    2. net: netfilter: enable bandwidth control (data limit)
    3. update base to tytung r3.3

    7 AUG 2012 link
    Jellybean Kernel
    1.base: genlock: Remove genlock_release_lock and associated ioctl
    2.base: genlock: allow synchronization with a single gralloc handle
    3.base: genlock: remove BIT macro usage

    7 AUG 2012 link
    Jellybean Kernel
    1. Fixed data limit

    15 AUG 2012 link
    ics
    1. base: genlock: Remove genlock_release_lock and associated ioctl
    2. base: genlock: allow synchronization with a single gralloc handle
    3. base: genlock: remove BIT macro usage
    ics & jellybean
    1. Staging: android: binder: Don't call dump_stack in binder_vma_open
    2. Staging: android: binder: Fix crashes when sharing a binder file between processes
    3. drivers:staging:android Typos: fix some comments that have typos in them.
    4. fs: Remove missed ->fds_bits from cessation use of fd_set structs internally
    5. Staging:android: Change type for binder_debug_no_lock switch to bool
    6. Staging: android: binder: Fix use-after-free bug
    7. staging: android: lowmemorykiller: sysfs node and notifications
    8. android, lowmemorykiller: remove task handoff notifier
    9. staging: android: lowmemorykiller: Fix task_struct leak
    10. staging: android/lowmemorykiller: Don't unregister notifier from atomic context
    11. staging: android, lowmemorykiller: convert to use oom_score_adj
    12. staging: android/lowmemorykiller: Do not kill kernel threads
    13. staging: android/lowmemorykiller: No need for task->signal check
    14. staging: android/lowmemorykiller: Better mm handling
    15. staging: android/lowmemorykiller: Don't grab tasklist_lock
    16. staging: android: lowmemorykiller: Don't wait more than one second for a process to die
    17. Staging: android: fixed 80 characters warnings in lowmemorykiller.c
    18. staging: android: lowmemorykiller: Ignore shmem pages in page-cache
    19. staging: android: lowmemorykiller: Remove bitrotted codepath
    20. staging: android: lowmemkiller: Substantially reduce overhead during reclaim
    21. staging: android: lowmemorykiller: Don't try to kill the same pid over and over
    22. android: logger: Allow a UID to read it's own log entries
    23. staging: logger: hold mutex while removing reader
    24. staging: android: logger: clarify non-update of w_off in do_write_log_from_user
    25. staging: android: logger: clarify code in clock_interval
    26. staging: android: logger: reorder prepare_to_wait and mutex_lock
    27. staging: android: logger: simplify and optimize get_entry_len
    28. staging: android: logger: Change logger_offset() from macro to function
    29. Staging: android: fixed white spaces coding style issue in logger.c
    30. android: logger: bump up the logger buffer sizes
    31. pmem: Check for valid virtual address while flushing
    32. pmem: Correctly account for aligned blocks
    33. pmem_adsp (user-space) as non-cached
    34. pmem_venc (user-space) as non-cached
    35. change MSM_NAND_DMA_BUFFER_SIZE to SZ_1M

    23 AUG 2012 link
    ics & jellybean
    1. ksm: remove unswappable max_kernel_pages …
    2. ksm: fix bad user data when swapping
    3. thp: ksm: free swap when swapcache page is replaced
    4. staging: zram: fix zram locking
    5. Staging: zram: Replace mutex lock by a R/W semaphore
    6. Staging: zram: Add a missing GFP_KERNEL specifier in zram_init_device()
    7. mm/ksm.c is doing an unneeded _notify in write_protect_page.
    8. ksm: check for ERR_PTR from follow_page()
    9. vmalloc(): adjust gfp mask passed on nested vmalloc() invocation
    10. staging:lowmemkiller add Fudgeswap
    11. drivers/mmc/host/msm-sdcc: remove dead config options
    12. mmc: msm_sdcc: Fix possible circular locking dependency warning
    13. mmc: msm_sdcc: Add prog done interrupt support
    14. mmc: msm_sdcc: Fix bug in PIO mode when data size is not word aligned
    15. mmc: msm: fix dma usage not to use internal APIs
    16. mmc: change clock from 50Mhz to 64Mhz PCLK
    17. mmc: change NR_SG from 32 to 128 for better performance
    18. staging: Add Snappy compression support to zram
    19. disable KSM for unstable reason while zram is enabled.

    24 SEP 2012 link
    ICS & JB

    1. ashmem: Implement read(2) in ashmem driver
    2. ashmem: Fix ASHMEM_SET_PROT_MASK.
    3. ashmem: Support lseek(2) in ashmem driver
    4. ashmem: Fix the build failure when OUTER_CACHE is enabled
    5. ashmem: Fix ashmem vm range comparison to stop roll-over
    6. Disabling Gentle Fair Sleepers improve UI responsiveness.
    7. base: genlock: handle error while creating lock/handle inode
    8. base: genlock: add magic to protect attach from non-genlock file
    9. base: genlock: protect kref counting with spinlock
    10. Staging: android: binder: Add some missing binder_stat_br calls
    11. tweak iosched for better android performance
    JB
    1. video: msm: add mdp version to id string,and put a bogus panel id



    Great thanks to Xylograph , dorimanx , Rick_1995, tytung and all of the guys who is reading this thread.

    If you like my work please don't hesitate to press the Thanks button. :)
    57
    15 AUG 2012
    ics
    1. base: genlock: Remove genlock_release_lock and associated ioctl
    2. base: genlock: allow synchronization with a single gralloc handle
    3. base: genlock: remove BIT macro usage
    ics & jellybean
    1. Staging: android: binder: Don't call dump_stack in binder_vma_open
    2. Staging: android: binder: Fix crashes when sharing a binder file between processes
    3. drivers:staging:android Typos: fix some comments that have typos in them.
    4. fs: Remove missed ->fds_bits from cessation use of fd_set structs internally
    5. Staging:android: Change type for binder_debug_no_lock switch to bool
    6. Staging: android: binder: Fix use-after-free bug
    7. staging: android: lowmemorykiller: sysfs node and notifications
    8. android, lowmemorykiller: remove task handoff notifier
    9. staging: android: lowmemorykiller: Fix task_struct leak
    10. staging: android/lowmemorykiller: Don't unregister notifier from atomic context
    11. staging: android, lowmemorykiller: convert to use oom_score_adj
    12. staging: android/lowmemorykiller: Do not kill kernel threads
    13. staging: android/lowmemorykiller: No need for task->signal check
    14. staging: android/lowmemorykiller: Better mm handling
    15. staging: android/lowmemorykiller: Don't grab tasklist_lock
    16. staging: android: lowmemorykiller: Don't wait more than one second for a process to die
    17. Staging: android: fixed 80 characters warnings in lowmemorykiller.c
    18. staging: android: lowmemorykiller: Ignore shmem pages in page-cache
    19. staging: android: lowmemorykiller: Remove bitrotted codepath
    20. staging: android: lowmemkiller: Substantially reduce overhead during reclaim
    21. staging: android: lowmemorykiller: Don't try to kill the same pid over and over
    22. android: logger: Allow a UID to read it's own log entries
    23. staging: logger: hold mutex while removing reader
    24. staging: android: logger: clarify non-update of w_off in do_write_log_from_user
    25. staging: android: logger: clarify code in clock_interval
    26. staging: android: logger: reorder prepare_to_wait and mutex_lock
    27. staging: android: logger: simplify and optimize get_entry_len
    28. staging: android: logger: Change logger_offset() from macro to function
    29. Staging: android: fixed white spaces coding style issue in logger.c
    30. android: logger: bump up the logger buffer sizes
    31. pmem: Check for valid virtual address while flushing
    32. pmem: Correctly account for aligned blocks
    33. pmem_adsp (user-space) as non-cached
    34. pmem_venc (user-space) as non-cached
    35. change MSM_NAND_DMA_BUFFER_SIZE to SZ_1M

    I feel the whole system(NexusHD2 v2.6) become more smooth after this update. Pls test and report. :D
    View attachment tytung_HWA_kernel.20120815_22_55_ics_no_initrd.zip
    View attachment tytung_HWA_kernel.20120815_22_46_jb_no_initrd.zip
    54
    23 AUG 2012
    ics & jellybean
    1. ksm: remove unswappable max_kernel_pages …
    2. ksm: fix bad user data when swapping
    3. thp: ksm: free swap when swapcache page is replaced
    4. staging: zram: fix zram locking
    5. Staging: zram: Replace mutex lock by a R/W semaphore
    6. Staging: zram: Add a missing GFP_KERNEL specifier in zram_init_device()
    7. mm/ksm.c is doing an unneeded _notify in write_protect_page.
    8. ksm: check for ERR_PTR from follow_page()
    9. vmalloc(): adjust gfp mask passed on nested vmalloc() invocation
    10. staging:lowmemkiller add Fudgeswap
    11. drivers/mmc/host/msm-sdcc: remove dead config options
    12. mmc: msm_sdcc: Fix possible circular locking dependency warning
    13. mmc: msm_sdcc: Add prog done interrupt support
    14. mmc: msm_sdcc: Fix bug in PIO mode when data size is not word aligned
    15. mmc: msm: fix dma usage not to use internal APIs
    16. mmc: change clock from 50Mhz to 64Mhz PCLK
    17. mmc: change NR_SG from 32 to 128 for better performance
    18. staging: Add Snappy compression support to zram
    19. disable KSM for unstable reason while zram is enabled.


    View attachment tytung_HWA_kernel.20120823_21_42_ics_no_initrd_zram_en.zip
    View attachment tytung_HWA_kernel.20120823_22_09_jb_no_initrd_zram_en.zip
    Please download the new file, as the previous verison didn't turn on the zram by default.

    I have included the zram(160MB swap disk) enable script in both of the zip, so just flash it and enjoy!
    48
    24 SEP 2012
    ICS & JB

    1. ashmem: Implement read(2) in ashmem driver
    2. ashmem: Fix ASHMEM_SET_PROT_MASK.
    3. ashmem: Support lseek(2) in ashmem driver
    4. ashmem: Fix the build failure when OUTER_CACHE is enabled
    5. ashmem: Fix ashmem vm range comparison to stop roll-over
    6. Disabling Gentle Fair Sleepers improve UI responsiveness.
    7. base: genlock: handle error while creating lock/handle inode
    8. base: genlock: add magic to protect attach from non-genlock file
    9. base: genlock: protect kref counting with spinlock
    10. Staging: android: binder: Add some missing binder_stat_br calls
    11. tweak iosched for better android performance
    JB
    1. video: msm: add mdp version to id string,and put a bogus panel id

    The Nand Version
    View attachment tytung_HWA_kernel.20120924_22_34_ics_no_initrd.zip
    View attachment tytung_HWA_kernel.20120924_22_41_jb_no_initrd.zip

    The NativeSD version
    View attachment tytung_HWA_kernel.20120924_22_34_NativeSD_ics.zip you should change the ROM_NAME in install.sh to your ROM NAME I use CM9ight in this file
    View attachment tytung_HWA_kernel.20120924_22_41_NativeSD_jb.zip you should change to the ROM_NAME in install.sh to your ROM NAME I use PA in this file
    45
    31 JULY 2012
    ics & jellybean HWA kernel updates
    1. msm: kgsl: Change name of vmalloc allocator
    2. msm: kgsl: Map a guard page on the back of GPU MMU regions
    3. msm: kgsl: Optimize page_alloc allocations
    4.msm: kgsl: Add markers to identify IB sequence start and end
    5.msm: kgsl: rework ib checking
    jellybean
    1. include: checkout msm_mdp from ics_chocolate

    NOTES:
    1. the latest jellybean kernel can't work with Z880E GPU libs, I suggest to use DesireC GPU libs in jellybean ROMs
    2. the jellybean kernel can't work in ICS ROMs
    3. before flash the zip please replace the initrd.gz if you are not using NexusHD2 V2.5 ROM.
    4. the ICS kernel kgsl driver has been updated to very new version, even though the version number is still 3.8 but I have backport all the useful updates from 3.9 3.10 3.11, the further updates seems only works on jellybean.

    View attachment tytung_HWA_kernel.20120731_23_08_ics.zip
    View attachment tytung_HWA_kernel.20120731_22_49_jb.zip
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone