How to connect i.MX51 and Ubuntu using USB cable:
Plug in USB cable.
Example:
# getprop debug.adb.usb # # # setprop persist.service.adb.enable 0 disabling adb # adb_release android_usb gadget: high speed config #1: android setprop debug.adb.usb 1 # # setprop persist.service.adb.enable 1 enabling adb # adb_open adb_release adb_open android_usb gadget: high speed config #1: android #
On Ubuntu side, the most important tip is regarding permission. ADB server MUST be started with root right.
Example of right mistake:
$ sudo <AND_SDK_DIR>/android-sdk-linux_86/tools/adb devices List of devices attached ???????????? no permissions $ sudo <AND_SDK_DIR>/android-sdk-linux_86/tools/adb shell error: insufficient permissions for device
How to proceed to get permission:
$ sudo <AND_SDK_DIR>/android-sdk-linux_86/tools/adb kill-server $ sudo <AND_SDK_DIR>/android-sdk-linux_86/tools/adb start-server * daemon not running. starting it now * * daemon started successfully * $ sudo <AND_SDK_DIR>/android-sdk-linux_86/tools/adb devices List of devices attached 0123456789ABCDEF device $ sudo <AND_SDK_DIR>/android-sdk-linux_86/tools/adb shell
To make ADB work in i.MX51 using TCP:
- Install Android SDK
- export ADBHOST=BOARD_IP (setenv ADBHOST=xxx.xxx.xxx.xxx)
- adb kill-server
- make sure that ro.secure property is *not* set when the adbd daemon is launched, so edit the file default.prop
- make sure that /dev/android_adb or /dev/android do *not* exist
- stop adbd
- start adbd
Now you will be able to list the device:
hamilton@saygon:/opt/work/androidsdk/android-sdk-linux_86/tools$ ./adb kill-server hamilton@saygon:/opt/work/androidsdk/android-sdk-linux_86/tools$ ./adb devices * daemon not running. starting it now * * daemon started successfully * List of devices attached emulator-5554 device
Nice.
Now could someone PLEASE add the steps necessary for iMx51 Android adb over USB (for R10.4) with 32-bit Windows-XP system?
...had it working for years on R9.2, R9.3. NO-GO (even after all User-Guide mods and following a million forum suggestions/issues).
thanks,
mike