https://arm.mini-box.com/index.php?title=Template:ADB-over-usb&feed=atom&action=historyTemplate:ADB-over-usb - Revision history2024-03-29T14:22:47ZRevision history for this page on the wikiMediaWiki 1.35.9https://arm.mini-box.com/index.php?title=Template:ADB-over-usb&diff=114&oldid=prevAdmin: Created page with "=Using Android ADB interface= ==on Windows PC host== 1. Download latest Google Android SDK version from here: http://developer.android.com/sdk/index.html<br> - If you chose to..."2020-10-20T07:05:20Z<p>Created page with "=Using Android ADB interface= ==on Windows PC host== 1. Download latest Google Android SDK version from here: http://developer.android.com/sdk/index.html<br> - If you chose to..."</p>
<p><b>New page</b></p><div>=Using Android ADB interface=<br />
==on Windows PC host==<br />
1. Download latest Google Android SDK version from here: http://developer.android.com/sdk/index.html<br><br />
- 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)<br><br />
- If you chose to download the exe file, after download, double click it to launch the installation wizard and follow the installation steps.<br><br />
In both situation you must have installed on your system the latest Java SE Development Kit available for download [http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u26-download-400750.html here]<br><br />
For detailed information about how to install the Google Android SDK on your PC, please read http://developer.android.com/sdk/installing.html<br />
<br><br><br />
2. The '''picoSAM9G45 board''' needs a driver to be recognized by the Windows PC host as an '''android ADB peripheral'''.<br><br />
This driver (the latest one) can be downloaded:<br><br />
- 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''<br><br />
- 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)<br />
<br><br><br />
3. In the ''usb_driver'' folder you will find the '''android_winusb.inf''' file - open it in your favorite text editor (i.e. Notepad)<br />
<br><br><br />
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)<br><br />
'''copy & paste''' the following lines:<br />
; picoSAM9G45 by Mini-Box.com for kernel version up to 2.6.32<br />
%SingleAdbInterface% = USB_Install, USB\VID_18D1&PID_9018<br />
%CompositeAdbInterface% = USB_Install, USB\VID_18D1&PID_9018&MI_01<br />
; picoSAM9G45 by Mini-Box.com for kernel version 3.1<br />
%SingleAdbInterface% = USB_Install, USB\VID_18D1&PID_0001<br />
%CompositeAdbInterface% = USB_Install, USB\VID_18D1&PID_0001&MI_01<br />
<br />
where 'USB\VID_18D1&PID_XXXX' it's the 'Hardware Ids' of picoSAM9G45 board that you can find it following:<br><br />
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'<br />
<br><br><br />
5. Save the '''android_winusb.inf''' file and close it.<br />
<br><br><br />
6. Connect picoSAM9G45 board to your USB port using the microUSB cable. If it's not already opened it should start to boot up.<br><br />
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.<br />
<br><br><br />
7. After restart the '''Android Debug Bridge''' should be enabled. Look in 'Device Manager'. You should have 'Android Phone' - 'Android ADB Interface'<br />
<br><br><br />
8. Using '''adb''': follow information provided by Google, here: http://developer.android.com/guide/developing/tools/adb.html<br />
<br><br />
==on Linux PC host==<br />
1. Download latest Google Android SDK version from here: http://developer.android.com/sdk/index.html<br><br />
2. Follow the instruction on how to install the SDK from [http://developer.android.com/sdk/installing.html this page] and also read the [http://developer.android.com/sdk/installing.html#troubleshooting troubleshooting] paragraphs regarding Linux OS<br><br />
3. Use this [http://en.wikipedia.org/wiki/Udev udev] rule (thanks to [http://arm.mini-box.com/index.php?title=Talk:Main_Page#Re:_Using_ADB_USB_on_Linux_--_95.115.230.174_06:02.2C_23_October_2011_.28MDT.29 Steffen Elste] contribution)<br />
# pico-SAM9G45 Programmer rules<br />
SUBSYSTEMS=="usb", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="9018", MODE="0666"<br />
4. Power up the pico-SAM9G45 board using micro-USB cable</div>Admin