Apr 28, 2015

Compiling LG F60 Metro PCS Kernel from the source (WIP)


Assuming you have Ubuntu64 installed and prepared Android ROM / Kernel build environment setup.

Created a folder named android under your Ubuntu Home (/home/kyle/android)




Go to LG Open Source homepage. Search for MS395.

http://opensource.lge.com/osSch/list?types=ALL&search=ms395


Download LGMs395_Android_L_V20a

Copy the Kernel source under /android.







Extract here.

You will have all sources extracted under /android/kernel

I will refer /home/android/kernel as KERNEL ROOT folder from now.






*** Preparing build env ***


export ARCH=arm

or

ARCH=arm CROSS_COMPILE=~/arm-linux-androideabi-4.7/bin/arm-linux-androideabi- make e2nam_mpcs_us


*** Tool Chains (various versions) ***

export CROSS_COMPILE=~/android/kernel/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-

export CROSS_COMPILE=~/android/kernel/toolchains/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-

export CROSS_COMPILE=~/android/kernel/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-

***


make e2nam_mpcs_us_defconfig

make menuconfig




make ARCH=arm CROSS_COMPILE=~/arm-linux-androideabi-4.7/bin/arm-linux-androideabi- menuconfig



make -j4 CONFIG_NO_ERROR_ON_MISMATCH=y




4 comments:

  1. The Android L files disappeared from the website, do you have a copy?

    ReplyDelete
  2. ^_^

    https://drive.google.com/file/d/0B69dMfqyU4n9dHBBSUxQbDJvdEk/view?usp=sharing

    ReplyDelete
  3. Thank you for the upload, now I am just having trouble figuring out how to build this, I have my environment set up, I have kernel and android in the android directory, using ubuntu 14.04. 16 GB of Ram/Swap, 4 cores, I run the commands and get errors, I'm newbie, Just want to start learning! and bring some development to this phone which is highly lacking in the dev department

    ReplyDelete
  4. This is my first time trying so I am having errors as well. Also the text file they included in the source is overly simple so it didn't do much help at all.

    This is the guide I am following.

    http://forum.xda-developers.com/showthread.php?t=1748297&__utma=248941774.677411490.1396903243.1408726402.1408982028.21&__utmb=248941774.3.10.1408982028&__utmc=248941774&__utmx=-&__utmz=248941774.1408982028.21.20.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided)&__utmv=-&__utmk=235062274


    Also if you see file missing error. Try to change include to include "abc.h"
    When compiling try to use toolchain 4.7 or higher, this will solve major file missing errors.


    If I get good result I will post update.

    ReplyDelete