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
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