Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP BlaY0

1st December 2010, 12:16 AM   |  #1  
BlaY0's Avatar
OP Retired Recognized Developer
Flag Medvode
Thanks Meter: 566
 
1,552 posts
Join Date:Joined: Sep 2007
More
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:
insmod /system/lib/modules/ipv6.ko
...the same goes for ext4 support (two modules need to be loaded):
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, 3175 views)
Last edited by BlaY0; 19th January 2011 at 03:35 PM. Reason: New version...
The Following 17 Users Say Thank You to BlaY0 For This Useful Post: [ View ]
1st December 2010, 12:17 AM   |  #2  
BlaY0's Avatar
OP Retired Recognized Developer
Flag Medvode
Thanks Meter: 566
 
1,552 posts
Join Date:Joined: Sep 2007
More
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)
Last edited by BlaY0; 19th January 2011 at 03:37 PM.
The Following 4 Users Say Thank You to BlaY0 For This Useful Post: [ View ]
1st December 2010, 01:15 AM   |  #3  
Member
Thanks Meter: 10
 
69 posts
Join Date:Joined: 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:
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:
Last edited by denisman; 1st December 2010 at 02:00 AM.
1st December 2010, 01:16 AM   |  #4  
Junior Member
Thanks Meter: 0
 
8 posts
Join Date:Joined: Jul 2009
Works beautifully so far!

Big thank you, to you!
1st December 2010, 02:18 AM   |  #5  
Member
Thanks Meter: 2
 
52 posts
Join Date:Joined: Jun 2010
Is the performance any better than with dumfuq's kernel? Just wondering what the advantages to the new kernel are
1st December 2010, 02:56 AM   |  #6  
Member
Thanks Meter: 10
 
69 posts
Join Date:Joined: 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:
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:
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!
Last edited by denisman; 1st December 2010 at 02:59 AM.
1st December 2010, 03:12 AM   |  #7  
ernestus's Avatar
Member
Flag Cambridge
Thanks Meter: 9
 
33 posts
Join Date:Joined: Oct 2007
More
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.
1st December 2010, 04:00 AM   |  #8  
Member
Thanks Meter: 0
 
66 posts
Join Date:Joined: 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.
1st December 2010, 04:15 AM   |  #9  
Senior Member
Singapore
Thanks Meter: 18
 
269 posts
Join Date:Joined: May 2010
More
Quote:
Originally Posted by yanlong94

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
1st December 2010, 08:32 AM   |  #10  
Senior Member
Thanks Meter: 8
 
224 posts
Join Date:Joined: 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?
Last edited by gyroing; 1st December 2010 at 09:24 AM.

Post Reply Subscribe to Thread

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

Advanced Search
Display Modes