//For android and linux driver//
1,install ubuntu14.04
usb boot, CD boot, vmware workstation install, etc
take usb boot for an example, download Universal-USB-Installer-1.9.5.6.exe and ubuntu-14.04.2-desktop-amd64.iso at windows xp platform.
i take my disk for 4 partition to install ubuntu:
/boot 500M ubuntu startup program
swap 8G like pagefile at windows
/home 500G my work space, it will not be broken even though the ubuntu system was broken
/ 100G system
2,remove openjdk
sudo apt-get purge openjdk*
the different betwent openjdk and sunjdk:
著作权归作者所有。 商业转载请联系作者获得授权,非商业转载请注明出处。 作者:Aloys寒风 链接:http://www.zhihu.com/question/19646618/answer/40621705 来源:知乎 历史上的原因是,OpenJDK是JDK的开放原始码版本,以GPL(General Public License)协议的形式放出(题主提到的open就是指的开源)。在JDK7的时候,OpenJDK已经作为JDK7的主干开发,SUN JDK7是在OpenJDK7的基础上发布的,其大部分原始码都相同,只有少部分原始码被替换掉。使用JRL(JavaResearch License,Java研究授权协议)发布。至于OpenJDK6则更是有其复杂的一面,首先是OpenJDK6是JDK7的一个分支,并且尽量去除Java SE7的新特性,使其尽量的符合Java6的标准。关于JDK和OpenJDK的区别,可以归纳为以下几点: 授权协议的不同: OpenJDK采用GPL V2协议放出,而SUN JDK则采用JRL放出。两者协议虽然都是开放源代码的,但是在使用上的不同在于GPL V2允许在商业上使用,而JRL只允许个人研究使用。OpenJDK不包含Deployment(部署)功能:部署的功能包括:Browser Plugin、Java Web Start、以及Java控制面板,这些功能在OpenJDK中是找不到的。 OpenJDK源代码不完整: 这个很容易想到,在采用GPL协议的OpenJDK中,SUN JDK的一部分源代码因为产权的问题无法开放给OpenJDK使用,其中最主要的部份就是JMX中的可选元件SNMP部份的代码。因此这些不能开放的源代码 将它作成plug,以供OpenJDK编译时使用,你也可以选择不要使用plug。而Icedtea则为这些不完整的部分开发了相同功能的源代码 (OpenJDK6),促使OpenJDK更加完整。 部分源代码用开源代码替换: 由于产权的问题,很多产权不是SUN的源代码被替换成一些功能相同的开源代码,比如说字体栅格化引擎,使用Free Type代替。 OpenIDK只包含最精简的JDK: OpenJDK不包含其他的软件包,比如Rhino Java DB JAXP……,并且可以分离的软件包也都是尽量的分离,但是这大多数都是自由软件,你可以自己下载加入。不能使用Java商标:这个很容易理解,在安装OpenJDK的机器上,输入“java-version”显示的是OpenJDK,但是如果是使用Icedtea补丁的OpenJDK,显示的是java。
3,install Oracle Java JDK
download address: http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html
choose:jdk-6u38-linux-x64.bin
$ sudo mkdir /usr/local/java
$ sudo cp $HOME/Download/jdk-6u38-linux-x64.bin /usr/local/java
$ cd /usr/local/java
$ chmod +x jdk-6u38-linux-x64.bin
$ ./jdk-6u38-linux-x64.bin
configure JAVA_HOME and PATH in system environment:
$ sudo vi /etc/profile add below code in /etc/profile : JAVA_HOME=/usr/local/java/jdk1.6.0_45 PATH=$PATH:$HOME/bin:$JAVA_HOME/bin export JAVA_HOME export PATH
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jdk1.6.0_38/bin/java" 1sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/local/java/jdk1.6.0_38/bin/javac" 1sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/local/java/jdk1.6.0_38/bin/javaws" 1sudo update-alternatives --set java /usr/local/java/jdk1.6.0_38/bin/java sudo update-alternatives --set javac /usr/local/java/jdk1.6.0_38/bin/javac sudo update-alternatives --set javaws /usr/local/java/jdk1.6.0_38/bin/javaws
$ . /etc/profile $ java -version java version "1.6.0_38" Java(TM) SE Runtime Environment (build 1.6.0_38-b05) Java HotSpot(TM) 64-Bit Server VM (build 20.13-b02, mixed mode)
4,install some to support 32bit lib and software
sudo apt-get install ia32-libs
as no source for ia32-libs installtion,it can be replaced for 3 package:
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0
5,install development tool, lib, and etc for ubuntu14.04
sudo apt-get install build-essential sudo apt-get install make sudo apt-get install gcc sudo apt-get install g++ sudo apt-get install libc6-dev sudo apt-get install patch sudo apt-get install texinfo sudo apt-get install libncurses-dev sudo apt-get install git-core gnupg sudo apt-get install flex sudo apt-get install bison sudo apt-get install gperf sudo apt-get install libsdl-dev sudo apt-get install libesd0-dev sudo apt-get install libwxgtk2.6-dev (failed)(install 2.8) sudo apt-get install build-essential sudo apt-get install zip sudo apt-get install curl sudo apt-get install ncurses-dev sudo apt-get install zlib1g-dev sudo apt-get install valgrind sudo apt-get install python2.5(failed to install, can ignore) sudo apt-get install libgtk2.0-0:i386 sudo apt-get install libpangox-1.0-0:i386 sudo apt-get install libpangoxft-1.0-0:i386 sudo apt-get install libidn11:i386 sudo apt-get install gstreamer0.10-pulseaudio:i386 sudo apt-get install gstreamer0.10-plugins-base:i386 sudo apt-get install gstreamer0.10-plugins-good:i386 sudo apt-get install gstreamer0.10-ffmpeg:i386(failed to install can ignore)
6. down A20 source code to build in ubuntu14.04
this source code is contain cross-tool, it can save my time to build an another cross-tool.
7. "mkimage" command not found - U-Boot images will not be built
sudo apt-get install u-boot-tools
8./bin/bash: jar: command not found
$ cd /usr/bin
$ sudo ln -s -f /usr/local/java/jdk1.6.0_38/bin/jar
9. /usr/include/stdlib.h:760:34: fatal error: bits/stdlib-bsearch.h: No such file or directory
sudo apt-get install libc6-dev:i386 [it will remove install for os 64 bit and reinstall for i386]
sudo apt-get install build-essential
sudo apt-get install gcc-multilib
sudo apt-get install ubuntu-desktop [because uninstall ibus, make ubuntu14.04 lose systemsetting item, reinstall ubuntu-desktop could solve this problem]
10. BEGIN failed--compilation aborted at external/webkit/Source/WebCore/make-hash-tools.pl line 23.
sudo apt-get install libswitch-perl
sudo apt-get install libxml2-utils
11./bin/bash: line 2: javadoc: command not found
$ cd /usr/bin
$ sudo ln -s -f /usr/local/java/jdk1.6.0_38/bin/jar
12.finally, A20‘s develop environment was setup successfully