Nuttian

nxsid poc-17 · proof of concept · arm64, x86-64 and RISC-V 64

NuttX, with packages.

Nuttian is a distribution built on Apache NuttX. Its programs are ordinary binary packages that install with dpkg and apt, on a NuttX kernel build. This is the first proof of concept: nxsid, for 64-bit Arm, x86-64 and RISC-V 64.

Try it in five minutes →

Kernel
Apache NuttX 13.1, kernel build: each program is a process in its own address space
C library
NuttX's own libc as libc.so, with a dynamic linker; kernel and library come from the same commit
Packages
352 source packages, 1667 binary packages for each architecture, built from their upstream sources; every change is recorded
Goal
The POSIX PSE54 profile (multi-purpose real-time system)
Architectures
arm64, x86-64 (amd64) and RISC-V 64: the same packages from the same sources

New in poc-17

Everything, and the bugs we fixed: the changelog. A new ABI: a poc-16 image can no longer install packages, so download this one.

Try it

You need QEMU and about 2 GB of disk; on Linux also python3. Each download has the kernel, the root file system and a start script. The guest gets its packages from archive.nuttian.org.

1. Choose an architecture

Every architecture runs everywhere. Where it matches your computer, QEMU uses hardware acceleration; elsewhere it emulates the guest, which is slower but works.

ArchitectureNameFast on
64-bit Armarm64Apple silicon Macs; arm64 Linux (KVM)
x86-64amd64Intel Macs; x86-64 Linux (KVM); Windows with WSL 2
RISC-V 64riscv64emulated on every computer for now

Tested on Apple silicon Macs and on x86-64 Linux. Intel Macs and WSL 2 should work the same way, but we have not tested them yet: please tell us.

2. Install QEMU

macOS (Homebrew):
brew install qemu
Debian, Ubuntu:
sudo apt install qemu-system-arm qemu-system-x86 qemu-system-misc
Fedora:
sudo dnf install qemu-system-aarch64 qemu-system-x86 qemu-system-riscv

macOS: use QEMU 11.0.1 or newer (brew upgrade qemu). QEMU 11.0.0 keeps 2-3 cores of the Mac busy while an arm64 guest is idle (a QEMU bug, fixed in 11.0.1).

GPU rendering on macOS (arm64 image): Homebrew's QEMU draws the guest's OpenGL in software. For the Mac's GPU, download nuttian-qemu-gl-macos-arm64.tar.xz (9 MB, Apple silicon): QEMU 10.0.12 as the UTM project builds it, with virgl and ANGLE on Metal. Unpack it in the image's folder and start with --gl:

curl -LO \
  https://archive.nuttian.org/releases/poc-17/nuttian-qemu-gl-macos-arm64.tar.xz
tar -xf nuttian-qemu-gl-macos-arm64.tar.xz
./run.sh --gui --gl

Downloaded with a web browser? Clear macOS's quarantine mark once: xattr -dr com.apple.quarantine nuttian-qemu-gl (a curl download needs nothing). Its sources, patches and build script are published next to it: nuttian-qemu-gl-sources.tar (QEMU is under the GPL 2).

Windows: use WSL 2 (the root file system is a shared folder, which QEMU for Windows does not have). In PowerShell run wsl --install -d Ubuntu, then open Ubuntu and use the Debian, Ubuntu line above.

3. Download and start

ARCH=arm64     # or amd64, riscv64
curl -LO \
  https://archive.nuttian.org/releases/poc-17/nuttian-nxsid-$ARCH.tar.xz
tar xf nuttian-nxsid-$ARCH.tar.xz
cd nuttian-nxsid-$ARCH
./run.sh

The same files, with SHA256SUMS and its signature, are on GitHub.

run.sh finds QEMU, uses hardware acceleration when it can, and on macOS puts the root file system on a case-sensitive disk image. Run it again to come back to the same system.

Options

./run.sh --gui               # a desktop in a window, with sound
./run.sh --mem 4G            # the guest's RAM (default 1G; amd64 2G)
./run.sh --smp 2             # the guest's CPUs (default 4, or fewer on a smaller computer)
./run.sh --gui --gl          # 3D on the host's GPU, where QEMU has virgl
./run.sh --ssh 2222          # ssh -p 2222 <user>@127.0.0.1 (in the guest: sudo apt install openssh-server)
./run.sh --disk data.img     # an ext4 disk: /dev/virtblk0 in the guest
./run.sh --follow-window      # with --gui: the screen takes the window's size (default on Linux)
./run.sh --gui --mem 4G --res 1920x1080

The desktop comes up by itself as the first user, with a panel of icons: a terminal, the lite-xl editor, a web browser and Freedoom. ./run.sh --help lists every option.

In the guest

The first start asks for a user name and a password: the first user. Then log in as that user. root has no password: the first user becomes root with sudo. Then:

sudo apt update
sudo apt install build-essential
uname -a

To leave, run sudo poweroff, or press Ctrl-a, then x.

The folder share next to run.sh is shared with the guest too:

sudo mount -t v9fs -o trans=virtio,tag=host /mnt

What is inside

The image is a small base system and the desktop. The rest comes from the archive.

In the image

  • bash 5.3, dash, coreutils
  • apt 3.3 and dpkg
  • nano, less, lynx
  • labwc, foot, lite-xl, Freedoom
  • WPE WebKit 2.54: a web browser
  • Mesa with llvmpipe: eglinfo, es2gears, kmscube

One apt install away

  • gcc 14, g++, make, cmake
  • Python 3.14 with pip and venv
  • Perl 5.42, git, curl, wget
  • OpenSSH 10.6, vim, tmux, screen
  • GTK 3, Qt 6, Tk, X11 programs (Xwayland)
  • gdb 18, strace, clang 21, lld, clangd
  • Rust 1.97 with cargo; Geany 2.1
  • PipeWire, GStreamer, e2fsprogs

Each package has its page, with the changes that NuttX needs and the reason for each: see bash. Every binary package comes from a source package in the archive (the list). In the guest, in a directory on the root file system (/tmp is small):

sudo apt install dpkg-dev
mkdir -p ~/src && cd ~/src
apt source bash

Know before you try

Talk to us. Questions, reports, ideas: [email protected]. Security issues: [email protected].