PandaBoard Android 4.04 adb connection in Windows


一般用Pandaboard的人多會使用 linux/Ubuntu來做 host, 在使用 miniUSB當 Android Debugging Bridge 應該都沒有 driver的問題....

但是當想在 windows下以 ADB來連線, 一般來說都會google到,
http://www.omappedia.org/wiki/Support_Tools#Android_Gadget_ADB:_Windows_PC_Host

裡面有一段怎樣裝 driver: Android Gadget ADB: Windows PC Host

基本上要裝 Android SDK....

他又說最紹最少要裝:
4. At a minimum install the following packages:
Tools -> Android SDK Platform-tools
Extras -> Google USB Driver

因為 adb 的執行檔就在 platform-tools裏...最好是把這個path加到系統的path裏....
另一個當然是driver囉....

接下來會說要增加這個file, 寫入0x0451, type出來確認有寫進去...

6. Create a file "%USERPROFILE%\.android\adb_usb.ini"
> echo 0x0451 > "%USERPROFILE%\.android\adb_usb.ini"
> type "%USERPROFILE%\.android\adb_usb.ini"
0x0451

下一步說, 把 pandaboard 的 PID/VID加進來driver裏...
7. Edit android_winusb.inf (found in C:\Program Files\Android\android-sdk\extras\google\usb_driver on a Windows XP installation) to match TI vendor ID and USB Gadgets product ID's:
Under [Google.NTx86] section if you are running 32bits Windows edition, or under [Google.NTamd64] section for 64bits Windows, add these lines and save the file:
; OMAP-3/4
%SingleAdbInterface% = USB_Install, USB\VID_0451&PID_D101
%CompositeAdbInterface% = USB_Install, USB\VID_0451&PID_D102&MI_01
%CompositeAdbInterface% = USB_Install, USB\VID_0451&PID_D106&MI_02
%CompositeAdbInterface% = USB_Install, USB\VID_0451&PID_D107&MI_03
%SingleAdbInterface% = USB_Install, USB\VID_0451&PID_FFFFE
%CompositeAdbInterface% = USB_Install, USB\VID_0451&PID_FFFE&MI_01
%SingleAdbInterface% = USB_Install, USB\VID_0451&PID_D022
%CompositeAdbInterface% = USB_Install, USB\VID_0451&PID_D022&MI_01
%CompositeAdbInterface% = USB_Install, USB\VID_0451&PID_D10A&MI_01

; OMAP-3 / 4 - ICS
%CompositeAdbInterface% = USB_Install, USB\VID_0451&PID_D109&MI_01

說這時再插上miniUSB到PC, 然後裝driver時指到\Program Files\Android\android-sdk\extras\google\usb_driver

不幸得很....沒成功....再做幾次也一樣....

這時, 如果再回去看原來的 link, 他在下面有一個Windows troubleshooting....早說嘛...

沒裝起來的原因是 PID/VID不對....

這時請到裝置管理員(pandaboard開機 android, USB接起來)...
那個有三角形的 pandaboard device, 右鍵, 詳細資料裏去找硬體識別碼....

我的ICS 4.0 看出來是:
VID_18D1&PID_D002&REV_0216

再回去改 android_winusb.inf

如下....

; OMAP-3 / 4 - ICS
%CompositeAdbInterface% = USB_Install, USB\VID_18D1&PID_D002&REV_0216

再裝一次 driver, 指過去, 將會裝起來了....

裝完後, 會重開機, 這時裝置管理員裏就是正常的 ADB Interface...
Pandaboard android 4.0也會 show出, debug port connected...

P.S.
windows 下可以用 cmd.exe去跑 adb shell,但是, adb這個 command 在 C:\Program Files\Android\android-sdk\platform-tools\

請到控制台>系統>進階>環境變數,在下面的系統變數裏找個 path, 把 ;C:\Program Files\Android\android-sdk\platform-tools\ 加進去....不能有空格...




之後就可以打開 cmd就執行 sdb shell




我的Pandaboard這裏買的....CLO Tech


留言

這個網誌中的熱門文章

Heltec ESP32+OLED+Lora, hardware testing

micro SD card for ESP32, on lolin32 with OLED and heltec 32 lora oled

Install Network Time Protocol(NTP) on BeagleBone with Angstrom linux and set local time zone