Bluetail OS

This forums is for OS project announcements including project openings, new releases, update notices, test requests, and job openings (both paying and volunteer).
Post Reply
Hadlock
Posts: 4
Joined: Sun Oct 25, 2026 6:08 am
Libera.chat IRC: Hadlock

Bluetail OS

Post by Hadlock »

Image

Bluetail OS! And CHANIX kernel

Download an image to run on your Raspberry Pi 3 A+ here: https://bluetailos.s3.us-west-2.amazona ... v0.0.1.img

Right now it's live on a qemu on a t4-large on aws live right now with all the ports open https://bluetail.blue/
In theory by tonight there should be a button to download Bluetail FROM bluetail on the link above.

I put together an OS in Rust and Assembly. It boots in QEMU on a Raspberry Pi 3 A+ hardware target... and on a bare metal Raspberry Pi 3 A+! This has no overlap with any preexisting stuff, greenfield project.

Tested hardware support
HDMI out (includes a System 6 inspired GUI)
TP Link UE306 USB ethernet adapter
USB Mouse, Keyboard
High speed USB hub
UART incl shell access

Network

Code: Select all

| Guest port | Service | AWS access |
|---:|---|---|
| 22 | SSH | Open publicly and forwarded to the guest. TCP connects, but SSH login has not yet been verified. |
| 80 | HTTP, including /healthz and /metrics | Open publicly through Caddy. |
| 443 | Bluetail OS HTTPS website | Open publicly through Caddy. |
| 4318 | OpenTelemetry | sure |
| 5709 | slopsrv | sure |
| 8080 | Additional HTTPS service | sure |
| 9000 | RustFS | sure |
Std library support (so far)

Code: Select all

| Catalog | Total catalog | Exists | Exists % | Smoke tested | Smoke % |
|---|---:|---:|---:|---:|---:|
| libc | 2,598 | 759 | 29.21% | 380 | 14.63% |
| GNU libstdc++ | 3,534 | 68 | 1.92% | 68 | 1.92% |
| LLVM libc++ | 3,534 | 55 | 1.56% | 55 | 1.56% |
| Rust core | 2,120 | 740 | 34.91% | 96 | 4.53% |
| Rust alloc | 357 | 153 | 42.86% | 27 | 7.56% |
| Rust std | 705 | 221 | 31.35% | 221 | 31.35% |
| Go std | 5,313 | 115 | 2.16% | 96 | 1.81% |
| Total | 18,161 | 2,111 | 11.62% | 943 | 5.19% |
And then some popular applications compile and run

Code: Select all

C

CPython 3.13.16
curl 8.23.0 / libcurl
FFmpeg / ffprobe 9.0.2
Lua 5.5.1
nginx
OpenSSH client/server/SFTP
PostgreSQL
Upstream Git 2.56.0
zlib / minigzip 1.3.2

C++

aria2
CMake 4.4.4
DuckDB 2.0.0
Exiv2 0.28.9
IniPP 1.0.13 example
JsonCpp 1.9.7 example
MAME
Native GCC and LLVM C/C++ tools
Ninja 1.13.2
qpdf 12.4.2

Rust

base64 0.23.1 CLI
bat 0.26.1
Helix
mdBook 0.5.4
Native Cargo
Native rustc / LLD
OpenAI Codex CLI
pulldown-cmark 0.13.4
ripgrep 15.2.0
Typst 0.15.1
Wasmtime

Golang

Caddy 2.11.7
esbuild 0.28.2
Go hello
gomplate 5.2.0
Helm 4.3.1
kubectl 1.37.1
micro editor
NATS Server
rclone 1.75.2
restic 0.19.1
SOPS 3.13.3
Task 3.54.0
I promised I would announce this before my friend's birthday and I have to go run to the party, source code to follow this weekend! I need to clean it up first. Cheers
Hadlock
Posts: 4
Joined: Sun Oct 25, 2026 6:08 am
Libera.chat IRC: Hadlock

Re: Bluetail OS

Post by Hadlock »

Gimp 3.2.6 on GTK 3 works now

Too many changes to count. Refactored most of the large files, no one file is > 2400 LOC

"Real" syscalls = 159 although the ABI has a 240+ rows due to making sqlite and other very opinionated things part of the kernel

Image

library support (a lot of this overlaps, so take with a grain of salt)

Code: Select all

+---------------------------+--------+--------+----------+
| Catalog                   |  Total | Exists | Exists % |
+---------------------------+--------+--------+----------+
| libc                      |  2,598 |    792 |   30.48% |
| GNU C++ - libstdcxx       |  3,534 |     91 |    2.57% |
| LLVM C++ - libcxx         |  3,534 |     55 |    1.56% |
| Rust core                 |  2,120 |    742 |   35.00% |
| Rust alloc                |    357 |    160 |   44.82% |
| Rust std                  |    705 |    223 |   31.63% |
| Go std                    |  5,313 |    117 |    2.20% |
| musl                      |  1,539 |    789 |   51.27% |
| newlib                    |  1,448 |    549 |   37.91% |
| libm                      |    283 |     47 |   16.61% |
| libunwind                 |     41 |     31 |   75.61% |
| Win16                     |  1,608 |    214 |   13.31% |
| Win32                     |      0 |      0 |        - |
| GTK 1.x                   |  1,236 |     28 |    2.27% |
| GTK 2.x                   |  3,861 |     59 |    1.53% |
| GTK 3.x + GDK/X11         |  5,220 |     84 |    1.61% |
| Xlib                      |    769 |     58 |    7.54% |
| X11 core protocol         |    120 |      0 |    0.00% |
| Mac68k                    |  1,214 |    257 |   21.17% |
+---------------------------+--------+--------+----------+
| Total                     | 35,500 |  4,296 |   12.10% |
+---------------------------+--------+--------+----------+
Hadlock
Posts: 4
Joined: Sun Oct 25, 2026 6:08 am
Libera.chat IRC: Hadlock

