[Kernel] [PrimoU] 2013/05/21 Titanium-KISS

Search This thread

maxwen

Senior Member
Jun 10, 2012
8,068
10,288
Hi

IMPORTANT: Before you continue reading!
At the moment this kernel is only for PrimoU devices
and NOT for PrimoC (CDMA) devices

IMPORTANT for CM users
If you want to use CM or a CM based ROM choose the correct kernel!
CM9 needs a different ramdisk.

With the permission from Adi_Pat I would like to announce my kernel build
All credits to this should go to Adi_Pat cause he did the hard work for
providing me with all I need. Therefore also the name has been
choosen to make this clearly visible.

This is just a first announcement.
I will upload the first image tonight

Principle #1:
Provide a kernel that is as close to stock as possible but provides
additional features that will improve functionality and/or performance

Some Q&A you might have
Q: what stands KISS for?
A: Keep It Simple, Stupid! :)
My aim is to provide a kernel that is 99.99% stock with just additional features
In the first build you will see
-OC (max 1.5)
-UV
-2 new goveners (lionheart, smartassV2)
-1 new scheduler (sio)

Q:will you provide a kernel with 2.0GHz?
A:No - since I want to provide a stable kernel and
my experiences showed that only using up to 1.5 is reliable

If you like to have higher frequencies you can
1) use Adi_Pats kernel
2) build your own kernel based on my changes and enable higher frequencies

Q:can I build my own kernel based on your changes?
A:sure. I will provide a patch file that can be applied on the original
sources provided from HTC

Q:how "close" is your kernel to stock?
A:actually if you dont use OC, UV and use govener=ondemand and
scheduler=deadline this IS stock kernel

Q:can you include feature "xy" in your build?
A:I will check and if it is not "against" principle #1 -Yes

Q:will you test your kernel builds?
A:yes. I will only provide images that have been tested to
1) boot without problems
2) have run through a basic test trying to include all important features
3) run some benchmarks to confirm that changes are not decreasing basic performance values

Q:how to install your kernel?
A:like titanium kernel
fastboot flash boot

regards

max
 
Last edited:

maxwen

Senior Member
Jun 10, 2012
8,068
10,288
I provide a complete folder with all downloads
please look at the following "naming conventions" for selecting
the correct image for your ROM!

Images containing "OC-UV" will have presets
Images containing "CM9" are for CM9
Images containing "CM10" are for CM10
All others are for stock (sense) ROMs

Download:
http://www.mediafire.com/?e1chs7tzcsstc

github:
https://github.com/maxwen/primou-kernel-KISS

Build 201305210014
Changelog:
-reverted to BFQ v5.1 - v6 causes problems
-smartmax update

Build 201305141244
Changelog:
-upgrade to BFQ v6
-added smartmax CPU governor

Build 201305062354
Changelog:
-enabled fauxsound support
-added double tap to wake
allows waking up the device by double tapping on the lower part of the screen - disabled by default
sysfs interface:
Code:
/sys/android_touch/s2w_allow_double_tap
1 -enable 0 - disable
Code:
/sys/android_touch/s2w_double_tap_barrier_y
default 1300 - y-barrier below that taps will be recognized
Code:
/sys/android_touch/s2w_double_tap_duration
default 150 - time in ms for minimal duration between the two taps
Code:
/sys/android_touch/s2w_double_tap_threshold
default 150 - threshold how much longer the duration can be then duration

Build 201302150054

Changelog:
-added fast charge
to enable run
Code:
echo 1 > /sys/class/power_supply/battery/fast_charge

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

Build 201212251804

Changelog:
-multi touch fix - thanks to d-panja3 for pointing me at this

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

Build 201212180251
ChangeLog:
-added KSM support - see here how to use it

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

Build 201212152225
ChangeLog:
-completely new S2W based on the work of nik3r and myself for the HOX+

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

Build 201212021155
Changelog:
-switched to linaro 4.7 toolchain
-overhaul of compile flags
-improved lowmemorykiller
-added some arm specific fixes and enhancements

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

Build 201211140025

KISS kernels will from now on only for sense ROMS
CM users use HELLBOY kernel http://xdaforums.com/showthread.php?t=1954967

Changelog:
-added BFQ scheduler

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

