dougvj.me
Photo of Douglas Johnson

Douglas Johnson

Systems programmer & software engineer

Idaho Falls, Idaho · me@dougvj.me · github.com/dougvj · linkedin.com/in/dougvj · bonnevilleinformatics.com

Systems programmer with over a decade in Linux kernel work, embedded systems, FPGA design, and backend infrastructure. Lead developer at Subsurface Insights and owner of Bonneville Informatics. The projects below are the hobby side of that: from-scratch firmware, CPUs, and emulators, several of which you can run right here in the browser.

Projects

mybios

From-scratch x86 BIOS for legacy 386/486 hardware, with reverse-engineered chipset support. It began as a way to revive a board with a corrupted BIOS and no ROM dump available; the UMC UM82C480 init sequence was worked out by fuzzing chipset registers.

EklecTech BIOS by Doug Johnson POSTing on a Sony CRT: memory configs found, IDE drive detected
Works on real hardware

dsrisc

Custom 32-bit RISC CPU architecture with an assembler, emulator, and interactive debugger. My talks for the Idaho Falls Programmers group are themselves programs for this CPU, with the slides rendered by the emulated machine. The bare metal programming talk was built for the dsrisc core running on an iCEBreaker FPGA, at 640×480.

Title slide of the talk, Computer Architecture and its Evolution, rendered by the dsrisc emulator
The talk. I didn't reveal it was running on an emulated CPU architecture until the end.

retr68k

Motorola 68000 breadboard computer working its way toward a single-board design: MC68901 MFP for UART and timers, W29C040 flash ROM, 1 MiB of RAM, GAL-based address decoding. Firmware in C and 68000 assembly, plus a board emulator built on the Musashi 68000 core with a cycle-timed model of the MFP's serial port.

The 68000 breadboard computer, densely wired with orange jumper wire and LED bar graphs, next to a bench power supply
Who needs simplicity?

raytracer

Multithreaded CPU ray tracer with an SDL2 preview and Monte Carlo path tracing. The browser version is compiled to WebAssembly and uses a thread per core; the image refines while you watch.

Path-traced spheres over a checkerboard floor, mid-render
Squinting helps

sirtet

Tetris clone built to learn shader programming: glass blocks, post-processing passes, and a few hundred background cubes. OpenGL on the desktop, WebGL2 in the browser.

sirtet mid-game with a stack of glass blocks and floating cubes

CSol

Cross-platform solitaire suite in C with SDL3: Klondike, Freecell, and Spider. Runs on desktop, Android, and the web.

A Klondike game in progress

icebreaker-uart-video

Verilog for the iCEBreaker FPGA board: takes text over UART and drives a DVI/HDMI display.

iCEBreaker FPGA board with button and seven-segment Pmods
“Cool”est FPGA: the iCEBreaker

pico-fanctl

PC fan controller on a Raspberry Pi Pico: PWM at 25 kHz and tachometer feedback for up to 16 fans, dual-core firmware (one core for fan control, one for USB), and a Linux kernel driver that exposes it through hwmon, so lm-sensors and fancontrol work as they would with a motherboard header.

Raspberry Pi Pico on perfboard with level shifters and fan connectors
Still need to learn PCB CAD
More
retros
OS kernel for retro x86 hardware
NES
Cycle-accurate NES emulator
md-linear
Revival of the deprecated and removed md-linear Linux kernel module; cited on the linux-raid list as a reason to revert the removal
m68k-tools-bootstrap
Builds QEMU for m68k, m68k GCC and LLVM toolchains, and the m68k Linux kernel
kvmap / concurrent_kvmap
Generic and lockless concurrent key/value hashmaps in C
phmap
Minimally perfect hash map in C

Also: refcnt, embed, rust-telnetd, gotek_util, udp-eth-tunnel

Open Source Contributions

Xenia
Xbox 360 emulator. Linux porting work, merged in 2016.

In Progress

Ongoing work, not yet released.

DEC Alpha workstation emulation

QEMU machine model of the DEC Alpha “Miata” workstation (Pyxis chipset), developed against a real Personal Workstation 500a. Windows NT 4.0 for Alpha and Linux boot; Tru64 UNIX and OpenVMS still need validation.

Windows NT 4.0 System Properties showing DEC-00MiataGL in the emulator Windows NT 4.0 System Properties showing DEC-00MiataGL on the real machine's monitor DEC Digital Personal Workstation 500a tower
Emulation works! Still trying to capture the visceral experience of using a CRT and the DEC design language on the tower.
MVME emulator
Emulator for the Motorola MVME177 (68060) VME single-board computer, targeting NetBSD/mvme68k, alongside bare-metal 68060 experiments on the real board.
R300 GPU emulation for 86Box
ATI Radeon 9700-class (R300) graphics emulation for the 86Box PC emulator, translating the 3D pipeline to OpenGL.
libwebd
Lightweight event-driven HTTP server library in C: async I/O over io_uring/epoll, WebSockets, a middleware pipeline, and zero-copy static files.

Off the Clock

Retro computing and emulation, hardware design, geology, philosophy, music, video games, running (a marathon in 2025), biking, hiking, and two dachshunds, Denali and Tut.

Project vomit on display
Outside
At home