(This is a guest post by Tenox)
This is Part V of my Atari System V UNIX (ASV) Saga. In Part IV Plamen got ASV running under Hatari. Earlier parts: I, II and III.
In recent times ASV only saw the light of day thanks to two HDD disk images that came from real machines: Richard’s and Mark’s. Thanks for these!!! This project would not have been possible without them. However these were dumps of previously used systems, with their owners’ data, also partially corrupted, with fsck errors which had to be repaired (even superblock restored from backup copy). No one knows what exactly what else went on with these systems, what software was installed, files modified, settings changed etc.
We also had a dump of the original Runtime install tape. Except it was corrupted!! The tape had 3 holes and data was missing. As such the install from it was never attempted.

Thanks to Plamen’s Hatari work I was able to start looking at the media in more comfortable environment. I realized that Mark’s HDD image is the same version as the tape install – 1.1-06. What if we were able to substitute missing blocks from data already restored on the HDD?? Yes! The process was relatively easy with modern tools. But how can I test it?
Hatari had no tape drive, so I asked Claude to write it for me. Then a moment of truth. Booted from floppy disk, the kernel detected emulated tape drive and I was able to install the os from scratch! Just like on the original system!





This is a big deal! For the first time ever we have a pristine, clean, vanilla ASV install. No previous owner’s files, no fsck errors, no leftovers, no changed files. Just ASV exactly as Atari shipped it. The last version 1.1-06. From now on anyone can start from a clean disk!

The vanilla image doesn’t have much on it so I built up a bunch of images as I went and added networking, dev tools and ported some GNU apps. Each one adds one step to the one before it:
- asv-vanilla-runtime.img.lz: the Runtime tape only.
- asv-vanilla-runtime+networking.img.lz: + networking: telnet, rsh, rcp, ftp and DNS.
- asv-vanilla-runtime+networking+devel.img.lz: + the Atari Devel tape, nothing else: cc, gcc 1.39, g++ 1.37, gdb 3.5, perl 4, rcs, bison, X11 and Motif headers and libraries.
- asv-ultimate.img.lz: the ultimate one! + gcc 3.3.6, bash, the GNU tools and all the apps below.
- asv-ultimate+sp1.img.lz: ultimate + parts of Service Pack 1: 256 MB TT-RAM, NetUSBee and DaynaPORT. Made for a real TT with a NetUSBee. Special thanks to slaapliedje for coming up with SP1!
Each is a 1 GB SCSI disk. Log in as root with no password. These are meant to be used in a physical TT or Hatari. How to run them is in asv-vanilla-readme.txt. The repaired tape is here too: runtime-repaired.tar.lz.
Riebl networking! The network card for ASV is the Riebl card: an AMD Am7990 LANCE on the VME bus. Hatari didn’t have it. Claude ported it using NetBSD’s le driver (if_le_vme.c) as the reference. NetBSD went first. It found the card as le0, and DHCP, ping, DNS, telnet and rsh all worked:

Then ASV. Its la driver wants the card at a different address, so Hatari got a --riebl-addr option. On the first boot ASV found the card and relinked its kernel with the driver. The card goes out to the world through a NAT (libslirp), and telnet and rsh come in from the host.
Behold! Atari System V Release 4 on an emulated Atari TT030 with a Riebl card, talking to the world:

Specs: Atari TT030, 68030 + MMU, 68882 FPU, 32 MHz, 10 MB ST-RAM, 64 MB TT-RAM, TOS 3.06, TT high resolution 1280x960 mono, 1 GB SCSI disk, Riebl Ethernet (Am7990) on VME
Out: ping, telnet to telehack.com, and rcp to and from my Mac with rcpd, my rcp daemon. In: telnet and rsh from the Mac:
$ telnet 127.0.0.1 2337
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
UNIX(r) System V Release 4.0 (ultiasv)
login: root
UniSoft UNIX System V Release 4.0
ultiasv
Copyright (C) 1983, 1984, 1985, 1986, 1987, 1988, 1989, 1990 AT&T
Copyright (C) 1991 UNIX System Laboratories, Inc.
Copyright (C) 1991 UniSoft Corp.
All Rights Reserved
Welcome to Atari System V Release 4.0
# uname -a
UNIX_System_V ultiasv 4.0 1.1-06 mc68030 m68k
$ rsh -p 2537 [email protected] df -k /home
filesystem kbytes used avail capacity mounted on
/dev/dsk/c0d0s6 853099 136775 716324 16% /home
Today’s web too! Archaic, my client for WRP (Web Rendering Proxy), now runs on ASV. WRP runs on your computer and renders modern web sites, HTTPS and all, and Archaic shows them on the TT. Here is Atari-Forum on Atari System V:

Let’s look at some cool apps!
A modern compiler! The Devel tape comes with gcc 1.39 from 1991. Now there is gcc 3.3.6 with C++, bootstrapped on ASV itself: Atari’s own cc built gcc 2.95.3, and that built gcc 3.3.6. Then I compiled bash 2.05b, ncftp 3.2.6, NEdit 5.1.1, tgif, X11-Basic and a pile of editors on it:

Editors galore! Wx2 came with ASV. NEdit, xcoral, pico, joe and MicroEMACS are new:

X11-Basic is a BASIC much like GFA-BASIC on the Atari ST, with graphics in an X window. Here are two of its examples, an analog clock and a pendulum simulation, and a small program that shows an Atari ST picture. Its code is in the X11-Basic editor: NEdit with BASIC highlighting, where F5 runs the program.

tgif is a vector drawing program for X11. Here with its own keyboard shortcuts chart:

There is more under the hood: GNU make, m4, autoconf, bison, grep, gzip, NCSA Mosaic, top and deco. All the packages, with their sources and patches, are in os/asv/gnu.
256 MB and more network cards! Slaapliedje’s Atari System V Service Pack 1 patches the kernel for up to 256 MB of TT-RAM. The stock kernel hangs with more than about 64 MB. It also adds loadable kernel modules (DLM, by Ash Nazag) with drivers for the NetUSBee and the DaynaPORT SCSI/Link, and DHCP. I took these parts into the ultimate+sp1 image and kit. Thank you, Slaapliedje!
As usual I have prepared a ready to run, portable image with the ultimate disk and Hatari binaries for macOS (Apple Silicon), Linux and Windows. Just unpack and run run.sh (or run.cmd on Windows), and log in as root with no password. telnet is on port 2337 and rsh on port 2537 of your 127.0.0.1.
Download: https://files.42718.net/mirror/tenox/os/asv/virt/ataritt-asv1106-ultimate-hatari.tar.lz
With Service Pack 1 (256 MB TT-RAM; the Riebl card, or NIC=netusbee ./run.sh or NIC=daynaport ./run.sh): https://files.42718.net/mirror/tenox/os/asv/virt/ataritt-asv1106-ultimate+sp1-hatari.tar.lz
Source (Hatari, my fork): https://github.com/tenox7/hatari
Have Fun with Virtualization!
PS You may also be interested in Whitesmiths Idris for Atari ST now with TCP/IP and Games!