NetBSD on Atari TT in Hatari w/X11 and Networking!

(This is a guest post by Tenox)

In January I virtualized Atari System V Unix (ASV) under Hatari. But ASV is not the only Unix for the Atari TT. NetBSD runs on it too! Except Hatari’s own docs said that no NetBSD kernel boots on it yet. Challenge accepted!

  • NetBSD boots on the TT! Four fixes in Hatari’s TT and 68030 emulation: bus errors, MMU fault frames and SCSI DMA. Sent upstream as PR #57.
  • X11! XFree86 3.3.6 from NetBSD 1.6.2 with twm, in 1280×960 mono, thanks to Izumi Tsutsui’s X server for the TT.
  • Networking! A new EtherNEC / NetUSBee card on the cartridge port, with a built-in NAT. NetBSD sees it as ne0 and ping, DNS, ftp and telnet just work. Also sent upstream as PR #58.
  • Riebl Ethernet! The Riebl card on the VME bus, with its AMD Am7990 LANCE chip and the same built-in NAT. NetBSD sees it as le0.
  • A web browser! Archaic, my browser for old systems, now runs on NetBSD/m68k. Run WRP on your computer and browse the modern web from the TT.

Behold! NetBSD 6.1.4 in a full glory on an emulated Atari TT030:

NetBSD 6.1.4 on an emulated Atari TT030 with X11 and twm in 1280x960 mono: xterms with dmesg, ping and a NetBSD banner, xeyes, xclock, and the Archaic web browser showing the Atari TT030 Wikipedia page
NetBSD 6.1.4, X11 and Archaic on the Atari TT

Specs: Atari TT030, 68030 + MMU, 68882 FPU, 4 MB ST-RAM, 64 MB TT-RAM, TOS 3.06, TT high resolution 1280x960 mono, 1.9 GB SCSI disk, EtherNEC

NetBSD 6.1.4 boot messages on the Atari TT high resolution console, with the EtherNEC network card ne0 and the login prompt
EtherNEC on Atari ROM cartridge slot!
Hatari window on macOS running NetBSD 6.1.4 on the Atari TT: the Archaic web browser showing Reddit r/atarist, xeyes, xclock, xload and an xterm
Reddit’s r/atarist on a TT, in Hatari on a Mac

NetBSD 1.6.2 works too! A fresh install of the 2004 release, with the Riebl card, XFree86 3.3.6, gcc 2.95.3 and Archaic:

NetBSD 1.6.2 on an emulated Atari TT030 with X11 and twm in 1280x960 mono: xterms with dmesg showing the Riebl card as le0, ifconfig, ping and a Riebl banner, top, xload, xeyes and xclock
NetBSD 1.6.2 on the Atari TT, with the Riebl card
NetBSD 1.6.2 boot messages on the Atari TT high resolution console: le0 at vme0, Riebl card, and the login prompt
Riebl card on the VME bus!

There is more under the hood: gcc 4.5.3, and telnet and rsh from your computer on ports 2323 and 2514 (2324 and 2515 on NetBSD 1.6.2, so both can run at the same time).

As usual I have prepared a ready to run, portable image with Hatari binaries for macOS (Apple Silicon, macOS 26 or newer), Linux and Windows. Just unpack and run run.sh (or run.cmd on Windows). The login prompt comes after about 3 minutes. Log in as root with no password, and type startx.

Download NetBSD 6.1.4: https://files.42718.net/mirror/tenox/os/netbsd/virt/ataritt-netbsd614-hatari.tar.lz

Download NetBSD 1.6.2: https://files.42718.net/mirror/tenox/os/netbsd/virt/ataritt-netbsd162-hatari.tar.lz

Source (Hatari, my fork): https://github.com/tenox7/hatari

More Unix images on UNIX ZOO.

Have Fun with Virtualization!

PS You may also be interested in Atari System V UNIX (ASV) virtualized under Hatari.

Leave a Reply