Linux on SIMpad: tips and tricks

Setting up networking

USB/IRDA

Communicating with a Linux box

See UsbNet, IrDA

Communicating with MS Windows

IRDA: From Windows 2000/XP, only IrNET (PPP over IrDA) is supported http://www.hpl.hp.com/personal/Jean_Tourrilhes/IrDA/IrNET.html (requires a PPP- enabled kernel, with the net/ppp.o module). You can also try the instructions at http://www.tuxmobil.org/Infrared-HOWTO/infrared-howto-s-windows-linux-connection.html

USB: Works only from Windows XP, see instructions at http://handhelds.org/moin/moin.cgi/WindowsXpUsbNetworkHowTo (look at the bottom of the page for updated instructions, Frantisek also has a solution). Notes: In OPIE, you just need to configure the usbf interface to DHCP. If you suspend the simpad, USB networking may not work anymore (same problem as on the iPAQ).

To remove the Bahia Network Drivers (on Win2k):

PPP over serial line or modem

For Opie, install the packages opie-networksettingsplugin-kppp and ppp.

You should then be able to install a PPP interface using Configuration/Network

PPP over ethernet (PPPoE)

This method is most commonly used for DSL connection, i.e. if you want to connect directly the Simpad to your DSL provider.

There is now a rp-pppoe package in the openzaurus buildroot, which is based on the corresponding debian package. The instructions are available from the PPPoE README.

Ethernet or WLAN

If you have an Ethernet or WLAN PCMCIA card which is supported, just insert it, and you should be able to configure it using Configuration/Network.

Proxy setting

If you use a proxy to access internet, you should configure each individual application (Applications/Web Browser, Configuration/Packages, ...) to use it.

(note: [fredy] would there be an applet which sets the http_proxy and ftp_proxy environment variables in the OPIE launcher, so that any application can use it?)

Qtopia Desktop

Installing Qtopia Desktop

Get it from http://www.trolltech.com/download/qtopia/

Configuring the simpad

Go to Settings/Security/Sync, and select the IP or the subnet of your desktop computer

Configuring Qtopia Desktop

Go to File/Settings/General, select a LAN connection and type in the IP of your simpad (you can find it out on your simpad from Settings/Network)

After this step, the "Sync All" button on Qtopia Desktop should be enabled.

Syncing

Just press "Sync All"

Troubleshooting

OPIE or GPE hangs but linux is still running

Note: for GPE, replace /etc/init.d/opie with /etc/init.d/gpe-dm in the following

If OPIE hangs, you can try to login through the serial line with another computer and a terminal program (unless you commented out the line in /etc/inittab that launches gettty on the serial port). Use 38400 8N1 as terminal settings in your program (Hyperterminal, minicom).

Once you are logged in, exit cleanly opie using: /etc/init.d/opie stop

Check that gpe is not running anymore: ps | grep gpe

If it is still running, kill it: killall gpe

And finally, restart OPIE: /etc/init.d/opie start

Linux hangs

Only a reset can help in that case. : Press "Key-r"

    +---------------------+
    | +--------------+ . . |
    | |              |  .  |
    | |              | . . |
    | |              |  . /
    | |              |   |
    | |            O | . |
    | +--------------+   |
    +--------------------+

Something goes wrong, but I get no error message

The system error messages are handled by syslog. By default, opensimpad launches a syslogd daemon which stores the error messages in memory (syslogd -C), and you can read these messages by typing the following in a console:

logread

The Opie error messages on OpenSIMpad are redirected to virtual terminal (VT) 1, while Opie is running on VT 2. To switch between VT's, use the chvt command from a remote connection (serial or network).