在Pandaboard開發Android時,理想是透過Eclipse直接將apk放在Pandaboard上執行。由於在初始時是無法透過USB判定到Pandaboard,需先從SDK Manager中下載Google USB Driver,再將驅動裝上才能抓到Pandaboard。
方法
- On Ubuntu (12.04):
- Change the mode to debug in our Android
- Open the terminal
- Enter the vendor ID to adb_usb.ini (一定要進入super user模式)
$ sudo su <psswd> $ mkdir ~/.android $ vi ~/.android/adb_usb.ini $ echo "0x0451" > ~/.android/adb_usb.ini $ cat /root/.android/adb_usb.ini 0x0451
- Restart the adb
$ cd <path>/android-sdks/platform-tooles $ ./adb kill-server $ ./adb start-server
- Check the devices
$ ./adb devices
- We can get the Pandaboard platform successfully.
- On Windows:
- 開啟cmd介面
- 鍵入以下指令
> echo 0x0451 > "%USERPROFILE%\.android\adb_usb.ini" > type "%USERPROFILE%\.android\adb_usb.ini" 0x0451
- 開啟".\Android\android-sdk\extras\google\usb_driver\android_winusb.inf"
- 找尋[Google.NTx86] (若為64bit的,找尋[Google.NTamd64]),鍵入以下指令
; 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
- 將Pandaboard的USB與PC接上
- 開啟控制台的裝置管理員,會看到一個打問號的device(OMAP或Panda之類的)
Reference: OMAPPedia
沒有留言:
張貼留言