1.3 Setup Network Stack

I am using AmiTCP (V3.x,4.x) here, but other Network Stacks work similar

For a very simply setup you can use the “Network Boot Disk for Amiga” and start with this. Insert this disk into your emulator and perform the following steps to prepare the disk.

Copy patched magplip.device to your AmiTCP. Select the m680x0 version and copy the magplip.device without the .000 or .020 extension to your AmiTCP installation:

> copy magplip.device.000 df0:devs/networks/magplip.device

Edit the file AmiTCP:db/interfaces and add:

magplip dev=devs:networks/magplip.device

Adjust your AmiTCP:bin/startnet to setup the interface to magplip0.

In the network boot disk: Edit df0:s/Prefs/Env-Archive/nbddriver and set magplip0

In EnvARC:sana2 (Network Boot Disk: df0:s/Prefs/Env-Archive) you can place an optional configuration file called magplip.config.

For options see the magPLIP documentation.

Do not forget to configure the correct DNS server otherwise you won’t be
able to resolve non numeric IP addresses. Have a look at the fileAmiTCP:db/netdb-myhost and adapt the NAMESERVER entry accordingly. With
enabled IP forwarding on your Linux box (see slattch/README) you typically
use the IP of your DSL router as your nameserver (in my setup 192.168.2.1)

2. HOST (PC) Networking with Linux (Ubuntu)

2.1 Patch SLIP Tool slattach for high baud rates

The slattach tool is a utility to setup a serial link as a SLIP device in the Linux Kernel. The tool is distributed in the “net-tools” package.

slattach usually support only the “standard” baud rates up to 115200 baud. In this project we will use higher baud rates up to 500000 baud. To support this baud rate a patch is required. See slattach.patch in the source directory.

2.2 Setup SLIP: Manual Test

On Linux a new /dev/ttyUSBx device should appear for the serial adapter (Have a look a dmesg output for details)

Attach a SLIP network device to the serial port with our new patched slattach command:

> sudo ./slattach -H -p slip -s 500000 /dev/ttyUSB0

Note: the high baud rate only works with the patched version

Note2: the -H switch is also added by the patched version. It avoids resetting the Arduino before/after connecting. Otherwise you can’t read out stats from the board later on.

If you get the following error then you don’t have patched slattach:

slattach: tty_open: cannot set 500000 bps!

Let this command run all the time you want to have a SLIP device… The serial port is then blocked. If you want to talk with the device by serial or flash the firmware then first kill the slattach (e.g. by CTRL+C)

Now configure the SLIP network interface: (With slattach still running)