Translation(s): none


Aranym is a virtual Atari machine which is useful for M68k Porting. This is a one page installation intended to get Debian/m68k sid running quickly. The disk image is fairly minimal, but can be extended easily.

Contact: <debian-68k@lists.debian.org>

Download Files

Download the April 2012 base image tarball from one of the following locations:

The following instructions are for this (April 2012) image. Follow the Aranym/Quick.bak instructions for the older image.

The hard disc image

… contains an ext4fs at offset 1 sector (512 octets), which – according to atari-fdisk – ends at block (sector) 23069088. The rest is swap. It’s fairly big, but in theory, shrinking it and then transferring it to a disc to be used in an Amiga, mac68k or other Debian/m68k system should be possible.

The packages contained therein stem from a debootstrap with --variant=minbase plus a few others, such as a sensible shell (mksh) and editor (ed and jupp) and Desktop Environment (mc), but several others from the default set (and any development tools) are missing. Use dselect to add them from a list. The /etc/apt/apt.conf file is set up to not install Recommends automatically. Also, see the README.txt file included with the image.

All packages, except one, are standard Debian packages. If you want to keep things strictly Debian, purge wtf-debian-keyring and remove all nōn-Debian/Debian-Ports entries from /etc/apt/sources.list.

Install Aranym

aranym recommends bridge-utils, ipmasq and uml-utilities. ipmasq may cause you networking grief if you aren't aware.

sudo apt-get --purge install aranym

Configure Networking

Make sure tun is available and setup correctly.

The disk image is setup for point-to-point networking. On your host add the following to /etc/network/interfaces:

auto tap4
iface tap4 inet static
        address 192.168.10.5
        pointopoint 192.168.10.6
        netmask 255.255.255.255
        tunctl_user tglase
        up iptables -t nat -A POSTROUTING -s 192.168.10.6 -j MASQUERADE
        up echo 1 > /proc/sys/net/ipv4/ip_forward
        down iptables -t nat -D POSTROUTING -s 192.168.10.6 -j MASQUERADE

This assumes tap4 is a free tun interface on your system, and tglase is your username (so you can access it as nōn-root). Now start up the interface with: sudo ifup tap4

If you use more than one ARAnyM instance, you will need separate tap interfaces for each instance, which needs changing in three places: aranym.cfg (both Tunnel – to the tap interface used – and Mac – to keep unique), /etc/network/interfaces and, in the guest, also /etc/network/interfaces – do make sure that the address and pointopoint of host and guest are swapped, and that the up and down commands on the host match the guest’s IP.

You will also need to configure the guest if you have only one instance, but the 192.168.10.4/30 IP range is already in use by you.

Start Aranym

aranym is an SDL application, so you need X11 or something like Aranym/Headless. The configuration file specifies the amount of RAM ARAnyM gets (see FastRAM). It’s currently set at 768 MiB, adjust to taste. ARAnyM will happily drive a single cpu core on the host to 100%, but usually isn’t that demanding.

# avoid it hogging the sound card
SDL_AUDIODRIVER=dummy; export SDL_AUDIODRIVER
# run ARAnyM on CPU core #0 (only)
taskset 0x01 aranym-mmu -l -c aranym.cfg

Read the taskset manual page for details. Basically, use 0x01 shifted left by the number of the CPU core (starting with 0) you want it to use. (Or just skip taskset and run aranym-mmu directly.)

When doing this over VNC, do be sure to not move the mouse until the login prompt arrives and you have typed a letter, otherwise the keyboard will not be usable.

First Steps

See the README.txt file included, too.

To compile packages, the best would be to install cowbuilder and set it up, similarily to what was described in M68k/Cowbuilder:

You can also just install the build-essential package and begin compiling in your main system. Or set up a buildd…

Closing Remarks

ThorstenGlaser made this image due to the pressure of several requests for one, while being ill. It has not been tested much, contains way too few packages for its size (looking back, at least the base packages should all have been included, considering how big it ended up anyway due to mc and locales-all and stuff), and the First Steps could probably have been made into a shell script. But, there you are. Better than nothing. It’s at least a working image, cleanly made according to latest Debian sid standards (instead of upgrading old etch-m68k images more and more) and with space to compile lots of things.


CategoryPermalink