vasilito a399e7da08 cleanup: remove stale tracked files (1.3M lines)
Survey of the working tree found 83 tracked files
that no longer exist on disk (tracked-but-missing).
Most were inside source/ dirs (extraction differences
between git revisions) and are out of scope for this
commit. The 28 non-source tracked-but-missing files
fell into these categories:

  1. Broken self-referential symlinks in driver and
     tui recipes (5 files):
     - local/recipes/drivers/ehcid/ehcid ->
       ../../local/recipes/drivers/ehcid (loops)
     - local/recipes/drivers/ohcid/ohcid -> ...
     - local/recipes/drivers/uhcid/uhcid -> ...
     - local/recipes/drivers/usb-core/usb-core -> ...
     - local/recipes/tui/mc/mc -> ...
     These were created by the now-removed
     apply-patches.sh symlink-overlay system. Per
     AGENTS.md § 'NO OVERLAY-STYLE PATCHES', the
     overlay pattern is retired. Recipes now use the
     `path = 'source'` form in [source] blocks
     pointing at the in-tree Red Bear fork. The
     self-referential symlinks broke because the
     overlay indirection was removed.

  2. Broken absolute-path symlinks in gpu/driver
     recipes (2 files):
     - local/recipes/gpu/drivers/linux-kpi/source
       -> /mnt/data/homes/kellito/Builds/rbos/...
     - local/recipes/gpu/drivers/redox-driver-sys/source
       -> /mnt/data/homes/kellito/Builds/rbos/...
     These were committed on a different filesystem
     layout. The actual source trees are in
     `local/sources/{linux-kpi,redox-driver-sys}/`
     and are loaded via `path = 'source'` config.

  3. Tracked empty `~` (emacs backup) files in
     autotools-generated source dirs (13 files).
     Autotools regen produces `configure~`,
     `config.h.in~`, etc. whenever a developer runs
     `autoreconf` in the source dir. These are
     ephemeral working files, not upstream source.
     Re-running the cookbook's autoreconf will
     regenerate them on the next fetch.

  4. Tracked-but-missing upstream WIP recipes
     (12 recipes, 596 files):
     - recipes/wip/dev/build-system/{meson,ninja-build}
     - recipes/wip/dev/other/{bison,flex}
     - recipes/wip/libs/gnome/libepoxy
     - recipes/wip/libs/other/m4
     - recipes/wip/libs/qt/qt6/{qt6-sensors,
       qt6-sensors-local}
     - recipes/wip/wayland/qt6-wayland-smoke
     - recipes/wip/x11/{libxau,libxcb,x11proto}
     These were tracked in the upstream Redox WIP
     area but the underlying dirs/files no longer
     exist on disk (likely removed when upstream
     WIP was reorganized). They were never
     referenced by any `config/redbear-*.toml`
     and have no surviving tree dependencies.

  5. Top-level `gparted-git/` orphan (4 files):
     A staging dir from a previous attempt to add a
     gparted recipe (RBPKGBUILD + import/). The recipe
     was never finished and the postmortem H-4 says
     it was 'removed' but the dir persisted.

  6. `recipes/gpu/drivers` tracked as a file blob
     but working tree has it as a directory.
     Tree conflict from a prior overlay layout.

.gitignore additions:
  - `*\~` (emacs backup)
  - `.*.swp`, `.*.swo` (vim swap)
  These patterns prevent future accidental commits
  of ephemeral editor / autotools-regen files.

Net effect: 617 files removed, 1,304,942 lines
deleted from tracked history, 0 lines added. The
working tree is now 0 tracked-but-missing files
outside of source/ dirs (source/ extraction
differences are out of scope for this commit).
2026-06-13 00:26:21 +03:00

Red Bear OS

Red Bear OS

A microkernel operating system written in Rust, derived from Redox OS

MIT x86_64 Status


What is Red Bear OS?

Red Bear OS is a general-purpose, Unix-like operating system with a microkernel architecture, written in Rust. It is a full fork of Redox OS, with added hardware support, filesystem drivers, and a KDE Plasma desktop path. The current development branch is 0.2.3 and the current Red Bear OS version is 0.2.3 (same as the branch name).

