Home » , , » Cara Membuat Kernel Sendiri Nexus 4 Android

Cara Membuat Kernel Sendiri Nexus 4 Android

Written By Unknown on Monday, February 25, 2013 | 4:57 AM

Terlebih dahulu jika anda ingin membuat atau membangun kernel anda sendiri anda harus menggunakan ubuntu 64 atau 32 bit dan tidak dapat di buat oleh windows karena windows bukanlah open source yang dapat meng-edit kernel-kernel akan tetapi jika ada program khusu untuk modifikasi kernel akan saya post kan pada artikel berikutnya, mohon untuk di bookmark blog saya atau subcribe untuk mendapatkan info terbaru ^e^


environment: ubuntu 10.04 LTS 64bit

get some package
sudo apt-get install gnupg flex bison gperf build-essential \
zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \
x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev \
libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown \
libxml2-utils xsltproc

install git
first install some packages that git depends on:
sudo apt-get install libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev

get the new git source code from http://j.gs/1udR
download git-1.8.0.tar.gz
tar -xvf git-1.8.0.tar.gz
cd git-1.8.0
./configure
make
sudo make install
this will install git to /usr/local/bin/

get the kernel source code:
mkdir -p ~/android/kernel
cd ~/android/kernel
git clone http://j.gs/1udT

check which version of kernel to checkout
mkdir ~/work/android/nexus4-kernel
cd ~/work/android/nexus4-kernel
git clone http://j.gs/1udV
cd mako-kernel
git log kernel
get the commit rev, which is e039dcb (nov 25, 2012), this number seems to correspond to the latest commit revision in http://j.gs/1udW
check out the kernel
cd ~/android/kernel/kernel_msm
git checkout <commit version>
note: commit version is e039dcb, which is the result of the git log kernel command in the previous step

install google toolchain
mkdir ~/android/toolchain
cd ~/android/toolchain
git clone http://j.gs/1udX
add “export PATH=$PATH:~/android/toolchain/arm-linux-androideabi-4.6/bin” to ~/.profile and run source ~/.profile

setup environment variables and build
cd ~/android/kernel/kernel_msm
export ARCH=arm
export SUBARCH=arm
export CROSS_COMPILE=arm-linux-androideabi-
make mako_defconfig
make -j4

done
Share this article :

0 comments:

Post a Comment

 
Support : Big thing | Pusat Android | Play Store
Copyright © 2013. Android Center - All Rights Reserved
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger