v3.0: From-source build — systemd 260 + BusyBox 1.36.1

- Compile systemd 260.2 from upstream source (meson/ninja)
- Compile BusyBox 1.36.1 static from source
- Zero Debian binaries in rootfs (kernel + systemd + busybox all from source)
- 56 MB rootfs with networkd, resolved, and getty
- Custom Nova splash service at boot
- Runtime libs (glibc, libcrypto, etc.) from host toolchain
- Updated mkimage.sh, Makefile, README for from-source workflow
- Output: nova-os-3.0-from-source.img (1.5 GB)
This commit is contained in:
blazblue547-afk committed 2026-06-14 10:14:42 -04:00
1 parent 8a622dfb9e
commit 2dfd0999db
4 files changed
+103 -167

No files matched your search

+50 -48
View File
@@ -2,84 +2,86 @@
**Burn bright, run light.**
A lightweight Linux distribution built from the latest mainline kernel and a minimal Debian userspace. Designed for the Raspberry Pi 5, Nova OS pairs a custom-compiled kernel with systemd for modern init and service management — keeping things small but capable.
A from-source Linux distribution — every significant binary compiled on this machine. No Debian packages, no prebuilt binaries (except the C runtime toolchain). Designed for the Raspberry Pi 5.
```
╔══════════════════════════════════════════╗
║ N O V A O S ║
║ kernel 7.0.12-nova-os ║
║ "Burn bright, run light." ║
║ systemd 260 · BusyBox 1.36.1 ║
╚══════════════════════════════════════════╝
```
## Specifications
| Component | Version |
|-------------|----------------------|
| Kernel | Linux 7.0.12-nova-os |
| Userspace | Debian Bookworm (minbase) |
| Init | systemd 252 |
| Shell | bash |
| Architecture | aarch64 (ARM64) |
| Target | Raspberry Pi 5 (BCM2712) |
| Image size | ~1.5 GB |
| Component | Version | Built From |
|-------------|----------------------|----------------|
| Kernel | Linux 7.0.12 | kernel.org source |
| Init system | systemd 260.2 | github.com/systemd/systemd |
| Core utils | BusyBox 1.36.1 | busybox.net source |
| Shell | ash (BusyBox) | busybox.net source |
| Architecture | aarch64 (ARM64) | — |
| Target | Raspberry Pi 5 (BCM2712) | — |
| Image size | ~1.5 GB | — |
| Rootfs size | ~56 MB | — |
## v2.0 — What Changed
## What Makes This Different
- **systemd replaces BusyBox init** — proper service management, cgroups, socket activation
- **Debian minbase userspace** — apt-ready, 344MB rootfs
- **systemd-networkd** — DHCP networking out of the box
- **systemd-resolved** — DNS resolution
- **Nova splash service** — boot banner on tty1
- **Root password:** `nova` (change on first login)
- **Zero Debian binaries** — systemd, BusyBox, and the kernel are all compiled from upstream source
- **systemd 260** — latest stable, configured with meson/ninja, minimal feature set
- **BusyBox 1.36.1** — static binary providing all Unix utilities (ash shell, coreutils, networking, etc.)
- **56 MB rootfs** — just the essentials: init, shell, networkd, resolved
- **Runtime libraries** — glibc, libcrypto, zlib, zstd from host toolchain (full LFS bootstrap coming in v4.0)
## Build from Source
```bash
make kernel # Build the kernel (45 min on Pi 5)
make image # Package into bootable .img (requires sudo)
make all # Kernel + image
# Prerequisites
sudo apt-get install meson ninja-build gcc gperf gettext python3-jinja2
# 1. Build the kernel (45 min on Pi 5)
make kernel
# 2. Build systemd
make systemd
# 3. Build BusyBox
make busybox
# 4. Assemble rootfs + image
make image
```
The rootfs is pre-built via debootstrap. To rebuild it:
```bash
sudo apt-get install debootstrap
sudo debootstrap --arch=arm64 --variant=minbase \
--include=systemd,systemd-sysv,udev,dbus,apt,kmod,netbase \
bookworm rootfs http://deb.debian.org/debian
# Then customize: hostname, os-release, splash service, networking
```
Or just `make all` for the full pipeline.
## Flash to SD Card
```bash
sudo dd if=nova-os-2.0-systemd.img of=/dev/mmcblk0 bs=4M status=progress
sudo dd if=nova-os-3.0-from-source.img of=/dev/mmcblk0 bs=4M status=progress
```
## Directory Layout
```
nova-os/
├── Makefile # Build system
├── boot/ # Boot partition files
│ ├── config.txt # Pi bootloader config
│ └── cmdline.txt # Kernel command line
├── rootfs/ # Debian minbase + systemd rootfs
│ ├── bin/ # Essential binaries
│ ├── sbin/ # System binaries
│ │ └── init → /lib/systemd/systemd
│ ├── etc/
│ │ ├── systemd/ # systemd config + services
│ │ ├── hostname # "nova-os"
│ │ ├── os-release # OS identity
│ │ ├── motd # Login banner
│ │ └── fstab # Mount table
│ └── lib/systemd/ # systemd itself
└── build/ # Build artifacts
└── linux-7.0.12/ # Kernel source + build
├── Makefile # Build system
├── mkimage.sh # Image packager
├── boot/ # Pi boot partition files
│ ├── config.txt # Bootloader config
│ └── cmdline.txt # Kernel command line
├── rootfs-custom/ # Built root filesystem (~56 MB)
│ ├── sbin/init → /usr/lib/systemd/systemd
│ ├── bin/busybox # Static BusyBox binary
│ ├── lib/ # Runtime libraries
│ ├── usr/lib/systemd/ # systemd binaries
│ └── etc/ # System configuration
└── build/ # Build artifacts
├── linux-7.0.12/ # Kernel source + build
├── systemd-260.2/ # systemd source + build
└── busybox-1.36.1/ # BusyBox source + build
```
## License
Nova OS inherits the GPLv2 license from the Linux kernel.
Nova OS inherits the GPLv2 license from the Linux kernel. systemd is LGPLv2.1+. BusyBox is GPLv2.