# Vinix ports Each port contains a native vpac recipe and its local build inputs. The bootstrap packages build Vinix's patched musl and a static BusyBox. BusyBox owns the shell, init and applet symlinks. See [the release profiles](PROFILES.md) for the Alpine components that need Vinix equivalents on each architecture. The [bootstrap order](BOOTSTRAP.md) lists the toolchain, networking and desktop prerequisites. To reproduce the v3.21 input inventory for either release, compile the inventory tool against the same `alpinecore` module used by the image builder. Supply the unpacked main and community APKINDEX files for that architecture: ```sh v -path "$vinix_checkout/build-support|@vlib|@vmodules" -o /tmp/release-closure tools/release-closure.v /tmp/release-closure x86_64 profiles.tsv "$main_index" "$community_index" > "$state/release-closure.tsv" ``` The output identifies the source origin for each split binary package and the profiles that require it. The pinned older graphics stack is listed in `PROFILES.md`. The native recipes declare additional build-time dependencies. ## Bootstrap a build root Use an ordinary user on x86-64 Linux with vpac's native Vile builder. The tested vpac revision is `e7147c7fac0dc130fe03c7accf07c75a88188d3d`. The first stages need GNU Make, GCC, binutils, patch, coreutils, sed, rsync, curl and bsdtar with bzip2 and zstd support. BusyBox's upstream Makefiles use the host shell and its bootstrap configuration uses Linux userspace headers. The test feed utility uses V, GnuPG, repo-add and unprivileged Linux user namespaces. From the root of this checkout, build musl and the Linux UAPI headers, install both into an empty SDK through vpac and compile BusyBox against it. ```sh work=$(mktemp -d) cp -R musl linux-headers busybox "$work/" export MAKEFLAGS=-j2 CMAKE_BUILD_PARALLEL_LEVEL=2 v -o "$work/feed" tests/feed.v v -o "$work/vinix-cc" tools/vinix-cc.v ln -s vinix-cc "$work/vinix-c++" export PATH="$work:$PATH" vpac --native-build "$work/musl/PKGBUILD.vile" "$work/musl.txt" vpac --native-build "$work/linux-headers/PKGBUILD.vile" "$work/headers.txt" "$work/feed" keys "$work/test-keys" "$work/feed" publish "$work/test-keys" "$work/first-repo" x86_64 "$(cat "$work/musl.txt")" "$(cat "$work/headers.txt")" "$work/feed" install "$work/test-keys" "$work/first-repo" x86_64 "$work/sdk" musl linux-headers export VPAC_MAKEPKG_ROOT="$work/sdk/root" export VPAC_MAKEPKG_DB="$work/sdk/db" export VINIX_SYSROOT="$VPAC_MAKEPKG_ROOT" vpac --native-build "$work/busybox/PKGBUILD.vile" "$work/busybox.txt" ``` The manifests contain the paths to the completed archives. Musl includes its headers, startup objects, shared loader and static library. The BusyBox recipe checks the final linker map and header dependencies against the installed SDK. To install both packages by name into a new root, publish a new test feed: ```sh "$work/feed" publish "$work/test-keys" "$work/repo" x86_64 "$(cat "$work/musl.txt")" "$(cat "$work/busybox.txt")" "$work/feed" install "$work/test-keys" "$work/repo" x86_64 "$work/client" musl busybox installed_root="$work/client/root" v -o "$work/installed-root" tests/installed-root.v "$work/installed-root" x86_64 "$work/client" ``` ## Verify on Vinix Install the signed BusyBox package with vpac into a fresh test root. On an x86-64 Linux host with V, musl-gcc, bsdtar, GNU tar, xorriso and QEMU, use the installed root and an existing BIOS-capable amd64 Vinix ISO: ```sh v -o "$work/boot-test" tests/busybox/boot.v "$work/boot-test" "$installed_root" "$vinix_iso" "$work/guest" ``` The test takes the kernel and bootloader from the supplied ISO and assembles a new initramfs with the installed package and a test probe. It boots the package's `/sbin/init`, exercises `ash` and the applet symlinks, and compares the BusyBox executable's SHA-256 inside the guest to the installed copy. The serial transcript goes into `$work/guest/serial.log`. To try commands in the packaged shell, generate the interactive image and attach QEMU's serial port to your terminal: ```sh "$work/boot-test" "$installed_root" "$vinix_iso" "$work/shell" --shell qemu-system-x86_64 -machine q35 -cpu max -m 384 -smp 2 \ -cdrom "$work/shell/busybox-shell.iso" -nic none \ -display none -monitor none -serial stdio ``` The `vinix>` prompt accepts one line at a time through a small serial input helper. Try `uname -sm` or `busybox --list`. Use `poweroff -f` to exit. ### Bootstrap build of 2026-11-29 Port revision `2ce123aa4cd34b797bc850d8bd3381881abbe0f7` built on an x86-64 Ubuntu 24.04 builder, using musl 1.2.4 and one make job. The build cgroup peaked at 172,777,472 bytes with a 1 GiB hard limit and zero OOM events. The resulting 189,662-byte package has SHA-256 `4a4c0bf02c75d7724cb53c7b0d5402fd1565c40d344e710790eee20bc8d2f14c`. vpac installed the package by name from a test-signed file repository into a fresh root. The diskless Vinix guest booted its init and reported the same BusyBox SHA-256 as the host. The package, repository, transaction logs and guest transcripts are under `~/.local/state/vinix/ports/busybox-V5lqcr/` on the build operator's machine. The `repo/` directory includes the public test key. The release builder will need its own signing key. Current vpac archives include temporary build paths and file timestamps, so the digest identifies this particular build.