mirror of
https://github.com/blazblue547-afk/nova-os.git
synced 2026-12-02 14:54:17 -05:00
Nova OS 1.0 Starlight — Linux 7.0.12, busybox userspace, Raspberry Pi 5
This commit is contained in:
commit
4e0f8b3b87
14 files changed
+250
No files matched your search
@@ -0,0 +1,4 @@
|
|||||||
|
build/
|
||||||
|
*.img
|
||||||
|
*.tar.xz
|
||||||
|
*.tar.bz2
|
||||||
@@ -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
|
||||||
@@ -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.
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait quiet loglevel=3
|
||||||
@@ -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
|
||||||
@@ -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
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Nova OS
|
||||||
@@ -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
|
||||||
@@ -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
|
||||||
@@ -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
|
||||||
@@ -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.
|
||||||
@@ -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"
|
||||||
@@ -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 ""
|
||||||
Executable
+41
@@ -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
|
||||||
Reference in new issue
Block a user