[description] [textbook] [timeline] [xinu lab at Purdue] [experimenting with xinu] [code available for download] [xinu in industry] [xinu in universities] [what others are saying] [contact us]


Description

XINU stands for Xinu Is Not Unix -- although it shares concepts and even names with Unix, the internal design differs completely. Xinu is a small, elegant operating system that supports dynamic process creation, dynamic memory allocation, network communication, local and remote file systems, a shell, and device-independent I/O functions. The small size makes Xinu suitable for embedded environments.

Textbook

The revised and extended third edition of the textbook is in print: D. Comer, Operating System Design - The Xinu Approach, Third Edition CRC Press, 2025. ISBN 9781032980997.

Xinu Development Timeline

1979-80
1980-81 1981-82 1982-83 1983-85 1985-86 1985- 1986 1987 1989 1988-90 1990-91 1992 1990s 2008 2010-11 2011 2014 2015
Digital Equipment Corporation donates LSI-11 computers and project starts to explore how to integrate network protocol software into an operating system

The Xinu Lab at Purdue

The Xinu lab located in the Computer Science Department at Purdue University is used for both teaching and research. The lab is divided into a set of front-end machines (standard workstations running Linux) and a set of back-end machines (machines that are only used to download and test code). Each of the back-end machines has three connections: a connection to an Ethernet switch that provides access to the Internet, a connection to a rebooter device that can reboot the machine when needed, and a connection from the console serial port to a multiplexer. Software in the lab automates back-end allocation, download, and console interaction, making it easy for a student to compile an operating system image, allocate an unused back-end, establish a window that connects to the back-end console port, download the compiled image into the memory of the back-end, and run the image. The lab makes it easy for students to experiment with operating systems and protocol software.

Experimenting With Xinu

There are three main versions of Xinu available: an x86 version for the Galileo experimenter board, an ARM version for the BeagleBone Black experimenter board, and a version that runs on the qemu hypervisor.

In our lab at Purdue, a student uses two computers to experiment with Xinu: one to compile Xinu and another that downlaods and runs Xinu. We use the term front-end computer for the computer used to compile Xinu. Front-end computers run Llinux, and are shared among multpile students. We use the term back-end computer for a computer used to run Xinu. Back-end computers consist of inexpensive experimenter boards, and except for running Xinu are otherwise idle. The third edition of the text contains code for both the Intel x86 (Galileo) and ARM Cortex 8 (BeagleBone Black), and the code is freely available. Either of the hardware is relatively inexpensive and available from commercial web sites.

There are several ways to experiment. The easiest way to get started consists of installing the qemu hypervisor on a laptop or desktop, cloning the xinu-qemu repository, and following the instructions in the README file to invoke a setup script that sets up the environment. Qemu runs on almost all computers, and versions are available to use with Windows, Linux, and MacOS. When you use the qemu version, Xinu runs in a Virtual Machine (VM) environment. Because qemu isolates the VM from the underlying hardware, we always use an x86 version of Xinu to run on qemu, even if the underlying computer uses Apple Silicon. Only minor differences exist between the version of Xinu that runs on qemu and the Galile version in the text (e.g., the Ethernet driver has been changed to match the Ethernet device that qemu emulates, and the low-level PCI bus functions have been reverted to use a generic x86 version).

Exoerimenting with actual hardware requires additional setup. For the BeagleBone Black, the quickest was to get started involves using a serial cable. Connect the serial cable from the BBB to a PC, download a Xinu image over the serial cable, and then enter a command that causes the BBB to run the image. You can download a instructions that explain the above in detail for the BeagleBone Black; there are two sets:

For the Galileo, the quickest way to get started involves using an SD memory card and a serial cable. Connect the serial cable from the board to a PC (inexpensive cables are all that one needs). Run a terminal emulator, such as minicom to display the serial output in a window on the PC. Plug the SD card into the PC, compile Xinu and load the image onto the SD card. Unplug the SD card from the PC and plug it into the experimenter board. Boot the board, and use the console serial connection to boot the image from the SD card. Output from Xinu will be displayed over the serial line.

The second way to configure an experiemnter board takes more time to set up, but allows one to recompile and download quickly once the pieces are in place. As described above, a serial line must be connected from the experimenter board to a PC. In addition, one must: connect a board to an Ethernet switch, connect a PC to the same switch, configure the board to boot over the network, and configure the PC to run DHCP and TFTP server processes that supply the information needed to boot. Once all the above has been set up, it is possible to compile Xinu, place the image in a file on the PC, and then power-cycle the experimenter board to boot the Xinu image automatically. We use this approach in the lab to enable a rapid edit-compile-download-test cycle. You can download a document that explains the above in detail for the Galileo board (both Generations 1 and 2).

We enthusiastically endorse the two approaches above because they allow Xinu to run on real hardware and provide users with the best experience in designing systems.

Xinu Code Available For Download:

Notes From Tom Trebisky:

Xinu in Industry

If your company has used Xinu in the past or is using Xinu at present, send a note to xinu-info@cs.purdue.edu and we will include your company in the list below.

Xinu in Universities

If your university has used Xinu in the past or is using Xinu at present, send a note to xinu-info@cs.purdue.edu and we will include your university and the year you started using Xinu in the list below.