DART-SD410 Android Host Install: Difference between revisions

From Variscite Wiki
 
(9 intermediate revisions by the same user not shown)
Line 15: Line 15:
$ 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
Line 21: Line 21:
In addition to the packages requested on the Android website, the following packages are also needed:
In addition to the packages requested on the Android website, the following packages are also needed:


= Installing the OpenJDK =
= Installing OpenJDK =


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.
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.


Java 7: For the latest version of Android
Java 7: For the latest version of Android
<pre>$ sudo apt-get update
<pre>
$ sudo add-apt-repository ppa:openjdk-r/ppa
$ sudo apt-get update
$ sudo apt-get install openjdk-7-jdk
$ sudo apt-get install openjdk-7-jdk
</pre>
</pre>
Line 33: Line 35:
$ sudo update-alternatives --config javac
$ sudo update-alternatives --config javac
</pre>
</pre>
= Installing gperf and bison =
<pre>$ sudo apt-get update
$ sudo apt-get install gperf bison
</pre>
= Install fastboot and ADB =
= Install fastboot and ADB =
<pre>
<pre>
Line 38: Line 47:
$ sudo apt-get update
$ sudo apt-get update
$ sudo apt-get install android-tools-adb android-tools-fastboot
$ sudo apt-get install android-tools-adb android-tools-fastboot
</pre>
= Install Android ext4 utilities with sparse support =
<pre>
$ sudo apt-get install android-tools-fsutils
</pre>
</pre>
= Install GIT =
= Install GIT =
Line 45: Line 58:
$ git config --global user.email "you@example.com"
$ git config --global user.email "you@example.com"
$ git config --global user.name "Your Name"
$ git config --global user.name "Your Name"
</pre>
= Install Fastboot and ADB =
==Windows Host==
The Windows USB driver can be downloaded from the FTP site or edited manually using the following procedure:<br>
DART-SD410 requires the following USB device support:
* Android USB Driver (android_winusb.inf)
* Android adb Interface
* Android Boot Loader Interface (fastboot)
#Before installing the drivers, edit the qcmdm.inf and qcser.inf files to make sure that they contain support for the DART-SD410 VID/PID (Qualcomm SURF/FFA) with appropriate entries in each section,as indicated in Step 4.
#Go to http://developer.android.com/sdk/win-usb.html, and follow the instructions to install the SDK and USB driver.
#Right-click My Computer, and select Properties > Advanced > Environment Variables, and set the path to include the directory c:\android-sdk-windows\tools.
#The Android USB driver for adb and fastboot needs to add the DragonBoard 410c VID/PID, which supports the connection to the DART-SD410. Edit this file to add the VID/PID lines to sections of: '''android-sdk-windows\usb_driver\android_winusb.inf''' file. Install the driver after editing it.<br>
<pre>[Google.NTx86]
;Qualcomm SURF/FFA
%SingleAdbInterface% = USB_Install, USB\VID_05C6&PID_9025
%CompositeAdbInterface% = USB_Install, USB\VID_05C6&PID_9025&MI_01
%SingleBootLoaderInterface% = USB_Install, USB\VID_18D1&PID_D00D
[Google.NTamd64]
;Qualcomm SURF/FFA
%SingleAdbInterface% = USB_Install, USB\VID_05C6&PID_9025
%CompositeAdbInterface% = USB_Install, USB\VID_05C6&PID_9025&MI_01
%SingleBootLoaderInterface% = USB_Install, USB\VID_18D1&PID_D00D
[Strings]
SingleAdbInterface = “Android ADB Interface”
CompositeAdbInterface = “Android Composite ADB Interface”
SingleBootLoaderInterface = “Android Bootloader Interface”
</pre>
==Linux Host==
#To configure adb, modify the USB driver by navigating to the following directory: '''cd /etc/udev/rules.d/'''
#Enter the command:'''sudo vi 50-android.rules'''
#Add the following lines to the file, save and reconnect the DART-SD410 USB connection.
<pre>
#Sooner low-level bootloader
SUBSYSTEM==”usb”, SYSFS{idVendor}==”18d1”, SYSFS{idProduct}==”d00d”, MODE=”0664”, GROUP=”plugdev”
# adb composite interface device 9025
SUBSYSTEM==”usb”, SYSFS{idVendor}==”05C6”, SYSFS{idProduct}==”9025”, MODE=”0664”, GROUP=”plugdev”
</pre>
</pre>

