硬件平台:AM335X Starter Kit
Android 开发源码包下载地址:TI-Android-ICS-4.0.3-DevKit-EVM-SK-3.0.1.bin 安装空间大概需要10G
创建文件夹:mkdir /home/Android
拷贝bin文件到/home/Android文件夹中
改变属性:chmod a+x TI-Android-ICS-4.0.3-DevKit-EVM-SK-3.0.1.bin
开始安装:./TI-Android-ICS-4.0.3-DevKit-EVM-SK-3.0.1.bin
安装完全结束后会产生以下源码树:
Android File System:***/TI-Android-ICS-4.0.3-DevKit-EVM-SK-3.0.1/
Android Linux Kernel:***/TI-Android-ICS-4.0.3-DevKit-EVM-SK-3.0.1/kernel
Bootloader:***/TI-Android-ICS-4.0.3-DevKit-EVM-SK-3.0.1/u-boot
Toolchain :***/TI-Android-ICS-4.0.3-DevKit-EVM-SK-3.0.1/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin
接着安装JDK,下载 jdk-6u20-linux-i586.bin
安装:sudo -s ./jdk-6u20-linux-i586.bin
配置环境变量:打开/etc/profile,结尾处添加:
export JAVA_HOME=/JDK_PATH/jdk1.6.0_20
export JRE_HOME=/JDK_PATH/jdk1.6.0_20/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
export PATH=/***/TI-Android-ICS-4.0.3-DevKit-EVM-SK-3.0.1/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin:$PATH
保存退出
source /etc/profile
检验是否安装
java -version
正常会出现提示:
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Server VM (build 16.3-b01, mixed mode)
编译bootloader:
$ cd u-boot
$ make CROSS_COMPILE=arm-eabi- distclean
$ make CROSS_COMPILE=arm-eabi- am335x_evm_config
$ make CROSS_COMPILE=arm-eabi-
编译kernel:
$ cd kernel
$ make ARCH=arm CROSS_COMPILE=arm-eabi- distclean
$ make ARCH=arm CROSS_COMPILE=arm-eabi- am335x_evm_android_defconfig
$ make ARCH=arm CROSS_COMPILE=arm-eabi- uImage
本EVM板还包括WIFI/Bluetooth无线模块,图为搜索蓝牙设备。