FreeBSD Lacked a Wi-Fi Driver for My Old MacBook, So I Had AI Build One
Original: FreeBSD doesn't have Wi-Fi driver for my old MacBook, so AI built one for me View original →
The Problem: No Native FreeBSD Wi-Fi Driver
When Vladimir Varankin decided to repurpose his old 2016 MacBook Pro as a FreeBSD playground, he hit an immediate wall: FreeBSD had no native driver for the Broadcom BCM4350 Wi-Fi chip used in that model. The standard community workaround was wifibox — running a tiny Linux VM with PCI pass-through to manage the Wi-Fi device. Varankin wanted something cleaner.
Calling in Claude Code
The level-zero idea in 2026, as Varankin puts it, is to try AI. He cloned the brcmfmac subtree from the Linux kernel (ISC-licensed) and asked Claude Code to port it to FreeBSD using the LinuxKPI compatibility layer — the same mechanism FreeBSD already uses for Intel's iwlwifi driver. He pointed Claude at the iwlwifi implementation and said: "do as they did it."
The module compiled. But when loaded against actual hardware, kernel panics cascaded. Claude fixed one panic, only for the next to emerge. The deep technical challenges — differences in Linux and FreeBSD thread models, exception handling, PCI interaction patterns — surfaced one by one across many iterative sessions.
Success and What It Demonstrates
After extensive back-and-forth, the Wi-Fi driver eventually worked. The story went viral on Bluesky and Hacker News (351 points), resonating with developers who've faced similar hardware support gaps. Varankin's experiment demonstrates that Claude Code can be a genuine co-developer in low-level kernel programming — not just a code autocomplete tool, but a debugging partner capable of navigating complex OS internals.
Broader Implications
This is a meaningful data point for the state of AI coding assistants. Kernel driver development has traditionally required deep systems programming expertise accumulated over years. That AI can meaningfully contribute to this domain — even if imperfectly — suggests the range of "solvable" technical problems is expanding rapidly. Hardware support gaps in niche OS communities could become significantly more tractable with AI assistance.
Related Articles
A high-signal Hacker News thread surfaced an essay arguing that AI-assisted clean-room rewrites may be legal without being socially legitimate, using the chardet 7.0 relicensing fight as the case study.
OpenAI said Codex Security is rolling out in research preview via Codex web. The company positioned it as a context-aware application security agent that reduces noise while surfacing higher-confidence findings and patches.
A high-engagement r/MachineLearning discussion introduced IronClaw, a Rust-based AI agent runtime designed around sandboxed tool execution, encrypted credential handling, and database-backed policy controls. The post landed because it treats agent security as a systems problem instead of a prompt-only problem.
Comments (0)
No comments yet. Be the first to comment!