ROM Android: Porting F240K modifikasi kernel dari opensource lg.com

From OnnoWiki
Revision as of 06:02, 2 January 2015 by Onnowpurbo (talk | contribs)
Jump to navigation Jump to search

LGE F240K mirip dengan LGE E980. Oleh karenanya kita dapat menggunakan e980 hanya mengubah kernel-nya saja.

Ambil.config dari LGE f240k

  • Sambungkan handphone LGE f240k ke komputer
  • Lakukan
adb devices
adb pull /proc/config.gz
gzip -d config.gz
cp .config ~/android-cyanogenmod/kernel/lge/gproj/arch/arm/configs/cyanogenmod_e980_defconfig


Download kernel dari

https://www.lg.com/global/support/opensource/opensourceList?types=ALL&search=f240k

Download file

LGF240K_Gpro_Kikat_V20e_kernel.zip

Lakukan

cd ~/Downloads
unzip LGF240K_Gpro_Kikat_V20e_kernel.zip
tar zxvf LGF240_Gpro_Kikat_V20e_kernel_140807.tar.gz
cd ~/Downloads/kernel
cp -Rf ~/Downloads/kernel/* ~/android-cyanogenmod/kernel/lge/gproj


cd ~/android-cyanogenmod/kernel/lge/gproj
./make_defconfig.sh cyanogenmod_e980_defconfig


2. Kernel Build

 - Uncompress using following command at the android directory
       tar xvzf LGF240_Gpro_Kikat_V20e_Kernel.tar.gz        
 - When you compile the kernel source code, you have to add google original prebuilt source(toolchain) into the android directory.
 - Run following scripts to build kernel
   a) cd kernel
   b) lunch
   c) make PATH=$PATH:tools/lz4demo ARCH=arm CROSS_COMPILE=../prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi- gku_bcm-perf_defconfig zImage

* U+ : gku, SKT : gksk, KT : gkkt

        * lz4demo : More information can be found at "https://code.google.com/p/lz4/"
 - After build, you can find the build image(zImage) at arch/arm/boot