[KERNEL][GB/SENSE] 2.6.35.10-g3f43272 [v06] | OC1152 | LZMA | fixes +addtl modules

Search This thread

snq-

Retired Recognized Developer
Aug 13, 2010
581
853
(modifications/addons for the _closed_source_ 2.6.35.10 htc kernel - for rom maintainers)

PATCHED KERNEL IMAGE

v01:
  • lzma-compressed kernel
  • o/c: 128MHz, 245MHz, 384MHz, 576-1152MHz (stepping: 38400kHz)
  • u/v: svs (@128000kHz: 950mV, @245000kHz: 975mV, @384000kHz: 1000mV, @576000kHz: 1075mV, @614400kHz: 1100mV, @652800kHz: 1100mV, @691200kHz: 1125mV, @729600kHz: 1150mV, @768000kHz: 1175mV, @806400kHz: 1200mV, @844800kHz: 1225mV, @883200kHz: 1250mV, @921600kHz: 1250mV, @960000kHz: 1275mV, @998400kHz: 1275mV, @1036800kHz: 1275mV, @1075200kHz: 1275mV, @1113600kHz: 1300mV, @1152000kHz: 1300mV)
  • cpu vdd regulator constraints expanded (800..1350mV)
  • patched out "Take the fastest speed available at the specified VDD level" (=full freq tab)
  • pre-cracked perflock (no need for perflock disabler module)

v02:
  • patched cpufreq code: set default cpu frequency constraints: 245..998MHz (with v01 cpu freq jumped to 1152 during the boot process)

v03:
  • trackpad-to-wake support (oj will not choke after a while when screen is off)
  • workaround for non-standard (extended) batteries (devices w/ stock htc battery are not affected)

v04:
  • 2.6.35.10-g308ba26 base (new leak) with the same mods as v03

v05:
  • fixed htc akm8973 ("compass") driver (read more)

v06:
  • 2.6.35.10-g3f43272 base (official gb update)

download: zImage-v06 (flashable v05-to-v06 kernel image+modules update package here)


--

MODDED WIFI DRIVER
  • min rssi threshold for scan results lowered (-88dBm -> -108dBm)
  • don't send "rssi low" events via wireless_send_event()
if you have messed up your framework/calibration file/etc with other "fixes", revert them

download:
2.6.35.10-gdd56551: bcm4329.ko
2.6.35.10-g308ba26: bcm4329.ko


ORIGINAL WIFI DRIVER

download:
2.6.35.10-g3f43272: bcm4329.ko


CIFS
# insmod /system/lib/modules/nls_utf8.ko
# insmod /system/lib/modules/cifs.ko
# busybox mount -t cifs -o user=lolwut,password=hackme,uid=1000,gid=1015,file_mode=0775,dir_mode=0775,iocharset=utf8,nodfs //192.168.40.10/public /sdcard/smb/public
(removed slow_work_* dependencies and patched with 2.6.31 oplock code)

download:
2.6.35.10-gdd56551: nls_utf8.ko, cifs.ko
2.6.35.10-g308ba26: nls_utf8.ko, cifs.ko
2.6.35.10-g3f43272: nls_utf8.ko, cifs.ko


EXT4
# insmod /system/lib/modules/jbd2.ko
# insmod /system/lib/modules/ext4.ko
# busybox mount -t ext4 /dev/block/mmcblk0p3 /cache/lolwut
# busybox mount | grep mmcblk0p3
/dev/block/mmcblk0p3 on /cache/lolwut type ext4 (rw,relatime,barrier=1,data=ordered)

download:
2.6.35.10-gdd56551: jbd2.ko(dependecy), ext4.ko
2.6.35.10-g308ba26: jbd2.ko(dependecy), ext4.ko
2.6.35.10-g3f43272: jbd2.ko(dependecy), ext4.ko


TUN
# insmod /system/lib/modules/tun.ko
# ls -l /dev/tun
crw-r----- vpn vpn 10, 200 2011-04-17 14:06 tun

download:
2.6.35.10-gdd56551: tun.ko
2.6.35.10-g308ba26: tun.ko
2.6.35.10-g3f43272: tun.ko


