Last active
March 6, 2018 21:37
-
-
Save vinecodes/a57e8639e39d7009bb790127f7eca195 to your computer and use it in GitHub Desktop.
Kernel Compilation Guide for LG G4c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Kernel Compilation Guide | |
Author: Vineeth Penugonda | |
(1) git clone https://github.com/LG-K10/android_kernel_lge_msm8916.git -b cm-14.1 | |
(2) git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8 | |
(3) sudo gedit ~/.profile. | |
Then, source ~/.profile. | |
(4) (Add below lines at the end) | |
# add ARM-EABI Toolchain | |
if [ -d "<change-this-directory-path>/arm-eabi-4.8/bin" ] ; then | |
PATH="<change-this-directory-path>/arm-eabi-4.8/bin:$PATH" | |
fi | |
(5) make ARCH=arm CROSS_COMPILE=arm-eabi- mrproper | |
(6) make ARCH=arm CROSS_COMPILE=arm-eabi- c90_defconfig | |
(7) make ARCH=arm CROSS_COMPILE=arm-eabi- zImage | |
(8) make ARCH=arm CROSS_COMPILE=arm-eabi- dtb | |
Now to get zImage and dtb files, go to: | |
arch/arm/boot/ folder. ZImage will be in that folder. | |
zImage is a compressed Kernel image which is decompressed while booting by the bootloader. | |
arch/arm/boot/dts folder. msm8916-c90.dtb will be in the folder. | |
DTS files are flattened-device files. They are compiled using the DTC Compiler. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment