r/freebsd • • 4h ago

AI Architectural Concept: Using 32-Bit ReactOS & "Fake Hardware" to Generate Clean-Room 64-Bit Drivers and Documentation for 2000–2013 Hardware

0 Upvotes

Hi everyone,

*(Note: This text was drafted and formatted with the help of AI to express my idea clearly in English, while the core architectural concept and hardware research are my own. I am a hardware enthusiast, not a kernel developer, sharing this blueprint openly in case OS developers or reverse-engineering hobbyists want to explore it.)*

Between 2000 and 2013, hardware vendors poured their best engineering into official 32-bit Windows XP (.sys) drivers, while leaving alternative operating systems—like FreeBSD, OpenBSD, NetBSD, Haiku, and AROS—without official technical manuals.

The goal of this concept is not to run legacy 32-bit Windows drivers inside a slow runtime wrapper (like ndiswrapper). Instead, the goal is to use 32-bit ReactOS as a transparent, open-source interrogation lab to extract clean-room hardware documentation—allowing developers to write fast, native 64-bit (x86_64) drivers and open specifications from scratch.

2. Acknowledging Prior Work & Why This Concept Is Different

I am aware that great open-source drivers already exist on Linux—such as brcmsmac, b43, and impressive community projects like Italian developer aleferri’s b43-next and b43-tools (vchip / pmap), which uses virtualized QEMU hardware to force Broadcom's proprietary Linux wl blob to reveal its initialization formulas.

However, my proposal is free of license restrictions and solves three major gaps that Linux drivers and wl-based tools cannot address for BSD or Haiku:

  1. Zero GPL Taint: Linux drivers (b43, brcmsmac, etc.) are licensed under GPLv2, which prevents their code from being ported or merged into MIT or BSD-licensed kernels like Haiku or FreeBSD.
  2. Hardware That Never Had Linux Blobs: Thousands of 2000–2013 components (legacy GPUs, audio codecs, card readers, and obscure Wi-Fi chips) only ever had mature, bug-free drivers on 32-bit Windows XP.
  3. Direct Kernel Interaction (Full OS Context): Blind MMIO dumps only show raw 1s and 0s. By placing an open-source Windows-compatible kernel (ReactOS) in the middle, the kernel interacts directly with the .sys driver—revealing exact OS intent in real time (e.g., "the OS just requested a radio scan," "the OS is entering ACPI S3 sleep," or "the driver is allocating a 32-bit DMA ring").
  4. Summary of Lab Implementation & Hardware Targets
  • Minimal Subsystem & Virtualization: Retaining a minimal win32k/GDI subsystem prevents driver initialization failures, while software-mocked PCI/MMIO devices simulate hardware sequences without requiring physical components.
  • Key 2000–2013 Hardware Components:

    • Wi-Fi Chipsets: Broadcom BCM4313, BCM4312, Marvell Libertas, Ralink RT2860/RT3090, and Atheros AR5007/AR9285 variants.
    • Legacy GPUs: NVIDIA GeForce 6/7/8/9/200 and ATI/AMD Radeon X1000/HD 2000–5000 series for modesetting and VRAM setup.
    • Peripherals: Ricoh R5C822, JMicron JMB38X card readers, and Conexant/Realtek audio codecs.

r/freebsd • • 15h ago Obsessed

