Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,742,966 Members 41,500 Now Online
XDA Developers Android and Mobile Development Forum

[KERNEL] Customized stock FroYo kernel 2.6.32.17 (01/18/2011)

Tip us?
 
BlaY0
Old
(Last edited by BlaY0; 19th January 2011 at 02:35 PM.) Reason: New version...
#1  
BlaY0's Avatar
Retired Recognized Developer - OP
Thanks Meter 565
Posts: 1,552
Join Date: Sep 2007
Location: Medvode
Wink [KERNEL] Customized stock FroYo kernel 2.6.32.17 (01/18/2011)

OK, here we go...
  • smaller (lzma compressed)
  • overclocked
  • perflock disabled
  • interactive governor
  • ondemand governor fixed
  • CFQ and BFQ IO schedulers
  • UTF-8 NLS (default)
  • LZO compression
  • ext4 support
  • CIFS (module)
  • Aufs (module)
  • TUN/TAP (module)

...available scaling frequencies are 123, 246, 480, 600, 768, 787 and 806 MHz. Default governor is ondemand. Default speed is 246 MHz min and 600 MHz max. This can be changed using SetCPU or manually via sysfs.

Note

Support for ipv6 was modularized to make kernel smaller. You can activate it by loading ipv6 module through adb shell or terminal:
Code:
Select Code
insmod /system/lib/modules/ipv6.ko
...the same goes for ext4 support (two modules need to be loaded):
Code:
Select Code
insmod /system/lib/modules/jbd2.ko
insmod /system/lib/modules/ext4.ko
Legal

This software is licensed under GPLv2, distributed free of charge and WITHOUT ANY WARRANTY! Source code for this software can be found on HTC Developer Center. Links to applied patches are provided in 2nd post. If you feel that this is not enough, I also offer (upon formal request of a third party) all the source code on a customary medium for a charge no more than a cost of phisically performing distribution.

Do not flash if you don't know what kernel is and what it does!
Attached Files
File Type: zip kernel_2.6.32.17-g30929af_custom.zip - [Click for QR Code] (2.33 MB, 3167 views)
The Following 17 Users Say Thank You to BlaY0 For This Useful Post: [ Click to Expand ]
 
BlaY0
Old
(Last edited by BlaY0; 19th January 2011 at 02:37 PM.)
#2  
BlaY0's Avatar
Retired Recognized Developer - OP
Thanks Meter 565
Posts: 1,552
Join Date: Sep 2007
Location: Medvode
Post Changelog

0.5 (January 18, 2011)
0.4 (December 23, 2010)
  • ext4 support
  • reverted to stock ondemand governor

0.3 (December 3, 2010)
  • added CFQ and BFQ IO schedulers (BFQ is default)
  • removed some unneeded stuff from the config (smaller footprint)

0.2 (December 2, 2010)
  • ported ondemand governor from CM's kernel source

0.1 (November 30, 2010)
The Following 4 Users Say Thank You to BlaY0 For This Useful Post: [ Click to Expand ]
 
denisman
Old
(Last edited by denisman; 1st December 2010 at 01:00 AM.)
#3  
Member
Thanks Meter 10
Posts: 69
Join Date: Sep 2010
You Sir are a genius. Will flash it now and report back.


EDIT:

Testing current (Screen Off profile 122/122), max and min frequency.

Code:
Select Code
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
122880
cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
787200
cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq
122880
Working perfectly! My battery gives you a hug!

One thing I noticed: 787/122 ondemand main changes to 787/245 after turning the screen off and on again. Have to click the SetCPU slider for min freq to set it to 122 again even though it shows 122 as current min.

Video:
 
Nailim
Old
#4  
Junior Member
Thanks Meter 0
Posts: 8
Join Date: Jul 2009
Works beautifully so far!

Big thank you, to you!
 
PresidentJFJ
Old
#5  
Member
Thanks Meter 2
Posts: 52
Join Date: Jun 2010
Is the performance any better than with dumfuq's kernel? Just wondering what the advantages to the new kernel are
 
denisman
Old
(Last edited by denisman; 1st December 2010 at 01:59 AM.)
#6  
Member
Thanks Meter 10
Posts: 69
Join Date: Sep 2010
What is the right way to install system overlay since it has the aufs module?

What I did_
-Flashed aufs_no_kernel.zip
-Rebooted
-adb shell to enable aufs
Code:
Select Code
aufs --enable
Enabling read-write /system overlay...
Please reboot your phone for changes to take effect...
So far so good but the next reboot stopped at the first "HTC" screen with logcat (or any other adb command) telling me nothing but this:
Code:
Select Code
C:\androidsdk\tools>adb logcat
- exec '/system/bin/sh' failed: No such file or directory (2) -
Mounting /system through Clockwork recovery didn't help either.

I googled the error and found this answer:
Quote:
This means that in your recovery image, even though you might have installed busybox, the symlink to it is missing (/system/bin/sh should be either bash or a symlink to your busybox binary)
Guess aufs_no_kernel.zip was the wrong file to start with.

FYI, I am running the Modaco 2.2 r4 ROM. The only difference is that I added busybox and /etc/init.d scripts support (busybox run-parts) via the Android Kitchen to it.

Could this cause the error or am I doing something else wrong?

Thanks for you help and work!
 
ernestus
Old
#7  
ernestus's Avatar
Member
Thanks Meter 9
Posts: 33
Join Date: Oct 2007
Location: Cambridge
Hmmm, it produces some graphic glitches (transient short horizontal lines ) in my Cyanogenmod 6.1 RC2, maybe the cm kernel has some other tweaks.
No probs I did a backup.

Thanks for this anyway, you're quick, man.

Cheers.
 
yanlong94
Old
#8  
Member
Thanks Meter 0
Posts: 66
Join Date: Aug 2010
will this work for whitetigerdk's froyo rom?

my setcpu Governor states conservatice, and the frequency is Max 787MHz. Is this what it suppose to be? Because i dont understand conservative performance etc.
 
fatthumb
Old
#9  
Senior Member
Thanks Meter 18
Posts: 269
Join Date: May 2010
Location: Singapore
Quote:
Originally Posted by yanlong94 View Post
will this work for whitetigerdk's froyo rom?

my setcpu Governor states conservatice, and the frequency is Max 787MHz. Is this what it suppose to be? Because i dont understand conservative performance etc.
You should read up more rather than asking questions that have been asked many times (look at first post bolded in red).

Since you mentioned setcpu, why don't you try to read through the FAQs?

Cheers,

Sent from my HTC Legend using Tapatalk
We can always THANK people even if they only accidentally help you
 
gyroing
Old
(Last edited by gyroing; 1st December 2010 at 08:24 AM.)
#10  
Senior Member
Thanks Meter 7
Posts: 223
Join Date: Sep 2010
@BlaY0
my phone freezed with 787 MHz . but i have no problem 768 MHz in old kernel . could i request you to add 768 MHz?

Tags
froyo, kernel, legend
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes