Skip to content

GlowBarn OS - Paranormal Research Operating System built with Buildroot

License

Notifications You must be signed in to change notification settings

bad-antics/glowbarn-os

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌟 GlowBarn OS - Paranormal Research Operating System

A specialized, lightweight operating system for paranormal investigation, environmental monitoring, and multi-modal anomaly detection research.

🎯 Project Vision

GlowBarn OS is a custom Linux-based operating system designed to run the GlowBarn Paranormal Detection Suite as a first-class citizen. Built for deployment on:

  • Live USB - Boot on any x86_64 machine without installation
  • Raspberry Pi - ARM-based field deployment
  • Lightweight Machines - Intel NUC, mini PCs, old laptops
  • Dedicated Research Stations - Purpose-built detection hardware

πŸ—οΈ Architecture

flowchart TB
    subgraph stack["GlowBarn OS Stack"]
        subgraph app["Application Layer"]
            A1[Visual Console - egui native]
            A2[Sensor Fusion Engine]
            A3[Real-time Analysis]
            A4[Security & Encryption]
        end
        
        subgraph framework["Framework Layer"]
            F1[Hardware Abstraction Layer - HAL]
            F2[Sensor Drivers - I2C, SPI, GPIO, USB]
            F3[GPU Compute Interface - wgpu/Vulkan]
            F4[Network Stack - MQTT, WebSocket, BLE]
        end
        
        subgraph firmware["Firmware Layer"]
            W1[Custom initramfs]
            W2[Minimal systemd services]
            W3[Real-time kernel - PREEMPT_RT]
            W4[Secure boot chain]
        end
        
        subgraph base["Base System"]
            B1[Linux Kernel 6.x - custom config]
            B2[Musl libc / glibc]
            B3[BusyBox / CoreUtils]
            B4[SquashFS root - read-only, verified]
        end
    end
    
    app --> framework
    framework --> firmware
    firmware --> base
Loading

πŸ“‹ Roadmap

Phase 1: GlowBarn Application (CURRENT)

  • Core engine architecture
  • 50+ sensor type implementations
  • Analysis algorithms (entropy, anomaly detection)
  • Multi-sensor fusion (Bayesian, Dempster-Shafer)
  • Security module (AES-256-GCM, Argon2id)
  • Visual console UI
  • Streaming (MQTT, WebSocket)
  • Compilation & testing
  • Code signing
  • GitHub release

Phase 2: Hardware Abstraction Layer

  • I2C sensor interface (HMC5883L, BME280, MLX90614)
  • SPI sensor interface (ADS1256, MCP3008)
  • GPIO control (PIR, laser grid, PWM)
  • USB device enumeration (serial, HID)
  • Audio capture (EVP, infrasound, spirit box)
  • Camera/thermal imaging (V4L2, FLIR, night vision)
  • Software-defined radio (RTL-SDR, EMF analyzer)

Phase 3: Sensor Fusion Library

  • Statistical baseline tracking
  • Z-score anomaly detection
  • Multi-sensor event correlation
  • Sliding window analysis
  • EMA trend detection
  • CUSUM change point detection
  • Isolation Forest multivariate detection
  • Pattern matching

Phase 4: Application Framework

  • Main application daemon
  • CLI management tool
  • Event recording & playback
  • Trigger system
  • Configuration management
  • Session export

Phase 5: Firmware Foundation

  • Custom Linux kernel config
  • PREEMPT_RT patches for real-time
  • Minimal initramfs
  • SquashFS root filesystem
  • Overlay filesystem for persistence
  • Secure boot integration

Phase 4: Live USB Image

  • ISO generation pipeline
  • UEFI + Legacy BIOS boot
  • Persistence partition support
  • Auto-detection of sensors
  • Network configuration UI
  • First-boot wizard

Phase 5: Raspberry Pi Support

  • ARM64 cross-compilation
  • Pi-specific kernel config
  • GPIO sensor integration
  • Pi Camera support
  • Pi Sense HAT integration
  • SD card image generation

