Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

Building The compiler environment

10

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
10

Building The compiler environment

Posted at 11/25/2014 15:10:44      View:4782 | Replies:1        Print      Only Author   [Copy Link] 1#

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.



Reply

Use props Report

240

Credits

0

Prestige

0

Contribution

intermediate

Rank: 3Rank: 3

Credits
240
Posted at 12/6/2014 04:40:44        Only Author  2#

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

Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list