Firefly Open Source Community

Title: Building The compiler environment [Print This Page]

Author: Andy    Time: 11/25/2014 15:10
Title: Building The compiler environment

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:

  1. ./java6.sh
Copy the code

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 :

  1. ./ubuntu1204_evn.sh
Copy the code

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:

  1. ./arm.sh
Copy the code

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 .

  1. $ md5sum /path/to/firefly-rk3288_sdk_git.tar.gz
  2. 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

  1. $git reset
Copy the code

After run this command you can see the structure of source code.

6. Synchronous the source code

  1. 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 -->
  2. 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:

  1. 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:

  1. 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.




Author: cappybob    Time: 12/6/2014 04:40

@Andy

Will try this, first time I have seen the build done this way.  Just one question and that is; Does this allow one to download the source files to the computer.






Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1