How to build Android(AOSP) source codeRequirement Install Google's repo command tool ref : - Make sure you have a bin/ directory in your home directory and that it is included in your path:
- mkdir ~/bin
- PATH=~/bin:$PATH
复制代码- Download the Repo tool and ensure that it is executable:
- curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
- chmod a+x ~/bin/repo
复制代码 Android 6.0.1 AOSP- Get source code:
- $ repo init -u https://git@bitbucket.org/TinkerBoard_Android/manifest.git -b sbc/tinkerboard/asus/Android-6.0.1
- $ repo sync -c -d
复制代码- 找到 编译指导文档.
- [source code]/RKDocs/android_SOP_eng_6.0.1.docx
复制代码
配套内核编译
How to build Kernel source codeAndroid 6.0.1 kernel- Get source code:
- $ git clone https://github.com/TinkerBoard/android-6.0.1_kernel.git -b release
复制代码- Building image:
- $ cd android_kernel
- $ make rockchip_defconfig -j4
- $ make rk3288-miniarm.img -j4
复制代码- Flash image:
- Prepare one sdcard which has the full Android image inside.
- then insert the sdcard into a linux based OS, and suppose the block device of the sdcard is /dev/sdx
- $ sudo dd if=./resource.img of=/dev/sdx seek=32768
- $ sudo dd if=./kernel.img of=/dev/sdx seek=65536
复制代码
|