Skip to content

rookiecj/nexus5-aosp-marshmallow-mr2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

How to build AOSP Marshmallow for Nexus 5 including its kernel

it describes how to build marshmallow mr2 for the Nexus 5 including kernel-3.4 and provides few patches.

Find right version

setting up a right version of Android is the key to successful build the android source.

I chose m_mr2 for my Nexus 5 with no paticular reason :) and MOB31E seems right choice which I can see rigth version information as follows on google groups:

Android version Build Branch Version Supported devices
MOB31E, android-6.0.1_r66, Nexus 5, Nexus 6, Nexus 9 (volantisg)

Kernel version android-6.0.1_r0.124 kernel/msm android-msm-hammerhead-3.4-marshmallow-mr2 Nexus 5 (hammerhead)

Setup sources

android m-mr2

Firstly sync the m_mr2 branch marshmallow-mr2-release

repo init -u https://android.googlesource.com/platform/manifest -b marshmallow-mr2-release
repo sync -j8

and checkout MOB31E, I used reset.

repo start m_mr2 --all
repo forall -c 'pwd;git reset --hard android-6.0.1_r66

kernel

sync and checkout the branch for Nexus5

git clone https://android.googlesource.com/kernel/msm kernel-3.4
cd kernel-3.4
git fetch origin android-msm-hammerhead-3.4-marshmallow-mr2
git checkout -b android-msm-hammerhead-3.4-marshmallow-mr2 origin/android-msm-hammerhead-3.4-marshmallow-mr2

and finally reset the commits

git reset --hard android-6.0.1_r0.124

patching files

I've attached 3 patches as follows:

  • build.diff for build/
  • device_lge_hammerhead.diff for /device/lge/hammerhead
  • kernel.diff for kernel-3.4/ apply them at its directories.

vendor driver files

cp -r vendor <your android root>/vendor

missing libraries(optional)

TBD

Build

Now you are ready to build, I know you know how to build :)

Flashing

TBD

Special Thanks

Thank you Eunjung for your help :)

About

AOSP android marshmallow mr2 build including kernel-3.4

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published