Goals:

  • AMD & Intel parity — first-class support for both platforms on bare metal
  • KDE Plasma desktop — Wayland-based desktop environment via the KWin compositor
  • Hardware GPU acceleration — AMD GPU (amdgpu) and Intel GPU drivers via redox-drm
  • Modern subsystems — USB, WiFi, Bluetooth, ext4, GRUB, D-Bus
  • Offline-first builds — reproducible from archived, BLAKE3-verified sources

Quick Start

Prerequisites

Linux x86_64 host with Rust nightly, QEMU, nasm, and standard build tools.
See the Redox Build Guide for full setup.

Build & Run

# Clone
git clone https://gitea.redbearos.org/vasilito/RedBear-OS.git
cd RedBear-OS

# Build and run the desktop target in QEMU
./scripts/run.sh --build

# Build a live ISO for bare metal
./scripts/build-iso.sh redbear-full

# Build the text-only recovery target
./scripts/run.sh --build --config redbear-mini

Repository Hosting

The canonical Red Bear OS Git server is Gitea at https://gitea.redbearos.org/vasilito/RedBear-OS.git. GitHub is not a Red Bear OS source of truth and must not be used for pushes, issues, releases, or project coordination.

Public Scripts

Script Purpose
scripts/run.sh Build and run in QEMU (-b to build, -c <config> for target)
scripts/build-iso.sh Build a live ISO for bare-metal boot
scripts/build-all-isos.sh Build all live ISO targets
scripts/network-boot.sh PXE network boot helper
scripts/dual-boot.sh Dual-boot installation helper

Config Targets

Target Type Description
redbear-full Desktop Wayland + KDE + GPU drivers + D-Bus services
redbear-mini Console Text-only recovery / install target
redbear-grub Console Text-only with GRUB boot manager

Current Status

Red Bear OS boots to a login prompt in QEMU with working wired networking, D-Bus system bus, hardware detection daemons, and filesystem support (RedoxFS, ext4, FAT).

Area Status
Boot (ACPI/x2APIC/SMP) Bare-metal proven
Userspace drivers (PCI, storage, net) Working in QEMU
D-Bus system bus + services Working (login1, PolicyKit, UDisks, UPower)
ext4 / FAT filesystems Compiles, installer-wired
POSIX gaps (relibc) 🚧 Bounded Wayland-facing support
DRM/KMS display drivers 🚧 AMD + Intel compile; HW validation pending
Wayland compositor 🚧 Bounded proof; Qt6/KF6 clients crash at init
KDE Plasma desktop 🔄 In progress (Qt6/KF6 compile; KWin/QML blocked)
WiFi / Bluetooth 📋 Planned (architected, implementation pending)

How It Works

Red Bear OS uses a userspace driver model — all drivers run as unprivileged daemons:

Kernel (microkernel)
  └── schemes: memory, irq, event, pipe, debug
        └── Driver daemons (userspace)
              ├── pcid        → PCI enumeration
              ├── e1000d      → Intel ethernet
              ├── xhcid       → USB controller
              └── vesad       → Display framebuffer

The kernel provides minimal services (memory, interrupts, IPC). Everything else — filesystems, networking, graphics, input — runs in userspace.

Documentation

Contributing

Red Bear OS uses a full fork model. Upstream Redox sources are frozen and archived. All custom work lives in local/:

local/
├── sources/     # Red Bear source forks (git repos, directly editable)
├── recipes/     # Custom packages (drivers, GPU, system)
├── docs/        # Integration and planning docs
└── scripts/     # Build, test, and release tooling

We welcome contributions made with or without AI assistance — we care about quality, not how the code was produced.

License

MIT — same as upstream Redox OS.

S
Description
RedBear Operating System, based on RedoxOS. Licenced under MIT license.
https://redbearos.org
Readme MIT 20 GiB
Languages
C 43.9%
C++ 23.5%
Makefile 7.3%
Python 3.7%
JavaScript 3.4%
Other 17.1%