CPUFREQ: POWERSAVE, INTERACTIVE & SMARTASS
# insmod /system/lib/modules/cpufreq_interactive.ko
# insmod /system/lib/modules/cpufreq_smartass.ko
# insmod /system/lib/modules/cpufreq_powersave.ko
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
interactive smartass powersave userspace ondemand performance
(you don't have to pass symbol addresses)

download:
2.6.35.10-gdd56551: cpufreq_interactive.ko, cpufreq_smartass.ko, cpufreq_powersave.ko
2.6.35.10-g308ba26: cpufreq_interactive.ko, cpufreq_smartass.ko, cpufreq_powersave.ko
2.6.35.10-g3f43272: cpufreq_interactive.ko, cpufreq_smartass.ko, cpufreq_powersave.ko


PERFLOCK DISABLER (c) Michael Huang <coolbho3000@gmail.com>
# insmod /system/lib/modules/perflock_disable.ko
(you don't have to pass symbol addresses)

download:
2.6.35.10-gdd56551: perflock_disable.ko (you don't need this with the pre-cracked kernel image above)
2.6.35.10-g308ba26: perflock_disable.ko (you don't need this with the pre-cracked kernel image above)
2.6.35.10-g3f43272: perflock_disable.ko (you don't need this with the pre-cracked kernel image above)


BTRFS

download:
2.6.35.10-gdd56551: btrfs.ko
2.6.35.10-g308ba26: btrfs.ko
2.6.35.10-g3f43272: btrfs.ko
 
Last edited:

Alex-V

Inactive Recognized Developer
Aug 26, 2008
9,514
5,254
wow thanks ;)

The good old modules :) :)

good work

with kind regards...Alex
 

Alex-V

Inactive Recognized Developer
Aug 26, 2008
9,514
5,254
download file: cpufreq_interactive.ko is the same as cpufreq_smartass.ko


with kind regards..Alex
 

Droidzone

Inactive Recognized Developer
Sep 24, 2010
5,531
2,283
Kochi
www.droidzone.in
OnePlus 9 Pro
Hi snq. Sorely need a kernel for the new gingerbread sense with support for ext 4.that's the only problem that prevents me from uploading a new starburst..

Swyped with my Starburst based Desire. Please ignore any typos or grammos.
 

coolexe

Retired Recognized Developer
Aug 17, 2008
2,371
5,371
Here is flashable.zip, all modules included...

http://wbss.ro/coolexe/Extra/modules.zip

Sent from my HTC Desire using XDA Premium App
 
Last edited:
  • Like
Reactions: pexon and Muxeu

Top Liked Posts

  • There are no posts matching your filters.
  • 106
    (modifications/addons for the _closed_source_ 2.6.35.10 htc kernel - for rom maintainers)

    PATCHED KERNEL IMAGE

    v01:
    • lzma-compressed kernel
    • o/c: 128MHz, 245MHz, 384MHz, 576-1152MHz (stepping: 38400kHz)
    • u/v: svs (@128000kHz: 950mV, @245000kHz: 975mV, @384000kHz: 1000mV, @576000kHz: 1075mV, @614400kHz: 1100mV, @652800kHz: 1100mV, @691200kHz: 1125mV, @729600kHz: 1150mV, @768000kHz: 1175mV, @806400kHz: 1200mV, @844800kHz: 1225mV, @883200kHz: 1250mV, @921600kHz: 1250mV, @960000kHz: 1275mV, @998400kHz: 1275mV, @1036800kHz: 1275mV, @1075200kHz: 1275mV, @1113600kHz: 1300mV, @1152000kHz: 1300mV)
    • cpu vdd regulator constraints expanded (800..1350mV)
    • patched out "Take the fastest speed available at the specified VDD level" (=full freq tab)
    • pre-cracked perflock (no need for perflock disabler module)

    v02:
    • patched cpufreq code: set default cpu frequency constraints: 245..998MHz (with v01 cpu freq jumped to 1152 during the boot process)

    v03:
    • trackpad-to-wake support (oj will not choke after a while when screen is off)
    • workaround for non-standard (extended) batteries (devices w/ stock htc battery are not affected)

    v04:
    • 2.6.35.10-g308ba26 base (new leak) with the same mods as v03

    v05:
    • fixed htc akm8973 ("compass") driver (read more)

    v06:
    • 2.6.35.10-g3f43272 base (official gb update)

    download: zImage-v06 (flashable v05-to-v06 kernel image+modules update package here)


    --

    MODDED WIFI DRIVER
    • min rssi threshold for scan results lowered (-88dBm -> -108dBm)
    • don't send "rssi low" events via wireless_send_event()
    if you have messed up your framework/calibration file/etc with other "fixes", revert them

    download:
    2.6.35.10-gdd56551: bcm4329.ko
    2.6.35.10-g308ba26: bcm4329.ko


    ORIGINAL WIFI DRIVER

    download:
    2.6.35.10-g3f43272: bcm4329.ko


    CIFS
    # insmod /system/lib/modules/nls_utf8.ko
    # insmod /system/lib/modules/cifs.ko
    # busybox mount -t cifs -o user=lolwut,password=hackme,uid=1000,gid=1015,file_mode=0775,dir_mode=0775,iocharset=utf8,nodfs //192.168.40.10/public /sdcard/smb/public
    (removed slow_work_* dependencies and patched with 2.6.31 oplock code)

    download:
    2.6.35.10-gdd56551: nls_utf8.ko, cifs.ko
    2.6.35.10-g308ba26: nls_utf8.ko, cifs.ko
    2.6.35.10-g3f43272: nls_utf8.ko, cifs.ko


    EXT4
    # insmod /system/lib/modules/jbd2.ko
    # insmod /system/lib/modules/ext4.ko
    # busybox mount -t ext4 /dev/block/mmcblk0p3 /cache/lolwut
    # busybox mount | grep mmcblk0p3
    /dev/block/mmcblk0p3 on /cache/lolwut type ext4 (rw,relatime,barrier=1,data=ordered)

    download:
    2.6.35.10-gdd56551: jbd2.ko(dependecy), ext4.ko
    2.6.35.10-g308ba26: jbd2.ko(dependecy), ext4.ko
    2.6.35.10-g3f43272: jbd2.ko(dependecy), ext4.ko


    TUN
    # insmod /system/lib/modules/tun.ko
    # ls -l /dev/tun
    crw-r----- vpn vpn 10, 200 2011-04-17 14:06 tun

    download:
    2.6.35.10-gdd56551: tun.ko
    2.6.35.10-g308ba26: tun.ko
    2.6.35.10-g3f43272: tun.ko


    CPUFREQ: POWERSAVE, INTERACTIVE & SMARTASS
    # insmod /system/lib/modules/cpufreq_interactive.ko
    # insmod /system/lib/modules/cpufreq_smartass.ko
    # insmod /system/lib/modules/cpufreq_powersave.ko
    # cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
    interactive smartass powersave userspace ondemand performance
    (you don't have to pass symbol addresses)

    download:
    2.6.35.10-gdd56551: cpufreq_interactive.ko, cpufreq_smartass.ko, cpufreq_powersave.ko
    2.6.35.10-g308ba26: cpufreq_interactive.ko, cpufreq_smartass.ko, cpufreq_powersave.ko
    2.6.35.10-g3f43272: cpufreq_interactive.ko, cpufreq_smartass.ko, cpufreq_powersave.ko


    PERFLOCK DISABLER (c) Michael Huang <coolbho3000@gmail.com>
    # insmod /system/lib/modules/perflock_disable.ko
    (you don't have to pass symbol addresses)

    download:
    2.6.35.10-gdd56551: perflock_disable.ko (you don't need this with the pre-cracked kernel image above)
    2.6.35.10-g308ba26: perflock_disable.ko (you don't need this with the pre-cracked kernel image above)
    2.6.35.10-g3f43272: perflock_disable.ko (you don't need this with the pre-cracked kernel image above)


    BTRFS

    download:
    2.6.35.10-gdd56551: btrfs.ko
    2.6.35.10-g308ba26: btrfs.ko
    2.6.35.10-g3f43272: btrfs.ko
    29
    hey, sorry for the lack of input, i'm busy fixing the vdd issue
    there will be a separate thread for this serie of kernels w/detailed features/info +modded sources
    27
    new kernel image (v05):

    fixed off-by-one bug (missing value for register H1Z@0xc4) in latest htc akm8973 driver that caused calibration failure in akmd
    (that funny HOFFSET*.z values in /data/misc/AK8973Prms.txt)


    original (objdump output, comments by me)
    AKECS_GetData() inlined in akm_work_func() @0xc024d3d4:
    c024d3d4: mov ip, sp
    c024d3d8: push {r4, r5, fp, ip, lr, pc}
    c024d3dc: sub fp, ip, #4
    c024d3e0: sub sp, sp, #8
    c024d3e4: sub r5, fp, #28 @ r5: buffer
    c024d3e8: mov r1, #4 @ r1: RBUFF_SIZE
    c024d3ec: mov r0, r5 @ r0: buffer
    c024d3f0: bl c01ab3a0 @ < memset(buffer, 0, RBUFF_SIZE) < one too few actually, should be RBUFF_SIZE+1
    c024d3f4: mov r0, r5 @ r0: buffer
    c024d3f8: mov r1, #4 @ r1: RBUFF_SIZE
    c024d3fc: mvn r3, #63 @ same as mov r3, 0xffffffc0, and 0xc0 = AKECS_REG_ST
    c024d400: strb r3, [fp, #-28] @ buffer[0] = AKECS_REG_ST
    c024d404: bl c024d2b4 @ < AKI2C_RxData(buffer, RBUFF_SIZE) < one too few actually, should be RBUFF_SIZE+1
    c024d408: cmp r0, #0 @ checking ret val
    c024d40c: blt c024d450 @ goto fail
    c024d410: ldr r4, [pc, #88]
    c024d414: add r0, r4, #44 @ r0: &sense_data_mutex
    c024d418: bl c03a7ad4 @ mutex_lock(&sense_data_mutex)
    c024d41c: ldm r5, {r0, r1} @ copy buffer into r0,r1
    c024d420: mov ip, #1
    c024d424: mov r3, #0
    c024d428: mov r2, ip
    c024d42c: str ip, [r4, #76] @ atomic_set(&data_ready, 1)
    c024d430: str r0, [r4, #68] @ r0 (contents of buffer) into sense_data (part 1)
    c024d434: strb r1, [r4, #72] @ r1 (contents of buffer) into sense_data (part 2)
    c024d438: mov r1, #3
    c024d43c: ldr r0, [pc, #48] @ &data_ready_wq
    c024d440: bl c0072038 @ wake_up(&data_ready_wq)
    c024d444: add r0, r4, #44 @ &sense_data_mutex
    c024d448: bl c03a6f58 @ mutex_unlock(&sense_data_mutex);
    c024d44c: b c024d458 @ ...proceed with enable_irq, etc...

    modified
    ...
    c024d3e8: mov r1, #5
    ...
    c024d3f8: mov r1, #5
    ...
    c024d42c: str r0, [r4, #68]
    c024d430: str r1, [r4, #72]
    c024d434: str ip, [r4, #76] @ data_ready: 1
    ...


    remove b0rked calibration file (might be optional)
    recalibrate your compass
    outdoor calibration highly recommended (magnetic interference)
    21
    bravo-2.6.35.14-snq-110919.zip

    353w6f.jpg


    (to test w/o flashing it unpack zImage from the archive, adb reboot bootloader, fastboot boot zImage (you can't use wifi until the next reboot though))


    optional wifi-n addon
    20
    wow i really need to catch up on comments here

    in the meantime:
    bravo-kernel/bravo-2.6.35.14-snq-111011.zip
    wifin_update-2.6.35.14-snq-111011.zip (optional wifi-n addon)

    bravo-2.6.35.14-snq-111011-no2wcr.zip (w/o callrec support)
    wifin_update-2.6.35.14-snq-111011-no2wcr.zip (optional wifi-n addon for the version w/o callrec support)