From Low cost, low power, android ARM system board by Mini-Box.com - pico WiKi
Jump to navigation Jump to search

Using Android ADB interface

on Windows PC host

1. Download latest Google Android SDK version from here: http://developer.android.com/sdk/index.html
- If you chose to download the zip archive, then you have to unzip the content in a folder on your PC (i.e. c:\android_sdk)
- If you chose to download the exe file, after download, double click it to launch the installation wizard and follow the installation steps.
In both situation you must have installed on your system the latest Java SE Development Kit available for download here
For detailed information about how to install the Google Android SDK on your PC, please read http://developer.android.com/sdk/installing.html

2. The picoSAM9G45 board needs a driver to be recognized by the Windows PC host as an android ADB peripheral.
This driver (the latest one) can be downloaded:
- with the SDK Manager selecting Google repositories and after successful download and install you can find the usb_driver folder in i.e. c:\android_sdk\extras\google
- or directly from https://dl-ssl.google.com/android/repository/usb_driver_r04-windows.zip Unzip the content in the extras\google folder from your Android SDK installation location (i.e. c:\android_sdk)

3. In the usb_driver folder you will find the android_winusb.inf file - open it in your favorite text editor (i.e. Notepad)

4. Under the section noted as: [Google.NTx86] (if you are on a x86 Windows version) or [Google.NTamd64] (if you are on a x64 Windows version)
copy & paste the following lines:

 ; picoSAM9G45 by Mini-Box.com for kernel version up to 2.6.32
 %SingleAdbInterface%        = USB_Install, USB\VID_18D1&PID_9018
 %CompositeAdbInterface%     = USB_Install, USB\VID_18D1&PID_9018&MI_01
 ; picoSAM9G45 by Mini-Box.com for kernel version 3.1
 %SingleAdbInterface%        = USB_Install, USB\VID_18D1&PID_0001
 %CompositeAdbInterface%     = USB_Install, USB\VID_18D1&PID_0001&MI_01

where 'USB\VID_18D1&PID_XXXX' it's the 'Hardware Ids' of picoSAM9G45 board that you can find it following:
Right click on 'My computer', select 'Properties' then 'Hardware', then select 'Device Manager' - here look on the list for picopc adb or Android right click on it and select 'Properties' and then go to 'Details' and then select from the list: 'Hardware Ids'

5. Save the android_winusb.inf file and close it.

6. Connect picoSAM9G45 board to your USB port using the microUSB cable. If it's not already opened it should start to boot up.
Go back to 'Device Manager' right click on picopc adb, chose 'Update Driver', do not use Windows Update solution to find the driver, then chose to install from a specific location on your hard drive and point the driver location to the usb_driver folder where the android_winusb.inf file is located and then click 'Next' - let the installation complete and after that you have to restart your Windows system.

7. After restart the Android Debug Bridge should be enabled. Look in 'Device Manager'. You should have 'Android Phone' - 'Android ADB Interface'

8. Using adb: follow information provided by Google, here: http://developer.android.com/guide/developing/tools/adb.html

on Linux PC host

1. Download latest Google Android SDK version from here: http://developer.android.com/sdk/index.html
2. Follow the instruction on how to install the SDK from this page and also read the troubleshooting paragraphs regarding Linux OS
3. Use this udev rule (thanks to Steffen Elste contribution)

# pico-SAM9G45 Programmer rules
SUBSYSTEMS=="usb", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="9018", MODE="0666"

4. Power up the pico-SAM9G45 board using micro-USB cable