Requirements on Android Development Environment
OS : Ubuntu 10.04 64 bits
JDK version: 1.6
Cross compilation tool chain: arm-hisiv200-linux-
Installing the JDK
To install the JDK, perform the following steps:
Step 1. Download the JAVA SE Development kit
http://www.oracle.com에 접속
JAVA SE Development Kit 6u26을 다운로드한다.
# wget http://download.oracle.com/otn/java/jdk/6u26-b03/jdk-6u26-linux-x64.bin
Step 2. Extarct the JDK archive
# sudo ./jdk-6u26-linux-x64.bin
Step 3. Install the JDK 1.6
# sudo mv jdk1.6.0_26 /usr/lib/jvm/
# sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6.0_26/bin/java 1
# sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.0_26/bin/javac 1
# sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.6.0_26/bin/javaws 1
If there are several JDK versions, switch to the specified version by running the following command :
# sudo update-alternatives --config java ====> select jdk1.6.0_26
# sudo update-alternatives --config javac ====> select jdk1.6.0_26
# sudo update-alternatives --config javaws ====> select jdk1.6.0_26
Step 4. Verify the JDK versioin
# java -version
Installing Required Packages
on 64-bits server
# sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev libgl1-mesa-dev g++-multilib mingw32 tofrodos
Installing Python
Run the following command to install the python tool:
# sudo apt-get install python
Installing mkimage
The mkimage command is required to compile the kernel.
# sudo apt-get install uboot-mkimage
Installing the Cross Compilation Tool Chain
Step 1 Install the cross compilation tool chain again.
The following is the directory of the cross compilation tool:
# cd ./HiSTBAndroidV400R001C00SPC050/software/share2/mirror_fileserver/Hi3716CV100R002/toolchains/arm-hisiv200-linux
Step 2 After switching to the root user, run the following command in the installation package of the cross compilation tool:
# ./cross.install
Set-up the environment variables
# vi setup.sh
#!/bin/sh
echo "HiSTB configuration ..."
export JAVA_HOME=/usr/lib/jvm/jdk1.6.0_26
export PATH=/usr/lib/jvm/jdk1.6.0_26/bin:$PATH
export PATH=/home/root/bin/x86-arm/arm-hisiv200-linux/target/bin:$PATH
[Hi3716C] Kernel module build (0) | 2013.12.16 |
---|---|
[Hi3716C] sample_e2prom (0) | 2013.12.06 |
[Hi3716C-Kernel] tags, cscope (0) | 2013.11.28 |
[Hi3716C-Kernel] Kernel Build command (0) | 2013.11.26 |
[Hi3716C-fastboot] Build commands for fastboot (0) | 2013.11.26 |