Atari System V UNIX Saga – Part V – Tape Install & Riebl Networking

(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.

Atari System V Unix Runtime Install Tape

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!

ASV Floppy Boot Loader
Atari System V 1.1-06 installer in single user mode: US keyboard selected, /sbin/osinstall 0 asks for the ASV Supplemental Diskette and the Runtime tape, then warns that partitioning destroys the disk at SCSI ID 0
osinstall asks for the Supplemental floppy and the Runtime tape
Atari System V installer making the home file system, scanning past packages 1 to 3 on the tape and installing Atari System V with cpio from the tape
Installing Atari System V from the (repaired) tape
Atari System V installer: 160896 blocks read from tape, End of ASV installation, remove the floppy and tape, press return to reboot
All 160896 blocks read with no errors!
Atari System V first boot system configuration: 42 MB memory, floppy drives, Hatari emulated 1024 MB hard disk, LA Ethernet, SCSI, and the HATARI SCSITAPE 1.0 tape drive at SCSI ID 5
First boot: HATARI SCSITAPE and the LA (Riebl) card

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!

Atari System V X11 desktop on a fresh vanilla install: an xterm with uname -a showing UNIX_System_V ultiasv 4.0 1.1-06 mc68030 m68k, and beside it the WISh2 desktop manager with UNIX Utilities, Calculator, XTerm, X Control Panel, System Administration and the root directory
Fresh, clean, vanilla ASV desktop

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:

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:

NetBSD 1.6.2 boot messages on the Atari TT high resolution console: le0 at vme0, Riebl card, and the login prompt
NetBSD 1.6.2: le0 at vme0, Riebl card!

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:

Atari System V on Hatari with the Riebl card: an xterm with uname, ifconfig en0, ping to the gateway and to www.google.com and rcp to and from the host, an xterm with telnet to telehack.com running cowsay, xeyes started over rsh from the host, xload and xclock
ping, rcp and telnet out, xeyes in via rsh from the Mac

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:

Archaic 0.14 web browser on Atari System V in Hatari, showing the Atari-Forum board index over HTTPS through WRP, next to WISh2 System Administration, xterms with uname and top, and xload
Archaic 0.14 on Atari-Forum: the modern web on an Atari, the UNIX way

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:

Atari System V on Hatari: NEdit 5.1.1 editing hello.c with syntax highlighting, a bash 2.05b xterm with uname -a, gcc 3.3.6 and g++ compiling and running two hello programs, and top
gcc 3.3.6, g++ and bash 2.05b, with NEdit 5.1.1 and top

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

Five text editors on Atari System V: Wx2 2.2 with hello.c, pico 4.9 with /etc/inet/hosts, xcoral 3.2 with hello.cc, joe 2.9 with /etc/profile and MicroEMACS 3.12 with /etc/inittab
Editors galore: Wx2 2.2, pico 4.9, xcoral 3.2, joe 2.9 and MicroEMACS 3.12

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.

X11-Basic 1.00 on Atari System V: the analog clock example, the driven damped pendulum real-time simulation example, an Atari ST monochrome picture (Thailand, Kurze Pause Relax), and the BASIC program that shows it in the X11-Basic editor
X11-Basic 1.00: analog clock, pendulum, an Atari ST picture and its code in the editor

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

tgif 2.16 drawing program on Atari System V, full screen, showing its sample drawing Keyboard Shortcuts for Tgif with its menus and tool panel
tgif 2.16

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!

Leave a Reply