-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Welcome to the android-msm-2.6.27-hero community kernel wiki!
The purpose of that GIT is to have an optimized hero kernel based on HTC source.
You need git set up and working.
git clone git://github.com/loxK/android-msm-2.6.27-hero.git
To build, you must have the toolchain for arm. I use the one included in android source. Change \<android-source-path\> to match to yours:
export PATH=$PATH:<android-source-path>/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/
Then, get the default optimized configuration:
make ARCH=arm SUBARCH=arm CROSS_COMPILE=arm-eabi- msm7200a_defconfig
Now you can continue or tweak the .config file editing it, or by issuing:
make ARCH=arm SUBARCH=arm CROSS_COMPILE=arm-eabi- menuconfig
Ready? Build the kernel with make:
make ARCH=arm SUBARCH=arm CROSS_COMPILE=arm-eabi-
(A small speed advice: adding the parameter -jx where x is twice the number of cpus you have is a good idea)
You must have the mkbootfs and mkbootimg in your path. Run:
mkimg/mkboot-hero.sh
You have to use the driver located here: system/wlan/ti/sta_dk_4_0_4_32 in android source.
Cd to that folder and:
make KERNEL_DIR=<path_to_kernel_source>
Once finished, copy wlan.ko to /build/update-skel/system/lib/modules
You need java correctly set up for the script to sign update.zip. This script will also build the boot.img like mkboot-hero.sh does.
To make a usable update-signed.zip run:
mkimg/mkboot.sh
This is a community project.
If you find any option in .config that make the kernel better and/or faster, just use the issue tab. For bugs too of ccourse.
Important feature additions will go in a new branch. There is a bfs branch to implement bfs. Fell free to submit patches.