CC-A80-Android4.4-Building-Guide.pdf

(601 KB) Pobierz
      
       
CC-A80 Android source code compile Guide
       
                                    
 
CC-A80
Website:http://cubieboard.org/
Support:
support@cubietech.com
Version
V-1.0-20150202
Author
parker
Modification
Initial version
Check
CC-A80-Android4.4-Building-Guide
 
2
Table of Contents
1.Download android source code .......................................................................................................4
2.SDK directory structure ...................................................................................................................4
3.Build a compiler environment .........................................................................................................5
3.1.install JDK................................................................................................................................5
3.2. Compile the required package of installation(Ubuntu 12.04)............................................6
4.directed methods of compiling.........................................................................................................6
4.1.Compile the kernel....................................................................................................................6
4.2.Compile the brandy .................................................................................................................9
4.3. Compile android ...................................................................................................................10
5.Package SDK..................................................................................................................................11
6.flash guide .....................................................................................................................................11
     
Website:http://cubieboard.org/
                
Support:
support@cubietech.com
3
1. Download android source code
Git :
git clone
https://bitbucket.org/cubietech/cc-a80-android4.4_android.git
git clone
https://bitbucket.org/cubietech/cc-a80-android4.4_lichee.git
Archive:
http://dl.cubieboard.org/model/cc-a80/Source/Android/
2. SDK directory structure
|---- android
| |---- abi
| |---- art
| |---- bootable
| |---- build
| |---- cts
| |---- dalvik
| |---- developers
| |---- development
| |---- device
| | |---- softwinner
| | | |---- kylin-common
| | | |---- kylin-p1
| |---- docs
| |---- extemal
| |---- frameworks
| |---- hardware
| |---- libcore
//Public platform directory
//product differentiation directory
CC-A80-Android4.4-Building-Guide
 
4
| |---- libnativehelper
| |---- Makefile
| |---- ndk
| |---- packages
| |---- pdk
| |---- prebuilts
| |---- sdk
| |---- system
| └── tools
└── lichee
|-- brandy
|-- buildroot
|-- build.sh
|-- linux-3.4
|-- out
|-- README
└── tools
// package tools
//boot source code
// The script compiler, cross compiler tool chain
// Top level script compiler
// The kernel directory
3. Build a compiler environment
3.1. install JDK
$ wget dl.cubieboard.org/software/tools/android/jdk1.6.0_45.tar.gz
Unpack:
$ sudo tar -xvf jdk1.6.0_45.tar.gz
$ sudo vim ~/.bashrc
add:
JAVA_HOME=/jdk-path/jdk1.6.0_45
export JRE_HOME=/jdk-path/jdk1.6.0_45/jre
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
jdk-paththe: path of Download unpacked JDK
Which saved enforced and verify success:
$ source ~/.bashrc&&java -version
     
Website:http://cubieboard.org/
                
Support:
support@cubietech.com
5
Zgłoś jeśli naruszono regulamin