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 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. |
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 24: | Line 20: | ||
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 | + | gconftool -s -t string /system/osso/connectivity/IAP/DEFAULT/type DUMMY |
- | + | ||
- | + | ||
You should see a "DEFAULT" connection appear in the connection manager. | You should see a "DEFAULT" connection appear in the connection manager. | ||
Line 84: | Line 78: | ||
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 101: | ||
* 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 129: | ||
... | ... | ||
</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". | ||
Line 223: | Line 207: | ||
And the tablet is then on the LAN. | And the tablet is then on the LAN. | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
=== Testing the connection === | === Testing the connection === | ||
Line 240: | Line 215: | ||
=== Known issues === | === Known issues === | ||
When unplugging and replugging the USB cable between the two devices, Windows will indicate a code 10-error indicating that the device could not start properly. The problem appears to be with the Nokia tablet, since after rebooting the device, networking works again. Remember to first initialize g_ether before plugging your tablet into the USB host. | When unplugging and replugging the USB cable between the two devices, Windows will indicate a code 10-error indicating that the device could not start properly. The problem appears to be with the Nokia tablet, since after rebooting the device, networking works again. Remember to first initialize g_ether before plugging your tablet into the USB host. | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
=== Frequently asked questions === | === Frequently asked questions === | ||
Line 258: | Line 223: | ||
#* Make sure you have activated USB networking on the Nokia side correctly. | #* Make sure you have activated USB networking on the Nokia side correctly. | ||
# My tablet can now talk to my XP machine, but how do I get out to the rest of the network? | # My tablet can now talk to my XP machine, but how do I get out to the rest of the network? | ||
- | + | First, set up a dummy access point, as described above, so that you can configure the network settings in connection manager for your usbnet connection. This will allow you to configure proxy server access. Secondly, install a proxy on your local machine. Examples include [http://www.proxomitron.info/ proxomitron] or [http://www.handcraftedsoftware.org/ freeproxy]. | |
# How do I set up DNS once I have connected the tablet and the host? | # How do I set up DNS once I have connected the tablet and the host? | ||
- | #* | + | #* Either configure the host as a gateway, and use the same DNS servers as your host (see above), or install and configure pdnsd on your host computer, and add nameserver 192.168.2.14 to the file /etc/resolv.conf on your tablet. |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
[[Category:Users]] | [[Category:Users]] | ||
[[Category:Wiki page of the day]] | [[Category:Wiki page of the day]] | ||
- | |||
- | |||
- | |||
- |
Learn more about Contributing to the wiki.