Personal tools

DART-SD410 Android Host Install

From Variscite Wiki

Jump to: navigation, search

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.

1 IMPORTANT

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

2 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:

3 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

4 Installing gperf and bison

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

5 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

6 Install Android ext4 utilities with sparse support

$ sudo apt-get install android-tools-fsutils

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

8 Install Fastboot and ADB

8.1 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”

8.2 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”