ADB over Ethernet in BeagleBoard

Setting up device

First of all we need to ensure that we have an Ethernet connection up and running. Connect your PC to the Beagleboard using a USB to Serial converter. USB side on your host and Serial on the RS232 debug port of the Beagleboard.
Then connect using minicom (or any other term program) at 115200bps 8N1. This will let you access a simple linux shell. At the prompt type:
root@android:/ # netcfg
You should see something like

lo   UP
sit0 DOWN
usb0 UP

if not, try running netcfg eth0 dhcp or netcfg usb0 dhcp in order to obtain a connection.
Once the connection is established, we will change the ADB TCPIP port and then restart ADB Daemon (adbd)

root@android:/ # setprop service.adb.tcp.port 5555
root@android:/ # stop adbd
root@android:/ # start adbd

Setting up host

Back on your host machine, start ADB in TCPIP mode and then connect to your device like this

$ sudo ./adb tcpio 5555
$ sudo ./adb connect

Once you are connected you can check that everything is working running an adb command like:

$ sudo ./adb devices
List of devices attached device


$ sudo ./adb logcat

Setting up ADB on Beagleboard

On your Beagleboard

Enable USB Debugging on The Beagleboard

  1. Go to Settings’ app
  2. Developers Options
  3. Check “USB Debugging”
  4. Restart your Beagleboard


On your Host Machine (Ubuntu)

Allow device in udev

vim /etc/udev/rules.d/51-android.rules

SUBSYSTEM=="usb", SYSFS{idVendor}=="18d1", MODE="0666"
SUBSYSTEM=="usb", SYSFS{idVendor}=="0451", MODE="0666"

Save and change permissions

chmod a+r /etc/udev/rules.d/51-android.rules

Turn off any existent ADB

sudo killall adb

Restart udev

sudo service udev restart

Start ADB and look for devices

cd ~/adt-bundle-linux-x86_64/sdk/platform-tools
sudo ./adb/ start-server
sudo ./adb/ devices
You should see something like:

kimi@kimi-VAIO:~/adt-bundle-linux-x86_64/sdk/platform-tools$ ./adb devices
List of devices attached
20100720 device

Debugging Android wirelessly

Recently I flashed my Motorola Xoom with Android 3.2 in order to start playing with USB Host API and Open Accessory API, but both functionalities are implemented on the unique USB port that the Xoom has. This is not a problem when you own a Dock, or you own a Acer A500 which has one USB host and one USB device. Debugging an Android application using abd can be done wirelessly over WiFi using the followings instructions.

When debugging applications that use USB accessory or host features, you most likely will have USB hardware connected to your Android-powered device. This will prevent you from having an adb connection to the Android-powered device via USB. You can still access adb over a network connection. To enable adb over a network connection:

  1. Connect the Android-powered device via USB to your computer.
  2. From your SDK platform-tools/ directory, enter adb tcpip 5555 at the command prompt.
  3. Enter adb connect <device-ip-address>:5555 You should now be connected to the Android-powered device and can issue the usual adb commands like adb logcat.
  4. To set your device to listen on USB, enter adb usb.