Chanelog Summary for all builds:
-new optimized ARM toolchain used
-some tweaks and fixes in vm
-added Proportional Rate Reduction for TCP - by Google http://research.google.com/pubs/pub37486.html
-added USB host support.
-added two-way call recording - Please consider local laws that prohibit using call recording!
based on patch found here http://xdaforums.com/showthread.php?t=1048182
-added conservative govener
-switched RCU to CONFIG_TINY_PREEMPT_RCU - reduced memory usage
-enabled SFB net scheduler CONFIG_NET_SCH_SFB http://lwn.net/Articles/429449/
-applied patch for optimized sha1 algo https://patchwork.kernel.org/patch/1040902/
-applied patch for arm specific rwsem http://permalink.gmane.org/gmane.linux.ports.arm.kernel/92418
-xz compression - based on this patch http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=7001/2
-OC (max 1.5GHz, boot with 1GHz)
-UV
-2 new goveners (lionheart, smartassV2)
-1 new scheduler (sio)

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

The "key" e.g. 201207112231 is the build id.

Actually this is just the timestamp when the image has been created.
When you report issues with a build please also provide this id

You can also find this in

Settings -> About -> Software Information -> More -> Kernel Version

Just some notes on the govener and schedulers:
Stock kernel is using govener ondemand and scheduler deadline
To get more information about all of those see here
http://xdaforums.com/showthread.php?t=1369817

You can get the stock kernel sources from here
http://www.htcdev.com/ (registration required)
Or from here http://www.mediafire.com/?o0uudb56oxawvaw

To create the KISS sources apply the patch supplied with each build

Other Downloads:

Note:
If you download save or edit those scripts on a windows host make sure that
you are not changing the line endings to be DOS "style" (CR/LF) since they will
not work on your device.

So before pushing them to the device check with e.g. notepad++ or any
other windows editor that the line endings are UNIX "style" (LF)

USB host scripts
Contains helper scripts for USB host mode

Flashable from recovery
http://www.mediafire.com/?cj1buyxvwteiyqq

Simply zip file
http://www.mediafire.com/?ao391v55e3f4h7r

getcpuinfo script
Will print current settings like OC, UV and govener
Also works with Titanium kernel
http://www.mediafire.com/?emhetf9ctcb3l0g

01vdd script
For setting UV values
Also works with Titanium kernel
http://www.mediafire.com/?yj11n461vz23l4j

02setcpu script
Will set OC max 1.5GHz and govener smartassV2
with battery "friendly" govener tweaks
Also works with Titanium kernel
http://www.mediafire.com/?i79wlhjomh9bhyf

smartassV2-tune script
Allow setting smartassV2 govener tweaks for battery or performance
Call with argument "b" or "p"
Also works with Titanium kernel
http://www.mediafire.com/?e02s5ej5acacnaj

Swap script
Will enable 130m swap partition
See here for details http://xdaforums.com/showpost.php?p=31441526&postcount=17
http://www.mediafire.com/?i9xc4hnfheztgir
 
Last edited:

s4shyam95

Senior Member
Jan 11, 2012
159
67
Mumbai
Great, i started with kernel compiling too, recently,, keep titanium tweaker in ur ramdisk, if possible, ill update u with the ramdisk builds, will add kernel specif features if u want, pm me
 

maxomid

Senior Member
Jun 6, 2012
218
37
best kernel

Hi ..
im tested this kernel on the ROM myONEv works
kernel is very fast and stable.
best benchmark!
 

Attachments

  • 20120712131652.jpeg
    20120712131652.jpeg
    133 KB · Views: 674

ckpv5

Inactive Recognized Contributor
Feb 11, 2008
14,354
18,301
Kuala Lumpur
Thanks for a nice kernel. So far the OC/UV is working great fro me.
What is the best recommended governor for wake / sleep ?
 

Attachments

  • screenshot_2012-07-12_21-39-57.jpg
    screenshot_2012-07-12_21-39-57.jpg
    34.8 KB · Views: 562
  • screenshot_2012-07-12_21-40-13.jpg
    screenshot_2012-07-12_21-40-13.jpg
    35.3 KB · Views: 499
  • Like
Reactions: timbohenry

maxwen

Senior Member
Jun 10, 2012
8,068
10,288
Hi

Actually there are a lot of things that you can tweak in the goveners
using the sys interface to make them perform best under certain "preconditions"

You can read this here which I also posted in the Adi_Pat thread
http://xdaforums.com/showthread.php?t=1369817
This will give you some great insights on this issue.
Also about the "decision" which govener to use a.s.o

Regarding UV:
As already writen above -50 should be safe all the time
-100 works for me if I limit it to max 1.2GHz but not higher
Then I sometimes have freezes e.g. runnung AnTuTu benchmark

