DART-SD410 Ubuntu Host Install: Difference between revisions

From Variscite Wiki
 
(6 intermediate revisions by the same user not shown)
Line 7: Line 7:
$ sudo apt-get update
$ sudo apt-get update
$ mkdir ~/bin
$ mkdir ~/bin
$ PATH=~/bin:$PATH
$ export PATH=~/bin:$PATH
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
$ chmod a+x ~/bin/repo
</pre>
</pre>


= Installing the OpenJDK =
= Installing the Device Tree Compiler =
Install Device tree compiler using:
<pre>
$ sudo apt-get install device-tree-compiler libfdt-dev
</pre>


The master branch of Android in the Android Open Source Project (AOSP) requires Java 7. On Ubuntu, use OpenJDK. Be aware that you must use OpenJDK opposed to previous versions that used SUN Java.
= Getting the skales tools =
Install Device tree compiler using:
<pre>
$ cd ~/bin
$ mkdir skales
$ git clone git://codeaurora.org/quic/kernel/skales skales
$ export PATH=~/bin/skales:$PATH
</pre>


Java 7: For the latest version of Android
<pre>$ sudo apt-get update
$ sudo apt-get install openjdk-7-jdk
</pre>
Optionally, update the default Java version by running:
<pre>$ sudo update-alternatives --config java
$ sudo update-alternatives --config javac
</pre>
= Install fastboot and ADB =
= Install fastboot and ADB =
<pre>
<pre>

Latest revision as of 19:11, 16 June 2016

Host requirements installation.

The host development environment for Linux is based on Ubuntu, please install Ubuntu version 14.04 64bit LTS http://www.ubuntu.com/download/desktop

Installing Repo

The following command installs repo:

$ sudo apt-get update
$ mkdir ~/bin
$ export PATH=~/bin:$PATH
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo

Installing the Device Tree Compiler

Install Device tree compiler using:

$ sudo apt-get install device-tree-compiler libfdt-dev

Getting the skales tools

Install Device tree compiler using:

$ cd ~/bin
$ mkdir skales
$ git clone git://codeaurora.org/quic/kernel/skales skales
$ export PATH=~/bin/skales:$PATH

Install fastboot and ADB

$ sudo add-apt-repository ppa:nilarimogard/webupd8
$ sudo apt-get update
$ sudo apt-get install android-tools-adb android-tools-fastboot

Install GIT

Please provide correct credentials during git initialization.

$ sudo apt-get install git
$ git config --global user.email "you@example.com"
$ git config --global user.name "Your Name"