This guide will help you in building a kernel from source for your Nexus 10
Later, when 4.2 hits AOSP, i'll add a guide for building that too
You will need a computer running Linux / OSX to build the kernel, natively, or via a VM.
This guide assumes you’re running any Linux distro.
Getting a toolchain:
You need a toolchain to build the kernel.
The preferred one is Google’s toolchain, the same they use to build AOSP.
In a terminal, type:
git clone https://android.googlesource.com/pla...droideabi-4.6/ export PATH=$PATH:$(pwd)/arm-linux-androideabi-4.6/bin export CROSS_COMPILE=arm-linux-androideabi-
Getting the kernel source:
The kernel source for Nexus devices is available from Google’s servers.
Source : https://android.googlesource.com/kernel/exynos
Github Mirror: https://github.com/chirayudesai/android_kernel_exynos
Open the terminal, and type the below commands to get the kernel source on your computer.
mkdir -p android/kernel cd android/kernel
Now, we need to figure out which revision to build.
You need to be exactly sure about this, otherwise there are chances that the compiled kernel won’t work.
The commit to build upon can be found by a few ways.
To get the kernel sources matching the device tree, type the below in the device tree.
git log kernel
git checkout <commit>
Name of defconfig: manta_defconfig
cd to the directory of the kernel source, then type the below in a terminal.
export ARCH=arm export SUBARCH=arm
make <name_of_defconfig> make
To flash it, you need to make it into a boot.img, more on that later. when we have more sources.