V1.0
CoreWind Technology Co.,Limited
Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210 System
System
System
System System
System
System
System Development
Development
Development
Development manual
manual
manual
manual
www.armdevs.com
www.armdevs.com
www.armdevs.com
www.armdevs.com
3
Table
Table
Table
Table of
of
of
of Content
Content
Content
Content
1 INTRODUCTION ................................................................................................................................................... 6
1.1 About This Document ................................................................................................................................ 6
1.2 Related Document ...................................................................................................................................... 6
2 System support ......................................................................................................................................................... 7
3 Android system development ................................................................................................................................... 8
3.1 Build environment ......................................................................................................................................... 8
3.2 Source code Prepared .................................................................................................................................... 8
3.3 Configure and Compile Linux Kernel ........................................................................................................... 9
3.4 Create Android .............................................................................................................................................. 9
3.5 Create or Run File System .......................................................................................................................... 10
4 Android Application Programming Guide ............................................................................................................. 11
4.1 Install the Application Programming environment ..................................................................................... 11
4.1.1 Step 1: download and install JDK(Java SE Development Kit) ........................................................ 11
4.1.2 Step 2: download and install Android SDK ..................................................................................... 12
4.1.3 Step 3: download and install Android2.3 Package ........................................................................... 13
4.1.4 Step 4: install Eclipse development environment ............................................................................ 13
4.1.5 Step 5: install Android Development Tools ...................................................................................... 14
4.1.6 Step 6: Configure the Eclipse ........................................................................................................... 15
4.1.7 Create Android
AVD
........................................................................................................................ 15
4.1.8 Step 8: Develop the first Android application program .................................................................... 16
4.1.9 Creat Hello Tiny210 project .............................................................................................................. 16
4.1.10 Run HelloTiny210 Application Program in
AVD
........................................................................... 18
4.1.11 Step 8: Create the Debugging environment for Tiny210 ................................................................ 18
4.2 Program access to hardware in Andorid ...................................................................................................... 23
4.2.1 How to use the library (libfriendlyarm-hardware.so) ?................................................................... 24
4.2.2 library(libfriendlyarm-hardware.so) API introduce .......................................................................... 25
4.2.3 API Demo introduce ......................................................................................................................... 29
Chapter 5 Linux ........................................................................................................................................................ 31
5.1 Set up Fedora 9.0 Development Environment ............................................................................................ 31
5.1.1 Install Fedora 9.0 .............................................................................................................................. 31
5.1.2 Add User Account ............................................................................................................................ 45
5.1.3Access Windows Files ....................................................................................................................... 48
5.1.4 Configure NFS Service .................................................................................................................... 54
5.1.5 Set Up Cross Compile Environment ................................................................................................ 58
5.2 Uncompress Source Code and Install Application Utilities ........................................................................ 59
5.2.1 Uncompress Source Code ................................................................................................................ 59
5.2.2 Create Target File System ................................................................................................................ 61
5.2.3 Install Target File System ................................................................................................................. 62
5.2.4 Install LogoMaker ............................................................................................................................ 62
5.3 Configure and Compile Kernel ................................................................................................................... 63
5.3.1 Configure and Compile Kernel ........................................................................................................ 63
5.3.2 Location of the Driver ...................................................................................................................... 63