Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
adam900710
Old
(Last edited by adam900710; 10th February 2012 at 06:35 AM.)
#1  
Member - OP
Thanks Meter 14
Posts: 61
Join Date: Dec 2010
Default [kernel][For CM7 only][LAZY,TUN,CIFS,ondemand tweaks]Adam's kernel[02/10/2012]

Hi guys.
I'm a newbie about compiling kernel,and this is my personal compiled kernel based on Hashcode's git source( stock branch),also with some tweaks which I think can improve the responsiveness without bringing extra power consumption( or as little as possible).
This kernel will also be my testing platform to do some MOD porting from Ezekeel's GLaDOS kernel.

Thanks to all great developers in XDA , especially:
-Hashcode & intersectRaven : for their git repo alone with a working .config. alone
-Ezekeel : for his so many great MODs on Nexus S(my phone) and Galaxy Nexus(will be my next phone)
-whistlestop : For his improvement on CM7 (I'm completely unfamiliar with the user land things about android, without him I'll be still using the stock ROM)

Features:
-LAZY cpufreq governor ported from GLaDOS(http://forum.xda-developers.com/show....php?t=1276092) with some tweaks.
-TUN compiled into kernel (especially important for people living in regions with strict network censorship like CHINA! F*ck the GreatFireWall)
-CIFS compiled into kernel along with NLS-utf8 for non-ASCII characters.( Now who cares the size of the internal flash?)
-Minor tweaks on ondemand governor to improve responsiveness.

ToDo:
-BLX porting from GLaDOS(http://forum.xda-developers.com/show....php?t=1257497)
-TouchWake porting from GLaDOS(http://forum.xda-developers.com/show....php?t=1239240)

Because I'm a newbie on kernel development and the MODs above both have some code in hardware drivers, so it will be a long time before accomplish.

The kernel source code seems to work on both CM9 and stock ROM.
So later I'll upload the flashable kernel zip for CM9 and stock ROM after some test.

Download:
CM7:http://www.mediafire.com/?2nsm9lb7ylm3gnl

In next post,I'll post the procedure for compiling the kernel and the wifi driver.
The Following 3 Users Say Thank You to adam900710 For This Useful Post: [ Click to Expand ]
 
adam900710
Old
(Last edited by adam900710; 10th February 2012 at 06:30 AM.)
#2  
Member - OP
Thanks Meter 14
Posts: 61
Join Date: Dec 2010
In this post I'll post the detailed procedure of compile the kernel.

1.Get the kernel source and wifi driver:
If you want to compile the kernel based on my tweak,
you can use my repo (fork from hashcode's source):https://github.com/adam900710/kernel_omap(branch stock)
Or you can just start from scratch without my tweak:https://github.com/KFire-Android/kernel_omap(only branch stock is tested)

If you are unfamiliar with git,you can learn it on the GitHub's help page:
http://help.github.com/

Tiwlan drivers from neither omapzoom nor CM7 works due the lack of given functions.
ONLY the wifi driver from Amazon seems work. So you need to download the whole zip from Amazon:
http://www.amazon.com/gp/help/custom...deId=200203720

The wifi driver locates in mydroid/hardware/ti/wlan/wl1283


2.Get the cross compile toolchain:
Yes,you can build from scratch according to CLFS(http://trac.cross-lfs.org/),but a newbie like me is glad to use the pre-compiled toolchain like sourcery G++. Omappedia recommanded 2010q1-202(https://sourcery.mentor.com/sgpp/lit...al/release1293), so I use it as the toolchain and it works well.

The self-extrated installation program will install the toolchian without any problem.

Also other toolchain is available like linaro , but according to the post by Ezekeel (http://rootzwiki.com/topic/10855-res...er-toolchains/) , there seems no obvious difference. So the out-of-box sourcery G++ is a good choice.

3.Compile the kernel.
Code:
cd kernel_omap     #cd into your kernel
make mrproper      #clean the source tree( normally you can skip)
make otter_android_defconfig #get the default .config (also you can copy it manually)
make ARCH=arm menuconfig #if you want,you can tweak the config of the kernel.This needs headers of ncurse
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi -j4 #you should make sure that the toolchain is in you PATH
After some CPU time, the kernel is built, in arch/arm/boot/zImage. Also the modules is built in other places.
Since I built all TUN/CIFS and so on into kernel,so there is no need to install the modules.

4.Compile the wifi driver:
Code:
cd mydroid/hardware/ti/wlan/wl1283/platforms/os/linux/  #cd into the building folder
make ARCH=arm KERNEL_DIR=/home/adam/kernel_omap CROSS_COMPILE=arm-none-linux-gnueabi-  TNETW=1273 -j4  #you need to change the path of KERNEL_DIR
CAUTION: DO NOT add DEBUG=n OR DELETE TNETW=1273....
I don't know why,but if you do so,the wifi driver won't work properly.

5. Package the kernel into boot.img with ramdisk.
Thanks to DooMLord , in his git repo , you can download the tools needed.
https://github.com/DooMLoRD/Kindle-F...er/final_files

Only minor changes are needed for the path ,every thing elso works fine.
You can use the ramdisk extracted from any CM7 boot.img using the perl script.
Then just ./make_bootimg will do everythin for you.
The Following 2 Users Say Thank You to adam900710 For This Useful Post: [ Click to Expand ]
 
acax456
Old
#3  
acax456's Avatar
Senior Member
Thanks Meter 261
Posts: 1,337
Join Date: Feb 2011
Location: Hồ Chí Minh
Great i will test it

Sent from my GT-P1000 using xda premium
 
animefun135
Old
#4  
Senior Member
Thanks Meter 14
Posts: 156
Join Date: Nov 2011
Best kernel.

I'm running on CM7 with this kernel and get super-perfomance and perfect power consump (Using Lazy governor).
 
acax456
Old
#5  
acax456's Avatar
Senior Member
Thanks Meter 261
Posts: 1,337
Join Date: Feb 2011
Location: Hồ Chí Minh
It's not support OC??

Sent from my GT-P1000 using xda premium
 
adam900710
Old
#6  
Member - OP
Thanks Meter 14
Posts: 61
Join Date: Dec 2010
Quote:
Originally Posted by acax456 View Post
It's not support OC??

Sent from my GT-P1000 using xda premium
Sorry, not support yet.
Maybe I'll add OC in next release.But I don't recommend OC because the power consumption...
The Following User Says Thank You to adam900710 For This Useful Post: [ Click to Expand ]
 
ygvuhb
Old
#7  
Senior Member
Thanks Meter 36
Posts: 429
Join Date: Jul 2010
can you able otg usb support ???
is this possible
 
animefun135
Old
#8  
Senior Member
Thanks Meter 14
Posts: 156
Join Date: Nov 2011
Please add .zip for CM9!
 
FckingAllen
Old
#9  
FckingAllen's Avatar
Senior Member
Thanks Meter 8
Posts: 204
Join Date: Aug 2009
Location: Sacramento916
Can I flash this from the recovery? or do I have to use adb??
-------------------------------
Call of Duty? xbl - TXG 1000101
------
 
shantam
Old
#10  
Account currently disabled
Thanks Meter 66
Posts: 421
Join Date: Apr 2010
please.update your kernel.since its been two months from last.update

Sent from my GT-P1000 using xda premium

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Guide to Using Adobe Air on Android

When writing an app with performance in mind, you most likely want to write it native code using the … more

Boot Animation Paradise for your Android Device

The default boot animations on any device, no matter whichmanufacturer, are generally pretty … more