2011年8月29日月曜日

Android(tcc8900)

境准

安装java sdk文件jdk-1_5_0_22-linux-i586.bin/usr/java/jdk1.5.0_22,最好将bin文件拷/usr/java的目再安装

export JAVA_HOME=/usr/java/jdk1.5.0_22
export CLASSPATH=$JAVA_HOME/lib/tools.jar:${JAVA_HOME}/lib/dt.jar:$CLASSPATH
export PATH=$JAVA_HOME/bin:$PATH

(bin文件的安装:

行如下

./*.bin

如果没有限,可以先用chmod   a+x   *.bin置,是不行就可以切root

)

 

2,编译kernel

入到/android/kernel编译kernel

make tcc8900_defconfig (采用默认设)

或者采用make menuconfig

make && ./tcc_mkrd.sh

3.1 Set Linux kernel default setting 

3.1.1 For TCC9201 

Enter Linux kernel folder and execute below command to set TCC9201 default setting. .config file is 
created
at kernel folder. 


$ cd ~/mydroid/android/kernel 

$ make tcc9201_defconfig 


In this case, default operating clock is 600MHz/300MHz. And operating clock will be varied during 
operation
. 

3.1.2 For TCC8900 

Enter Linux kernel folder and execute below command to set TCC89XX default setting. .config file 
is
created at kernel folder. 
Preliminary 5 TCC89xx TCC89xx-Android-ALL-1050-V1.07E-Quick Start Guide   
Quick Start Guide    COMPILE LINUX KERNEL 

$ cd ~/mydroid/android/kernel 
$
make tcc8900_defconfig

5 Compile and build Android framework 

5.1 Setup compile environment 

Before compile operation, TARGET_PRODUCT must be set for proper board configuration. Execute 
below
commands. There is space between dot(.) and 'build/envsetup.sh' to execute shell scripter. 
When you execute "lunch" command, you can see lists. 


$ cd ~/mydroid/android 

$ . build/envsetup.sh (source ./build/envsetup.sh)
including vendor/aosp/vendorsetup.sh 
including vendor/telechips/vendorsetup.sh 

$ lunch 

You're building on Linux 

generic-eng simulator aosp_emulator_us-eng aosp_emulator_eu-eng 
aosp_dream_us-userdebug aosp_dream_eu-userdebug aosp_dream_us-eng 
aosp_dream_eu-eng aosp_sapphire_us-userdebug aosp_sapphire_eu-userdebug 
aosp_sapphire_us-eng aosp_sapphire_eu-eng telechips_tcc9200s_us-eng 
telechips_tcc9200s_ko-eng telechips_tcc9200_us-eng telechips_tcc9200_ko-
eng telechips_tcc9201_us-eng telechips_tcc9201_ko-eng 
telechips_tcc8900_us-eng telechips_tcc8900_ko-eng 
Lunch menu... pick a combo: 
Preliminary 8 TCC89xx TCC89xx-Android-ALL-1050-V1.07E-Quick Start Guide   
Quick Start Guide   COMPILE AND BUILD ANDROID FRAMEWORK 
     1. generic-eng 
     2. simulator 
     3. aosp_emulator_us-eng 
     4. aosp_emulator_eu-eng 
     5. aosp_dream_us-userdebug 
     6. aosp_dream_eu-userdebug 
     7. aosp_dream_us-eng 
     8. aosp_dream_eu-eng 
     9. aosp_sapphire_us-userdebug 
     10. aosp_sapphire_eu-userdebug 
     11. aosp_sapphire_us-eng 
     12. aosp_sapphire_eu-eng 
     13. telechips_tcc9200s_us-eng 
     14. telechips_tcc9200s_ko-eng 
     15. telechips_tcc9200_us-eng 
     16. telechips_tcc9200_ko-eng 
     17. telechips_tcc9201_us-eng 
     18. telechips_tcc9201_ko-eng 
     19. telechips_tcc8900_us-eng 
     20. telechips_tcc8900_ko-eng 


If you want to use TCC9201, please select 'telechips_tcc9201_us-eng' or 
'telechips_cc9201_ko-eng' with input 17 or 18. And if you want to use TCC8901, please select 
'telechips
_cc8900_us-eng' or 'telechips_cc8900_ko-eng' with input 19 or 20.

要先编译boot编译andriod framework


5.2 Compile bootloader 

You must compile bootloader and frameworks respectively and compile bootloader firstly. Bootloader 
is
changed from tcboot to lkboot. So bootloader is changed from "bootable/bootloader/tcboot" 
to
"bootable/bootloader/lk". 

Compile for TCC9201, "make tcc9201_evm" must be executed. 


$ cd ~/mydroid/android/bootable/bootloader/lk 
$ make tcc9201_evm 


Then "lk.rom" is created at "bootable/bootloader/lk/build-tcc9201_evm/lk.rom" folder. 

Compile for TCC8900, "make tcc8900_evm" must be executed. 


$ cd ~/mydroid/android/bootable/bootloader/lk 
$ make tcc8900_evm 


Then "lk.rom" is created at "bootable/bootloader/lk/build-tcc8900_evm/lk.rom" folder. 

If you want to clean bootloader, you can use "make tcc9201_evm clean" for TCC9201 or "make 
tcc89001
_evm clean" for TCC8900. 

This must be downloaded with FWDN V7. Please refer below chapter which explains how to download 
firmware
with FWDN V7. 


Preliminary 9 TCC89xx TCC89xx-Android-ALL-1050-V1.07E-Quick Start Guide   
Quick Start Guide   PREPARE TO USE FIRMWARE DOWNLOAD 
5.3
Compile frameworks 

Just execute "make" command, you can build Android frameworks. It takes time. 


$ cd ~/mydroid/android 
$ make 


If you select proper TARGET_PRODUCT with "Setup compile environment" chapter, you can 
check it with below log. This log can be seen when you select "telechips_tcc8900_us-eng". 


============================================ 
PLATFORM_VERSION_CODENAME=REL 
PLATFORM_VERSION=2.1-update1 
TARGET_PRODUCT=telechips_tcc8900_us 
TARGET_BUILD_VARIANT=eng 
TARGET_SIMULATOR=false 
TARGET_BUILD_TYPE=release 
TARGET_ARCH=arm 
HOST_ARCH=x86 
HOST_OS=linux 
HOST_BUILD_TYPE=release 
BUILD_ID=ECLAIR 
============================================

 

0 件のコメント:

コメントを投稿