Phase 6: Distribution

  • Package repositories (APT, RPM, Pacman)
  • OTA update mechanism
  • Telemetry (opt-in)
  • Community sensor plugins
  • Research data sharing network

πŸ› οΈ Technology Stack

Component Technology
Application Rust, egui, wgpu
Build System Buildroot / Yocto
Kernel Linux 6.x + PREEMPT_RT
Init System systemd (minimal) or s6
Filesystem SquashFS + OverlayFS
Bootloader systemd-boot / GRUB2
Containers Podman (optional)

πŸ”§ Development Setup

# Clone the repository
git clone https://github.com/bad-antics/glowbarn-os.git
cd glowbarn-os

# Install build dependencies (Debian/Ubuntu)
sudo apt install build-essential git wget cpio unzip rsync bc \
    libncurses5-dev libssl-dev flex bison

# Initialize Buildroot
make setup

# Configure for target
make menuconfig

# Build the image
make build

# Create bootable USB
sudo dd if=output/glowbarn-os.img of=/dev/sdX bs=4M status=progress

πŸ“ Project Structure

glowbarn-os/
β”œβ”€β”€ Cargo.toml              # Rust workspace manifest
β”œβ”€β”€ hal/                    # Hardware Abstraction Layer (Rust)
β”‚   β”œβ”€β”€ Cargo.toml
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ lib.rs          # Core traits & HardwareManager
β”‚   β”‚   β”œβ”€β”€ i2c.rs          # I2C sensors
β”‚   β”‚   β”œβ”€β”€ spi.rs          # SPI devices
β”‚   β”‚   β”œβ”€β”€ gpio.rs         # GPIO control
β”‚   β”‚   β”œβ”€β”€ usb.rs          # USB enumeration
β”‚   β”‚   β”œβ”€β”€ audio.rs        # Audio capture
β”‚   β”‚   β”œβ”€β”€ camera.rs       # Camera/thermal
β”‚   β”‚   └── sdr.rs          # Software-defined radio
β”‚   └── examples/
β”œβ”€β”€ sensors/                # Sensor Fusion Library (Rust)
β”‚   β”œβ”€β”€ Cargo.toml
β”‚   └── src/
β”‚       β”œβ”€β”€ lib.rs          # Event types
β”‚       β”œβ”€β”€ fusion.rs       # Multi-sensor fusion
β”‚       β”œβ”€β”€ anomaly.rs      # Anomaly detection
β”‚       β”œβ”€β”€ recording.rs    # Session recording
β”‚       └── triggers.rs     # Trigger automation
β”œβ”€β”€ app/                    # Application (Rust)
β”‚   β”œβ”€β”€ Cargo.toml
β”‚   └── src/
β”‚       β”œβ”€β”€ main.rs         # Daemon
β”‚       β”œβ”€β”€ cli.rs          # CLI tool
β”‚       └── config.rs       # Configuration
β”œβ”€β”€ buildroot/              # Buildroot external tree
β”‚   β”œβ”€β”€ board/glowbarn/     # Board-specific files
β”‚   β”œβ”€β”€ configs/            # Defconfigs for targets
β”‚   β”œβ”€β”€ package/            # Custom packages
β”‚   └── overlay/            # Root filesystem overlay
β”œβ”€β”€ kernel/                 # Kernel patches and configs
β”œβ”€β”€ firmware/               # Firmware blobs (if needed)
β”œβ”€β”€ tools/                  # Build and deployment tools
β”œβ”€β”€ docs/                   # Documentation
└── tests/                  # Integration tests

🎯 Target Platforms

Platform Architecture Status
Generic x86_64 x86_64 Planned
Raspberry Pi 4/5 ARM64 Planned
Raspberry Pi Zero 2W ARM64 Planned
Intel NUC x86_64 Planned
NVIDIA Jetson Nano ARM64 Future