AI FreeBSD 15, from fresh install to a bspwm desktop with one script (built with AI assistance

4 Upvotes

I've been working on **freebsd-bspwm-aurtty**, a post-install script that turns a fresh FreeBSD 14/15 (amd64) into a full bspwm desktop. The video goes from a clean console to the finished desktop in real time, with only the waits sped up. The full install took about 4.5 min in a QEMU/KVM VM.

How it works

pkg install -y git
git clone https://github.com/RobertoBarbosa-AurTTY/freebsd-bspwm-aurtty.git
cd freebsd-bspwm-aurtty
sh install.sh

A `bsddialog` TUI asks for the user, keyboard, video driver (it detects VM, BIOS or UEFI), login method and optional extras. It then shows a summary, and nothing changes on the system until you confirm it.

What you get

* bspwm + polybar + picom + rofi + LightDM, with gh0stzk's Emilia theme ported to FreeBSD (Tokyo Night)
* A bar with MPD controls, a pending-updates counter (`pkg version`), and a power menu with a shutdown timer
* Clicking RAM or Disk on the bar opens GNOME System Monitor or Disk Usage Analyzer (right click opens btop or ncdu)
* Plank dock, particle effects when windows open and close, Firefox, Thunar and AstroNvim
* `atualizar` creates a ZFS boot environment before every upgrade, and `atualizar --voltar` rolls it back
* `devdb` runs PostgreSQL, MariaDB, Valkey or MongoDB, each in its own jail (no Docker)
* Everything that doesn't come from pkg is pinned to a version and checked against a SHA-256 hash

**FreeBSD-specific fixes I had to make:** MPD is `musicpd`, and the client is `musicpc` because the `mpc` package is a math library. polybar's IPC socket needed a FIFO fallback. libadwaita apps needed a dark-mode env var. BSD awk vs gawk, `daemon -f` instead of `setsid`, and a few more.

Notes

* The installer screens are in Portuguese (pt-BR) for now. The README is in English.
* This is a study and dev workstation, not a hardened setup: no firewall is configured (use `pf`).

Repo: https://github.com/RobertoBarbosa-AurTTY/freebsd-bspwm-aurtty

Feedback, issues and PRs are welcome, especially from people running it on real hardware (drm-kmod / NVIDIA).

---

*AI disclosure: parts of the script were written with help from Claude (Anthropic). The video editing, captions and background music were also made with it. The music is an original synthesized track, with no samples.*

---


r/freebsd • • 1h ago

do yall think freebsd is suckless

Thumbnail reddit.com
0 Upvotes

r/freebsd • • 3h ago

poll Community poll and discussion: desktop options for NextBSD 27.0

Thumbnail
github.com
2 Upvotes

The poll itself is at https://github.com/orgs/nextbsd/discussions/614#discussion-11211908, I suggest reading the comments before voting.


r/freebsd • • 2h ago

article Shrinking FreeBSD Containers With pkg-slim – Michael Johnson

Thumbnail
ahze.net
11 Upvotes

… I saw mozgan’s thread on freebsd-pkgbase about pkg-be, a pkg plugin that snapshots a ZFS boot environment before upgrades. It finally got me off my butt to fix something I had been putting off in Daemonless: our FreeBSD container images were huge, and the only cleanup we had was a pile of rm -rf lines scattered across Containerfiles. …

Via https://mastodon.bsd.cafe/@ahze/117706057262493735 and https://lemmy.ml/post/55936083


r/freebsd • • 3h ago

fluff Experimenting with borders

Post image
22 Upvotes

Window borders were always just space burners for me—I never had a need to highlight an active window with anything more than a status bar string. But I wanted to see how the borders would work with Nullspace's decorations. And I actually managed to get everything to work with the automatic tab slider corners. Very likely will merge this in a bit.


r/freebsd • • 17h ago

fluff My FreeBSD system, built from the base kernel, uses few machine resources.

Thumbnail
gallery
61 Upvotes

r/freebsd • • 23h ago Heartwarming

discussion BSD Merch

Thumbnail
gallery
90 Upvotes

With the closing of the FreeBSD Mall, I decided to reach out to Marshall Kirk McKusick about licensing the BSD Daemon, and I got some excellent news back!

I'm looking at offering many of the same kinds of products that were available through the FreeBSD Mall, and I'd really like to get some feedback from the community before getting too far into production.

I'm already sourcing general apparel, but I'm curious what else people would actually be interested in seeing. Coffee mugs, mouse pads, desk mats, stickers, patches, posters, physical copies of the handbook or other documentation?

I've always been particularly fond of the 4.2BSD Daemon rendition. Personally, I think it's a much nicer illustration, but I'm curious how many people would actually prefer it over the more familiar Beastie artwork.

I'm not interested in producing a bunch of merchandise that nobody wants, so I'd love to hear what you'd like to see, what you'd actually buy, or even what you wish the old FreeBSD Mall had offered!

Edit: Please cross post so I can get as much feedback as possible!


r/freebsd • • 7h ago

news FreeBSD 15.2: second release candidate

Thumbnail lists.freebsd.org
26 Upvotes