[07.aug.11][KERNEL]RAFPIGNA 2.0 OC [1.5ghz-Ext2/3/4-CIFS-UTF8-EAP-UV-EB-CLK]

Search This thread

rafpigna

Retired Recognized Developer
Nov 2, 2008
1,334
2,250
44
Rome
1,5Ghz OC, Undervolted, Extended Battery Support and much more


This is my personal kernel, compiled for myself and for my builds, but some one asked to share it so...

I'm not a kernel expert and probably I can't give a lot of support on this, so don't expect anything :p
I mainly did this to fit some my needs in my builds, so I cannot guarantee that will work fine with others and that I will be able to fix issues.


Credits for the kernel development goes to the people that constaly work on it: specially Markinus e Danijiel but of course also Rajko, Cotulla,
huyanu and all the other people involved.

A big thanks also to: Hastarin for his help and clear instructions to start.., ocm7 for the "night lesson" that gave my first compiled kernel, darkstone, crawlingcity


Use this kernel at your risk.
Speed is 998 as default, so standard for your phone. If you want to overclock you have to use an OC app.
Anyway DO IT AT YOUR RISK. I will not be responsible for damages to your phone!


Main Features:



  • Based on master linux_on_wince_htc http://gitorious.org/linux-on-wince-htc/linux_on_wince_htc and always keept updated to it

  • G-Sensor freeze patch and other small fixes

  • Patched with 1.5Ghz OC capability

  • Patched SMARTASS Governor to be more battery saver

  • Default speeds: 245 - 998 mhz

  • Default governor: interactive

  • Default undervolted to 925mV

  • SysFS interface to custom undervolt or overvolt (see post 2 for help), credit: -snq

  • Full cLK support, credit Cedesmith

  • Full support of two-way call recording, via external app (see here http://xdaforums.com/showthread.php?t=993793 )

  • Patched for BT high-battery drain on GB builds (your rom must support it in init.rc! read here http://xdaforums.com/showthread.php?t=1007774

  • Fully working HTC Headset support

  • Wi-Fi MAC address fix

  • Yaffs, Ext2, Ext3, Ext4, CIFS, UTF-8

  • RMNET as module

  • IEEE 802.1x/EAP authentication and Native Wifi-tethering (on GB/AOSP builds using the GB version)

  • Extended Battery Support (only original HTC EB 2300mAh) credits: Arne

  • My entire code, config, build script are stored on GIT. No unuseful diff files, no unuseful zips with configs.. just clone the git repo and you can see everything, launch the script and build your own clone.

  • For who cares, config and commits logs are also stored in the zip in the "devs" folder


Changelog:
My git repo: http://gitorious.org/~rafpigna/linux-on-wince-htc/rafpigna_linux_on_wince_htc

Code:
2.0 OC GB
Added two way call recording support (http://xdaforums.com/showthread.php?t=993793)
 Patched for high BT drain on GB builds (remember that to have this working, your rom must support it in init.rc! read here http://xdaforums.com/showthread.php?t=1007774 )
Merged to master branch

2.0 OC
Added two way call recording support (http://xdaforums.com/showthread.php?t=993793)
Patched for high BT drain on GB builds (remember that to have this working, your rom must support it in init.rc! read here http://xdaforums.com/showthread.php?t=1007774 )
Merged to master branch

1.9 OC GB
[B]only for Gingerbread builds[/B]
Cleaned and tweaked Wifi drivers from tytung repo
Merged to master git
Added default UV to 925mv for more battery saving
Sysfs interface to custom control the UV parameters via shell or script
Added more cpu frequency steps, for improved smoothness and battery saving
Added Extended Battery support from Arne code. (HTC Original EB 2300mah)
Added multiport support
Added full cLK support including boot-to-recovery
Included again "01modules" in the zip file to avoid losing data.


1.9 OC
Merged to master git
Added default UV to 925mv
Sysfs interface to custom control the UV parameters via shell or script
Added more cpu frequency steps
Added Extended Battery support from Arne code. (HTC Original EB 2300mah)
Added multiport support
Added full cLK support including boot-to-recovery
Included again "01modules" in the zip file to avoid losing data.


1.8 OC NO SENSE
Merged with linux_on_wince_htc to apply last commits 
http://gitorious.org/linux-on-wince-htc/linux_on_wince_htc
[fixed netfilter errors and missing dependencies]  Danijel
Added tytung AOSP wifi drivers and wpa_suplicant to enable IEEE 802.1x/EAP authentication and native wifi thetering on GB/NO SENSE builds
[B]Credit for this fix goes to TYTUNG[/B]

1.8 OC
Merged with linux_on_wince_htc to apply last commits 
http://gitorious.org/linux-on-wince-htc/linux_on_wince_htc
[fixed netfilter errors and missing dependencies]  Danijel

1.7
(new temporary branch: NEWOC)
Added BFQ as default scheduler, TinyRCU, LZMA [from huanyu]
Tweaked Interactive governor [from huanyu]
Other small tweaks (see git)

1.6
Merged to master  http://gitorious.org/linux-on-wince-htc/linux_on_wince_htc
[g-sensor calibration fix (no more facedown needed)] - Markinus

1.5
Fixed 245000 min frequency typo

1.4
Added no-oc on boot to avoid rebooting issues

1.3
Fixed low cpu values that causes drop of phone signal.

1.2
Tweaked Smartass governor
Set INTERACTIVE as default governor

1.1
Some cleanups

1.0
Added OC + Smartass governor



Download:

AT THIS MOMENT THE DOWNLOADS ARE ONLY FOR MAGLDR ROMS. IF YOU NEED CLK PLEASE CLICK HERE FOR A GUIDE ON HOW TO CONVERT. THANKS ARIF-ALI!
USING OTHER METHODS CAN CAUSE NO BOOTING, NO DATA OR OTHER ISSUES

Flash via ClockWord Recovery
I will not provide other formats
If you have issues flashing or something not works after flashing, check with your build chef if this zip is compatible with the partitions used by your build.


2.0 OC
This is working for all froyo/gb/aosp builds, but if you want max performance on Gingerbread, use the GB version

http://www.multiupload.com/H6TP0LFVJX

kernel_2r0_OC.png




2.0 OC GB
This is working only on Gingerbread builds. Includes a wpa_suplicant file that will be pushed in your /system/bin folder to enable IEEE 802.1x/EAP authentication and native wifi tethering

http://www.multiupload.com/QV7AHSKTC9

kernel_2r0_GB.png












Old versions:


1.9 OC
http://www.multiupload.com/AVBKLQSITQ

1.9 OC GB
http://www.multiupload.com/14RSYK5B28

1.8 OC
http://www.multiupload.com/OGY9NC4M75

1.8 OC GB
http://www.multiupload.com/SRW5CN4OIS

1.7
http://www.multiupload.com/LW7P00W69F
1.6
http://www.multiupload.com/ISZNS4LFH2
1.5

http://www.multiupload.com/NTBNV4EGGN
Donations:

I dont ask donations for this because mainly is based on the work from others and they deserves more than a "thanks". But since I put some efforts in this, would be nice if you can click on my "thanks" button to show you are thankful for this work :D
Anyway if you still want to offer me a coffe, it's appreciated.
 
Last edited:

rafpigna

Retired Recognized Developer
Nov 2, 2008
1,334
2,250
44
Rome
Undervolting/Overvolting via SysFS

This is a risky operation.
You can burn your CPU. Do it at your risk.
I'm not responsible if you damage your phone. If you are doing this, is supposed you know what are you doing.


You can set the UV/OV values using some simple commands in shell or writing them in a file to push in your /system/etc/init.d folder that will be executed on boot.

File must be named like XXvoltages, where XX is a number that is not used by any other file in the folder.

Please find here an example file (credits: tyween) to restore on boot the voltage levels to standard one (1050mv)
If you want to change, just unpack the zip, change the 12vddlevels to your preferred one and re-pack the zip, to flash it via cwr or push the single file with adb or droid explorer or anything else.

http://www.multiupload.com/8CP9AF9UGO



Advanced Instructions from -snq

usage:
query: (output: first column: frequency (kHz), second column: vdd* (mV))
Code:
cat /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
  128000:  950
  245000:  950
  384000:  975
  422400:  975
  460800: 1000
  499200: 1025
  537600: 1025
  576000: 1050
  614400: 1075
  652800: 1100
  691200: 1125
  729600: 1150
  768000: 1175
  806400: 1200
  844800: 1200
  883200: 1225
  921600: 1225
  960000: 1250
  998400: 1275
 1036800: 1275
 1075200: 1275
 1113600: 1300
 1152000: 1300
 1190400: 1300
incrementing/decrementing all levels by a specified amount* (mV):
Code:
echo '-25' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '+25' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
adjusting the supply voltage* (second value, mV) at a specific frequency (first value, kHz):
Code:
echo '998400 1250' >  /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
*: vdd values must be a multiple of 25 (enforced by the interface; the regulator doesn't accept other values - found out in the hard way)

please note that the values set through this interface will only be written to the acpu table - they will only become effective when the specific frequency is (re)set by cpufreq

i took the input parser from iscaela's code - thanks for it
do not apply this patch if you plan to use avs

to query the constraints of the regulator ("max_microvolts", "min_microvolts") or the voltage currently supplied to the cpu ("microvolts" (uV)):
Code:
grep '.' /sys/class/i2c-adapter/i2c-0/0-0048/regulator/regulator.0/*
 
Last edited:

bates_1974

Senior Member
Jun 10, 2009
475
23
Coventry
You might want to add in nice big caps no official extended battery support (I'm guessing it doesn't), won't be long until the requests flood in!!!

Sent from my DL DesireZ v3.4 final using Tapatalk
 

mwakious

Senior Member
Jan 24, 2008
2,451
6,724
mwakiousromseries.webnode.it
back to 1.5
i installed 1.6,waited 5',shutted down the phone,then again->on-rebooted 3 times....data corruption....
i have version 2.3 with ext4 1gb
going to wipe all and do fresh start with ext3 4kb

edit: after wipping only the ext part from ext4 to ext3,restored from CWM,updated the kernel,no more corruptions!!!
only issue ..its a little laggyyy,i think that 1.5 was faster...

edit2: back to 1.5...much better
1.6->to much lag,startup time very long,screen reaction not like 1.5,battery drenage BAD
 
Last edited:

shadiku

Senior Member
Oct 18, 2009
261
25
Very nice kernel, I was on the brink of starting my own as I was waiting for the new proximity sensor/light sensor fixes to be implemented but yours is now on my HD2. :D

One thing, it did think my battery was at 0% until I pulled the charger and started charging again in which it then shot back up to 100%.
 

x3nophobia

Senior Member
Dec 23, 2010
547
45
Cairo
I have high battery drain on standby mode about 267mA with this kernel :(

i want to downgrade it to 1.5, can u pls give me the link of kernel 1.5?
 
  • Like
Reactions: FanoXDA

rafpigna

Retired Recognized Developer
Nov 2, 2008
1,334
2,250
44
Rome
Some one is reporting higher battery drain then 1.5 but no changes are made to 1.6 except the g-sensor calibration fix.

I think that cause you have to reboot to install the kernel, you will always have an high battery drain on next boot with new kernel. Wait 10-20 minutes and you will see low battery drain. Actually I have 4ma in standby.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 253
    1,5Ghz OC, Undervolted, Extended Battery Support and much more


    This is my personal kernel, compiled for myself and for my builds, but some one asked to share it so...

    I'm not a kernel expert and probably I can't give a lot of support on this, so don't expect anything :p
    I mainly did this to fit some my needs in my builds, so I cannot guarantee that will work fine with others and that I will be able to fix issues.


    Credits for the kernel development goes to the people that constaly work on it: specially Markinus e Danijiel but of course also Rajko, Cotulla,
    huyanu and all the other people involved.

    A big thanks also to: Hastarin for his help and clear instructions to start.., ocm7 for the "night lesson" that gave my first compiled kernel, darkstone, crawlingcity


    Use this kernel at your risk.
    Speed is 998 as default, so standard for your phone. If you want to overclock you have to use an OC app.
    Anyway DO IT AT YOUR RISK. I will not be responsible for damages to your phone!


    Main Features:



    • Based on master linux_on_wince_htc http://gitorious.org/linux-on-wince-htc/linux_on_wince_htc and always keept updated to it

    • G-Sensor freeze patch and other small fixes

    • Patched with 1.5Ghz OC capability

    • Patched SMARTASS Governor to be more battery saver

    • Default speeds: 245 - 998 mhz

    • Default governor: interactive

    • Default undervolted to 925mV

    • SysFS interface to custom undervolt or overvolt (see post 2 for help), credit: -snq

    • Full cLK support, credit Cedesmith

    • Full support of two-way call recording, via external app (see here http://xdaforums.com/showthread.php?t=993793 )

    • Patched for BT high-battery drain on GB builds (your rom must support it in init.rc! read here http://xdaforums.com/showthread.php?t=1007774

    • Fully working HTC Headset support

    • Wi-Fi MAC address fix

    • Yaffs, Ext2, Ext3, Ext4, CIFS, UTF-8

    • RMNET as module

    • IEEE 802.1x/EAP authentication and Native Wifi-tethering (on GB/AOSP builds using the GB version)

    • Extended Battery Support (only original HTC EB 2300mAh) credits: Arne

    • My entire code, config, build script are stored on GIT. No unuseful diff files, no unuseful zips with configs.. just clone the git repo and you can see everything, launch the script and build your own clone.

    • For who cares, config and commits logs are also stored in the zip in the "devs" folder


    Changelog:
    My git repo: http://gitorious.org/~rafpigna/linux-on-wince-htc/rafpigna_linux_on_wince_htc

    Code:
    2.0 OC GB
    Added two way call recording support (http://xdaforums.com/showthread.php?t=993793)
     Patched for high BT drain on GB builds (remember that to have this working, your rom must support it in init.rc! read here http://xdaforums.com/showthread.php?t=1007774 )
    Merged to master branch
    
    2.0 OC
    Added two way call recording support (http://xdaforums.com/showthread.php?t=993793)
    Patched for high BT drain on GB builds (remember that to have this working, your rom must support it in init.rc! read here http://xdaforums.com/showthread.php?t=1007774 )
    Merged to master branch
    
    1.9 OC GB
    [B]only for Gingerbread builds[/B]
    Cleaned and tweaked Wifi drivers from tytung repo
    Merged to master git
    Added default UV to 925mv for more battery saving
    Sysfs interface to custom control the UV parameters via shell or script
    Added more cpu frequency steps, for improved smoothness and battery saving
    Added Extended Battery support from Arne code. (HTC Original EB 2300mah)
    Added multiport support
    Added full cLK support including boot-to-recovery
    Included again "01modules" in the zip file to avoid losing data.
    
    
    1.9 OC
    Merged to master git
    Added default UV to 925mv
    Sysfs interface to custom control the UV parameters via shell or script
    Added more cpu frequency steps
    Added Extended Battery support from Arne code. (HTC Original EB 2300mah)
    Added multiport support
    Added full cLK support including boot-to-recovery
    Included again "01modules" in the zip file to avoid losing data.
    
    
    1.8 OC NO SENSE
    Merged with linux_on_wince_htc to apply last commits 
    http://gitorious.org/linux-on-wince-htc/linux_on_wince_htc
    [fixed netfilter errors and missing dependencies]  Danijel
    Added tytung AOSP wifi drivers and wpa_suplicant to enable IEEE 802.1x/EAP authentication and native wifi thetering on GB/NO SENSE builds
    [B]Credit for this fix goes to TYTUNG[/B]
    
    1.8 OC
    Merged with linux_on_wince_htc to apply last commits 
    http://gitorious.org/linux-on-wince-htc/linux_on_wince_htc
    [fixed netfilter errors and missing dependencies]  Danijel
    
    1.7
    (new temporary branch: NEWOC)
    Added BFQ as default scheduler, TinyRCU, LZMA [from huanyu]
    Tweaked Interactive governor [from huanyu]
    Other small tweaks (see git)
    
    1.6
    Merged to master  http://gitorious.org/linux-on-wince-htc/linux_on_wince_htc
    [g-sensor calibration fix (no more facedown needed)] - Markinus
    
    1.5
    Fixed 245000 min frequency typo
    
    1.4
    Added no-oc on boot to avoid rebooting issues
    
    1.3
    Fixed low cpu values that causes drop of phone signal.
    
    1.2
    Tweaked Smartass governor
    Set INTERACTIVE as default governor
    
    1.1
    Some cleanups
    
    1.0
    Added OC + Smartass governor



    Download:

    AT THIS MOMENT THE DOWNLOADS ARE ONLY FOR MAGLDR ROMS. IF YOU NEED CLK PLEASE CLICK HERE FOR A GUIDE ON HOW TO CONVERT. THANKS ARIF-ALI!
    USING OTHER METHODS CAN CAUSE NO BOOTING, NO DATA OR OTHER ISSUES

    Flash via ClockWord Recovery
    I will not provide other formats
    If you have issues flashing or something not works after flashing, check with your build chef if this zip is compatible with the partitions used by your build.


    2.0 OC
    This is working for all froyo/gb/aosp builds, but if you want max performance on Gingerbread, use the GB version

    http://www.multiupload.com/H6TP0LFVJX

    kernel_2r0_OC.png




    2.0 OC GB
    This is working only on Gingerbread builds. Includes a wpa_suplicant file that will be pushed in your /system/bin folder to enable IEEE 802.1x/EAP authentication and native wifi tethering

    http://www.multiupload.com/QV7AHSKTC9

    kernel_2r0_GB.png












    Old versions:


    1.9 OC
    http://www.multiupload.com/AVBKLQSITQ

    1.9 OC GB
    http://www.multiupload.com/14RSYK5B28

    1.8 OC
    http://www.multiupload.com/OGY9NC4M75

    1.8 OC GB
    http://www.multiupload.com/SRW5CN4OIS

    1.7
    http://www.multiupload.com/LW7P00W69F
    1.6
    http://www.multiupload.com/ISZNS4LFH2
    1.5

    http://www.multiupload.com/NTBNV4EGGN
    Donations:

    I dont ask donations for this because mainly is based on the work from others and they deserves more than a "thanks". But since I put some efforts in this, would be nice if you can click on my "thanks" button to show you are thankful for this work :D
    Anyway if you still want to offer me a coffe, it's appreciated.
    12
    Undervolting/Overvolting via SysFS

    This is a risky operation.
    You can burn your CPU. Do it at your risk.
    I'm not responsible if you damage your phone. If you are doing this, is supposed you know what are you doing.


    You can set the UV/OV values using some simple commands in shell or writing them in a file to push in your /system/etc/init.d folder that will be executed on boot.

    File must be named like XXvoltages, where XX is a number that is not used by any other file in the folder.

    Please find here an example file (credits: tyween) to restore on boot the voltage levels to standard one (1050mv)
    If you want to change, just unpack the zip, change the 12vddlevels to your preferred one and re-pack the zip, to flash it via cwr or push the single file with adb or droid explorer or anything else.

    http://www.multiupload.com/8CP9AF9UGO



    Advanced Instructions from -snq

    usage:
    query: (output: first column: frequency (kHz), second column: vdd* (mV))
    Code:
    cat /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
      128000:  950
      245000:  950
      384000:  975
      422400:  975
      460800: 1000
      499200: 1025
      537600: 1025
      576000: 1050
      614400: 1075
      652800: 1100
      691200: 1125
      729600: 1150
      768000: 1175
      806400: 1200
      844800: 1200
      883200: 1225
      921600: 1225
      960000: 1250
      998400: 1275
     1036800: 1275
     1075200: 1275
     1113600: 1300
     1152000: 1300
     1190400: 1300
    incrementing/decrementing all levels by a specified amount* (mV):
    Code:
    echo '-25' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
    echo '+25' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
    adjusting the supply voltage* (second value, mV) at a specific frequency (first value, kHz):
    Code:
    echo '998400 1250' >  /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
    *: vdd values must be a multiple of 25 (enforced by the interface; the regulator doesn't accept other values - found out in the hard way)

    please note that the values set through this interface will only be written to the acpu table - they will only become effective when the specific frequency is (re)set by cpufreq

    i took the input parser from iscaela's code - thanks for it
    do not apply this patch if you plan to use avs

    to query the constraints of the regulator ("max_microvolts", "min_microvolts") or the voltage currently supplied to the cpu ("microvolts" (uV)):
    Code:
    grep '.' /sys/class/i2c-adapter/i2c-0/0-0048/regulator/regulator.0/*
    12
    1.7 Released to the horde :D
    Enjoy people and dont forget the "thanks" button :D
    11
    Hello folks,
    I'm currently working and I hope to release kernel update today or tomorrow.

    Anyway let me explain some stuff:

    1- HD2 is not my daily phone (I use a Desire HD) so it's really hard for me to test things very good.
    2- I have no much free time like in the past.. just to let you understand on my Desire HD I have the same rom from when I bought it in March.. still android 2.2...
    3- I see that, apart some little issues that I was still not able to find, this kernel is almost perfect as it is. So I decided that the 2.0 version will be just a "refresh" from a long time. Then, if some bugs or issues arises during your use, I will try to correct them.

    I need some time to do things also because I feel a little bit confused since I not followed delevolping for long time, like I dont know anything about cLK...

    Thanks for you patience and your following
    7
    RAFPIGNA KERNEL 1.7 for AF403

    anyone interested in RAFPIGNA KERNEL 1.7 for AF403 build?

    I made a adb-script for this. just unzip an run install_kernel.bat

    that's all! don't forget to click on thanks button :)

    download here:

    http://xdaforums.com/attachment.php?attachmentid=512469&d=1297193648