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

BlaY0

Retired Recognized Developer
Sep 15, 2007
1,553
566
0
Medvode
OK, here we go...

  • smaller (lzma compressed)
  • overclocked :D
  • 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!
 

Attachments

Last edited:

BlaY0

Retired Recognized Developer
Sep 15, 2007
1,553
566
0
Medvode
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:

denisman

Senior Member
Sep 4, 2010
69
10
0
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
[B][COLOR="Lime"]122880[/COLOR][/B]
cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
[B][COLOR="Lime"]787200[/COLOR][/B]
cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq
[B][COLOR="Lime"]122880[/COLOR][/B]
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:

denisman

Senior Member
Sep 4, 2010
69
10
0
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:
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:

ernestus

Member
Oct 21, 2007
33
9
0
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

Senior Member
Aug 15, 2010
66
0
0
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

Senior Member
May 26, 2010
282
19
0
Singapore
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
 

gyroing

Senior Member
Sep 9, 2010
226
8
38
@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? :eek:
 
Last edited:

fatthumb

Senior Member
May 26, 2010
282
19
0
Singapore
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.
If I'm not wrong CM RC still based on older kernel (2.6.29)? And this one is for official froyo ROM with latest kernel (2.6.32).

Sent from my HTC Legend using Tapatalk
 

kugel.

Senior Member
Jul 11, 2010
131
18
38
...available scaling frequencies are 123, 246, 480, 600 and 787 MHz. Default governor is ondemand with 123 MHz min and 600 MHz max frequency. This can be changed with SetCPU or manually via sysfs.
More frequencies would be nice (I'm more than.happy with 768MHz). As would the source code of your kernel.

I am experiencing rather weird behavior of ondemand scaling governor (not just with this customized but also with stock one) comparing to 2.6.29... as if powersave bias isn't working at all. And it is changing states quite heavily comparing to 2.6.29... need to take a closer look...
Interesting, I was experiencing the same, I thought it was a problem with the stock froyo ROM and it was one of the main reasons for me to switch back to cm as it heavily reduces battery life. the interactive governor doesn't have this problem?
 

BlaY0

Retired Recognized Developer
Sep 15, 2007
1,553
566
0
Medvode
Well, with 2.6.29 you have to use old Wi-Fi drivers, that means Wi-Fi hotspot won't work coz there's no "hotspot" driver for old kernel.

Sent from my HTC Legend
 

BlaY0

Retired Recognized Developer
Sep 15, 2007
1,553
566
0
Medvode
Interesting, I was experiencing the same, I thought it was a problem with the stock froyo ROM and it was one of the main reasons for me to switch back to cm as it heavily reduces battery life. the interactive governor doesn't have this problem?
Yeah, battery drain while not sleeping was quite heavy. It's not the problem with the ROM itself... I tried good ol' 2.6.29 and ondemand governor was acting just fine. Now I'm using interactive governor and it's doing fine. Will diff ondemand governor as soon as I find some time...


Sent from my HTC Legend