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

Search This thread

gboddina

Senior Member
Jul 7, 2009
56
0
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://xdaforums.com/showthread.php?t=548061
 
Last edited:

bcrook

Senior Member
Jun 16, 2009
901
7
Toronto
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 ? -> gregory@siwhine.net

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://xdaforums.com/showthread.php?t=548061

Excellent job.

Any chance you wanna talk me through building a kernel!?
 

gboddina

Senior Member
Jul 7, 2009
56
0
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 ;)
 

bcrook

Senior Member
Jun 16, 2009
901
7
Toronto
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 ;)

Well, even if you could do something quick and basic it would be awesome :)
 

ruqqq

Senior Member
Oct 12, 2008
526
1,255
Works on JACxHEROski-v1.4 for 32A.
(it's a fast HERO rom btw)
Thanks a bunch! I have multi-touch now! :D

Instructions
For the strong hearted only! :p

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

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]

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?
 
T

TigerTael

Guest
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 ? -> gregory@siwhine.net

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://xdaforums.com/showthread.php?t=548061
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)
 
Last edited:

k4r1m

Senior Member
Jun 4, 2009
370
10
Montreal
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...
 

gboddina

Senior Member
Jul 7, 2009
56
0
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)

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 ?
 
T

TigerTael

Guest
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 ?
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
 

gboddina

Senior Member
Jul 7, 2009
56
0
It's not "mine" :). It's your kernel and my build :p

Better, it's a community kernel :D


I'll revert back to stock configuration for this part ;).
 

k4r1m

Senior Member
Jun 4, 2009
370
10
Montreal
It's not "mine" :). It's your kernel and my build :p

Better, it's a community kernel :D


I'll revert back to stock configuration for this part ;).
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,