Re: Bluetail OS

Post by Hadlock »

Added kernel namespaces, cgroups v2
Wrote my first GPU pixels to the screen (unreliable though)
The custom hypervisor I use to hot-load the kernel is great for testing on the raspberry pi - no need to manually swap sd cards or power cycle the board

I've been pretty agressive trimming files down to < 2500 LOC
Just got done verifying new builds when cloned work out of the box when you run make run
Code and documentation cleanup pass soon

Just about ready to release a v0.0.2 image

I have two benchmark suites now i am using as part of my kernel perf tuning, a 12 row and a 20 row, here are some results from my initial perf tuning pass. These are literally the linux benchmark .c files from the bench folder, run with the default settings.

adding namespaces and cgroups 2x'd my 3919 numbers, so uh should fix that next. big perf campaign coming up, ttf font perf is pretty atrocious as well. the actual "system r" GUI is extremely responsive though, particularly for raspberry pi 3 a+ class hardware. performance is equivalent on my bare metal test system as well.

Code: Select all

Original: build 3632 / ABI 1.137
Optimized: build 3913 / ABI 1.142 (80b0cb3)

+----+-----------------------+--------------------+--------------------+--------------------+------------------+--------------------+
| #  | Benchmark             |       RPi OS 11/10 |            BT 3632 |            BT 3913 | BT gain          | BT vs old Pi       |
+----+-----------------------+--------------------+--------------------+--------------------+------------------+--------------------+
| 1  | syscall basic         |       4,017.781 ms |      94,971.211 ms |      20,092.477 ms | 4.73x faster     | 5.00x slower       |
| 2  | sched pipe            |      32,445.239 ms |      83,696.246 ms |      46,023.620 ms | 1.82x faster     | 1.42x slower       |
| 3  | mem memcpy            |       187.31 MiB/s |         6.45 MiB/s |       405.18 MiB/s | 62.82x faster    | 2.16x faster       |
| 4  | futex wake            |          63.157 ms |         672.623 ms |         336.819 ms | 2.00x faster     | 5.33x slower       |
| 5  | mem mmap              |      31,315.542 ms |       1,204.783 ms |         890.566 ms | 1.35x faster     | 35.16x faster*     |
| 6  | mem memset            |       431.20 MiB/s |       102.29 MiB/s |     1,303.95 MiB/s | 12.75x faster    | 3.02x faster       |
| 7  | epoll wait            |           9.245 ms |         401.900 ms |          72.897 ms | 5.51x faster     | 7.89x slower       |
| 8  | futex wake-parallel   |          97.086 ms |         803.383 ms |         266.954 ms | 3.01x faster     | 2.75x slower       |
| 9  | epoll ctl             |           4.313 ms |          76.833 ms |          30.998 ms | 2.48x faster     | 7.19x slower       |
| 10 | futex hash            |       1,976.511 ms |     115,633.467 ms |       8,828.817 ms | 13.10x faster    | 4.47x slower       |
| 11 | sched messaging       |          98.162 ms |       2,829.920 ms |       2,277.001 ms | 1.24x faster     | 23.20x slower      |
| 12 | atomic cas            |         471.956 ms |         828.526 ms |         422.433 ms | 1.96x faster     | 1.12x faster       |
+----+-----------------------+--------------------+--------------------+--------------------+------------------+--------------------+
And a screenshot of several things open, hopefully this doesn't break tables too hard

Image
Hadlock
Posts: 4
Joined: Sun Oct 25, 2026 6:08 am
Libera.chat IRC: Hadlock

Re: Bluetail OS

Post by Hadlock »

Proof of life on bare metal (raspberry pi 3 a+)

Launching from suckless' st terminal (boring do not watch), also me struggling to find out I have a massive USB keyboard input regression (again :roll: )
https://hadlocks-bucket.s3.us-west-1.am ... /36957.mp4

Loading spreadsheet app (https://github.com/storytold/gridcraft/ ) from SD card filesystem and launching into (marginally) responsive GUI on a raspberry pi 3 a+ bare metal
https://hadlocks-bucket.s3.us-west-1.am ... /36958.mp4

of note gridcraft uses rust's egui + eframe which in this case needs a GLES target, initially brought up using Portable GL's software rasterized; however via mesa 25.x magic, was able to achieve VC4 hardware GPU bring up and all that. GL Teapot (1600 vertices, 3 light sources) unrestricted runs at 580fps avg and will briefly pop into 700fps so I think I've resolved a number of process management/scheduling problems on the kernel side, made a number of improvements regarding SMP

I have a couple more things I want to do before releasing the november v0.0.2 image and source:
  • add zsh shell (mine is horrible and the human facing behavior is worse)
  • chrome/chromium
  • do another perf pass on benchmarks
  • bCRI (container runtime)
  • more testing of the package manager
  • build a unified bare metal raspberry pi 3/4/5 image (currently only 3/5 supported, 3 gpu supported, 5 not yet)
I also have a risc-v board (orange pi) with UART I'd like to get this marginally up and running there before releasing the source, and I just put in a black friday order for an expressif esp32-s31 (risc-v with mmu) which has 16mb ram, but the os + gui only uses ~7mb at idle, it's a tight fit but should boot and run on it's 16mb ram
Post Reply