This post will introduce on how to build the compiler environment. Step one : Install the Ubuntu12.04. You can use the CD image to finish the installation.
After finishing the installation. Update the system Step two: Download the SDK from the official website and buid the compiler environment. You can download the SDK using git or download the compressed package directory. The SDK website is : http://pan.baidu.com/s/1eQjBGQI?qq-pf-to=pcqq.c2c While finish the download,you can follow the official steps to accomplish the compiler environment. You can also use the scripts of java6.sh,ubuntu1204_evn.sh and arm.sh to install the environment. 1. Enter the command:
This command will install the JDK6(During the installation you may input "y"or "yes" to finish it) Then the JDK installation is finished. 2. Enter the command :
Install the libs and packages which nedds for the compiling . (During the installation you may input “y” or “yes” to finish it)
3. Enter the command:
Install the cross compile tools and the software package which needs for the kernel compiling. Now, you have finished the compile environment installation . 4.If you download the SDK is compress package. You should check the MD5 code . - $ md5sum /path/to/firefly-rk3288_sdk_git.tar.gz
- 0db2e0c5c2a1cb344f923cd538ed9443 firefly-rk3288_sdk_git.tar.gz
Copy the code
5. Decompress the SDK After the SDK compression, you will get a “.git” file. This file is the management of git project. There is no source code in your directory. You
After run this command you can see the structure of source code. 6. Synchronous the source code - git remote add bitbucket <!-- m --><a class="postlink" href="https://TeeFirefly@bitbucket.org/T-Firefly/firefly-rk3288.git"><!-- m --></a><a class="postlink" href="https://TeeFirefly@bitbucket.org/T-Fire"><!-- m --></a><a class="postlink" href="https://TeeFirefly@bitbucket.org/T-Fire"><!-- m --></a><a class="postlink" href="https://TeeFirefly@bitbucket.org/T-Fire"><!-- m --></a><a class="postlink" href="https://TeeFirefly@bitbucket.org/T-Fire"><!-- m --></a><a class="postlink" href="https://TeeFirefly@bitbucket.org/T-Fire"><!-- m --></a><a class="postlink" href="https://TeeFirefly@bitbucket.org/T-Fire">https://TeeFirefly@bitbucket.org/T-Fire</a><!-- m --><!-- m --><!-- m --><!-- m --><!-- m --><!-- m --> ... rk3288.git<!-- m -->
- git pull bitbucket master:master
Copy the code
Now ,you have get the source code. Go to the source code path 1.Source code compiling(Note:the kernel must be compiled first or android compiling will occur errors) After go into the kernel path,run the command: - make firefly-rk3288_beta_defconfigmake -j8 firefly-rk3288_beta.img
Copy the code
Then the kernel is build successfully. 2.Android compiling Go into the root directory of SDK,run the command: - source build/envsetup.sh && lunch rk3288-eng && make -j8
Copy the code
This will spend a long time. I use the lenovo L440 I5+2G laptop,it needs about 4 hours to compile.
Now , you have finished the android compiling.
|