Loading…
← BACK TO ARCHIVE

We rebuilt an entire kernel to change three lines

The stock FreeDOS KERNEL.SYS prints its banner from a packed image whose strings cannot be edited. For a 386 to boot saying CASTALIA DOS — and nothing else — we had to recompile the kernel from source.

DESCLASIFICADO · CASTALIA DOSTC 02:47:18 · LIVELAT 41.368° · LON -89.465° · PRINCETON● REC

The design rule of Castalia DOS is brutal in its simplicity: when the machine powers on, it opens onto CASTALIA and nothing else. No «FreeDOS kernel», no «Open Watcom», no licence wall scrolling past. It sounded like changing three strings. It ended up being a kernel rebuild.

The problem: strings inside a packed image

The stock KERNEL.SYS prints its sign-on and a licence block unconditionally, from a compressed (UPX) image whose strings cannot be edited in place. A hex edit corrupts the checksum; unpacking and repacking by hand is hopelessly fragile. The only honest route was the front door: rebuild the kernel from its own published source, with a single marked change in the sign-on routine, and ship it uncompressed.

FreeDOS explicitly permits this white-label step, and we do it in the open: its copyright and licence travel with the source the build gathers into third_party/, in the licence tree, and on the system’s own About screen. Honesty was non-negotiable: the banner says CASTALIA DOS, and the About says «Built on FreeDOS (GPLv2+)». Both are true.

It is a three-line change you can only make by recompiling two hundred thousand.

And on every commit, a disk boots

What keeps me up at night is not compiling a 1994 kernel with NASM and Open Watcom in 2026 — that, surprisingly, works first try if you respect the makefile. It is not breaking it afterwards. So CI assembles a bootable 1.44 MB floppy on every commit and actually boots it in a headless emulator, asserting it reaches AUTOEXEC.BAT from cold. A DOS that does not boot is not a DOS.

The INSTALLED screen: the keep stands. Old config backed up, rescue floppy in hand.
The INSTALLED screen: the keep stands. Old config backed up, rescue floppy in hand.

D. ABELLÁN · FOUNDER · PRINCETON, IL · 2026.07.05

// ARCHIVO
RELATED FILES
EXPEDIENTES VINCULADOS
CHANNEL #0x4C7A · ON AIRREC ● TC 02:47:18SIGNAL ▮▮▮▮▮ 100% · AES-256
TRANSMISSION · ENCRYPTED// SUBSCRIBE

Subscribe to the encrypted channel.

Devlogs, patches and internal leaks. Zero spam, zero analytics. Just what matters, when it matters.

9DEVLOGS PUBLISHEDSINCE 2025
2LANGUAGESES · EN
0SPAM · TRACKINGEVER
// AGENT_INTAKEv3.07
JOIN DISCORD
OPENING YOUR MAIL CLIENT · confirm the send
CIFRADO100%
PRIVACIDAD100%
FRECUENCIA2-3/MES
// AES-256// 0 ANALYTICS// REPLY TO LEAVE// HOSTED IN VIRGINIA
// SIGNED · PRINCETON · ILLINOIS · 2025▮ ▮ ▮ ▮ ▮ ▮ ▮ ▮ ▮ ▮ ▮ ▮ ▮ ▮ ▮ ▮ ▮ ▮ ▮ ▮ ▮ ▮END_OF_TRANSMISSION_◆