[Kernel][GPL] DecaFuct [2.6.29.6][12/22/2010] - Hero CDMA Android Development

Hi guys. As you may have noticed around people have been using an 'uncapped' version of Darch's Kernel source. The Kernel inside of the CM6(including nightlies) is capped at 691 as to allow anyone and everyone the ability to boot.
But what if you're a self-proclaimed speed demon whose hero is capable of high frequencies and enjoys insanely high MFLOPS and crazy high Quadrant scores?!
Well guess what!?
This kernel is for you.​
ROMS that use this kernel source
(This is so that you don't just flash over something that you are already running, check with the ROM cook to see how up-to-date they are)
[ROM][GPL][NONSENSE] aospMod v0.9.7 | AOSP 2.2.1 (Froyo) [Maintainer: aosp]
[ROM] FroYo 2.2 - CM6 Extremely Blue, BlackMod, Red, Purple, Vanilla [Maintainer: jaybob]
[ROM-DEV] HTC Sense Android 2.2.1 [Maintainer: Zenulator]
DecaFuct. Stable Kernel. In blue.​
DecaFuct Kernel Releases (CFS versions)​
[email protected] 12/22/2010 *NEW*
Commits: https://github.com/Decad3nce/htc-kernel-heroc/commits/heroc
NEW Maintenance update. Reverted VM tweaks.
Kanged erasmux frequency table. Fixed stepping and QCT CDMA radio fixup
Included 06tweaks script that configures kernel and overwrites the overwrite to scaling_governor in CM6
Revised a few low level configurations in the script regarding VM
All frequencies(except 480mhz) are on the same PLL (PLL 2).
A lot of updates to smartass cpu governor from Erasmux
Updates on the lowmemorkiller driver from AOSP
Backport smd rpcrouter from 2.6.35 to (hopefully) solve problem with Auto-answer mode - Erasmux
Reverted every usleep and msleep integration
Fixed i2c errors
Set smartass cpu governor as default, and renamed kernel (DecaFuct)
Changed sleep mode back to HTCs recommendations
Download [email protected] #589 768mhz
Dropbox Mirror
MD5: 0ea00f5af58c84ff40d94bbd1e10657d
Download [email protected] #589 691mhz
Dropbox Mirror
MD5: a6d60ca7c89255e5e66cd1aba36b0f10​
Resources for source:
Original CyanogenMod Branch
Master Branch(Darch's)
My fork​
Credits:
s0be!!!
Phusson for giving us overclock
Toastcfh for being like the most awesome kernel developer ever
Darchstar for just about everything
Ninpo
Eran(erasmux)
jaybob413
The entire CyanogenMod team for their hard work
Koush for AnyKernel update.zip!
Zenulator for the AnyKernel update.zip for HeroC
Collin_ph for ideas regarding msmsdcc and CFS scheduler help
Google and HTC
AOSP
XDA
Specific Kernel Contributors via github
KingKang, this is how you give credit and show your source via GPL and on Github.
I'll add in more explanations to things as time progresses and as I merge in more of my commits that I have locally.
How to install:
Place the downloaded update.zip at the root of your sdcard. Then boot to recovery mode, wipe dalvik, and flash it. Your ramdisk will remain intact and unchanged, but your kernel will be replaced.
You MAY need to wipe dalvik cache if you're having strange problems.​
Please nandroid first, that way you always can go back after you hate me.
Older releases:
Code:
[CENTER][INDENT][COLOR="RED"][SIZE="4"][B]BrainFuct Kernel Releases (BFS versions)[/B][/SIZE][/COLOR][/CENTER]
[SIZE="3"][B]BFS Release 11/18/2010[/B][/SIZE]
[LIST]
[*]Commits: [url]http://github.com/Decad3nce/htc-kernel-heroc-BFS/commits/master[/url]
[*] Completely in-line with the Stable(CFS) branch(See on CFS changelog)
[*] Fixed a lot of bugs in sched_bfs.c rooted in my reverting from .330 -> .318
[*] Reverted mutex adaptive spin update from sched_bfs.c
[*] THERE MAY BE A PROBLEM WITH UI LAG. YOU CAN FIX IT BY CHANGING YOUR rr_interval IN /proc/sys/kernel.
[*] [CODE] echo "1" > /proc/sys/kernel/rr_interval
[/LIST]
Download [email protected] #16 768mhz
MD5: 2a67808019b4de2b739079964f820f5b
Download [email protected] #16 691mhz
MD5: 289749aa06f064112a52731c0439e2e1​
BFS Release 11/07/2010
Commits: http://github.com/Decad3nce/htc-kernel-heroc-BFS/commits/master
Updated kgsl, better graphics performance
Updated msm_camera
Updated s5k3e2fx camsensor from .32(3000+ changes)
Updated Interactive Governor.
Download [email protected] #15 768mhz
MD5: 9ee656a01503d1aeea43bb2f5ed4b25f
Download [email protected] #15 691mhz
MD5: 4ac17e572155ecf2f753137b16c38eaa​
BFS Release 10/27/2010
Commits: http://github.com/Decad3nce/htc-kernel-heroc-BFS/commits/master
Added erasmux's "smartass" governor (See CFS changelog for details)
Optimized ARM RWSEM algorithm
vmscan: raise the bar to PAGEOUT_IO_SYNC stalls
arm: mm: Don't free prohibited memmap entries
Download [email protected] #14 768mhz
MD5: 54ff919b8df88b6baee048b293ac124f
Download [email protected] #14 691mhz
MD5: f1f77a1082453fc435efdc4c256ef27c​
BFS Release 10/12/2010
Commits: http://github.com/Decad3nce/htc-kernel-heroc-BFS/commits/master
Fixed camera->gallery->camera bug(hw3d release). Thanks to erasmux/ninpo for the patch and jaybob413/aosp for testing.
Backported .32 lowmemorykiller.c. Much more efficient RAM handling.
Set up easy to compile for beginners. (defconfig + script)
WIPE DALVIK BEFORE/AFTER FLASHING THIS RELEASE.
Download [email protected] #13 768mhz
MD5: 48eef774c094165c95bd35a857da9634
Download [email protected] #13 691mhz
MD5: eded283732647f941e1eb367cd1c39a4​[/INDENT]
BFS Release 10/03/2010
Commits: http://github.com/Decad3nce/htc-kernel-heroc-BFS/commits/master
Adapted erasmux idle code backport from .34 to BFS
Built in CIFS module
Ramzswap module is built in
Cleaned up
Download [email protected] #12 768mhz
MD5: 54dfeee2d5daf3c8885f9a5210898821
Download [email protected] #12 691mhz
MD5: 669572be0bacdc025dda355f251b6476​
BFS Release 09/28/2010
Merged stuff from stable branch
COMMITS:
Squash bugs in board-heroc.c
Drop freqs under 245760 since no one uses them anyways; prevents override/instabilty.
Bring touchscreen more in-line with mahi-mahi (uses the same hw) - s0be
This is superfluous whitespace, move along
Download [email protected] #11 BFS (Uncapped)
MD5: e26b4f07dbbe050c61ef593aa37c3d6f
Download ramzswaps.ko for #11 BFS Uncapped
Download [email protected] #11 BFS (Capped)
MD5: f6573225e19f442e858c7cf400eb923d
Download ramzswaps.ko for #11 BFS Capped
BFS Release 09/26/2010
Merged stuff from stable branch, see below
Added a 691-capped version
Download [email protected] #10 BFS
MD5: 96d60585731363850d9922e0b04ea9f7
Download ramzswap.ko for #10-BFS-Uncapped
691 Capped version
Download [email protected] #10 BFS (691 CAPPED!)
MD5: c7dd749233f78d2ffc9fa546b80509eb
Download ramzswap.ko for #10-BFS-Capped
BFS Release 09/22/2010
Mostly reverted .330 BFS patch, roll back to .318
UI lag/delay is virtually completely gone!
http://github.com/Decad3nce/htc-kernel-heroc-BFS/commit/1568ef90ed464087a83c98de3ee145ffa0aacdb7
http://github.com/Decad3nce/htc-kernel-heroc-BFS/commit/6c9b675efd42324f16477d2d080b7593338ae254
FIRST BFS RELEASE THAT I AM SATISFIED WITH.
Download [email protected] #9 (NO CACHE WIPE) (DIAG FUNCTION ENABLED)
MD5: eb7cf9e34bd22a90d43a324465029f36
Download ramzswap.ko for 09/22/2010 #9 Kernel
BFS Release 09/20/2010
Lots of work put in this release
Fixed Goggles FC (http://github.com/Decad3nce/htc-kernel-heroc-BFS/commit/7b438a53cc03701b14bd2f18c2d0f8f49074cf77)
Fixed posix-timers-cpu.c compilation error, from inheriting .31 scheduler updates (http://github.com/Decad3nce/htc-kernel-heroc-BFS/commit/1478838f0f407447cc7b2437d05c9b5452b946cb)
Merged in mutex adaptive spin changes (http://github.com/Decad3nce/htc-kernel-heroc-BFS/commit/bce7d6729a18c10efb788cbe2e48eae4eb22d702) (http://github.com/Decad3nce/htc-kernel-heroc-BFS/commit/55829b4b81bb606c4f97a62d80851900500fdaf6)
Mostly stabilize GPS via setting rr_interval to 1 (http://github.com/Decad3nce/htc-kernel-heroc-BFS/commit/d6cee5ac10db4a2a176f75c5f076d8a880725330) Untested while driving.
Download [email protected] #7 -Brainfuct
MD5: 9b55b409f94bb63fa9db0eafadadee28
ramzswaps.ko for BFS
BFS Release 09/03/2010
Added back ext3/4 support
Added ramzswap(for compcache) via darch(and actually enabled it this time)
Patched BFS to .330(idk how stable it is, might revert to .318 if it isn't)
Reverted msleep integration in board-heroc-mcc.c
The update.zip wipes the cache partition, so first boot will take a while
If you're having random 'lock ups' or 'reboots' set the cpu governor to ondemand
Download [email protected] #10 -BrainFuct
MD5: 8ea499e7f35206cc0afe7a5c885d9225
BFS Release 08/29/2010
Added desirec(Eris) compatibility, via darch
Added usleep function, and applied it throughout.
Fixed some things I fuxed up in the .config
Updated touchscreen source via darch
Commits: http://github.com/Decad3nce/htc-kernel-heroc-BFS/commits/master
Download [email protected] #4
MD5: 492e93a6587a5912ea43c15333568dab
BFS Release 08/26/2010
Brought it up to .316
Recompiled wlan.ko
Lots of changes
libgps isn't starved: see this commit Still not completely stable. Doubtful that it'll ever be stable with .29
Commits and new repo are all here
DOWNLOAD [email protected] #1
MD5: 20797d27463b3c63592d6d66b9fe310c
Stable Kernel Releases (CFS versions)​
[email protected] 11/18/2010
Commits: http://github.com/Decad3nce/htc-kernel-heroc/commits/master
Made the frequency table more efficient: Less steps, Less freq's, etc.
Re-merged in the .32 msm_camera updates
Updated s5k3e2fx camsensor PROPERLY for better camera/camcorder performance
Reverted mutex adaptive spin updates since they fux with sleeping-while-atomic with KGSL
Download [email protected] #43 768mhz
MD5: c6a96df1200bfff884740a3b6f0fba5d
Download [email protected] #43 691mhz
MD5: e16383d88150ddaf5c30822d75e14868 ​
[email protected] 11/15/2010
Commits: http://github.com/Decad3nce/htc-kernel-heroc/commits/master
FIXED WAKE LAG. I PROMISE. K.
Reverted .32 camsensor updates(reworking for next release).
Updated interactive cpu governor(more stable).
Sleep.
Download [email protected] #23 768mhz
MD5: 5d04797f0573fcccc7a21f6f849649f2
Download [email protected] #24 691mhz
MD5: 219907892b3a8fe961b8f1b54e6771e4​
[email protected] 11/12/2010 V2
Commits: http://github.com/Decad3nce/htc-kernel-heroc/commits/master
Removed Swap
Increased clock speed of s5k3e2fx camsensor to 83mhz(charasingh)
Fixed atomic functions in bfq iosched(damentz)
Reverted updates to interactive cpu governor(wake lag gone).
Revert "cpufreq: Remove input event handler code" from cyanogen. (NEW)
Download [email protected] #20 768mhz
MD5: 2a7a758cec97cdf4e92ce7d21ddb9aa6
Download [email protected] #15 691mhz
MD5: 53be09df3703b1dba202f42c5e67365c​
[email protected] 11/07/2010
Commits: http://github.com/Decad3nce/htc-kernel-heroc/commits/master
Updated kgsl, better graphics performance
Updated msm_camera
Updated s5k3e2fx camsensor from .32(3000+ changes)
Updated Interactive Governor.
Download [email protected] #16 768mhz
MD5: 6e72cf3714324519ce1d16fd5b828d1c
Download [email protected] #13 691mhz
MD5: 399fd9110be4e1655ef1efafab995ddd​
[email protected] 10/27/2010
Commits: http://github.com/Decad3nce/htc-kernel-heroc/commits/heroc
Added erasmux "smartass" governor
See second post for technical details
Added 176000 frequency, so one step below 245760
Interactive is still default cpu governor, use batterytweak/setcpu to change to smartass
Download [email protected] #15 768mhz
MD5: be98a2450d6db32bc7372dd447cec8bb
Download [email protected] #11 691mhz
MD5: 03636eea703ce9d3ee903f8bdeae5b5c​
[email protected] 10/25/2010
Commits: http://github.com/Decad3nce/htc-kernel-heroc/commits/heroc
Optimized ARM RWSEM algorithm
vmscan: raise the bar to PAGEOUT_IO_SYNC stalls
arm: mm: Don't free prohibited memmap entries
All updates are from upstream.
Download [email protected] #13 768mhz
MD5: ce01b1817700419969d43b938665e842
Download [email protected] #10 691mhz
MD5: 2cbfb2e662680a765b398a24c605d9b7​
[email protected] 10/12/2010
Commits: http://github.com/Decad3nce/htc-kernel-heroc/commits/heroc
Fixed camera->gallery->camera bug(hw3d release). Thanks to erasmux/ninpo for the patch and jaybob413/aosp for testing..
Backported .32 lowmemorykiller.c. Much more efficient RAM handling.
Set up easy to compile for beginners. (defconfig + script)
WIPE DALVIK BEFORE/AFTER FLASHING THIS RELEASE.
Download [email protected] #9 768mhz
MD5: f7ed6ae3ff50a5dd3f68a2af9d9eed31
Download [email protected] #9 691mhz
MD5: b77c52471d5dde114b9544c3ea041560​
[email protected] 10/03/2010
Commits: http://github.com/Decad3nce/htc-kernel-heroc/commits/heroc
Adapted erasmux idle code backport from .34
Built in CIFS module
Ramzswap module is built in
Cleaned up
"Failed to find CPU subsys" spam is gone
Download [email protected] #6 768mhz
MD5: 50f8eaae80558977dab96a354f8ce8a9
Download [email protected] #? 691mhz
MD5: 36e458d73ba0760261f6dff5bec6514a​
[email protected] 09/28/2010
COMMITS:
Squash bugs in board-heroc.c
Drop freqs under 245760 since no one uses them anyways; prevents override/instabilty.
Bring touchscreen more in-line with mahi-mahi (uses the same hw) - s0be
This is superfluous whitespace, move along
Download [email protected] #5
MD5: 43e9a5cd836f59965be354c1d428a71e
Download ramzswaps.ko for [email protected] #5
[email protected] 09/26/2010
Enabled USB_DIAG function for you CDMA workshop users
Reverted some debug stuff
Removed 19.2mhz from the freq table, should up stability.
Fixed a bad patch integration in ipv4
Commits: http://github.com/Decad3nce/htc-kernel-heroc/commits/heroc
Download [email protected] #2
MD5: 8ac35187acc3dac7f223f873e68df6e0
Download ramzswap.ko for #2 Uncapped
[email protected] 09/14/2010
Changes: http://github.com/Decad3nce/htc-kernel-heroc/commit/bbd66bf7867d1e0135cb5fcf2f743355dbc24c75
Download [email protected] #14
MD5: e665bbd8d5bb5cae4c29e7f523197ece
ramzswap.ko (NOT FLASHABLE)
[email protected] 09/11/2010
Merge in .31 scheduling updates from Ninpo(http://github.com/Decad3nce/htc-kernel-heroc/commit/fe71ab000ba3e70ba57516880b5f2b09da5e4481)
Finally added .config to my github(sorry about that), and fixed the Goggles fc errors by enabling ipv6 support instead of optional modules.
Compiled ramzswap.ko and wlan.ko for new revision
Reverted back to deadline i/o scheduler
Most stable this has been.
Download [email protected] #13
MD5: 360f48e347fd3eb09a2cae3a57d9198c
Download optional ramzswap.ko (NOT FLASHABLE)
[email protected] 09/03/2010
Added back ext3/4 support
Added ramzswap(for compcache) via darch(and actually enabled it this time)
Reverted msleep integration in board-heroc-mcc.c
The update.zip wipes your cache partition for you, so first boot will take a while
#10 Stable kernel was a failure.
Download [email protected] #11 -Stable
MD5: 045547cd3c592d7f39fe8e5984a82034
[email protected] 08/27/2010
Added the 'usleep' function. Applied it throughout, should save on cpu cycles and save battery.
Commit: http://github.com/Decad3nce/htc-kernel-heroc/commit/23fe04b6c05a4608cbb4478e6eab2b01c8f2ab36
Reset the default governor as interactive so that when you flash to a different ROM(other than CM6) it actually sets to interactive(unless otherwise specified by the ramdisk).
Most of the credit goes to Ninpo
Download [email protected] #9 -Uncapped
MD5: 5ba126e58d02233c9e9699cc241883f5
[email protected] 08/19/2010
Re-added all the default cpu governors
Set BFQ I/O sched as default
Default governor is 'ondemand'
You can still enable a different governor either with setcpu or manually, ask about how.
Pull the config.gz and extract .config to see the rest of the changes, nothing in source
Download [email protected] #8 -stable
MD5: dec8112b00bb032b59d7552a44dec05a
[email protected] 08/18/2010
Made Interactive CPU governor default
Default Scheduler is still deadline
Recompiled wlan.ko, added to to the update.zip
Download [email protected] #7 -stable
MD5: 19fe8851ef74585b8125bdbef60e9523
[email protected] 08/17/2010
Added in BFQ I/O via Darchs commit) Original Source: (http://bit.ly/aoX7Bj)
Default scheduler is Deadline
Added 'interactive' cpu governor
Fixed kernel panic reboots
Download [email protected] #5
MD5: c86247444d5e642d3ebd0be2edfe7413
[email protected] 08/16/2010
Decreased thre msmsdcc_fmax to 32000000
Set the msmsdcc_pwrsave to 0
Merged in various commits from AOSP
Merged in various commits from Cyanogenmod
Kept up to date with Darch's branch
Left the kernel to scale from 19200 to 768000
Download [email protected] #1
MD5: This zip doesn't exist anymore(I doesn't has it).
[/CODE]

How to compile!
This guide is written for debian based linux
Retrieved and modified from the CM Wiki which can be found here: http://wiki.cyanogenmod.com/index.php?title=Building_Kernel_from_source
Firs things first, you'll need to install the development support packages for 32bit/64bit via aptitude or other method:
Code:
git-core gnupg sun-java6-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev
Then you'll have to retrieve the repo script, move it to /bin and make it executable:
Code:
mkdir -p ~/bin
curl http://android.git.kernel.org/repo > ~/bin/repo
chmod a+x ~/bin/repo
(You'll have to reboot after this step)
Next up, I'd recommend that you repo sync the CM android repository from http://www.github.com/CyanogenMod/android. This massive repository contains the tools necessary for rolling a kernel. (You can also repo sync the AOSP repo, if you want to build Vanilla Android).
Code:
mkdir -p ~/android/system
cd ~/android/system
repo init -u git://github.com/CyanogenMod/android.git -b froyo
repo sync
Then you'll want to export the cross compiling toolchain:
Code:
export CCOMPILER=${HOME}/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-
This first process will take around ~1-2 hours for full completion, grab yourself a sandwich or go make fun of aosp or something.
Next up, you'll want to retrieve the htc-kernel-heroc source from git!
You'll need to create a directory so you can keep track of your active kernels, and then you'll begin to clone the repository:
Code:
mkdir android-kernel
cd android-kernel
git clone git://github.com/Decad3nce/htc-kernel-heroc.git
(this might take a few minutes)
You now have the kernel source on your computer! Now we'll quickly run through the basics.
I set up a script for easy compilation, but you'll have to modify it a bit after you clone the repo.
(while in android-kernel)
Code:
cd htc-kernel-heroc
nano make-kernel.sh
You'll want to change the path to the CCOMPILER, to wherever it is on your PC. If you followed this guide, you'd edit the first 2 lines:
From:
Code:
CCOMPILER=~/android-cm/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-
To:
Code:
CCOMPILER=${HOME}/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-
Save, close out and we'll begin compiling!
Simply, if you want to compile the kernel with the defconfig, you'll just run
Code:
./make-kernel.sh DC
(This will write the defconfig to .config)
then just:
Code:
./make-kernel.sh K
This might take a good 10 minutes(depending on your set up) but after it's all set and done, you'll have the zImage located in arch/arm/boot/. So we'll grab that, and either throw it in the AnyKernel update.zip OR you might want to couple it with a ramdisk and create a boot.img.
Regardless, if you want directions on splitting a boot.img, look HERE.
Details!
erasmux said:
Technical Details
smartass governor - is based on the concept of the interactive governor.
I have always agreed that in theory the way interactive works - by taking over the idle loop - is very attractive. I have never managed to tweak it so it would behave decently in real life. Smartass is a complete rewrite of the code plus more. I think its a success. Performance is on par with the "old" minmax and I think smartass is a bit more responsive. Battery life is hard to quantify precisely but it does spend much more time at the lower frequencies.
Smartass will also cap the max frequency when sleeping to 352Mhz (or if your min frequency is higher than 352 - why?! - it will cap it to your min frequency). Lets take for example the 528/176 kernel, it will sleep at 352/176. No need for sleep profiles any more!
Click to expand...
Click to collapse
I'm still only maxed out 691!!!!
That means that SOMETHING(probably the ramdisk) is overwriting the scaling_max_freq.
You can manually change it via:
Code:
echo "768000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
MY GPS DOESN'T WORK!!! AHHHH!!!
First, try this: Here
Relax, chances are you've tweaked your CFS, either with the Battery Tweak or manually
Fix it:
Code:
mount -t debugfs none /sys/kernel/debug
echo "NORMALIZED_SLEEPER" > /sys/kernel/debug/sched_features
echo "NEW_FAIR_SLEEPERS" > /sys/kernel/debug/sched_features
How do I change my cpu governor
First, list all the available scaling governors:
Code:
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
Then, echo the name of the governor to scaling_governor:
Code:
echo "nameofgovernor" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
How do I utilize the Diag Function?
hotaru said:
install DmService.apk.
Code:
echo 11>/dev/qct_diag_enable
it won't show anything on the screen, but adb should stop working for a second or two.
if you're unable to connect with cdma workshop or qpst, reboot and try step 2 again.
Click to expand...
Click to collapse
-Thanks Hotaru.
What is msmsdcc_fmax ?
The msmsdcc_fmax is literally "The maximum frequency (in Hz) used by the SD controller"(http://www.androidonhtc.com/wiki/Boot_Options)
Killing the powersave also makes it stick to the fmax setting, without having to 'ramp up' over time.
Got a reboot?
Please grab the last_kmsg from the kernel and upload it so I can see what's causing it
Code:
adb remount
adb pull /proc/last_kmsg last_kmesg.txt
What is the 'Interactive' CPU Governor:
This governor is designed for latency sensitive workloads, UI interaction for
example.
Advantages:
+ significantly more responsive to ramp cpu up when required (UI interaction)
+ more consistent ramping, existing governors do their cpu load sampling in a
workqueue context, the 'interactive' governor does this in a timer context, which
gives more consistent cpu load sampling.
+ higher priority for cpu frequency increase, rt_workqueue is used for scaling
up, giving the remaining tasks the cpu performance benefit, unlike existing
governors which schedule rampup work to occur after your performance starved
tasks have completed.
Existing governors sample cpu load at a particular rate, typically
every X ms. Which can lead to under powering UI threads when the user has
interacted with an idle system until the next sample period happns.
The 'interactive' governor has a different approach. Instead of sampling the cpu
at a specified rate, the governor will scale the cpu frequency up when coming
out of idle. When the cpu comes out of idle, a timer is configured to fire
within 1-2 ticks. If the cpu is 100% busy from exiting idle to when the timer
fires then we assume the cpu is underpowered and ramp to MAX speed.
If the cpu was not 100% busy, then the governor evaluates the cpu load over the
last 'min_sample_rate' (default 50000 uS) to determine the cpu speed to ramp down
to.
There is only one tuneable for this governor:
/sys/devices/system/cpu/cpufreq/interactive/min_sample_rate:
The minimum ammount of time to spend at the current frequency before
ramping down. This is to ensure that the governor has seen enough
historic cpu load data to determine the appropriate workload.
Default is 5000 uS.
Signed-off-by: Mike Chan <[email protected]>
Change-Id: I686d2f57b0ed9cbb73217403b7438be5719588d2​
I WANT 490+ on Quadrant Scores!!!!
I don't recommend doing this at all, but if you feel the need to show off:
1. Flash the BFS kernel up top
2. Run this in shell
Code:
adb remount
adb shell
echo "0" > /proc/sys/vm/overcommit_memory
echo "5000" > /proc/sys/kernel/rr_interval
echo "90" > /proc/sys/kernel/iso_cpu
echo "cfq" > /sys/block/mtdblock3/queue/scheduler
echo "10" > /proc/sys/vm/vfs_cache_pressure
3. Overclock yourself to max 768 with oc widget
4. Run Quadrant until you feel that your ego is stroked enough.
5. ????????
6. Profit.
Personal Modded collin_ph BatteryTweak V2
Changes
Added Temperature Management system.
Integrate a simple way to override frequencies on based on battery temperature. Works great, will need a bit of polish later down the line.
No need to echo frequencies twice during polling. So don't allow the regular frequency changes during override. Also add MinOverrideFreq as a customizable, which allows us to do a check between min and max to not have any problems. Also remove last trace of LEDfix
Fix MaxTempEnable. Previously, trying to set n caused no change. Probably due to Android being homo in shell. Everything works now.
Use interactive scheduler as default. Change min frequency to something that actually exists on the freq table.
EITHER USE THIS OR OC WIDGET. SetCPU still has way too much overhead IMHO for what it's uses are.
Download BatteryTweak-DecaMODv2.2
MD5: 9c677f0a618e14421053a6ab5b7d4bc3
Last Update: 10/24/2010 7:18 CST
Recommended Settings for Tweak:
For BFS Kernel:
CPU Governor: Ondemand
I/O Scheduler: deadline/cfq
For CFS Kernel:
CPU Governor: Interactive
I/O Scheduler: deadline/noop

Good work DEC
Sent from my HERO200 using XDA App

Nice! So this will help speed, stability and battery life. I'm on it.
Sent fopm my Froyo Hero using xda app. Me:1 Sprint: 0

I'm using the collin batery twrak..xan I atill use this?
Sent from my HERO200 using XDA App

edisonalvarez said:
I'm using the collin batery twrak..xan I atill use this?
Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
Yep, I've been using Beta7 myself, everything works fine. I might make a tweaked Beta10 with the updated fixes that has presets fro 710 and 768 sometime this week.

So aside from being uncapped at 691mhz, what other benefits does it get from the changes you made?

Decad3nce said:
Yep, I've been using Beta7 myself, everything works fine. I might make a tweaked Beta10 with the updated fixes that has presets fro 710 and 768 sometime this week.
Click to expand...
Click to collapse
Cool..thanks...gonna run it now...thanks for ur work!
Sent from my HERO200 using XDA App

mrinehart93 said:
So aside from being uncapped at 691mhz, what other benefits does it get from the changes you made?
Click to expand...
Click to collapse
Just added that to post 2.

Decad3nce said:
Just added that to post 2.
Click to expand...
Click to collapse
Ok, so what I take from that post is that it will increase the general speed of the device, as well as possibly save battery by "underclocking (if you will)" the SD card controller and increasing the efficiency of the task scheduler? Awesome.

My phone doesn't run well @ 768 so I reinstalled setcpu and took it down to 710. Is this ok to do?
I ran linpack at both settings and I barely get over 3, on DD2.7 I was getting around 5. I did notice linpack has been updated since I ran it on DD, maybe that's the difference?
Quadrant is steady @ about 400.

to see linpacks in the 5's, you will need JIT on

danaff37 said:
to see linpacks in the 5's, you will need JIT on
Click to expand...
Click to collapse
Major facepalm! I forgot all about enabling that.

I put up a GPS friendlier kernel for people who might be having problems with GPS stability.
See post #1 for download, post #2 for explanations

If I flash this is there a way to uninstall it through terminal or adb?
Sent from my Froyo Hero using the XDA app

before I flashed CM6-RC1 I was running a rom with a kernel to 710...my phone ran great. Should I DL this kernel and use overclock or setcpu and put it up to 710? any suggestions on settings? I never really use setcpu or overclock before.
Thanks in advance.

stricklerjosh said:
before I flashed CM6-RC1 I was running a rom with a kernel to 710...my phone ran great. Should I DL this kernel and use overclock or setcpu and put it up to 710? any suggestions on settings? I never really use setcpu or overclock before.
Thanks in advance.
Click to expand...
Click to collapse
Doesnt appear so, but you have 2 easy options. Either nandroid before so you can flash back. Or just flash the ROM again and it will replace the kernel.

will this work with dd2.8?

lv2bll said:
will this work with dd2.8?
Click to expand...
Click to collapse
No, and darchdroid is already overclocked to 768 anyway
Sent from my HTC Hero running froyo: take that, Sprint!

Thanks for working on this uncapped kernel, bro. It rocks that those of us who are crazy about speed have a trustworthy fix for our habit.
Appreciate it!
--DC

Related

[KERNEL] 32a GBO kernel. More designed to ROM cookers [07/09/2009]

Here come our custom 32A kernel
Updated, see changelog
Sorry for the delay, I was taking some sun and some work .
http://www.mediafire.com/?mjgm5gcgmya
README:
Code:
HTC Magic Sapphire PVT32A kernel build.
This kernel build is only for 32A (HTC branded) version of the HTC magic.
It's designed to run FAST. (much more than the stock kernel).
I made some improvement in the config, removed uneeded things (all of this debuging message, hooks, ... is not needed for everyday use,
and use precious CPU cycle for nothing :).
You can use this kernel in your current ROM but you need to known what you're doing. (Boot image and ramdisk knownledge are required).
If you don't have those skills, you can wait a ROM cooker to build a ROM with this kernel for you. (It's not a subliminal message :p).
Hope you'll enjoy it.
In this archive you'll find:
README -> this file :)
CHANGELOG -> Errr... oh yes, got it! It's the changelog!
boot-gbo-v4.img -> An boot image. You can try to boot it but you'll be more lucky if you ask your ROM builder :).
zImage -> for ROM builders. You can include it in your boot.img file
config.gz -> The config used to compile the kernel.
wlan.ko -> Wlan driver for the kernel in this archive.
modules/ -> Extra modules you can include in you ROM (or not). IPV6, ReiserFS, NTFS, Tun, ...
modules/ipv6.ko -> IPv6 support
modules/xfrm6_mode_beet.ko -> Needed by IPv6 support
modules/sit.ko -> Needed by IPv6 support
modules/xfrm6_mode_transport.ko -> Needed by IPv6 support
modules/xt_TCPMSS.ko -> Needed by IPv6 support
modules/xfrm6_mode_tunnel.ko -> IPv6 over IPv4 support
modules/tun.ko -> TUN/TAP Interface support
modules/tunnel4.ko -> IPv4 Tunnel support
modules/ipip.ko -> Needed by TUN/TAP Interface support
modules/ip_gre.ko -> IP GRE security support
modules/ntfs.ko -> NTFS support
modules/reiserfs.ko -> ReiserFS support
modules/as-iosched.ko -> AS scheduler
modules/cfq-iosched.ko -> CFQ scheduler
Current version: 2.6.27-6
Features:
- See CHANGELOG
Questions, bugs, request ? -> PM Me
Creditz:
TigerTael for making a 32A compatible kernel
rayman84 which helped TigerTael with its quest :) (and making an unified patch)
Amon_RA for giving me some keys to find the wallpaper bug.
All people that make android & htc hacking possible every day
CHANGELOG:
Code:
2.6.27-gbo-6:
- Reverted to GP Timer, should fix clock issues
- Switched to SLOB allocator (default android kernel behaviour)
- Merged last change from TigerTael patch
2.6.27-gbo-5:
- Removed debug symbols from kernel
- Switched to SLUB allocator
- Added loopback device support
- Removed kernel debugging core
- Disabled verbose console message
- Added TUN/TAP module to extras
- Removed SysRq keys
2.6.27-gbo-4:
- Reverted inotify support
- Wallpaper change is now working.
- Added extra modules, see README
2.6.27-gbo-3:
- Removed profiling support from kernel.
- Reverted CPUFreq scaling to default behavior.
- Changed default CPUFreq gouvernor from 'performance' to 'ondemand'.
- Set max frequency to 528Mhz
- Added reiserfs support.
- Removed Network FS support
- Removed DebugFS
- Removed Kernel debugging
2.6.27-gbo-2:
- Added IPTables support (for tethering).
- Added EXT4 support (dev).
- CPU scaling is reduced at max 245Mhz when screen is OFF.
- CPU scaling is increased at max 528Mhz when screen is ON.
- Latest WLAN driver which will be released with Donut build.
- Removed some debug options from the kernel config.
- Removed inotify support.
Known bugs:
- Not yet...
I just cooked all of this, the real hard work was made here:
http://forum.xda-developers.com/showthread.php?t=548061
gboddina said:
Here come our custom 32A kernel
http://www.mediafire.com/download.php?wmtnwn5tbzt
README:
Code:
HTC Magic Sapphire PVT32A kernel build.
This kernel build is only for 32A (HTC branded) version of the HTC magic.
In this archive you'll find:
README -> this file :)
boot-gbo.img -> An boot image. You can try to boot it but you'll be more lucky if you ask your ROM builder :).
zImage -> for ROM builders. You can include it in your boot.img file
config.gz -> The config used to compile the kernel.
wlan.ko -> Wlan driver for the kernel in this archive.
Version: 2.6.27-2
Features:
- IPTables support (for tethering)
- EXT4 support (dev)
- CPU scaling is reduced at max 245Mhz when screen is OFF
- CPU scaling is increased at max 528Mhz when screen is ON
- Latest WLAN driver which will be released with Donut build.
Questions, bugs, requests ? -> [email protected]
Creditz:
TigerTael for making a 32A compatible kernel
rayman84 which helped TigerTael with its quest :) (and making an unified patch)
All people that make android & htc hacking possible every day
I just cooked all of this, the real hard work was made here:
http://forum.xda-developers.com/showthread.php?t=548061
Click to expand...
Click to collapse
Excellent job.
Any chance you wanna talk me through building a kernel!?
I think someone need to make a goot tutorial about this! (getting sources, applying the patch, building kernel, builder wlan module...)
I'm not a fan of making documentation but if nobody do it, I will, because the knownledge must be shared
gboddina said:
I think someone need to make a goot tutorial about this! (getting sources, applying the patch, building kernel, builder wlan module...)
I'm not a fan of making documentation but if nobody do it, I will, because the knownledge must be shared
Click to expand...
Click to collapse
Well, even if you could do something quick and basic it would be awesome
a good resource here..
http://sglnx.com/2009/08/linux-kernel-in-a-nutshell/
Works on JACxHEROski-v1.4 for 32A.
(it's a fast HERO rom btw)
Thanks a bunch! I have multi-touch now!
Instructions
For the strong hearted only!
Testing the boot.img: (gboddina's instruction from original thread)
adb push wlan.ko /system/lib/modules/wlan.ko
adb shell sync
[Shutdown device, adb rebooting can cause wifi to not work]
[Fastboot device]
fastboot boot boot-gbo.img
Click to expand...
Click to collapse
Flashing the boot.img:
[Normal Phone Mode]
adb push boot-gbo.img /sdcard
adb shell cat /dev/zero > /dev/mtd/mtd2
adb shell flash_image boot /sdcard/boot-gbo.img
[Reboot Phone]
Click to expand...
Click to collapse
It's a nice basic kernel. But just wondering, in the original thread, it's stated that LED is working. But my Rogers Magic still doesn't show red LED during charging. Any explanations?
Thanks, 2.6.29 with compcache and the common g1 kernel modules would be nice =]
Any dangers with trying to use this, or things to watch out for?
This boot.img does not work with the Rogers ROM for me It gets stuck at the Rogers logo...
hotweiss said:
This boot.img does not work with the Rogers ROM for me It gets stuck at the Rogers logo...
Click to expand...
Click to collapse
There is another bootimage with another ramdisk , it will work just gå back to the orginal thread from the first post here and look!
it works! ...., waiting for the tutorial
gboddina said:
Here come our custom 32A kernel
http://www.mediafire.com/download.php?wmtnwn5tbzt
README:
Code:
HTC Magic Sapphire PVT32A kernel build.
This kernel build is only for 32A (HTC branded) version of the HTC magic.
In this archive you'll find:
README -> this file :)
boot-gbo.img -> An boot image. You can try to boot it but you'll be more lucky if you ask your ROM builder :).
zImage -> for ROM builders. You can include it in your boot.img file
config.gz -> The config used to compile the kernel.
wlan.ko -> Wlan driver for the kernel in this archive.
Version: 2.6.27-2
Features:
- IPTables support (for tethering)
- EXT4 support (dev)
- CPU scaling is reduced at max 245Mhz when screen is OFF
- CPU scaling is increased at max 528Mhz when screen is ON
- Latest WLAN driver which will be released with Donut build.
Questions, bugs, requests ? -> [email protected]
Creditz:
TigerTael for making a 32A compatible kernel
rayman84 which helped TigerTael with its quest :) (and making an unified patch)
All people that make android & htc hacking possible every day
I just cooked all of this, the real hard work was made here:
http://forum.xda-developers.com/showthread.php?t=548061
Click to expand...
Click to collapse
Does your kernel allow changing the CPU freq? The previous one you made would not allow the CPU frequency to be set (By apps, etc)
is it permission problem... you cant write the frequencies?!
Just grabbed setcpu and it seems to halt after the intial page so it just freezes up after hiting the "always allow" page from the superuser app just after hiting "android cupcake 1.5" from the intial page of the app it self... what im trying to say that i dont think its a permission problem...
So I just unpack boot-gbo.img and put the kernel in any rom?
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
i cant find anything beyond cpu0.
TigerTael said:
Does your kernel allow changing the CPU freq? The previous one you made would not allow the CPU frequency to be set (By apps, etc)
Click to expand...
Click to collapse
Since this is active:
Code:
CONFIG_MSM_CPU_FREQ_SCREEN=y
CONFIG_MSM_CPU_FREQ_SCREEN_OFF=245760
CONFIG_MSM_CPU_FREQ_SCREEN_ON=528000
Manual cpu scaling cannot be done.
Seems that many people doesn't like this behavior. I am currently reviewing the config to made some performance improvement and will release 2.6.27-gbo-3 during this day.
Small poll so:
CONFIG_MSM_CPU_FREQ_SCREEN or CONFIG_MSM_CPU_FREQ ?
gboddina said:
Since this is active:
Code:
CONFIG_MSM_CPU_FREQ_SCREEN=y
CONFIG_MSM_CPU_FREQ_SCREEN_OFF=245760
CONFIG_MSM_CPU_FREQ_SCREEN_ON=528000
Manual cpu scaling cannot be done.
Seems that many people doesn't like this behavior. I am currently reviewing the config to made some performance improvement and will release 2.6.27-gbo-3 during this day.
Small poll so:
CONFIG_MSM_CPU_FREQ_SCREEN or CONFIG_MSM_CPU_FREQ ?
Click to expand...
Click to collapse
Well, I definitely like to set my CPU and this is pretty common in the stock kernels and other 32B kernels, so I would stick with this. Of course, this is -your- kernel, so you can do it exactly how you want to. :3
It's not "mine" . It's your kernel and my build
Better, it's a community kernel
I'll revert back to stock configuration for this part .
gboddina said:
It's not "mine" . It's your kernel and my build
Better, it's a community kernel
I'll revert back to stock configuration for this part .
Click to expand...
Click to collapse
Hey i don't wanna sound annoying lol since i already said this but any chance of compcache, squashfs, and cgroup? i'm pretty sure non of them are on the current build since there is lines in the ramdisk im using that try to use these features but it's failing and ofcourse just by looking at "mount"....
thanks for the hard work,

[KERNEL][Huawei U8150] Noma - experimental Froyo hotness [20120514][GPL]

Noma kernel for Huawei U8150​
I'm introducing my custom kernel for Huawei U8150 IDEOS phones. In Kenyan Swahili noma usually means "tight," as in: "That music is tight!" It can be used in other ways too, but I like this connotation the best.
Goals​My aim is to learn about Linux kernel internals, practice software development using git, and to share with the community. In addition to that, I want to explore and test tweaks which lead to increased/optimized performance on this bargain phone (it's very popular in Kenya). Some of the areas of improvement I have in mind are:
CPU scheduling (UI responsiveness, reducing lag)
CPU frequency scaling governors (smartass? ondemandX? interactiveX?)
I/O scheduling and filesystems (flash disk performance, throughput, latency, maybe simpleio scheduler?)
Security (network, local)
Newer drivers (mainstream, community kernel sources)
Newer GCC compilers (CodeSourcery, Linaro)
Easy rooting
Integrate ClockWorkMod Recovery
Integrate busybox
Explore different compression algorithms (LZO, gzip, LZF, etc) for zImage...
Compcache (zram) (info, announcement)
SLOB memory allocator for better memory allocation? (info)
Current features​
Code:
- multi-touch gestures (on devices with [url=http://mjanja.co.ke/2011/08/does-your-huawei-u8150-support-multi-touch-gestures/]supported hardware[/url])
- over/under clocking of CPU frequencies
- Tiny RCU ([url=https://lwn.net/Articles/323929/]info[/url])
- BFQ I/O scheduler ([url=http://algo.ing.unimo.it/people/paolo/disk_sched/]info[/url])
- simpleio scheduler ([url=https://github.com/erasmux/hero-2.6.29-flykernel/wiki/Smartass]info[/url])
- "ck" patch set, including the Brain **** CPU scheduler (BFS) ([url=http://www.kernel.org/pub/linux/kernel/people/ck/patches/2.6/2.6.32/2.6.32-ck2/]info[/url])
- optimized memcopy/memmove ([url=https://github.com/alanorth/kernel_huawei_u8150/commit/871656cbba8ee70d0896ac5cae35a31c2e0873e3]info[/url])
Downloads​fastboot-flashable boot images:
20120514v1: info, download
20110903v83: info, download
20110827v56: info, download
20110824v49: info, download
20110823v47: info, download
noma_20110711v26_boot.img (the "oops, I messed up my phone" kernel... safe, stable defaults; close to "stock" Huawei)
Possibly more here (on github)
Change log​Change logs are a pain in the ass to keep up to date, but you can see changes live in the git repository itself. See the commit history of the below branches if you're curious:
froyo-noma-dev commits (dev, bleeding edge)
froyo-noma commits (stable)
Source code​
I respect the GPL (the license covering the Linux kernel), so all the up-to-date source code for this kernel is available on github. My kernel is, in turn, based on the publicly-avaiable Froyo kernel sources from Huawei. You're free to fork, modify, and re-release the code as your own, but you must provide the source code for your resulting work. Doing so ensures you honor the terms of the license, but you're also giving back to the community. Basically, don't be a ****.
Credits​
I've written zero lines of C code for this kernel. My work is merely to search for interesting modifications to the Linux kernel and add them to a git repository. The real work has been put in by the following people:
Linus Torvalds and all the other Linux kernel hackers around the world
tj_style (multi-touch gesture support)
Stefano Viola (over/underclock)
Renaud Allard for his Galaxy S awesome sauce (kernel, initramfs, etc)
Erasmux (smartassV2)
Let me know if I've left you out.
Donations​
Hahaha! No seriously, save your money; I am gainfully employed and I just do this for fun (and lulz)! Instead, just hit "thanks" on this thread. Or, if you're ever in Nairobi you could always buy me a cup of coffee.
Reserved for flashing instructions...
Could you please post fashing instructions via custom recovery?
Im a bit of a noob.
Thanks.
Use fastboot!
Antownee said:
Could you please post fashing instructions via custom recovery?
Click to expand...
Click to collapse
I usually just flash from fastboot lately, as I'm between ROMs too much and I don't bother installing a custom recovery. I suppose I should modify my build scripts to make recovery-flashable zips... hang tight!
... or, if you can't wait, check out my in-depth blog post about compiling and flashing custom kernels on Huawei 8150. I wrote it a few weeks ago when I was a U8150 n00b.
v47 (20110823)
Changes in 20110823v47 (from the git commit log):
Add new, lookup3-based jhash. See: http://burtleburtle.net/bob/hash/doobs.html
pids: fix a race in pid generation that causes pids to be reused immediately
lib/decompress_bunzip2.c: fix checkstack warning
kbuild: drop unifdef-y support
net sched: fix some kernel memory leaks
net/ipv4: Eliminate kstrdup memory leak
Add noma_defconfig. `ARCH=arm make noma_defconfig` to use.
Mostly security and memory leak fixes. The new jhash implementation is based on lookup3.c, a newer, more-efficient implementation (more info here). It's mainly used in the kernel's ipv4 and ipv6 stacks, so don't expect revolutionary performance increases, but it's backwards compatible with the old implementation, so it couldn't hurt to include it.
Default IO scheduler is now deadline (the same as stock Huawei) until I can do some performance tests of other schedulers on this device. Note: I've included BFQ, Anticipatory, CFQ, and noop as well, so you can use those if you like!
Download: noma_20110823v47_boot.img
v49 (20110824)
Changes in 20110824v49 (from the git commit log):
Default to ZLO compression of kernel and ramdisk. LZO has roughly the same (but worse) compression, but is much faster to decompress.
Add LZO compression support for initramfs and old-style initrd
Add support for LZO-compressed kernels on x86
Add support for LZO-compressed kernels for ARM
Add support for LZO-compressed kernels
LZO compression is not as efficient but should be faster than the default compression (gzip), which should improve boot time. See: http://free-electrons.com/blog/lzo-kernel-compression/.
Download: noma_20110824v49_boot.img
Why are you working on Froyo and not on Gigerbread?
Why I'm still working on Froyo
unknhawk said:
Why are you working on Froyo and not on Gigerbread?
Click to expand...
Click to collapse
As this is basically a research project (for both me and the community), the primary reason I'm still "working" on Froyo is that most U8150s are still running Froyo. It's an incredibly popular phone in Kenya (maybe 250,000 - 500,000 units sold?), but I have a hunch very few of them are running non-stock ROMs. Sure, CyanogenMod 7 has a fairly-active U8150 port in progress, but it's not widely used yet.
Like I said, this is primarily a research project, so I'm experimenting for my own curiosity. A part of that is to help people get into Linux kernel, Android, and open-source software development. I want to help set an example of openness, collaboration, documentation, etc.
Also, a lot of the mods I'm making can just as well apply to Gingerbread when we finally get there.
Custom kernel booting on U8150 CM7
unknhawk said:
Why are you working on Froyo and not on Gigerbread?
Click to expand...
Click to collapse
Fun times... I just got a custom kernel to boot on CM7. It's nowhere near as usable as tilal's kernel, but it is a good exercise. More info here on my blog.
I suppose that whenever I get bored enough with Froyo I could always hop over to CM7. AOSP is where my heart is anyways.
v56 (20110827)
Changes (from the git commit history):
Add su, Superuser.apk, and busybox. This kernel/boot.img will now actively root Huawei stock ROMs.
Remove pre-zipped ramdisks as they are now generated on the fly from the compile scripts.
Correct the name of the compressed ramdisk (mkbootfs technically creates a cpio archive, which I then zip).
Make sure `make clean` doesn't delete our pre-compiled wireless module.
Add mkbootfs for creating ramdisks, and update compile.sh to create ramdisks on the fly instead of using a pre-zipped one.
Add ramdisk from U8150 V100R001C18B842
The build system is now a little more flexible and generates ramdisks on the fly. This should make it more powerful and complete. I've also included su, Superuser.apk, and busybox to enable a very cool new feature: rooting! If you haven't forked or cloned my kernel repository yet, what are you waiting for?
Regarding "rooting," forget what you've heard (it's probably wrong). Here's what it actually means:
Copying the su binary to /system/bin/su
Copying the Superuser.apk application to Superuser.apk
Period. What this means is that Android applications can call on the su binary whenever they want to do perform system administration actions (ie, not normal user actions), such as removing system applications with Titanium Backup. The Superuser.apk application is simply a frontend for su; whenever an application tries to execute su, a Superuser dialog pops up asking you to allow or deny the request. This notion, known as "privilege separation," is a common one in all operating systems.
Download: noma_20110827v56_boot.img
v83 (20110903)
Changes (from the git commit history):
sched: export nr_running symbol for use by smartassV2 CPU governor.
config: sync with latest config
sched_fair: Restore less extereme latency values (latency of 6ms)
sched: enable HRTICK
sched_fair: Enable HRTICK
cpufreq: add smartassV2 governor
Switch busybox, older version (1.18.4) but slimmer, more appropriate for our needs (from https://faramir.eriador.org/r/).
Minimum frequency to 122MHz at boot, as well as smartassV2 governor.
Optimized ARM RWSEM algorithm
Cleanup after installation of su stuff. We're on a ramdisk after all, we need to conserve memory.
Change location of root stuff so it isn't in the $PATH
Add Simple I/O Scheduler
Add V(R) i/o scheduler
Update to latest Linaro GCC 4.6 compiler.
Two major changes are the addition of the simpleio IO scheduler and the smartassV2 CPU governor. The simpleio scheduler is based on/around the noop and deadline schedulers, designed specifically with non-rotating media in mind (flash disks, hello!). The smartassv2 CPU governor controls how your CPU switches between frequencies (from 122MHz at idle to 672MHz when in use). I haven't done any benchmarks, but these should improve responsiveness and battery life (in theory at least!).
Other than that, the latest Linaro GCC 4.6 compiler, some small optimizations to ARM-specific functions, and ramdisk/boot cleanups. If you're curious about smartassV2 there's more info here, on erasmux's github page here.
Download: noma_20110903v83_boot.img
cm7 nightly bugged one ?????? i dnt like it iz there iz n e fixed cm7 for ideos ????
btw your kernel doesnt works with cm7 and can u please make a kernel for samsung galaxy gio with smartass v2 ??
Aorth, I tried flashing you kernal, and unfortunately there is one error when flashing with the latest CM7.1. After the flash, the phone will be stuck at the boot screen. I was wondering if you can get this fixed, that'll be great
This kernel is meant for stock ROMs
Den15 said:
Aorth, I tried flashing you kernal, and unfortunately there is one error when flashing with the latest CM7.1. After the flash, the phone will be stuck at the boot screen. I was wondering if you can get this fixed, that'll be great
Click to expand...
Click to collapse
Yeah, this kernel was really meant for Froyo stock ROMs. It won't work on CyanogenMod builds because the ramdisk's init scripts are not compatible.
My U8160 kernel repo has a kernel which works on CM7... but you'll have to compile it yourself
nice kernel ........... working fine on ideos u8150-B .... I flash it with stock rom ................. battry becomes efficient ...
Good Job!
Hello aorth,
I'm now using the LEANdroidMOD 5 based on your kernel and I have to say the name NOMA suits it to a tee. It's my default ROM now when I'm not testing your or tilal6991's builds. Thanks and you have yourself a happy holiday season!
hello,
will there be any update of your noma kernel? this is my fav because all roms out there eat my battery like mad, so i just use your kernel and i'm happy with it
greetings
oh man please update, this is one nice kernel!
CM7 u8150 april 5th
IS this already built in to your CM7 last updated april 5th rom or is that a diffrent kernel? which one is better? would it be hard to install it on that rom? whats the advantages over the built in cm7 rom? Thanks sounds awsome anything to make that baby faster is great. Good work
SU Binary Outdated notification
flasehd v83 on the stock 2.2.1 kenya 1 mutli touch rom all went good but whenever i restart the phone su binary shows the notifications bout su binary being outdated which i updated , i did it multiplie times but it comes up everytime the phone is rebooted , other than that su binary working ok ,
dont know how to fix it , other than that the phone is working so responsive , enjoying it
when i flashed the kernel , the phone was already rooted
cheeeeeeeeeeers

[KERNEL & CF-root][GB][LE4/Universal] Bam Custom Kernel: BCK beta 15 [07.02.13]

BCK - Bam Custom Kernel for i9003 / Galaxy SL
This Kernel is based on the Chinese GB source, released by Samsung on the 18th of November. Last changes to the source were made by Samsung on November 15th. If you still have questions after reading this post, look at the FAQs (including a list of requested features and known issues).
Kernel features:
No SOD
Bugfixes:
~ Sync bug fixed. Notifications for new mails and messages should arrive within one minute under all circumstances
~ Bluetooth problems fixed. Your phone now should play nice with bluetooth hosts, i.e. your car audio system
~ Micro stutters nearly completely gone thanks to lowered processor transition latency. It's smooooooooth
~ Home button double presses exterminated
Governors:
~ smartassV2 governor by erasmux (default)
~ interactive governor by Mike Chan
IO scheduler:
~ SIO IO scheduler by Miguel Boton (default)
~ BFQ IO scheduler by Paolo Valente and Fabio Checconi
~ deadline IO scheduler
Extended features:
~ ro.secure=0 (root acces through adb shell - to root the 'clean flavour' of BCK, please follow the instructions)
~ EXT4 support (to convert your file system, use amit.bagaria's ext4 add-on .apk) (Only in CF-Root .tar)
~ Support for init.d scripts (to use scripts, please follow the instructions) (Only in CF-Root .tar)
~ BLN support (to use BLN, please follow the instructions)
~ TUN support for VPN networks built-in (no module needed)
~ Increased SD-card read ahead of 768 kb for improved read speed
~ Available with universal CF-root ramdisk based on amit.bagaria's version, improved by loSconosciuto (Only in CF-Root .tar)
~ Available with universal CWM ramdisk (rooted) based on universal CF-root, but 'tweakless' (Only in CWM .tar)
Overclocking and Voltage:
~ Evolved sysfs interface for variable overclock or underclock (all operating points [OPPs] can be adjusted seperately)
~ Fifth OPP (1.2 GHz) available, device booting up at stock speed (1 GHz)
~ Total frequency control. The device will never run at higher speeds than defined by you, not even on WiFi.
~ sysfs interface for voltages (read only at the moment)
~ Slight undervolt (3%) on all OPPs
Flashing , settings and compatibility:
If you want to use BCK, please flash it on a clean stock ROM. If you want to go back to stock, repartition and reflash the full firmware with ODIN. This kernel will not work on CM or MIUI.
The CF-root and CWM versions (PDA_BCK_CF-root_universal_***.tar / PDA_BCK_CWM_universal_***.tar) can be flashed on any recent Gingerbread firmware. These versions are pre-rooted, which means they include Superuser.
The non-CF-root "clean" version (PDA_BCK_XXKPQ_***.tar / PDA_BCK_XXLE4_***.tar) will only work on XXKPQ / XXLE4. Do not flash this version on anything other ROM than the one indicated in the file name. This will break your WiFi. It's especially risky to flash the clean version of BCK after flashing any CF-root kernel before. Don't do it. This version does not include Superuser, but it is prepared to be rooted. Follow the instructions to do this.
After a kernel update, please wait for the device to boot up and reboot once. There is generally no need for cache cleaning or a full reset. To change the governor and IO scheduler, I use NoFrills CPU Control from the market. It's free and reliable.
I recommend to use the clean XXKPQ version. If you want / need to have root, try the CWM version. If you want the 'full package' with FuGu-Mod and more, use the CF-root. I recommend that you do not apply any further tweaks and use a stock ROM.
>>> Warning: Overclocking may damage your device. <<<​
Overclocking instructions:
For overclocking, you will need a shell on your phone, or adb access. I use Android Terminal Emulator. Overclocking is currently limited to certain frequencies (see below) and all operationg points will be set with the stock voltage of the corresponding stock frequency. The frequencies you set have to be within the following ranges:
Code:
OPP1: 100 - 500 MHz, stock 300 MHz
OPP2: 501 - 700 MHz, stock 600 MHz
OPP3: 701 - 900 MHz, stock 800 MHz
OPP4: 901 - 1100 MHz, stock 1000 MHz
OPP5: 1101 - 1500 MHz, stock 1200 MHz, not used by default
Remember that your phone uses all operating points depending on the current load. Anything more than 10% higher than the highest stock frequency is likely to be unstable, but you are free to try it. To change the clocks, open Terminal Emulator (or type 'adb shell') and hack in
Code:
su
echo "1100" > /sys/power/overclock_opp4
as an example. The others are opp5, opp3, opp2 and opp1. That's it.
Settings will be lost at reboot, unless you add them to your init.d scripts. I do not recommend this, as this may cause boot loops if the settings are to high! Be advised that NoFrills CPU Control, SetCPU, or whatever app you use that may adjust clock settings interfers with this. You may wanna update their settings after this. I do not recommend using them to set anything at boot if you overclock any OPP, because they might save the wrong frequencies and crash or do worse.
Changelog:
beta 1:
Added cpufreq governors
beta 2:
Changed smartassV2 settings to fit i9003
Added EXT4 support
Smaller zImage due to .config changes
beta 3 (not released):
Experimented with overclocking (not working, yet)
beta 4:
Finetuned smartassV2 settings
Made smartassV2 governor default
Reverted: Smaller zImage due to .config changes
Switched to linaro 4.6.2 toolchain (also used for ICS)
Activated new, aggressive compiler optimizations (-O3)
Added deadline IO scheduler
Added BFQ IO scheduler (10% higher performance than CFQ in Antutu Database IO Benchmark. This does not mean, that the maximum read or write speed increase! It just means that the throughput under heavy load is higher.)
Made BFQ IO scheduler default
Updated all modules
beta 5:
Variable overclock. Loosely based on the modifications of the Nook Color sources by dalingrin and of course with help from amit.bagaria and DooMLoRD.
beta 6:
Variable overclock for all operating points
beta 7:
Switched to universal CF-Root by amit.bagaria (BCK now should run on every recent GB ROM)
Added correct version information in settings menu, credits to DooMLoRD
Fixed cpufreq stats to correctly reflect frequency changes
Increased SD-card read ahead to 768 KBytes. This results in higher SD-card read speeds.
Major simplifications in overclocking code. Works more robust, now.
Added sysfs interface to show voltages. See /sys/power/overclock_vdd_oppX
Changed all voltages to the mainline Linux kernel defaults. This results in a slight 3% undervolt for each OPP, which saves about 5% power and should have no impact on stability whatsoever. Below you will find an overview of the exact voltages.
Code:
stock BCK
OPP1: 1.0250 V 1.0000 V
OPP2: 1.2000 V 1.1625 V
OPP3: 1.3300 V 1.3000 V
OPP4: 1.3875 V 1.3500 V
OPP5: not def. 1.3800 V
beta 8:
OPP5 (1.2 GHz) now enabled in _1200 version of kernel. Thanks to knzo for pointing me to the right patch.
Fixed video recording bug when running at 1.2 GHz
Fixed power management issues at 1.2 GHz
Small changes to smartassV2 and interactiveX settings
beta 9:
Added simple IO ('SIO') scheduler
Only one kernel version now, which includes OPP5 (1.2 GHz) but boots up at 1 GHz. Be advised that your device may nevertheless be running at 1.2 GHz for five to ten seconds at boot because of software limitations.
Changes in PM to always respect cpufreq policy limits. From now on, the device will never run at higher speeds than defined by you, not even on WiFi. Based on an omapzoom.org patch.
Changes to OPP switching code. May lead to less 'hickups'. Based on an omapzoom.org patch.
Bugfix for framebuffer code. Based on an omapzoom.org patch.
Reduced IVA / DSP frequency when on OPP5 to be on the safe side.
beta 9fix:
Reverted: Changes to OPP switching code. May lead to less 'hickups'. (Patch caused random freezes using WiFi.)
Reverted: Bugfix for framebuffer code. (Patch showed no noticeable benefits.)
beta 10:
Fix for sync bug applied. If you still have problems, please report.
This version is identical to beta 10rc14. No need to flash again, if you already are on that version.
beta 11:
Updated universal CF-Root by amit.bagaria to version 9 (released 1st of February 2012), but NO touch recovery
Slight increase in OPP5 voltage (1.38 V -> 1.40 V), may prevent some reported reboots on 1.2GHz
Code:
stock BCK
OPP5: not def. 1.4000 V
Changes in overclocking code to play nice with your frequency settings. If you overclock OPP5 but have restricted freqs to 300 - 1000 MHz, it won't automatically activate OPP5 anymore. The same is true for the lowest OPP.
If you overclock OPP4 above 1000 MHz and have restricted freqs to 300 - 1000 MHz, it will update the upper boundary to the new frequency of OPP4 so it doesn't get deactivated.
beta 12:
Fixed bluetooth problem with car audio systems (Based on omapzoom patches [1], [2] and [3]). Might resolve other bluetooth issues, too.
Universal CF-Root: Fixed bootanimation. Thanks to loSconosciuto.
Universal CF-Root: Fixed install procedure. It will check the actual kernel version, now. Thanks to loSconosciuto.
Universal CF-Root: Fixed fix_permissions script to work on our device. Thanks to loSconosciuto.
Switched to user_defconfig, to avoid unnecessary debug lines in dmesg.
beta 13:
Updated sources to GT-I9003_SWA_GB_Opensource_Update1 from the 30th of March. This also enables TUN support by default. You do not need any modules for this - it works "out of the box" with any VPN client.
Universal CF-Root: Backup is not failing anymore when started from CWM. Thanks to loSconosciuto.
Universal CF-Root: Some small improvements to multiple scripts.
Home button double press issue fixed. There should be no more unwanted double selections in CWM and you can now reliably long press the home button to bring up the list of previously used apps. Idea and timer function taken from a patch by Tegrak.
Fixed priority class for CONTENT_PROVIDER not being set, which may have caused apps of this class to be ignored by the autokiller, resulting in less free RAM.
Lowered OMAP processor transition latency to the value recommended by TI. Subjectively, this brought huge improvements in terms of reducing micro stutters.
Lowered CFS scheduler latency and granularity to values very close to mainline kernel defaults. This could reduce lags in some critical situations, but it doesn't do wonders.
Switched to SIO as default IO scheduler.
beta 14:
Universal CF-Root: Replaced CWMManager and TweakManager with zipaligned files. Thanks to loSconosciuto.
Universal CF-Root: The TweakManager is not replaced on install if it didn't change to preserve it's settings. Thanks to loSconosciuto.
Universal CF-Root: Corrected problems because of too little free space in /system when converting to ext4 by permanently moving InfoAlarm.apk from /system/app to /data/app. Thanks to loSconosciuto.
Universal CF-Root: Fixed the non-working WiFi on XXLE4 and prevented future problems. Instead of patching the WiFi modules, they are now replaced. Thanks to loSconosciuto.
Universal CF-Root: Fixed some small mistakes in the CF-root install procedure.
Switched the compression of ramdisk and kernel from gzip to lzma. This makes the files much smaller and allows us to include more 'stuff'.
Changed smartassV2 settings to wake up at lower frequencies. Further, it is not locked at 300 MHz anymore when the screen is off. Tests showed that free scaling is more battery friendly.
Removed InteractiveX and OndemandX governors and added the Interactive governor by Mike Chan (Source: CyanogenMod Crespo kernel). Since free scaling proved to be more battery friendly, the screen off profiles in InteractiveX and OndemandX made them superfluous.
The device will not scale above 1 GHz for some seconds when booting anymore. It's now safe to use BCK even if your device can't handle 1.2 GHz. Based on a patch by dalingrin.
Changes in PM to respect cpufreq policy limits when playing or recording video. The device should respect your wishes under all circumstances, now
Fixed the SmartReflex voltage calibration of the OMAP SoC for OPP5. This could lower power consumption as soon as OPP5 (1.2 GHz) is activated for the first time.
Slight increase in the OPP5 nominal voltage (1.40 V -> 1.42 V) to allow for some adjustment by SmartReflex (now that it's working...), if necessary. The actual voltage when the device is running will not change for most users! Based on patches by dalingrin and Sanjeev Premi.
Code:
stock BCK
OPP5: not def. 1.4200 V
beta 14 fix:
Universal CF-Root: Fixed the non-ending row of force closes after flashing the Universal flavour of BCK. The clean XXKPQ version did not show these problems and didn't need a 'fix'.
beta 15:
Universal CF-Root: Modified some permissions to bring it closer to the stock ramdisk
Universal CWM: Created a CWM ramdisk based on CF-root, without most tweaks. You now have three BCK flavours to choose from
Updated to newest UPDATE2 sources by Samsung
Sync bug fix reworked to use new Samsung method from UPDATE2. This may lead to slightly lower standby battery consumption.
Fixed accidental front camera mirroring
Editing smartassV2 settings with busybox 1.20.x and newer no longer leads to reboots. Thanks to loSconosciuto for pointing me to the patch.
Fixed complete crash of WiFi driver when activating WiFi by adapting smartassv2 thresholds
Reverted to the original Google Android toolchain using gcc 4.4.3
Because of the toolchain-switch, the compiler optimizations are now back to -O2 instead of -O3
Credits:
Credits go to the mentioned developers of the cpufreq governors, ganeshbiyer, skin1980 and amit.bagaria for the CF-Root and skin1980 for his repack script. Many thanks to DooMLoRD, amit.bagaria, knzo and loSconosciuto for their help! BCK sources are available on GitHub.
Files:
Attached files:
ODIN-flashable PDA_BCK_XXKPQ_***.tar with stock Samsung ramdisk ('Clean flavour'). Only for XXKPQ ROMs.
ODIN-flashable PDA_BCK_XXLE4_***.tar with stock Samsung ramdisk ('Clean flavour'). Only for XXLE4 ROMs.
ODIN-flashable PDA_BCK_CF-root_universal_***.tar with CF-root ramdisk ('Universal CF-root flavour'). For all current Gingerbread ROMs.
ODIN-flashable PDA_BCK_CWM_universal_***.tar with CWM (rooted) ramdisk ('Universal CWM flavour'). For all current Gingerbread ROMs.
Other files (not attached):
Old releases and release candidates can be found on Dev-Host. Use these with caution!
MD5 sum:
Code:
PDA_BCK_XXKPQ_beta10.tar: 83013b2d54c52dddb72deec46b5471de
PDA_BCK_CF-root_universal_beta10.tar: e1e8bcc28c878095618413141b642ec1
PDA_BCK_XXKPQ_beta11.tar: 9eaa6d080f3409c4822e38602bad8efb
PDA_BCK_CF-root_universal_beta11.tar: 93437cf26699dfe595881941b13a6a83
PDA_BCK_XXKPQ_beta12.tar: d9849ae7d9587402aa6465081b4c65a1
PDA_BCK_CF-root_universal_beta12.tar: 2107dfbf33b2838e66007f4319bee14e
PDA_BCK_XXKPQ_beta13.tar: bff3112d3249e951a569148d79643744
PDA_BCK_CF-root_universal_beta13.tar: 1fab51d641a8914e11a81781683d7d7d
PDA_BCK_XXKPQ_beta14.tar: 08cd77964c3d8b54b4c97e59500a0b96
PDA_BCK_CF-root_universal_beta14fix.tar: 6a2cda17362f5a2e6aac7e78dbe94089
PDA_BCK_XXLE4_beta15.tar: 7159e6cd5f2b71bebffcb4d86201b6cf
PDA_BCK_CF-root_universal_beta15.tar: ecfa46b8aec239f1ac246df61dc63477
PDA_BCK_CWM_universal_beta15.tar: 765a5253b0313d41399ea86822cf5f80
Nice i'll try it out ! but m not on clean kpq :\ oh well its worth the shot for thse governors and can u please provide the link to the new source ?
phone boots but the boot animation keeps on repeating ! cf root problem !clean kpq did the trick m in !
Oh!very nice
shriomman said:
Nice i'll try it out ! but m not on clean kpq :\ oh well its worth the shot for thse governors and can u please provide the link to the new source ?
phone boots but the boot animation keeps on repeating ! cf root problem !clean kpq did the trick m in ! but how to root it now ? :\
edit- rooted with soc with psnuter had to instal busybox from stricson and all working just fine
Click to expand...
Click to collapse
Thanks bro for your feedback.
Sent from my GT-I9003 using Tapatalk
over clock to ? ghz?
leongwenjun said:
over clock to ? ghz?
Click to expand...
Click to collapse
it doesnt have oc ! it has special cpu governors which are efficient and fast
tough luck for me mate....
i compile a vanilla kernel which is ~200 kb larger than stock zImage and it doesnt even boot!
also,even i want to update to 2.6.35.14,,,,,,,,,,,,,,how u did it without source?
also(2)lz open an acc. on github!
@sakindia123: Take a look here, update your sources to the new version, and get the new toolchain they use (see readme in the sources).
i followed that link before......
ok i will try with new source
what will happen if we use this ? are there any good feautures ?
it has special cpu governors which are efficient and fast
Now just wait for some days guys. Doomlord, bam, sakindia will show u real power of our device.
This is great! Just one little question, you said this is for a chinese firmware, but you mention KPQ, so it can be put in XXKPQ or not? Anyway sorry for my noob question
vishal24387 said:
Now just wait for some days guys. Doomlord, bam, sakindia will show u real power of our device.
Click to expand...
Click to collapse
U forgot To mention "fuss" dude...
Sent from my GT-I9003 using XDA Premium App
Slynightdark said:
This is great! Just one little question, you said this is for a chinese firmware, but you mention KPQ, so it can be put in XXKPQ or not? Anyway sorry for my noob question
Click to expand...
Click to collapse
It is based on the Chinese source - this includes kernel and android system source. But the kernel is universal (not language specific), and I applied all necessary settings for XXKPQ. Therefore you can flash it on KPQ.
what does a kernel do??
it is the main driving force of a phone that i know.
does it make our phone fast??
how to flash it as i would like to give it a try right away!!
can i roll back to stock kernel after this??
sorry for thr noob question as im new to all this.
---------- Post added at 08:45 PM ---------- Previous post was at 08:40 PM ----------
also do we need to have CWM recovery for this????
or we can do it with the stock recovery menu??
i was just doing some testing and the kernel is stuck at "SAMSUNG" bootanimation after a FRESH FLASH...
any idea?
used on XXKPQ FW
I flash your kernel. From last 5hours no SOD ISSUE. I'm using smartass v2 let's see how will battery I will get from it.
Sent from my GT-I9003 using Tapatalk
Fresh flash of what PDA? Yours, mine, GitHub?
@manrock111: smartassv2 gives me slightly higher battery usage than stock. I want to tweak it, but have problems with my sources at the moment.
XDA_Bam said:
Fresh flash of what PDA? Yours, mine, GitHub?
@manrock111: smartassv2 gives me slightly higher battery usage than stock. I want to tweak it, but have problems with my sources at the moment.
Click to expand...
Click to collapse
sorry... did a fresh install of full XXKPQ FW and now its booting
ok now this is weird... suddenly all of my test kernels have started booting

[KERNEL][S4][SENSE] Fusion Ultimate v3.4 | OC/UV | Optimized | Multitask | (9/1/12)

Fusion Ultimate Kernel for all Sense-based 4.0.3 ROMs
Latest Version: v3.4 (9/1/12)​
Disclaimer:
Code:
#include
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed.
* YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you. :P
* blah blah blah you get the point.
*/
As many of you probably already know, I had another 'Fusion' kernel for the S4 HTC One S. However, because I incorporated mdeejay's patches, the kernel did not play nice with the CPU and whatnot. I nuked my repo, imported the T-Mobile US kernel sources, and re-built the kernel from scratch. I wanted to start a new thread so people would not mix up this and the old kernel.
Click to expand...
Click to collapse
Post #1: Release, Features, and Downloads
Post #2: Changelog
Post #3: How to compile from source
Post #4: Frequently Asked Questions
Features
[*]CPU frequency control from 192Mhz 1.89Ghz
[*]your choice of stock or overclock options
[*]universal package
[*]zip package with modified init.qcom.post_boot.sh and thermald.conf
[*]voltage control (use System Tuner Lite/Pro)
[*]SmartassV2, Interactive, Conservative, LagFree, Lionheart, BrazilianWax, Intellidemand, InteractiveX, SavagedZen, and Smartass CPU governors added
[*]Simple IO (SIO) and V(R) scheduler added
[*]capacitive LED lights dimmed to 2mA
[*]improved media scanning times (increased readahead buffer)
[*]good multitasking
[*]enabled zRam (see FAQ for a detailed explanation of what it does)
[*]greatly improved I/O performance (disabled fsync() )
[*]XZ kernel compression
[*]overall good battery life and performance
[*]optimized and tweaked
[*]much more; check the changlog or my GitHub if you want to know the specifics
Click to expand...
Click to collapse
Downloads
Do NOT flash versions 3.0 and higher in recovery!! They are 7zips!!
I purposely made it a 7zip archive so people don't flash it. Instead, extract the appropriate zip from the package and then flash like before. You get options of whether you want overclock or stock clock. The zip will flash the correct files and modules according to your choice and then clean out conflicting init.d scripts for the best possible compatibility.
All Downloads are HERE
How to Install
For hboot 1.09 and below:
Just flash the zip in TWRP recovery. It will automatically flash the boot.img for you.
For hboot 1.13 and up:
you have two options
Option #1
Use TWRP's HTC Dumlock feature. It is a pretty neat workaround that allows you to flash boot.imgs in recovery even on a higher hboot.
Look here for instructions from TeamWin. If you are not comfortable with this method, then follow option #2 to manually flash in fastboot.
Option #2
In addition to flashing the zip, you will have to extract the boot.img from the package and flash it manually with fastboot. Blame HTC for the half-assed 'unlock bootloader' offering they give us. Hopefully we will get S-OFF soon...
Code:
adb reboot bootloader
fastboot flash boot boot.img
fastboot erase cache
fastboot reboot
Look here for a guide.
Sources
initramfs: https://github.com/klin1344/initramfs_ville
kernel: https://github.com/klin1344/kernel_ville_US
Enjoy
Changelog/Complete Feature List
Changelog
v1.0 (Initial Release 7/24/12)
re-wrote overclock code
completely re-based on the TMOUS source
init.d scripts support with Busybox run-parts
overclocked up to 1.89Ghz
added 192Mhz step
added SmartassV2 CPU governor (still finicky; needs more testing)
enabled Conservative and Interactive CPU governors
added SIO scheduler and enabled as default
increased readahead buffer
various tweaks for UI responsiveness
stable
v1.1 (7/27/12)
cleaned up CPU code (all frequency issues should be gone by now; check github for full details)
added LionHeart CPU governor
added LagFree CPU governor
reduced capacitive LED brightness to 2mA (looks better)
tuned Interactive CPU governor parameters
many optimizations; check github for more details if you want
v2.0 (7/29/12)
added voltage control capabilities (use SetCPU or similar app to UV)
cleaned up CPU code again to try to get frequencies to stick
v2.1 (7/31/12)
added V(R) IO scheduler
change to a zip package
modified init.qcom.post_boot.sh and thermald.conf
added modules in the zip so it shouldn't break WiFi on EU ROMs anymore
allowed undervolting minimum of 400mV
tweaked minfree and ADJ values for multitasking and performance; the used values were from the V6 OOM Calculator
Conservative CPU governor as default for battery life (use an app to change it if you want)
defaulted CPU frequencies to 192Mhz 1.5Ghz on boot
v2.2 (8/2/12)
enabled zRam
adjusted VM ratios
added NEON and Snapdragon optimizations
v3.0 (8/8/12)
fixed SmartassV2 for performance and battery life
available with overclock or stock CPU clock
enhanced compatibility with many ROMs
cleaned up post_boot script and many parameters now handled @ kernel
fixed CPU reverting to min 384Mhz
overall much, much cleaner implementation and settings will stay
v3.1 (8/16/12)
a universal package
disabled fsync() for I/O improvement
optimized Ondemand CPU governor settings
v3.2 (8/22/12)
lighter OOM and ADJ settings for better multitasking
v3.3 (8/29/12)
added BrazilianWax, Intellidemand, InteractiveX, SavagedZen, and Smartass (V1) governors
added tun.ko and cifs.ko
XZ kernel compression
optimized SmartassV2 CPU governor
v3.4 (9/1/12)
added wifi module to the zip
tun.ko and cifs.ko now built into kernel
tweaked deadline I/O scheduler for better performance
make kernel use AC charging mode for unknown chargers
various lowmemorykiller fixes
fixed and tweaked a few other things
Click to expand...
Click to collapse
For Developers
How to build this kernel from source:
This is assuming you already have your Linux environment setup and installed the required packages for compiling a kernel.
1. Clone my initramfs and kernel sources.
Code:
git clone git://github.com/klin1344/kernel_ville_US.git
git clone git://github.com/klin1344/initramfs_ville_4.0.3.git
2. Compress the ramdisk into a gzipped archive. First navigate to the initramfs_ville_4.0.3 directory, then:
Code:
find . | cpio -o -H newc | gzip > ../ramdisk.gz
3. Grab the toolchain from DoomLord's handy repo:
Code:
git clone git://github.com/DooMLoRD/android_prebuilt_toolchains.git toolchains
4. I have created an easy build script. Modify the top four lines to be applicable to your setup. Make sure CROSS_COMPILE is set to the directory of the toolchain we just downloaded earlier (there are two; not the Linaro one). And change INITRAMFS_DIR to the directory of the ramdisk.gz you created earlier.
5. Build. First navigate to the kernel_ville_US directory.
Code:
./build.sh ville_defconfig
for the stock option or
Code:
./build.sh ville_oc_defconfig
if you want the overclocked option.
The script will detect the number of cores of your CPU and automatically make with the optimal -j#.
6. If all goes well you should end up with a boot.img in the kernel_ville_US directory.
FAQ.... Please read this before posting questions!!!
FAQ​
Frequently asked questions. Please read all of this first, and then if it doesn't answer your question, feel free to ask in the thread. I just don't want to have to keep answering Is this kernel SENSE based? or How do I jailbreak my HTC One S??? type of questions. Lol. :silly: Thank you.
Click to expand...
Click to collapse
What ROMs is this kernel compatible with?
As stated in the OP, this kernel is compatible with all S4 devices running a 4.0.3 Sense-based ROM. It is NOT compatible with the new 2.21 RUU, which is Android 4.0.4 based. We will have to wait until HTC releases the new kernel source because the differences are not only in the initramfs.
What is the best governor for me to use?
It really depends on what you're looking for. If you want performance, go with Lionheart or Ondemand. If you want battery life, go with Conservative. And if you are looking for a balance between battery life and performance, then use either SmartassV2, Interactive, or LagFree. These are just my opinions. Look here for a great reference of all the CPU governors. Test them out and decide which works best for you.
Which I/O scheduler is the best?
I personally use SIO, but you can test and decide which is the best for you. Read here to find the pros and cons of each one.
How do I overclock?
The kernel should default at 192Mhz 1.5Ghz CPU clocks. To overclock, use SetCPU, No-Frills CPU, System Tuner Lite/Pro, or any similar CPU control app. Some apps don't allow the settings to stick properly. I recommend using No-Frills or System Tuner.
How do I undervolt?
Right now, the only app that works for voltage control is System Tuner. Both the Lite and Pro versions allow you to change the voltages. Do not use SetCPU as it doesn't work.
Here is the voltage table I am currently using:
Code:
1890mhz: 1250 mV
1809mhz: 1225 mV
1728mhz: 1200 mV
1674mhz: 1175 mV
1512mhz: 1150 mV
1458mhz: 1137 mV
1404mhz: 1125 mV
1350mhz: 1125 mV
1296mhz: 1100 mV
1242mhz: 1100 mV
1188mhz: 1075 mV
1134mhz: 1075 mV
1080mhz: 1025 mV
1026mhz: 1000 mV
972mhz: 1000 mV
918mhz: 975 mV
864mhz: 975 mV
810mhz: 950 mV
756mhz: 950 mV
702mhz: 900 mV
648mhz: 900 mV
594mhz: 875 mV
540mhz: 850 mV
486mhz: 800 mV
384mhz: 725 mV
192mhz: 650 mV
Please just take these as a grain of salt; not all chips are created equal! Some devices can become an ass when it comes to undervolting, while others can starve the CPU to death and still run fine. Experiment little by little until you find your perfect voltages.
What is zRam and how does it work?
Originally Posted by faux123
ZRAM (aka CompCache aka RAMZSwap)
ZRAM is an updated version formally known as CompCache and RAMZSwap. It was originally designed for 2.6.38.xx kernels, I have backported to our 2.6.35.xx kernel. ZRAM allows real-time compression of memory objects in RAM thus reducing memory pressure for the Linux kernel and can keep more apps in memory longer (more apps in RAM == better performance, less fetching from slower MMC or SDCard). Compression, however, is not Free. Some CPU cycles are required to do the compress/decompression, so there's a slight penalty for it. The original CompCache / RAMZSwap required a user space binary to control its behavior which adds additional penalty to performance, but the new version ZRAM eliminated the need for a separate dedicated daemon, thus reducing the overhead and increased performance from the old CompCache by 20%. Therefore, with the newer implementation of ZRAM interface, the performance penalty is almost negligible.
Click to expand...
Click to collapse
WiFi doesn't work???
Flash the alternative modules package in the OP. It is for EU based ROMs as well as MIUI Sense-based. You only need to flash it once, unless you change or update your ROM.
Nice..Will do testing...
Hopefully it give the best battery life than stock
Thank you sir!
(S4) HTC 1s
Here is a zip to flash the kernel! Testing with Axiom S v1.8, will test battery with SmartassV2
nieves53 said:
Here is a zip to flash the kernel! Testing with Axiom S v1.8, will test battery with SmartassV2
Click to expand...
Click to collapse
Thanks. But unfortunately the reason I did not make it a zip is because that some of us who are on hboot 1.13 or higher can't flash boot.img's in TWRP recovery at all. The same goes for radios. I stupidly ran the 1.78 RUU, which update my hboot from 1.09 to 1.13. :crying:
klin1344 said:
Thanks. But unfortunately the reason I did not make it a zip is because that some of us who are on hboot 1.13 or higher can't flash boot.img's in TWRP recovery at all. The same goes for radios. I stupidly ran the 1.78 RUU, which update my hboot from 1.09 to 1.13. :crying:
Click to expand...
Click to collapse
Should have just flashed the radio
How do you like the new radio? I seem to be getting a lot better service and a more stable WiFi connection.
Liking the kernel so far
Sent from my HTC VLE_U using xda premium
Bug I found -
-While install apps it take awhile for it to install. (1mins or 2min). I just phone the sit until it finish install
-After reboot ...the kernel take awhile for it kick in. For example..If you have email it will take awhile to prompt on notication bar .
Is it possible you can post zips for download in the OP? Thanks. Will try tomorrow.
x1tyme said:
Bug I found -
-While install apps it take awhile for it to install. (1mins or 2min). I just phone the sit until it finish install
-After reboot ...the kernel take awhile for it kick in. For example..If you have email it will take awhile to prompt on notication bar .
Click to expand...
Click to collapse
Maybe try wiping data / factory reset? To be honest those sound more like rom issues rather than kernel related issues.
I cannot reproduce it.
Sent from my One S
klin1344 said:
Maybe try wiping data / factory reset? To be honest those sound more like rom issues rather than kernel related issues.
I cannot reproduce it.
Sent from my One S
Click to expand...
Click to collapse
My fault. I was lazy and flash the flashable zip on post #7 and create this error. Reflash rom and fastboot usb and works like a charms..:good:
If you need another guy to test a 4.0.4 Pre-Release...
(i'm under Trick 6.0)
plakers said:
If you need another guy to test a 4.0.4 Pre-Release...
(i'm under Trick 6.0)
Click to expand...
Click to collapse
+1 but the thing is a bit complicated because we need current modules because of better wifi signal.
I guess we'll just have to wait for the new kernel source from 2.21 base
just flashed it with axiom v1.8.0
everything seems to be working fine.. it's fast smooth stable
nice stuff, Klin
Trying this now in hopes my frequency changes stick after a reboot unlike stock :/
Sent from my HTC VLE_U using Tapatalk 2
Is it normal for CPU settings to not stick after a reboot?
I set 1.3ghz/384mhz max/min for both cores. I reboot and it defaults back to 1.5/192
Basically same issue with stock kernel.
Elloco305 said:
Trying this now in hopes my frequency changes stick after a reboot unlike stock :/
Sent from my HTC VLE_U using Tapatalk 2
Is it normal for CPU settings to not stick after a reboot?
I set 1.3ghz/384mhz max/min for both cores. I reboot and it defaults back to 1.5/192
Basically same issue with stock kernel.
Click to expand...
Click to collapse
Have anybody experience there screen blink? Or just Rom issue
Sent from my HTC VLE_U using Tapatalk 2
Elloco305 said:
Trying this now in hopes my frequency changes stick after a reboot unlike stock :/
Sent from my HTC VLE_U using Tapatalk 2
Is it normal for CPU settings to not stick after a reboot?
I set 1.3ghz/384mhz max/min for both cores. I reboot and it defaults back to 1.5/192
Basically same issue with stock kernel.
Click to expand...
Click to collapse
What app are you using? I use No-Frills CPU and it has the "apply on boot" option.
klin1344 said:
What app are you using? I use No-Frills CPU and it has the "apply on boot" option.
Click to expand...
Click to collapse
Setting don't stick after reboot. I'm using setcpu
Also, When I applied this kernel..my screen flick across the screen while exit app (es explorer)

[KERNEL][06 August 2013] B2B |&| Patched [ICS Sense][MIUIv4]

This is a kernel, build from the recently released saga-ics-crc-3.0.16-62a67df source.
Compatible with all ICS (Android 4) + Sense (3.6, 4A or 4) based ROMs
OFFICIAL MIUIv4 and Stock rooted ICS users can enjoy init.d scripts support with this kernel​Enjoy!​BACK2BASICS EDITION​
FEATURES​
Interactive Aroma Installer
Completely Stock code, with only 2 additions by me:
Configurable sweep2wake.
Ported bcmdhd wireless driver from the HTC One V latest source code for better reception and no wakelocks. Still breaks WiFi tethering in ROMs based on Sense 3.6. Tethering works fine in Sense 4
Completely Stock ramdisk. The only changes are:
Unsecured boot.img (adb remount and USB debugging)
Busybox run-parts (init.d scripts) support
Some extra lines, required for the proper operation of the new WiFi driver
No OC, UV, optimizations or any other changes.
Compiled with the recommended by HTC toolchain 4.4.3
ISSUES​
For all with BLUETOOTH issues: use 4EXT Recovery
due to incompatibility with sweep2wake the native Sense screenshot function has to be disabled (on some ROMs Power+Volume Down is working- 10x to rzr09 for pointing it out). You will need to change the value of ro.htc.framework.screencapture = , located in /system/build.prop from true to falsemanually, using any root file explorer. To make it functional again (if you decide to disable s2w) just change back from false to true
NEW USERS: before flashing install/update BusyBox in /system/xbin (with some of the apps available in the Google Play - the one by Stericsson+Smart Install worked fine for me) and check for the existence of the busybox binary and run-parts symlink in the /system/xbin folder on your device. If there is no such files install/reinstall BusyBox until you have it.
OPTIONAL: If you do not have an /system/etc/init.d folder AND you want to use additional modules you should create it manually BEFORE flashing the kernel:adb remount
adb shell
mkdir /system/etc/init.d
chmod 775 /system/etc/init.d​
DOWNLOAD AND INSTALLATION​Download: b2b_3-0-16.zip
md5sum: d5bd32bd12a0e1120b03f800eaf1beda
S-OFF users: flash in recovery, no wipe required. Follow the instructions
HTCDEV users: flash in recovery, no wipe required; follow the instructions, reboot straight to bootloader and flash the corresponding to your ROM boot.img (extract it from the zip) with th following commands:adb reboot bootloader
fastboot erase boot
fastboot flash boot XXX_boot.img​IMPORTANT (HTCdev users): if you are using 4EXT Recovery Control for flashing make sure to select the "Stay in recovery after flashing" option!​
Boot images are:
Sense4_boot.img - for all Sense4 based ROMs (Fallout, ProjectX, Cooldroid, Sabsa Prime, Desire XS, ViperSaga, others)
Custom_Sense36_boot.img - for ICE_DS, Stock ICS by masteross, or other custom Sense 3.6 ROM without lib partition
Stock_Sense36_boot.img - for Ice Cream Saga or clean RUU/PG88IMG (that keeps S-OFF and Recovery) install (rooted)
MIUIv4_boot.img - for any version of official MIUIv4
NOTES:
There is no boot.img for Virtuous Infinity since it cannot operate smooth with the Stock CPU settings
If sweep2wake takes screenshot upon screen off in this version you have to modify your build.prop manually (see above)
PATCHED KERNEL 3.0.89​
Due to controversial feedback on Tweaked kernel starting from version 5.0 I have decided to take a different approach.
Patched kernel unifies the concept of both Tweaked3 and B2B kernels.
So what does this mean?
The HTC source is taken as a base and is synced completely with the upstream (the official Android kernel 3.0) where applicable. Since it is patched only up to 3.0.72 the rest of the patches are taken directly from the Linux kernel upstream.
All is done from scratch and revising every single commit (it took me 4 days to complete this only). The result is absolutely clean merge (not as in Tweaked where I took the patches from other developers without actually knowing have they screw up something in the progress). During the patching I have discovered some misses or copy-paste from 3.4 upstream (which I consider for another generation devices and probably the changes from there are not completely suitable for our device). I have cleaned and synced with the 3.0 upstream all not-updated files that I discovered during the patching. ​
FEATURES​The features of the kernel are the basic ones from Tweaked, but staying as close as possible to the Stock configuration (B2B concept):
Interactive Aroma Installer
Compiled with GCC 4.4.3 toolchain
Patched to Linux Kernel version 3.0.89
Synced with Android kernel 3.0 upstream
Overclockable to 1.5 GHz
Added VDD sysfs interface for userspace UV control
Stock Frequencies and Voltages
Default governor: INTERACTIVE @ 254 - 1024 MHz
Interactive governor updated from android 3.4 upstream
Default scheduler: DEADLINE
Configurable Sweep2Wake
Fixed WiFi tethering on Sense 4 based ROMs
Updated WiFi drvier from HTC One V source
Built-in CIFS support
Built-in TUN support
Built-in NTFS + NLS_UTF8 support
Optional WiFi calling
Two way call recording - both WAV and AMR
Enabled USB OTG HOST (big thanks to astro757 and engelmarkus)
Enabled SWAP support
ISSUES​
If your WiFi does not work upon install check this solution /10x to toxic-hero/
Sometimes the sweep2wake does not work instantly after deep sleep period. Just swipe once more to unlock the device or press the search button.
due to incompatibility with sweep2wake the native Sense screenshot function has to be disabled (on some ROMs Power+Volume Down is working- 10x to rzr09 for pointing it out). You will need to change the value of ro.htc.framework.screencapture = , located in /system/build.prop from true to false manually, using any root file explorer. To make it functional again (if you decide to disable s2w) just change back from false to true
For all with BLUETOOTH issues: use 4EXT Recovery
USEFUL INFORMATION, PLEASE READ​Overclocking applications, reported to work:
If you are in doubt which governor and IO scheduler to use - there is a lot of useful info here (thanks to Tectas and the authors)
SetCPU
Voltage Control {settings not stick after reboot on Virtuous Infinity}
No-frills CPU Control {settings not stick after reboot on Virtuous Infinity}
Daemon Controller app + andrev_oc script
note1: there is virtuous_oc on Virtuous Infinity already, so you can use only the Daemon Controller app
note2: oc daemons are not supporting scheduler changing
undervolting can be done with a command from Terminal Emulator or adb shell:echo -X > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels​where X is the desired value (-25, -50, -75, -100, -125 or whatever you like). Unfortunately has to be repeated after every reboot since putting it in an init.d script is risky
Originally posted by engelmarkusHi,
I played around with the experimental branch of your kernel once more and today it works perfectly.
Keyboards, mice and USB storage devices work without any messing with the terminal. For almost-auto-mounting I used this app here: https://play.google.com/store/apps/d....shajul.usbotg
So I think you can very well enable this in your next kernel version so others can try this out, too.​
DOWNLOAD AND INSTALLATION​Download: 3089.zip
md5sum: 921dda7817b33ee1b7730afca4c57e1c
S-OFF users: flash in recovery, no wipe required. Follow the instructions
HTCDEV users: flash in recovery, no wipe required; follow the instructions, reboot straight to bootloader and flash the corresponding to your ROM boot.img (extract it from the zip) with the following commands:adb reboot bootloader
fastboot erase boot
fastboot flash boot XXX_boot.img​IMPORTANT (HTCdev users): if you are using 4EXT Recovery Control for flashing make sure to select the "Stay in recovery after flashing" option!​
Boot images are:
Virtuous_boot.img - for any version of Virtuous Infinity
Sense4_boot.img - for other Sense4 based ROMs (Fallout, ProjectX, Cooldroid, Sabsa, Desire XS, ViperSaga, others)
Custom_Sense36_exp_boot.img - EXPERIMENTAL (New wireless driver, without issues in standby. Native WiFi tethering will be broken) - for ICE_DS, Blackout ICS, Stock ICS by masteross, or other custom Sense 3.6 ROM
Custom_Sense36_boot.img - STABLE (Old HTC wireless driver, may cause battery drain in stand-by. Working native WiFi tethering) - for ICE_DS, Blackout ICS, Stock ICS by masteross, or other custom Sense 3.6 ROM
Stock_Sense36_exp_boot.img - EXPERIMENTAL (New wireless driver, without issues in standby. Native WiFi tethering will be broken) - for Ice Cream Saga or clean RUU/PG88IMG (that keeps S-OFF and Recovery) install (rooted)
Stock_Sense36_boot.img - STABLE (Old HTC wireless driver, may cause battery drain in stand-by. Working native WiFi tethering) - for Ice Cream Saga or clean RUU/PG88IMG (that keeps S-OFF and Recovery) install (rooted)
MIUIv4_exp_boot.img - EXPERIMENTAL (New wireless driver, without issues in standby. Native WiFi tethering will be broken) - for any version of official MIUIv4
MIUIv4_boot.img - STABLE (Old HTC wireless driver, may cause battery drain in stand-by. Working native WiFi tethering) - for any version of official MIUIv4
Sense4_lib_boot.img - for recent versions of Desire XS or other Sense 4 ROM that is reodexed/with separate lib partition
If sweep2wake takes screenshot upon screen off in this version you have to modify your build.prop manually (see above)​
TWEAKED3 VERSION XI DISCONTINUED - reference only​
FEATURES​
Interactive Aroma Installer
Patched to Linux Kernel version 3.0.56
Added ck1 patchset by Ziggy (thx to Coolexe) - aims towards better performance
Compiled with the latest stable Linaro GCC 4.7.3-2012.11 toolchain
Overclockable to 1.5 GHz
Added VDD sysfs interface (10x to lowveld) for userspace UV control
Stock Frequencies and Voltages
Tuned ONDEMAND and INTERACTIVE governors
Tuned DEADLINE and SIO schedulers
ONDEMAND @ 254 - 1024 MHz and DEADLINE set as default
Enabled TINY_PREEMPT_RCU
Some tweaks and optimizations for better performance
Configurable Sweep2Wake
Fixed WiFi tethering on Sense 4 based ROMs (10x to m0narx)
Updated WiFi driver from the latest HTC One V source
Enabled CIFS and TUN support
Enabled NTFS + NLS_UTF8 support
Enabled PPP_ASYNC and PPP_SYNC_TTY
Two way call recording - works in AMR and WAV (10x to Andromadus) format with CallRecorder app by skvalex
CHANGELOG​
16 Dec 2012: Tweaked3 XI:
Compiled with the latest stable Linaro GCC 4.7.3-2012.11 toolchain
Patched to Linux Kernel version 3.0.56
Upstream update of interactive governor change speed routine
Enabled TINY_PREEMPT_RCU - should give small-memory-footprint on uniprocessor systems (where all processing tasks share a single CPU)
23 Nov 2012: Tweaked3 10.0 (X):
Patched to Linux Kernel version 3.0.52
Removed all third party governors
Removed BFQ, VR and CFQ schedulers
Tweaked SIO for better performance on Android
All modules built-in, except the one for WiFi Calling (kineto-gan.ko - optional)
No more init.d scripts, except for sweep2wake
During installation a /system/etc/init.d folder will be created, with the right permissions on ROMs that do not have such
09 Nov 2012: Tweaked3 9.0:
Compiled with the latest Linaro Toolchain 4.7.3-2012.10
Patched to Linux Kernel version 3.0.51 (10x to oliverclaude)
Ondemand and Interactive governors synced to upstream (10x to Andromadus)
Scheduler improvements (10x to faux123)
16 Oct 2012: Tweaked3 8.6:
Patched to Linux Kernel version 3.0.46
Updated BFQ code to v5 (10x to Andromadus repo)
2WCR now makes recording in WAV format (10x to Andromadus repo)
BCMDHD wireless driver is updated to the latest HTC One V source - there are some changes related to the Country Codes, so please anyone that has such issues to try it without WiFi FIx app and report
Initialization of the wireless modules moved to ramdisk, no need of init.d script to run them anymore, so new users can skip that part and go straight to flashing!
10 Oct 2012: Tweaked3 8.5:
Patched to Linux Kernel 3.0.45
Added ck1 patchset by Ziggy (thx to Coolexe) - aims towards better performance
Removed ZRAM - it seems that the compression was the reason for the battery drain
Removed the script for changing the screencapture line in build prop from Aroma, hopefully this will solve the installation issues. You will have to change it manually if needed
01 Oct 2012: Tweaked3 8.0:
Aroma installer - one file for all. No need to do any preparations anymore (like changes of the updater-script, etc) The installer will gather the important information about your ROM and hboot and the flashing process will be done accordingly.
HTCDEV users: there are instructions in the first post which boot.img to flash. Important: if you are using 4EXT Recovery Control for flashing make sure to select the "Stay in recovery after flashing" option!
All governors are tuned up according to the CPU frequencies (should have done it long time ago, sorry for the delay). OndemandX (proved unstable) and Userspace (doubt that anyone even uses it) governors removed
CIFS, TUN, KINETO_GAN, NTFS+NLS_UTF8 and ZRAM moved to modules for optional install (the installer will give you a menu for selection, where the purpose of each module is explained)
Updated LZO compression/decompression method for ZRAM (it sould be at least twice faster now)
TREE_RCU and SLAB memory allocator set as default (as it was in the Stock kernel).
21 Sep 2012: Tweaked3 7.1:
Patched to Linux kernel version 3.0.43
Compiled with the latest stable Linaro GCC 4.7-2012.08 toolchain
Added VDD sysfs interface (10x to lowveld) for userspace UV control (comes with Stock Voltages by default)
Added BrazilianWax, InteractiveX and OndemandX governors
All modules except bcmdhd.ko are built-in in the kernel
Finally found the reason of the battery drain when the Screen is ON and hopefully fixed it. Now the battery life should be rock solid
Flashable zips should be fixed for good. They now will wipe dalvik-cache and cache during flash, no need to do it manually. Version 5.0 zips are backwards compatible (this means you can flash version 5 over version 7.1 without additional actions (deleting or moving files)
05 Sep 2012: Tweaked3 6.0:
Added bcmdhd WiFi driver and fix WiFi Tethering on Sense 4 ROMs (10x to m0narx)
Flashable zips are back!
Comes is two flavors - undervolted -100 and Stock voltages
02 Sep 2012: Tweaked 5.0:
Built with Linaro toolchain
Patched to Linux Kernel version 3.0.42
Reverted to Stock Voltages due to some users complaints
SLUB is the default memory allocator
Added tun.ko module (use 51-modules init.d script to load it)
Added cifs.ko module (use 51-modules init.d script to load it)
Enabled full capacity charge in non-OEM chargers (e.g. some car chargers)
Enabled NTFS + NLS_UTF8 support
Enabled PPP_ASYNC and PPP_SYNC_TTY
Enabled ZRAM - adds another 100 MB to your RAM as a SWAP partition (use 52-zram init.d script to load it)
Enabled USB-OTG (needs confirmation, since I do not have the necessary equipment) - not working
27 Aug 2012: Tweaked3 4.7:
Expanded frequency table - to give the CPU more steps until the highest frequency
Slight undervolting to save some battery life
Fixed backlight staying on when pressing only home button when s2w with backlights enabled (10x to scan6 for the heads up)
Default clock frequency is 1024 MHz for everyone that requested it
Enabled init.d support in the MIUIv4 version (now you can use the 50-sweep2wake script too)
Separate installation files and instructions for S-ON (hboot 2.00.0002) and S-OFF (hboot 0.98.2000, 2.00.2002, 7.xx) users
25 Aug 2012: Tweaked3 4.0:
Patched to Linux Kernel version 3.0.41
Added sweep2wake configuration: default Enabled with no backlight
Added lionheart, lulzactive, intellidemand, scary, lagfree, lazy and savagedzen governors
Added BFQ and VR schedulers
Added Snapdragon optimizations
23 Aug 2012: Tweaked3 3.0:
Added Lionheart and Smartass2 governors
Added Simple IO Scheduler
Enabled ARCH_POWER
Disable GENTLE_FAIR_SLEEPERS
22 Aug 2012: Tweaked3 2.0:
Patched to Linux Kernel version 3.0.30
Added support for MIUIv4 and Virtuous Infinity
Source code published @github
21 Aug 2012: Initial release
Based on the released by HTC saga-ics-crc-3.0.16-62a67df source
Added Sweep2wake functionalit
Overclocked to 1,5 GHz
ISSUES​
due to incompatibility with sweep2wake the native Sense screenshot function has to be disabled (on some ROMs Power+Volume Down is working- 10x to rzr09 for pointing it out). You will need to change the value of ro.htc.framework.screencapture = , located in /system/build.prop from true to falsemanually, using any root file explorer. To make it functional again (if you decide to disable s2w) just change back from false to true
For all with BLUETOOTH issues: use 4EXT Recovery
USEFUL INFORMATION, PLEASE READ​Overclocking applications, reported to work:
If you are in doubt which governor and IO scheduler to use - there is a lot of useful info here (thanks to Tectas and the authors)
SetCPU
Voltage Control {settings not stick after reboot on Virtuous Infinity}
No-frills CPU Control {settings not stick after reboot on Virtuous Infinity}
Daemon Controller app + andrev_oc script
note1: there is virtuous_oc on Virtuous Infinity already, so you can use only the Daemon Controller app
note2: oc daemons are not supporting scheduler changing
undervolting can be done with a command from Terminal Emulator or adb shell:echo -X > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels​where X is the desired value (-25, -50, -75, -100, -125 or whatever you like). Unfortunately has to be repeated after every reboot since putting it in an init.d script is risky
DOWNLOAD AND INSTALLATION​Download: Tweaked3_XI.zip
md5sum: e9bf1393d48c6f7e7e8697e34ac63e7a
S-OFF users: flash in recovery, no wipe required. Follow the instructions
HTCDEV users: flash in recovery, no wipe required; follow the instructions, reboot straight to bootloader and flash the corresponding to your ROM boot.img (extract it from the zip) with the following commands:adb reboot bootloader
fastboot erase boot
fastboot flash boot XXX_boot.img​IMPORTANT (HTCdev users): if you are using 4EXT Recovery Control for flashing make sure to select the "Stay in recovery after flashing" option!​
Boot images are:
Virtuous_boot.img - for any version of Virtuous Infinity
Sense4_boot.img - for other Sense4 based ROMs (Fallout, ProjectX, Cooldroid, Sabsa, Desire XS, ViperSaga, others)
Custom_Sense36_exp_boot.img - EXPERIMENTAL (New wireless driver, without issues in standby. Native WiFi tethering will be broken) - for ICE_DS, Blackout ICS, Stock ICS by masteross, or other custom Sense 3.6 ROM
Custom_Sense36_boot.img - STABLE (Old HTC wireless driver, may cause battery drain in stand-by. Working native WiFi tethering) - for ICE_DS, Blackout ICS, Stock ICS by masteross, or other custom Sense 3.6 ROM
Stock_Sense36_exp_boot.img - EXPERIMENTAL (New wireless driver, without issues in standby. Native WiFi tethering will be broken) - for Ice Cream Saga or clean RUU/PG88IMG (that keeps S-OFF and Recovery) install (rooted)
Stock_Sense36_boot.img - STABLE (Old HTC wireless driver, may cause battery drain in stand-by. Working native WiFi tethering) - for Ice Cream Saga or clean RUU/PG88IMG (that keeps S-OFF and Recovery) install (rooted)
MIUIv4_exp_boot.img - EXPERIMENTAL (New wireless driver, without issues in standby. Native WiFi tethering will be broken) - for any version of official MIUIv4
MIUIv4_boot.img - STABLE (Old HTC wireless driver, may cause battery drain in stand-by. Working native WiFi tethering) - for any version of official MIUIv4
If sweep2wake takes screenshot upon screen off in this version you have to modify your build.prop manually (see above)​
Stock Sense GingerBread sweep2wake kernel​​
MIRROR @ DEV-HOST /all versions/:​
​
SOURCE CODE
​
Tweaked3 - experimenal branch
B2B - stable branch
Patched - linux branch​​
CREDITS​HTC for the source code
BIG thanks to m0narx for the WiFi Tethering fix!
showp1984 and his source for atmel touchscreen devices
mdeejay for some of the linux version patches
AdiPat for his repo
Coolexe for his repo
cjoliver for the sweep2wake switch and the recent upstream patches
crking for the sweep2wake init.d script
lowveld for his all great projects for HTC Desire S and the VDD sysfs
Ziggy for the ck1 patchset
Team Andromadus for their repo
astro757 and engelmarkus for the USB OTG HOST
All the great kernel developers @Xda For their great work​Thanks for testing and corrections:rzr09
dr.higgins
dont know
signfinder/dalexx
dmatik
TatoValverde
toxic-hero​Thanks for donating. Much appreciated:dont know
TatoValverde
petjoh​
XDA:DevDB Information
B2B |&| Patched, Kernel for the HTC Desire S
Contributors
amidabuddha
Source Code: https://github.com/amidabuddha/saga-ics-crc-3.0.16
Kernel Special Features:
Version Information
Status: No Longer Updated
Current Stable Version: BACK2BASICS EDITION
Stable Release Date: 2012-08-21
Current Beta Version: PATCHED KERNEL 3.0.8
Beta Release Date: 2013-08-06
Created 2015-02-24
Last Updated 2015-02-24
amidabuddha said:
Features:
- Sweep2wake functionality
- Overclocked to 1,5 GHz
Download: View attachment 1273069
md5sum: 98fe244bbfb430283f194e61031e0d7f
Issues:
- due to incompatibility with s2w the native Sense screenshot function is disabled
- do not use with the official MIUI v4, since it is not mounting /system/lib on init
Installation: flash in the Recovery
Click to expand...
Click to collapse
man you are the best!!
Installed on Nik Project, any issues with buttons backlight? It seems like they are always on
Nope,it works well to me
Nik project v4.1:
1.oc ---ok
2.s2w---ok
Sent from my HTC Desire S using xda app-developers app
Nik 4.1, have 3600 in anututu =)
Will try to reinstall with really full wipe, because my buttons are always on
mizerok said:
Installed on Nik Project, any issues with buttons backlight? It seems like they are always on
Click to expand...
Click to collapse
On Fallout the backlight works as it should.
In a room without direct sunlight - off
On screen off - off
Outdoor or in a dark place - on
Try in different conditions, maybe there is too much light where you are
I wish it was usable for non Sense ROMs
Nik 4.1, Atuntu - 3527
No prob with S2W. Auto brightenss is off.
Thx Stefan.
I get 3883 on antu with fallout rom
sent from my desire s from one of lowvelds roms
docertabum said:
I wish it was usable for non Sense ROMs
Click to expand...
Click to collapse
Working on it more or less ^^
Great done amidabuddha
Gesendet von meinem GT-I9300 mit Tapatalk 2
I am not a big fan of benchmarking. But tried just out of curiosity.
Antutu: 4035 on Fallout
Sent from my HTC Desire S
It's perfect! I haven't seen so cool and fast rom as fallout with this kernel yet!
Is it not harmful for Desire S to overclock to 1.5 GHz ?
Shouldnt make any harm going to 1.5.
Now the kernel source, is https://github.com/showp1984/bricked-shooteru-ics-sense what you releasing? if no you need to release the exact kernel source you using, laws
I dont want any saga dev to have issues
Edit:
More then that, some devices comes with stock 1.5 with same processor but remember, the more you put, the less battery
Hi, is there a way to revert it to stock? Thanks.
Sent from my HTC Desire S using xda app-developers app
superkid said:
Shouldnt make any harm going to 1.5.
Now the kernel source, is https://github.com/showp1984/bricked-shooteru-ics-sense what you releasing? if no you need to release the exact kernel source you using, laws
I dont want any saga dev to have issues
Edit:
More then that, some devices comes with stock 1.5 with same processor but remember, the more you put, the less battery
Click to expand...
Click to collapse
Good point
Yes the changes for sweep2wake are the same, made by showp1984, unmodified by me
And yes, this is the stock OC, I have just enabled it for the time being.
I am pretty sure that soon there will be much more tweaked and polished kernels made by the experienced devs, but since most of them are taking summer holidays I compiled this one for playing with Sense 4 until they come back to development
Dreamtheater2003 said:
Hi, is there a way to revert it to stock? Thanks.
Sent from my HTC Desire S using xda app-developers app
Click to expand...
Click to collapse
Yes you can always flash the original boot.img of the ROM that you are using via fastboot. Then copy the bcm4329.ko and kineto_gan.ko of your original ROM to /system/lib/modules with any root file explorer. To restore the stock screenshot feature change the value ro.htc.framework.screencapture from false to true in your build.prop
Dreamtheater2003 said:
Hi, is there a way to revert it to stock? Thanks.
Click to expand...
Click to collapse
flash the rom once again...
masterross said:
Nik 4.1, Atuntu - 3527
No prob with S2W. Auto brightenss is off.
Thx Stefan.
Click to expand...
Click to collapse
Nik Project X v4.1 with AnTuTu - 3907
sdcard: class6
wifi not working after flashed this oc file.....why?

Categories

Resources