πŸ” Security Features

  • Secure Boot - Signed bootloader and kernel
  • dm-verity - Verified root filesystem
  • Full Disk Encryption - LUKS2 for data partitions
  • Measured Boot - TPM integration
  • Minimal Attack Surface - No unnecessary services
  • Automatic Updates - Signed OTA updates

πŸ“œ License

GNU General Public License v3.0 (GPLv3)

πŸ”— Related Projects


Status: οΏ½ Active Development - Rust HAL, Sensors, and Application crates complete

Last Updated: 2026-01-26


Rust Workspace

The core GlowBarn system is implemented as a Rust workspace with three crates:

β”œβ”€β”€ hal/                    # Hardware Abstraction Layer
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ lib.rs          # Core HAL traits & HardwareManager
β”‚   β”‚   β”œβ”€β”€ i2c.rs          # I2C: HMC5883L, BME280, MLX90614
β”‚   β”‚   β”œβ”€β”€ spi.rs          # SPI: ADS1256, MCP3008
β”‚   β”‚   β”œβ”€β”€ gpio.rs         # GPIO: PIR, laser grid, PWM
β”‚   β”‚   β”œβ”€β”€ usb.rs          # USB: serial, HID devices
β”‚   β”‚   β”œβ”€β”€ audio.rs        # Audio: EVP, infrasound, spirit box
β”‚   β”‚   β”œβ”€β”€ camera.rs       # Camera: V4L2, thermal, night vision
β”‚   β”‚   └── sdr.rs          # SDR: RTL-SDR, EMF analyzer
β”‚   └── examples/
β”‚       β”œβ”€β”€ sensor_demo.rs
β”‚       └── emf_scanner.rs
β”œβ”€β”€ sensors/                # Sensor Fusion & Analysis
β”‚   └── src/
β”‚       β”œβ”€β”€ lib.rs          # Event types, ParanormalEvent
β”‚       β”œβ”€β”€ fusion.rs       # FusionEngine, multi-sensor correlation
β”‚       β”œβ”€β”€ anomaly.rs      # Z-score, EMA, CUSUM, IsolationForest
β”‚       β”œβ”€β”€ recording.rs    # EventRecorder, session management
β”‚       └── triggers.rs     # TriggerManager, automated responses
└── app/                    # Main Application
    └── src/
        β”œβ”€β”€ main.rs         # Daemon entry point
        β”œβ”€β”€ cli.rs          # CLI management tool
        └── config.rs       # AppConfig

Building

# Build release binaries
cargo build --release

# Binaries are in target/release/
# - glowbarn       (daemon)
# - glowbarn-cli   (CLI tool)

CLI Usage

# Show system information
glowbarn-cli info

# List recording sessions
glowbarn-cli sessions

# Show events from a session
glowbarn-cli events <session-id>

# Export session to JSON
glowbarn-cli export <session-id> --format json

# Generate sample config
glowbarn-cli config > /etc/glowbarn/config.toml

Configuration

# /etc/glowbarn/config.toml or ~/.config/glowbarn/config.toml

location = "Investigation Site Alpha"
session_name = "session_001"
data_directory = "/var/lib/glowbarn/data"
poll_interval_ms = 100
anomaly_threshold = 3.0
min_confidence = 0.7
auto_record = true

Quick Start

Prerequisites

  • Linux build system (Ubuntu 22.04+ recommended)
  • 20GB+ free disk space
  • 4GB+ RAM

Build Steps

# Install dependencies
make deps

# Setup Buildroot
make setup

# Build for Raspberry Pi 4
make build-rpi4

# Or build for x86_64 PC
make build-x86

Write to SD Card

sudo dd if=buildroot-2024.02.9/output/images/glowbarn-os-rpi4.img of=/dev/sdX bs=4M status=progress

Default Login

  • Username: root
  • Password: paranormal

Access Web Dashboard

Open browser to: http://<device-ip>:8765


Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

GNU General Public License v3.0 - see LICENSE for details.

About

GlowBarn OS - Paranormal Research Operating System built with Buildroot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published