commit 4e0f8b3b879db9c5cfaa232d037c92e0c669b1bd Author: blazblue547-afk Date: Sun Jun 14 08:12:17 2026 -0400 Nova OS 1.0 Starlight — Linux 7.0.12, busybox userspace, Raspberry Pi 5 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d88e5e8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +build/ +*.img +*.tar.xz +*.tar.bz2 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d706001 --- /dev/null +++ b/Makefile @@ -0,0 +1,51 @@ +# Nova OS Build System +# Produces a bootable image for Raspberry Pi 5 + +NOVA_ROOT := $(dir $(lastword $(MAKEFILE_LIST))) +BUILD_DIR := $(NOVA_ROOT)build +ROOTFS := $(NOVA_ROOT)rootfs +BOOT := $(NOVA_ROOT)boot +IMAGE := $(NOVA_ROOT)nova-os-1.0-starlight.img +SIZE_MB := 1024 + +KERNEL_DIR := $(BUILD_DIR)/linux-7.0.12 +BUSYBOX_DIR := $(BUILD_DIR)/busybox-1.36.1 +ARCH := arm64 +CROSS := aarch64-linux-gnu- + +.PHONY: all kernel busybox rootfs image clean + +all: kernel busybox rootfs image + @echo "Nova OS build complete: $(IMAGE)" + +kernel: + cd $(KERNEL_DIR) && \ + ARCH=$(ARCH) CROSS_COMPILE=$(CROSS) make defconfig && \ + ARCH=$(ARCH) CROSS_COMPILE=$(CROSS) scripts/kconfig/merge_config.sh .config novaos_fragment.config && \ + ARCH=$(ARCH) CROSS_COMPILE=$(CROSS) make olddefconfig && \ + ARCH=$(ARCH) CROSS_COMPILE=$(CROSS) make -j4 Image modules dtbs + +busybox: + cd $(BUSYBOX_DIR) && \ + make defconfig && \ + sed -i 's/^# CONFIG_STATIC is not set/CONFIG_STATIC=y/' .config && \ + make -j4 && \ + make CONFIG_PREFIX=$(ROOTFS) install + +rootfs: + cp $(NOVA_ROOT)init $(ROOTFS)/init + chmod +x $(ROOTFS)/init + chmod +x $(ROOTFS)/etc/init.d/rcS + mkdir -p $(ROOTFS)/proc $(ROOTFS)/sys $(ROOTFS)/dev $(ROOTFS)/tmp $(ROOTFS)/run + +image: + dd if=/dev/zero of=$(IMAGE) bs=1M count=$(SIZE_MB) + parted -s $(IMAGE) mklabel msdos + parted -s $(IMAGE) mkpart primary fat32 1MiB 257MiB + parted -s $(IMAGE) mkpart primary ext4 257MiB 100% + @echo "Image created. Flash to SD: dd if=$(IMAGE) of=/dev/mmcblkX bs=4M" + +clean: + rm -f $(IMAGE) + cd $(KERNEL_DIR) && make clean + cd $(BUSYBOX_DIR) && make clean diff --git a/README.md b/README.md new file mode 100644 index 0000000..6db403f --- /dev/null +++ b/README.md @@ -0,0 +1,67 @@ +# ✦ Nova OS + +**Burn bright, run light.** + +A minimalist Linux distribution built from the latest mainline kernel and busybox userspace. Designed for the Raspberry Pi 5, Nova OS strips away everything unnecessary — no systemd, no package manager, no bloat. Just the kernel, a shell, and you. + +``` + ╔══════════════════════════════════════╗ + ║ N O V A O S ║ + ║ kernel 7.0.12-nova-os ║ + ║ "Burn bright, run light." ║ + ╚══════════════════════════════════════╝ +``` + +## Specifications + +| Component | Version | +|-------------|--------------------| +| Kernel | Linux 7.0.12-nova-os | +| Userspace | BusyBox 1.36.1 | +| Shell | ash (busybox) | +| Init | Custom (busybox init)| +| Architecture | aarch64 (ARM64) | +| Target | Raspberry Pi 5 | +| Image size | ~1 GB | + +## Build from Source + +```bash +make all # Build kernel + busybox + rootfs + image +make kernel # Build only the kernel +make busybox # Build only busybox +make image # Package into bootable .img +``` + +## Flash to SD Card + +```bash +sudo dd if=nova-os-1.0-starlight.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/ # Root filesystem +│ ├── init # Init script +│ └── etc/ # Config files +│ ├── issue # Pre-login banner +│ ├── motd # Post-login banner +│ ├── hostname # "nova-os" +│ ├── os-release # OS identity +│ ├── fstab # Mount table +│ ├── inittab # Init table +│ └── profile # Shell config +└── build/ # Build artifacts + ├── linux-7.0.12/ + └── busybox-1.36.1/ +``` + +## License + +Nova OS inherits the GPLv2 license from the Linux kernel. diff --git a/boot/cmdline.txt b/boot/cmdline.txt new file mode 100644 index 0000000..d814078 --- /dev/null +++ b/boot/cmdline.txt @@ -0,0 +1 @@ +console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait quiet loglevel=3 diff --git a/boot/config.txt b/boot/config.txt new file mode 100644 index 0000000..d56c6e2 --- /dev/null +++ b/boot/config.txt @@ -0,0 +1,17 @@ +# Nova OS - Raspberry Pi 5 Boot Configuration +# Linux 7.0.12-nova-os + +[all] +kernel=Image +arm_64bit=1 +enable_uart=1 +dtparam=audio=on +dtoverlay=vc4-kms-v3d +gpu_mem=64 +max_framebuffers=2 + +# Nova OS splash +disable_splash=0 + +[pi5] +kernel=Image diff --git a/rootfs/etc/fstab b/rootfs/etc/fstab new file mode 100644 index 0000000..8cfeb0a --- /dev/null +++ b/rootfs/etc/fstab @@ -0,0 +1,5 @@ +Nova OS /dev/mmcblk0p2 / ext4 defaults,noatime 0 1 +proc /proc proc defaults 0 0 +sysfs /sys sysfs defaults 0 0 +devtmpfs /dev devtmpfs defaults 0 0 +tmpfs /tmp tmpfs defaults 0 0 diff --git a/rootfs/etc/hostname b/rootfs/etc/hostname new file mode 100644 index 0000000..4a4c015 --- /dev/null +++ b/rootfs/etc/hostname @@ -0,0 +1 @@ +Nova OS diff --git a/rootfs/etc/init.d/rcS b/rootfs/etc/init.d/rcS new file mode 100644 index 0000000..c10c23f --- /dev/null +++ b/rootfs/etc/init.d/rcS @@ -0,0 +1,13 @@ +#!/bin/sh +# Nova OS rcS — early boot + +echo "Nova OS booting..." + +mount -t proc proc /proc +mount -t sysfs sysfs /sys +mount -t devtmpfs devtmpfs /dev +mount -t tmpfs tmpfs /tmp +mount -t tmpfs tmpfs /run + +mdev -s +hostname nova-os diff --git a/rootfs/etc/inittab b/rootfs/etc/inittab new file mode 100644 index 0000000..b567dcc --- /dev/null +++ b/rootfs/etc/inittab @@ -0,0 +1,7 @@ +# Nova OS inittab +::sysinit:/etc/init.d/rcS +::sysinit:/bin/hostname -F /etc/hostname +::respawn:/sbin/getty 38400 tty1 +::respawn:/sbin/getty 38400 ttyAMA0 +::ctrlaltdel:/sbin/reboot +::shutdown:/bin/umount -a -r diff --git a/rootfs/etc/issue b/rootfs/etc/issue new file mode 100644 index 0000000..d9474f1 --- /dev/null +++ b/rootfs/etc/issue @@ -0,0 +1,4 @@ +Nova OS 1.0 "Starlight" — Linux 7.0.12-nova-os +Burn bright, run light. + +https://github.com/blazblue547-afk/nova-os diff --git a/rootfs/etc/motd b/rootfs/etc/motd new file mode 100644 index 0000000..ec06b1a --- /dev/null +++ b/rootfs/etc/motd @@ -0,0 +1,17 @@ + + ╔══════════════════════════════════════╗ + ║ N O V A O S ║ + ║ kernel 7.0.12-nova-os ║ + ║ \"Burn bright, run light.\" ║ + ╚══════════════════════════════════════╝ + +Welcome to Nova OS — a lightweight, blazing fast Linux distribution +built from the latest mainline kernel and busybox userspace. + + • Kernel: Linux 7.0.12-nova-os + • Arch: aarch64 (ARM64) + • Shell: busybox ash + • Init: custom (minimal) + • Target: Raspberry Pi 5 + +Type 'help' for available commands. diff --git a/rootfs/etc/os-release b/rootfs/etc/os-release new file mode 100644 index 0000000..0b234d8 --- /dev/null +++ b/rootfs/etc/os-release @@ -0,0 +1,7 @@ +NAME="Nova OS" +VERSION="1.0 (Starlight)" +ID=nova-os +VERSION_ID=1.0 +PRETTY_NAME="Nova OS 1.0 Starlight" +HOME_URL="https://github.com/blazblue547-afk/nova-os" +KERNEL="Linux 7.0.12-nova-os" diff --git a/rootfs/etc/profile b/rootfs/etc/profile new file mode 100644 index 0000000..e2d88f8 --- /dev/null +++ b/rootfs/etc/profile @@ -0,0 +1,15 @@ +# +# Nova OS shell profile +# + +# Set prompt +export PS1='\e[1;36mnova-os\e[0m:\e[1;35m\w\e[0m# ' + +# Aliases +alias ls='ls --color=auto' +alias ll='ls -la' +alias nova='cat /etc/motd' + +# Welcome +cat /etc/issue +echo "" diff --git a/rootfs/init b/rootfs/init new file mode 100755 index 0000000..e51142f --- /dev/null +++ b/rootfs/init @@ -0,0 +1,41 @@ +#!/bin/busybox sh +# +# Nova OS - init +# Linux 7.0.12-nova-os +# + +echo "" +echo " ╔══════════════════════════════════════╗" +echo " ║ N O V A O S ║" +echo " ║ kernel 7.0.12-nova-os ║" +echo " ║ \"Burn bright, run light.\" ║" +echo " ╚══════════════════════════════════════╝" +echo "" + +# Mount essential filesystems +mount -t proc proc /proc +mount -t sysfs sysfs /sys +mount -t devtmpfs devtmpfs /dev +mount -t tmpfs tmpfs /tmp +mount -t tmpfs tmpfs /run + +# Populate /dev +mdev -s + +# Set hostname +hostname nova-os + +echo ":: Mounting root filesystem..." +mount -o remount,rw / + +echo ":: Setting up loopback..." +ifconfig lo 127.0.0.1 up + +echo ":: Starting syslogd..." +syslogd -t + +echo ":: Nova OS ready." +echo "" + +# Spawn shell on tty1 +setsid cttyhack /bin/sh