Skip to content
HUBrisOrigami project journal
Color Schemes
Color Scheme Browser
Desktop SchemesBase · gamma 1.7
Monitor gamma
Chrome type · pointer

/usr/lib/X11/schemes · x_eoe_6530m

IRIS InSight: HUBris Library

HUBris Library / Engineering Notes / Why Emulate an SGI Origin 200?page 73 of 97

NavigatorHUBris Library
Engineering Notespage 73 of 97

Engineering Notes Origin 200

Why Emulate an SGI Origin 200?

Why an Origin 200 needs an emulator and why this fork is permanent.

Nobody asked for an emulator of a 1997 SGI server, so the first thing to say is why we wanted one. The Origin 200 is a small ccNUMA machine: one or two node boards, each with up to two R10000 processors, memory of its own, and a node controller called the Hub that is the memory controller, the coherence engine, the interrupt controller and the port onto both the I/O fabric and the fabric that joins nodes. A device interrupt does not travel down a wire to a processor. The bridge that gathers it composes a write to a Hub register, and that register sets the pending bit. A machine like that is ordinary now and was exotic when it shipped, and Inside the Origin 200 takes it apart part by part.

Nothing else emulates one

We surveyed every SGI emulator we could find at the start of this project, in August 2026, and none of them reaches an Origin firmware banner, let alone an operating system.

MAME’s SGI directory covers the Indy, the Indigo2, the O2, the Octane and older Iris machines. The Indy works well enough to boot IRIX 5.3 and 6.5 with networking. Almost everything after it is a skeleton whose own to-do list reads “everything”. There is no IP27 file in MAME at all, not a stub, not a placeholder.

GXemul has an SGI Origin machine type, and it consists of a name string, a note that there are two processors per node, and one serial controller at an address inherited from a different SGI machine entirely. There is no Hub, no crossbar, no bridge, no I/O chip and no NUMA addressing. Its software ARC64 firmware can in principle start a 64-bit kernel, which then dies at the first access to any of the machine’s real hardware.

QEMU, the base we chose, shipped no SGI machine of any kind and no R10000-class processor. MAME’s MIPS cores stop at R5000-class. GXemul nominally knows an R10000 processor identification but interprets generic MIPS IV underneath it, and its own header admits the specifications may not be accurate.

The one precedent

Stanford’s SimOS is the only project on record that booted a commercial IRIX on simulated hardware. From 1994 it ran IRIX 5.2 and 5.3 nearly unmodified, along with unmodified SGI binaries, on a simulated Challenge-class R4000 multiprocessor. That is a bus machine, not an Origin. SimOS faked its firmware on purpose, a boot PROM that answered only the questions the operating system actually asked, with disks backed by host files and a root filesystem built by a host-side tool. Its R10000-class processor model was a timing model for studying out-of-order execution, not a system model with the privileged registers an operating system programs.

SimOS did carry a cycle-accurate model of a node controller, built for the FLASH research machine, which makes it the closest historical work to what we are doing. It was a research instrument for a machine that was never sold.

So the framing the survey landed on is this: no emulator of a real historical ccNUMA machine with node controllers exists outside 1990s academia. An Origin 200 with a working node controller, running the operating systems that shipped for it, would be a first.

Why fork QEMU

Choosing a base meant rejecting three alternatives before settling on one.

A greenfield Rust emulator was dominated on every axis. Nine to eighteen months to a first operating-system boot, running at ten to sixty guest MIPS, unusable for booting a real IRIX, unless we also wrote a just-in-time compiler, which would have been the largest single sub-project in the whole comparison.

Forking an existing Rust SGI emulator was the second option. techomancer/iris was the only actively developed SGI emulator in 2026, and a code audit found its CPU core, JIT and equivalence-checking harness all solid. But 32-bit physical addressing ran through the entire bus layer at hundreds of sites, there was no machine abstraction to hang a second machine off, and the memory model was single-threaded in a way that is an architectural dead end for coherent NUMA multiprocessing. The audit put it at two to three times slower to a first boot than the QEMU route.

GXemul or MAME as a base we rejected as dormant, slow, and without an R10000. Both remain useful reference material, and GXemul’s software-ARCS technique was the precedent for the firmware surface we first synthesized, which the project deleted on 15 September.

