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




# source setup.sh











'[C-11] Hi3716C' 카테고리의 다른 글

[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
Posted by eoseontaek

Error : 

[root@steo lib]# yum makecache

Repository updates is listed more than once in the configuration

http://mirror.dulug.duke.edu/pub/yum-repository/redhat/17/i386/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirror.dulug.duke.edu; 이름 혹은 서비스를 알 수 없습니다"

Trying other mirror.



Solved :

# vi /etc/yum.conf

[main]

cachedir=/var/cache/yum

debuglevel=2

logfile=/var/log/yum.log

pkgpolicy=newest

distroverpkg=redhat-release

tolerant=1

exactarch=1


[fedora]

name=Fedora Core $releasever base

failovermethod=priority

#baseurl=http://dl.google.com/linux/chrome/rpm/stable/i386/

mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch

enabled=1

metadata_expire=7d

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch


[fedora-debuginfo]

[fedora-debuginfo]

name=Fedora $releasever - $basearch - Debug

failovermethod=priority

#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/debug/

mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-debug-$releasever&arch=$basearch

enabled=0

metadata_expire=7d

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch


[fedora-source]

name=Fedora $releasever - Source

failovermethod=priority

#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/source/SRPMS/

mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-source-$releasever&arch=$basearch

enabled=0

metadata_expire=7d

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch


Link : 


'[D-01] Linux' 카테고리의 다른 글

[Linux] Diff two directory on vi  (0) 2014.01.24
[Fedora17] When yum, segmentation fault  (0) 2013.10.21
[Linux] Fedora 8 Newtork 설치  (0) 2013.09.30
[Linux] hotplug & firmware loading  (0) 2013.09.13
Fedora 17 NFS 설정  (0) 2012.12.10
Posted by eoseontaek

Error : 


[root@steo steo]# yum clean all
세그멘테이션 오류 (core dumped)


Fixed : 

[root@steo lib]# ls -l libz*

lrwxrwxrwx. 1 root root     23 12월  6  2012 libz.so -> ../../lib/libz.so.1.2.5

lrwxrwxrwx. 1 root root     13 12월  6  2012 libz.so.1 -> libz.so.1.2.5

-rwxr-xr-x  1 root root  87332  8월  2  2012 libz.so.1.2.5


zlib-1.2.5를 zlib-1.2.8 로 변경함

# wget http://zlib.net/zlib-1.2.8.tar.gz
# tar -xvzf zlib-1.2.8.tar.gz
# cd ./zlib-1.2.8
# ./configure
# make
# make install

Link :

http://www.zlib.net/

http://serverfault.com/questions/256385/yum-segmentation-fault-in-centos

Posted by eoseontaek

Build Error : 

target Java: core (out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes)

host Java: dx (out/host/common/obj/JAVA_LIBRARIES/dx_intermediates/classes)

/bin/bash: jar: command not found

make: *** [out/host/common/obj/JAVA_LIBRARIES/jsr305lib_intermediates/javalib.jar] Error 127

make: *** Waiting for unfinished jobs....

Note: Some input files use unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

/bin/bash: jar: command not found

make: *** [out/host/common/obj/JAVA_LIBRARIES/antlr-runtime_intermediates/javalib.jar] Error 127

Note: Some input files use unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

/bin/bash: jar: command not found

make: *** [out/host/common/obj/JAVA_LIBRARIES/dx_intermediates/javalib.jar] Error 127

Note: Some input files use or override a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

Note: Some input files use unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

/bin/bash: jar: command not found

make: *** [out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes-full-debug.jar] Error 127


Fixed : 
build system에서 "jar" command를 찾을 수 없어서 발생 
# which jar

# sudo update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk1.6.0_34/bin/jar 1
# which jar
/usr/bin/jar





Posted by eoseontaek

Build Error : 

/bin/bash: mkimage: command not found


Fixed : 

# sudo apt-get install uboot-mkimage



Posted by eoseontaek
이전버튼 1 이전버튼