Editing N900 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 to enable Networking on the [[Nokia N900|N900]] via [[USB]] | + | This page describes how to enable Networking on the [[Nokia N900|N900]] via [[USB]]. The first part describes how to configure the N900 as a USB pluggable network device. The second part describes how to configure various platforms to use the Nokia N900 as a network device. This article is based on the [[USB networking|Maemo 4.x USB networking article]]. It is also possible to use the N900 as a [[N900 USB router|USB router]]. |
You might want to use the N900 as a USB network device to log into your N900 remotely, or to transfer data from your N900 to another computer, in a situation where wifi or Bluetooth are not an option. If you wish to connect your N900 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 N900 as a USB network device to log into your N900 remotely, or to transfer data from your N900 to another computer, in a situation where wifi or Bluetooth are not an option. If you wish to connect your N900 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 19: | Line 19: | ||
up route del default | up route del default | ||
up route add default gw 192.168.2.14 | up route add default gw 192.168.2.14 | ||
- | |||
- | |||
and | and | ||
up run-standalone.sh dbus-send --type=method_call --system --dest=com.nokia.icd /com/nokia/icd com.nokia.icd.connect string:DUMMY uint32:0 | up run-standalone.sh dbus-send --type=method_call --system --dest=com.nokia.icd /com/nokia/icd com.nokia.icd.connect string:DUMMY uint32:0 | ||
Line 32: | Line 30: | ||
=== Starting USB network mode === | === Starting USB network mode === | ||
- | |||
- | |||
Plug one end of the USB cable on the host and the other end into the N900. The N900 will bring up the mode-selection dialog. Select 'PC Suite mode'. | Plug one end of the USB cable on the host and the other end into the N900. The N900 will bring up the mode-selection dialog. Select 'PC Suite mode'. | ||
Line 71: | Line 67: | ||
</pre> | </pre> | ||
- | To automatically setup usb0 when entering PC suite mode | + | To automatically setup usb0 when entering PC suite mode change the last few lines of <code>/usr/sbin/pcsuite-enable.sh</code> by adding the "ifup usb0" line. |
+ | <pre> | ||
+ | logger "$0: sent SIGUSR1 to syncd" | ||
+ | ifup usb0 | ||
+ | exit 0 | ||
+ | </pre> | ||
+ | And, to automatically down your usb0 interface when leaving PC suite mode, add to <code>/usr/sbin/pcsuite-disable.sh</code> | ||
<pre> | <pre> | ||
- | + | ifdown usb0 | |
- | + | exit 0 | |
</pre> | </pre> | ||
Line 137: | Line 139: | ||
</li> | </li> | ||
<li> | <li> | ||
- | Add the following lines to <code>/usr/sbin/pcsuite-enable.sh</code> (Do not forget to change the ip address so it matches the one configured on your host's usb port | + | Add the following lines to <code>/usr/sbin/pcsuite-enable.sh</code> (Do not forget to change the ip address so it matches the one configured on your host's usb port.) |
<pre> | <pre> | ||
run-standalone.sh dbus-send --type=method_call --system --dest=com.nokia.icd /com/nokia/icd com.nokia.icd.connect string:DUMMY uint32:0 | run-standalone.sh dbus-send --type=method_call --system --dest=com.nokia.icd /com/nokia/icd com.nokia.icd.connect string:DUMMY uint32:0 | ||
Line 167: | Line 169: | ||
logger "$0: do nothing to pass USB certs" | logger "$0: do nothing to pass USB certs" | ||
ifdown usb0 | ifdown usb0 | ||
- | run-standalone.sh dbus-send --system --dest=com.nokia.icd /com/nokia/icd_ui com.nokia.icd_ui.disconnect boolean:true | + | run-standalone.sh dbus-send --system --dest=com.nokia.icd /com/nokia/icd_ui com.nokia.icd_ui.disconnect boolean:true route del default netmask 0.0.0.0 gw 192.168.2.14 |
- | + | ||
exit 0 | exit 0 | ||
</pre> | </pre> | ||
Line 206: | Line 207: | ||
== Host USB Network Configuration == | == Host USB Network Configuration == | ||
- | The | + | The Host configuration is detailed in the [[USB networking#Host_USB_Network_Configuration|Maemo 4.x USB Networking article]]. Please refer to it for details. |
+ | ''FIXME, there is no usb host mode on n900'' | ||
=== Host configuration on Debian Lenny === | === Host configuration on Debian Lenny === | ||
Line 253: | Line 255: | ||
ifconfig n900 | ifconfig n900 | ||
- | + | === Automatic configuration with Ubuntu 9.10/10.04 === | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | === Automatic configuration with Ubuntu 9.10/10.04 | + | |
Note: this instructions should be fixed/improved: | Note: this instructions should be fixed/improved: | ||
Line 303: | Line 275: | ||
</pre> | </pre> | ||
- | + | For 9.10 (NOT 10.04) you have to fix <code>/etc/init/network-interface.conf</code>, change the line: | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
stop on net-device-removed INTERFACE=$INTERFACE | stop on net-device-removed INTERFACE=$INTERFACE | ||
with: | with: | ||
Line 322: | Line 281: | ||
(Note the difference: net-device-remove'''d''') | (Note the difference: net-device-remove'''d''') | ||
- | + | You have to reload udev rules with: | |
udevadm control --reload-rules | udevadm control --reload-rules | ||
Line 338: | Line 297: | ||
* you should see with <code>ifconfig -a</code> two new network interfaces, n900 and n900pn, the first one configured with the proper ip address 192.168.2.15, and should be able to ping the N900. | * you should see with <code>ifconfig -a</code> two new network interfaces, n900 and n900pn, the first one configured with the proper ip address 192.168.2.15, and should be able to ping the N900. | ||
* the N900 should be able to use the PC internet connection immediately. | * the N900 should be able to use the PC internet connection immediately. | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
=== Windows === | === Windows === | ||
Line 404: | Line 316: | ||
To use the Internet connection of your Mac via USB networking make sure to enable System Preferences -> Sharing -> Internet sharing for the N900 interface [http://docs.info.apple.com/article.html?path=Mac/10.5/en/8156.html Howto] | To use the Internet connection of your Mac via USB networking make sure to enable System Preferences -> Sharing -> Internet sharing for the N900 interface [http://docs.info.apple.com/article.html?path=Mac/10.5/en/8156.html Howto] | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
== Using USB networking for Maemo applications == | == Using USB networking for Maemo applications == | ||
Line 443: | Line 321: | ||
By default, standard network applications works well with USB networking, while Maemo-specific applications do not. | By default, standard network applications works well with USB networking, while Maemo-specific applications do not. | ||
- | Install <code>libicd-network-dummy</code> from Fremantle Nokia-binaries repository or better <code>libicd-network-null</code> from [[extras-devel]], and when USB networking is up pickup "Dummy network" from the connection manager. | + | Install <code>libicd-network-dummy</code> from Fremantle Nokia-binaries repository or better <code>libicd-network-null</code> from [[extras-devel]], and when USB networking is up pickup "Dummy network" from the connection manager. |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
If the dummy network does not show up in the network manager you could run | If the dummy network does not show up in the network manager you could run | ||
the following commands in xterm: | the following commands in xterm: |
Learn more about Contributing to the wiki.