What QEMU offered was specific and measurable. Its MIPS target already had mature MIPS IV code generation, 40-bit physical addressing, and one of the R10000’s less common control registers. An existing PCI host bridge in the tree, hw/pci-host/astro.c, is architecturally the same shape as a system controller with a page-directory IOMMU feeding a PCI bus, which is exactly what the Hub and the Bridge are together. TCG delivers two to five hundred guest MIPS, which is at or above a real 180 to 270 MHz Origin 200, for free.

Two QEMU facilities turned out to matter more than the speed. qtest drives a device’s registers directly with no operating system running, so every device can be checked against its specification before any guest sees it. And -d unimp turns an access to a register nobody implemented into a log line naming the address, which converts the usual emulator failure, a guest that stops for no visible reason, into a list of things to go implement.

The survey supplied the last argument, and it is about people rather than code: long-lived emulators are the ones built on maintained frameworks, and the ones that die do so from solo-maintainer stall and host rot rather than from emulation being too hard.

The operating systems, in order

Three guests, in a deliberate order, chosen for what each one can prove.

OpenBSD/sgi comes first. It supported the Origin 200 through release 6.9 in 2021, prebuilt IP27 kernels are available, and its kernel is small enough to read end to end. It is the guest that got the machine from a monitor prompt to a login shell.

Linux/IP27 comes second, as an instrument rather than as a second trophy. Mainline Linux still supports this machine, reworked in 2019 against real Origin hardware. The reason it is on the critical path is that OpenBSD and Linux read disjoint parts of the machine. An entire class of defect is structurally invisible to every OpenBSD boot that could ever be written. Two turned up early: the crosstalk link status, which OpenBSD never reads and Linux acts on, and the Bridge’s board-identity one-wire memory, which Linux will not attach the Bridge without. Once Linux booted, the Origin 200 had a second guest to be checked against.

IRIX comes last, as the end goal. It is the operating system the machine was built for and the strictest consumer of the firmware’s configuration graph. It is also the one guest that brings its own external witness: the vendor’s own hardware inventory tool reports what it found, and we did not write it and cannot edit it. Each driver’s attach routine builds that inventory from its own source, so the tool reports the sum of what the devices told the kernel rather than a readback of anything we synthesized. Agreement cannot be generated by our machine, because the tool is not ours, and it exercises every device’s attach path to produce it.

In August 2026 we decided that IRIX would boot on the real, extracted IP27 firmware image rather than on the firmware surface we then synthesized for OpenBSD and Linux. The reasoning is about what can be checked. Writing a firmware surface faithful enough to satisfy a vendor kernel can be checked against nothing, you guess what IRIX needs and find out by failing. Making the machine faithful enough to run the vendor’s own firmware gives us our sharpest check, because the firmware either runs or stops, and where it stops is a measurement of the machine.

Where it went

OpenBSD (with the kernel started directly), Linux and IRIX each reached a login on the Origin 200 in turn, and the same parts, assembled differently, went on to the Origin 2000, the Origin 300 and the rest of the family. The Origami Project Timeline has the dated sequence, and Get Origami says what the newest release contains.

Not one machine, a family

Why emulate an Origin 200? The answer has grown past the question we started with.

SGI built these machines out of shared blocks. The Hub, the Bridge, the crossbar part, the base I/O controller and the processor are the same ASICs across the Origin 200, the Origin 2000 and the Onyx2, which is why one firmware and one kernel port span all three. What differs between them is the arrangement: how many nodes, whether a crossbar is fitted at all, how many slots, what sits on the PCI bus.

The fork is organised the same way, and that was not a plan so much as what the work turned into. The device models carry no machine-conditional behaviour. Everything machine-specific, how many of what and how they are wired, lives in the file that assembles the parts. So this is a set of SGI component models plus a machine that assembles them, and the Origin 200 is the first assembly rather than the whole of it.

That reframing pays a debt elsewhere in the collection. The extracted firmware for the later generation measured out as the same container format as this one’s, which we first recorded as a fortunate finding. Under this reading it is what the family structure predicts: a successor set of parts, assembled the same way by the same design lineage, packaged the same way. The claim it licenses is narrower than it sounds, the packaging and the loading path are likely to carry, and each successor component still needs its own reading. But it is the difference between having built one machine and having built the first of a family.

Inside the Origin 200 takes the machine apart. The SCSI hang note and the road to a root shell tell two stories from the build: a disk-I/O hang caused by a producer and a consumer sharing one register, and a road to a login prompt made almost entirely of walls.