I still have to play with the UV settings to find the optimal ones :)

Regards

max
 
Last edited:

maxwen

Senior Member
Jun 10, 2012
8,068
10,288
Hi

ATTENTION!!!!
Dont use sio I/O scheduler at the moment!!!!
I just discovered some strange during testing.
Stay with deadline this is stock

Will keep you informed if sio is really the reason
If it is it will be removed in next build


regards

max

EDIT: Even intensive testing has not given me the proof that the
sio scheduler was the reason.
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 89
    Hi

    IMPORTANT: Before you continue reading!
    At the moment this kernel is only for PrimoU devices
    and NOT for PrimoC (CDMA) devices

    IMPORTANT for CM users
    If you want to use CM or a CM based ROM choose the correct kernel!
    CM9 needs a different ramdisk.

    With the permission from Adi_Pat I would like to announce my kernel build
    All credits to this should go to Adi_Pat cause he did the hard work for
    providing me with all I need. Therefore also the name has been
    choosen to make this clearly visible.

    This is just a first announcement.
    I will upload the first image tonight

    Principle #1:
    Provide a kernel that is as close to stock as possible but provides
    additional features that will improve functionality and/or performance

    Some Q&A you might have
    Q: what stands KISS for?
    A: Keep It Simple, Stupid! :)
    My aim is to provide a kernel that is 99.99% stock with just additional features
    In the first build you will see
    -OC (max 1.5)
    -UV
    -2 new goveners (lionheart, smartassV2)
    -1 new scheduler (sio)

    Q:will you provide a kernel with 2.0GHz?
    A:No - since I want to provide a stable kernel and
    my experiences showed that only using up to 1.5 is reliable

    If you like to have higher frequencies you can
    1) use Adi_Pats kernel
    2) build your own kernel based on my changes and enable higher frequencies

    Q:can I build my own kernel based on your changes?
    A:sure. I will provide a patch file that can be applied on the original
    sources provided from HTC

    Q:how "close" is your kernel to stock?
    A:actually if you dont use OC, UV and use govener=ondemand and
    scheduler=deadline this IS stock kernel

    Q:can you include feature "xy" in your build?
    A:I will check and if it is not "against" principle #1 -Yes

    Q:will you test your kernel builds?
    A:yes. I will only provide images that have been tested to
    1) boot without problems
    2) have run through a basic test trying to include all important features
    3) run some benchmarks to confirm that changes are not decreasing basic performance values

    Q:how to install your kernel?
    A:like titanium kernel
    fastboot flash boot

    regards

    max
    39
    I provide a complete folder with all downloads
    please look at the following "naming conventions" for selecting
    the correct image for your ROM!

    Images containing "OC-UV" will have presets
    Images containing "CM9" are for CM9
    Images containing "CM10" are for CM10
    All others are for stock (sense) ROMs

    Download:
    http://www.mediafire.com/?e1chs7tzcsstc

    github:
    https://github.com/maxwen/primou-kernel-KISS

    Build 201305210014
    Changelog:
    -reverted to BFQ v5.1 - v6 causes problems
    -smartmax update

    Build 201305141244
    Changelog:
    -upgrade to BFQ v6
    -added smartmax CPU governor

    Build 201305062354
    Changelog:
    -enabled fauxsound support
    -added double tap to wake
    allows waking up the device by double tapping on the lower part of the screen - disabled by default
    sysfs interface:
    Code:
    /sys/android_touch/s2w_allow_double_tap
    1 -enable 0 - disable
    Code:
    /sys/android_touch/s2w_double_tap_barrier_y
    default 1300 - y-barrier below that taps will be recognized
    Code:
    /sys/android_touch/s2w_double_tap_duration
    default 150 - time in ms for minimal duration between the two taps
    Code:
    /sys/android_touch/s2w_double_tap_threshold
    default 150 - threshold how much longer the duration can be then duration

    Build 201302150054

    Changelog:
    -added fast charge
    to enable run
    Code:
    echo 1 > /sys/class/power_supply/battery/fast_charge

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

    Build 201212251804

    Changelog:
    -multi touch fix - thanks to d-panja3 for pointing me at this

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

    Build 201212180251
    ChangeLog:
    -added KSM support - see here how to use it

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

    Build 201212152225
    ChangeLog:
    -completely new S2W based on the work of nik3r and myself for the HOX+

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

    Build 201212021155
    Changelog:
    -switched to linaro 4.7 toolchain
    -overhaul of compile flags
    -improved lowmemorykiller
    -added some arm specific fixes and enhancements

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

    Build 201211140025

    KISS kernels will from now on only for sense ROMS
    CM users use HELLBOY kernel http://xdaforums.com/showthread.php?t=1954967

    Changelog:
    -added BFQ scheduler

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

    Chanelog Summary for all builds:
    -new optimized ARM toolchain used
    -some tweaks and fixes in vm
    -added Proportional Rate Reduction for TCP - by Google http://research.google.com/pubs/pub37486.html
    -added USB host support.
    -added two-way call recording - Please consider local laws that prohibit using call recording!
    based on patch found here http://xdaforums.com/showthread.php?t=1048182
    -added conservative govener
    -switched RCU to CONFIG_TINY_PREEMPT_RCU - reduced memory usage
    -enabled SFB net scheduler CONFIG_NET_SCH_SFB http://lwn.net/Articles/429449/
    -applied patch for optimized sha1 algo https://patchwork.kernel.org/patch/1040902/
    -applied patch for arm specific rwsem http://permalink.gmane.org/gmane.linux.ports.arm.kernel/92418
    -xz compression - based on this patch http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=7001/2
    -OC (max 1.5GHz, boot with 1GHz)
    -UV
    -2 new goveners (lionheart, smartassV2)
    -1 new scheduler (sio)

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

    The "key" e.g. 201207112231 is the build id.

    Actually this is just the timestamp when the image has been created.
    When you report issues with a build please also provide this id

    You can also find this in

    Settings -> About -> Software Information -> More -> Kernel Version

    Just some notes on the govener and schedulers:
    Stock kernel is using govener ondemand and scheduler deadline
    To get more information about all of those see here
    http://xdaforums.com/showthread.php?t=1369817

    You can get the stock kernel sources from here
    http://www.htcdev.com/ (registration required)
    Or from here http://www.mediafire.com/?o0uudb56oxawvaw

    To create the KISS sources apply the patch supplied with each build

    Other Downloads:

    Note:
    If you download save or edit those scripts on a windows host make sure that
    you are not changing the line endings to be DOS "style" (CR/LF) since they will
    not work on your device.

    So before pushing them to the device check with e.g. notepad++ or any
    other windows editor that the line endings are UNIX "style" (LF)

    USB host scripts
    Contains helper scripts for USB host mode

    Flashable from recovery
    http://www.mediafire.com/?cj1buyxvwteiyqq

    Simply zip file
    http://www.mediafire.com/?ao391v55e3f4h7r

    getcpuinfo script
    Will print current settings like OC, UV and govener
    Also works with Titanium kernel
    http://www.mediafire.com/?emhetf9ctcb3l0g

    01vdd script
    For setting UV values
    Also works with Titanium kernel
    http://www.mediafire.com/?yj11n461vz23l4j

    02setcpu script
    Will set OC max 1.5GHz and govener smartassV2
    with battery "friendly" govener tweaks
    Also works with Titanium kernel
    http://www.mediafire.com/?i79wlhjomh9bhyf

    smartassV2-tune script
    Allow setting smartassV2 govener tweaks for battery or performance
    Call with argument "b" or "p"
    Also works with Titanium kernel
    http://www.mediafire.com/?e02s5ej5acacnaj

    Swap script
    Will enable 130m swap partition
    See here for details http://xdaforums.com/showpost.php?p=31441526&postcount=17
    http://www.mediafire.com/?i9xc4hnfheztgir
    8
    OP updated to latest build
    6
    Hi

    For those who are "tired" of using an app or scripts
    to set OC and/or VDD here is a "preset" version

    http://www.mediafire.com/?b5dlejx51lie9u7

    This is only for NON CM9 since with CM9 you have anyway
    a builtin app to set the frequencies on boot

    Its just a ramdisk change and will set right on boot (before android starts)
    min frequency: 245Hz
    max frequency: 1.5GHz
    and VDD to those well tested values:
    24576: 900
    61440: 900
    122880: 900
    184320: 900
    192000: 900
    245760: 900
    368640: 950
    768000: 1000
    806400: 1000
    1024000: 1100
    1200000: 1100
    1401600: 1175
    1497600: 1175

    You can of course still overwrite all those values as before
    with an app or a script later.

    Use it only if you have prooven and tested that your One V
    can handle those settings!


    Regards

    max
    6