Montag, 15. Juli 2013

Enable usbnet on ADS_Magpie / ezGingerbread

Currently I am playing around with my old G1 to set up a communication channel to a different android / Linux device. WiFi / Bluetooth is no problem at all, but I wanted to use a direct USB connection.
Having an USB Host mode available I was wondering how easy / complicate it would be to set up usbnet on the G1. As it turned out, it was surprisingly easy, because everything is already prepared within the kernel (which is available from Github):

echo 1 > /sys/devices/virtual/usb_composite/rndis


Afterwards one can configure an IP address and set the link up:

ip addr add dev usb0 10.0.0.2/24
ip link set usb0 up

There is only one thing to be regarded: after enabling usbnet, adb over usb will no longer work, so it's better to switch to WiFi before.

Keine Kommentare:

Kommentar veröffentlichen