Install the adb tool in linux
Step 1: Start the Development Board and enter the android system. On the linux terminal, enter the lsusb command to query the devices on the USB Bus. For example, the query result is as follows: Bus 005 Device 001: ID 1d6b: 0001 Linux Foundation 1.1 root hub Bus 004 Device 001: ID 1d6b: 0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b: 0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b: 0001 Linux Foundation 1.1 root hub Bus 001 Device 002: ID 15a2: 0c02 Freescale semicondu, Inc. bus 001 Device 001: I D 1d6b: 0002 Linux Foundation 2.0 root hub: 15a2 is the device ID of the Development Board.
Step 2: download the latest android SDK and unzip to a directory: http://developer.android.com/sdk/index.html as of now the latest sdk for the android-sdk_r12-linux_x86.tgz extracted name for the android-sdk-linux_x86 to enter the following directory: cd android-sdk-linux_x86/tools /. /android update adb
Step 3: Modify ~ The/. android/adb_usb.ini file. Note that the path in root mode does not exist under normal permissions. # ANDROID 3RD party usb vendor id list -- do not edit. # USE 'android update adb' to generate. #1 usb vendor id per line. 0x15a2
Step 4: Create a New udev rule file in/etc/udev/rules. d path, create a file named imx-android.rules, edit the content as follows: SUBSYSTEM = "usb", SYSFS {idVendor} = "15a2", MODE = "0666"
Step 5: Go to/etc/bash. the adb PATH declared in bashrc: export PATH =/opt/program/mx53_smd/out/host/linux-x86/binPATH and then source/etc/bash. bashrc Step 6: restart ADB adb kill-server adb start-server Step 7: Use the adb devices command to find the device: root @ lqm: /opt/program/mx53_smd/out/host/linux-x86/bin # adb devices List of devices attached 0123456789 ABCDEF device
Root @ lqm:/opt/program/mx53_smd/out/host/linux-x86/bin # so far, adb is successfully installed.