Set Up Build Environment; Installing Jdk; Installing Oracle Jdk 6; Installing Required Packages - Advantech RSB-4221 User Manual

Risc 3.5inch sbc based on ti sitara am3358 cortex a8 1ghz high performance processor
Hide thumbs Also See for RSB-4221:
Table of Contents

Advertisement

Android tool chain, sdk and so on
android/scripts/
This folder contains scripts for building images easily.
android/tools/
This folder contains some software package for building android code
mksd-android.sh
To create a bootable SDcard.mkinand-android.sh
To burn android firmware to eMMC flash
4.3

Set up Build Environment

All instructions in this guide are based on Ubuntu 14.0464bit only. Please install
Ubuntu14.0464bit with minimum 2GB DRAM in advance, login to the installed sys-
tem and perform following sections:
4.3.1

Installing JDK

root@tylor-Zhaoyang-K29:~#sudoapt-getinstallpython-software-properties
root@tylor-Zhaoyang-K29:~# sudoapt-getupdate
root@tylor-Zhaoyang-K29:~#sudoapt-getinstallsun-java6-jdksun-java6-plugin
4.3.2

Installing Oracle JDK 6

1.
Get jdk-6u45-linux-x64.bin from android-source-code-directory/tools/
2.
Follow the following steps to install JDK 6
$ chmoda+x jdk-6uXX-linux-x64.bin
$ ./jdk-6uXX-linux-x64.bin
$ sudomkdir -p /usr/lib/jvm
$ sudo mv jdk1.6.0_XX /usr/lib/jvm/
$ sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.6.0_XX/
bin/java" 1
$
sudo
update-alternatives
jdk1.6.0_XX/bin/javac" 1
$ sudo update-alternatives --config java
$sudo update-alternatives --config javac
4.3.3

Installing Required Packages

The following command installs the required packages for setting up the android
build host:
$ sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
libgl1-mesa-dev g++-multilib mingw32 openjdk-6-jdk tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386 \
minicomtftpdu-boot-tools u-boot-tools:i386 expect libgl1-mesa-dri
$ sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1
/usr/lib/i386-linux-gnu/libGL.so
--install
"/usr/bin/javac"
39
"javac"
"/usr/lib/jvm/
RSB-4221 User Manual

Advertisement

Table of Contents
loading

Table of Contents