Latest revision as of 12:29, 15 August 2017

Host requirements installation.

The host development environment for Android is based on Ubuntu, please install Ubuntu version 14.04 64bit LTS http://www.ubuntu.com/download/desktop At least 60GByte free space.

IMPORTANT

Do not use other Ubuntu releases, other than recommended above.

For 64-bit Ubuntu 14.04

The complete Android host requirments:  source.android.com/source/initializing.html Also you can refer to Software Build and Installation Guide, Linux Android.

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

In addition to the packages requested on the Android website, the following packages are also needed:

Installing OpenJDK

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.

Java 7: For the latest version of Android

$ sudo add-apt-repository ppa:openjdk-r/ppa
$ sudo apt-get update
$ sudo apt-get install openjdk-7-jdk

Optionally, update the default Java version by running:

$ sudo update-alternatives --config java
$ sudo update-alternatives --config javac

Installing gperf and bison

$ sudo apt-get update
$ sudo apt-get install gperf bison

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 Android ext4 utilities with sparse support

$ sudo apt-get install android-tools-fsutils

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"

Install Fastboot and ADB

Windows Host

The Windows USB driver can be downloaded from the FTP site or edited manually using the following procedure:
DART-SD410 requires the following USB device support:

  • Android USB Driver (android_winusb.inf)
  • Android adb Interface
  • Android Boot Loader Interface (fastboot)
  1. Before installing the drivers, edit the qcmdm.inf and qcser.inf files to make sure that they contain support for the DART-SD410 VID/PID (Qualcomm SURF/FFA) with appropriate entries in each section,as indicated in Step 4.
  2. Go to http://developer.android.com/sdk/win-usb.html, and follow the instructions to install the SDK and USB driver.
  3. Right-click My Computer, and select Properties > Advanced > Environment Variables, and set the path to include the directory c:\android-sdk-windows\tools.
  4. The Android USB driver for adb and fastboot needs to add the DragonBoard 410c VID/PID, which supports the connection to the DART-SD410. Edit this file to add the VID/PID lines to sections of: android-sdk-windows\usb_driver\android_winusb.inf file. Install the driver after editing it.
[Google.NTx86]
;Qualcomm SURF/FFA
%SingleAdbInterface% = USB_Install, USB\VID_05C6&PID_9025
%CompositeAdbInterface% = USB_Install, USB\VID_05C6&PID_9025&MI_01
%SingleBootLoaderInterface% = USB_Install, USB\VID_18D1&PID_D00D

[Google.NTamd64]
;Qualcomm SURF/FFA
%SingleAdbInterface% = USB_Install, USB\VID_05C6&PID_9025
%CompositeAdbInterface% = USB_Install, USB\VID_05C6&PID_9025&MI_01
%SingleBootLoaderInterface% = USB_Install, USB\VID_18D1&PID_D00D
 
[Strings]
SingleAdbInterface = “Android ADB Interface”
CompositeAdbInterface = “Android Composite ADB Interface”
SingleBootLoaderInterface = “Android Bootloader Interface”

Linux Host

  1. To configure adb, modify the USB driver by navigating to the following directory: cd /etc/udev/rules.d/
  2. Enter the command:sudo vi 50-android.rules
  3. Add the following lines to the file, save and reconnect the DART-SD410 USB connection.
#Sooner low-level bootloader
SUBSYSTEM==”usb”, SYSFS{idVendor}==”18d1”, SYSFS{idProduct}==”d00d”, MODE=”0664”, GROUP=”plugdev”
# adb composite interface device 9025
SUBSYSTEM==”usb”, SYSFS{idVendor}==”05C6”, SYSFS{idProduct}==”9025”, MODE=”0664”, GROUP=”plugdev”