Editing USB networking
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
- | This page describes how the maemo platform can be turned into a [[USB]] network device. The first part describes how to configure the Nokia tablet as a USB pluggable network device. The second part describes how to configure various platforms to use the Nokia tablet as a network device. This article is based loosely on the Maemo 3.x [http://maemo.org/development/documentation/ | + | This page describes how the maemo platform can be turned into a [[USB]] network device. The first part describes how to configure the Nokia tablet as a USB pluggable network device. The second part describes how to configure various platforms to use the Nokia tablet as a network device. This article is based loosely on the Maemo 3.x [http://maemo.org/development/documentation/how-tos/3-x/howto_usb_networking_bora.html configuring USB networking HOWTO]. |
You might want to use the tablet as a USB network device to log into your tablet remotely, or to transfer data from your tablet to another computer, in a situation where wifi or bluetooth are not an option. If you wish to connect your tablet to a Linux machine over TCP/IP, the [http://maemo.org/development/documentation/pc_connectivity/ PC connectivity] section in the Maemo SDK documentation also contains useful information. | You might want to use the tablet as a USB network device to log into your tablet remotely, or to transfer data from your tablet to another computer, in a situation where wifi or bluetooth are not an option. If you wish to connect your tablet to a Linux machine over TCP/IP, the [http://maemo.org/development/documentation/pc_connectivity/ PC connectivity] section in the Maemo SDK documentation also contains useful information. | ||
Line 5: | Line 5: | ||
'''WARNING''' | '''WARNING''' | ||
Currently there is a bug in the g_ether.ko driver of OS2008 (both 4.0.1 and 4.1) which prevents USB networking from working correctly with Windows machines (but not with Linux machines). See [https://bugs.maemo.org/show_bug.cgi?id=3243 bug #3243] for details. The bug was introduced somewhere between kernels 2.6.18 and 2.6.21, so Maemo versions based on 2.6.18 kernels (e.g. OS2007 and earlier) will work. | Currently there is a bug in the g_ether.ko driver of OS2008 (both 4.0.1 and 4.1) which prevents USB networking from working correctly with Windows machines (but not with Linux machines). See [https://bugs.maemo.org/show_bug.cgi?id=3243 bug #3243] for details. The bug was introduced somewhere between kernels 2.6.18 and 2.6.21, so Maemo versions based on 2.6.18 kernels (e.g. OS2007 and earlier) will work. | ||
- | |||
- | |||
- | |||
- | |||
== Tablet USB network configuration == | == Tablet USB network configuration == | ||
Line 14: | Line 10: | ||
=== USB statusbar plugin === | === USB statusbar plugin === | ||
- | The [http://garage.maemo.org/projects/usb-otg-plugin/ usb-otg-plugin] applet lets you set up USB networking tablet-side, and switch between host and client mode. This is the easy way to do things and no other tablet-side configuration is required. | + | The [http://garage.maemo.org/projects/usb-otg-plugin/ usb-otg-plugin] applet '''<nowiki>[BAD LINK]</nowiki>''' lets you set up USB networking tablet-side, and switch between host and client mode. This is the easy way to do things and no other tablet-side configuration is required. |
Alternatively you could try the usb networking applet found here: | Alternatively you could try the usb networking applet found here: | ||
Line 25: | Line 21: | ||
After installing USB networking, set up a dummy access point by running the following: | After installing USB networking, set up a dummy access point by running the following: | ||
gconftool-2 -s -t string /system/osso/connectivity/IAP/DUMMY/type DUMMY | gconftool-2 -s -t string /system/osso/connectivity/IAP/DUMMY/type DUMMY | ||
- | gconftool-2 -s -t string /system/osso/connectivity/IAP/DUMMY/name 'Dummy network' | + | gconftool-2 -s -t string /system/osso/connectivity/IAP/DUMMY/name 'Dummy network'" |
gconftool-2 -s -t boolean /system/osso/connectivity/IAP/DUMMY/autoconnect true | gconftool-2 -s -t boolean /system/osso/connectivity/IAP/DUMMY/autoconnect true | ||
Line 84: | Line 80: | ||
exit 0 | exit 0 | ||
</pre> | </pre> | ||
- | + | This script is quite basic, but can be run automatically at start-up, or manually using the command: | |
- | + | ||
- | + | ||
- | + | ||
sudo /etc/init.d/usbnet [start|stop] | sudo /etc/init.d/usbnet [start|stop] | ||
to activate or deactivate USB networking. | to activate or deactivate USB networking. | ||
Line 110: | Line 103: | ||
* For Windows 2000, you will need to download [ RNDIS drivers] from Microsoft. | * For Windows 2000, you will need to download [ RNDIS drivers] from Microsoft. | ||
* Download the file "Nokia770 USB Ethernet RNDIS.inf" from [http://homepage.hispeed.ch/mlivoncic/Nokia770%20USB%20Ethernet%20RNDIS.inf here] or [http://homepage.sunrise.ch/mysunrise/mlivoncic/Nokia770%20USB%20Ethernet%20RNDIS.inf here]. This allows to recognise that the RNDIS driver can be used with the Nokia device, and other Linux USB devices. | * Download the file "Nokia770 USB Ethernet RNDIS.inf" from [http://homepage.hispeed.ch/mlivoncic/Nokia770%20USB%20Ethernet%20RNDIS.inf here] or [http://homepage.sunrise.ch/mysunrise/mlivoncic/Nokia770%20USB%20Ethernet%20RNDIS.inf here]. This allows to recognise that the RNDIS driver can be used with the Nokia device, and other Linux USB devices. | ||
- | |||
* If you are using an N800, skip all the steps below which apply to the N770; the bora distribution supplies a control panel applet called "maemo-statusbar-usbnet". Once installed, the control panel "Maemo-DM" will allow you to change the function of the USB port from "MMC emulation" to a RNDIS emulation of a USB ethernet interface. You will also need to set the WinXP side's IP address to be fixed at 192.168.2.14. | * If you are using an N800, skip all the steps below which apply to the N770; the bora distribution supplies a control panel applet called "maemo-statusbar-usbnet". Once installed, the control panel "Maemo-DM" will allow you to change the function of the USB port from "MMC emulation" to a RNDIS emulation of a USB ethernet interface. You will also need to set the WinXP side's IP address to be fixed at 192.168.2.14. | ||
Line 139: | Line 131: | ||
... | ... | ||
</pre> | </pre> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
==== Fedora ==== | ==== Fedora ==== | ||
- | + | Fedora supports Ethernet USB gadgets out-of-the-box. To configure the USB networking: | |
* Connect the tablet with g_ether.ko loaded to your Linux PC | * Connect the tablet with g_ether.ko loaded to your Linux PC | ||
* Open System -> Administrate -> Network (or run system-config-network from command line). | * Open System -> Administrate -> Network (or run system-config-network from command line). | ||
* Press the "New" button to create a new network interface. Select "Ethernet" network card type. | * Press the "New" button to create a new network interface. Select "Ethernet" network card type. | ||
- | * On the next screen, select the "Netchip Technology, Inc. Linux-USB Ethernet/RNDIS Gadget (usb0 | + | * On the next screen, select the "Netchip Technology, Inc. Linux-USB Ethernet/RNDIS Gadget (usb0)". |
* Choose "Static IP address" and enter the IP address 192.168.2.15 for your PC, if you are using the default usb0 configuration on your tablet. Don't fill the gateway field on the Fedora side. | * Choose "Static IP address" and enter the IP address 192.168.2.15 for your PC, if you are using the default usb0 configuration on your tablet. Don't fill the gateway field on the Fedora side. | ||
* Fill other settings (DNS etc) if you want to, then press "Finish". | * Fill other settings (DNS etc) if you want to, then press "Finish". |
Learn more about Contributing to the wiki.