roadmap

What each option costs, board by board

An appendix to milestone 192 (a keyboard on real silicon). It prices options A and B on argon, radon and xenon from public device trees, the boards' own schematics and the tree's drivers. Nothing here was run on a board. Read 2026-10-21 (UTC) against nife 6d83f1838.

The finding that reframes the question

Option B's driver exists. Milestone 242 (USB host and HID) built it under QEMU on all three architectures in one pull request, #1629, opened 2026-10-04 20:03 and merged 22:49 (UTC). How many hours the lane spent before opening it git does not record, so this is not an hour count. It does settle that the QEMU half is not a months-sized job. The stack is about 4,250 lines:

Piece Lines (with comments)
partsfoundry/extensible_host_controller_interface (logic, host tests, Kani) 1,940
partsfoundry/universal_serial_bus (descriptors, requests, boot reports) 1,001
components/src/usb_keyboard_driver.rs (the EL0 driver) 899
kernel/src/extensible_host_controller_interface.rs and kernel/src/user/usb_keyboard_service.rs 410

So the price of B is no longer the xHCI driver. It is what stands between that driver and each board's port. That runs from no known code on xenon to several thousand lines and an open design question on radon and argon.

How the line estimates are scaled

Linux is the only reference with drivers for all three boards. Two drivers exist in both trees, and they bound how nife's line count compares with Linux's for the same device. A third pair, against U-Boot, checks the xHCI-sized end:

Device Reference nife Ratio
JH7110 watchdog Linux starfive-wdt.c, 615 crates/jh7110_watchdog lib and the kernel half, 411 0.7
JH7110 TRNG Linux jh7110-trng.c, 399 crate, component and EL0 service, 1,887 4.7
xHCI core U-Boot xhci.c, xhci-mem.c, xhci-ring.c, 3,418 the xHCI crate, the driver and the kernel half, 3,027 0.9

The low end is a register poke with no confinement. The high end carries Kani proofs, a falsification record and a confined EL0 service around a small device. The xHCI pair is confined and proved too, and still lands at 0.9, so the proof overhead shrinks as the device grows. Every estimate below is a reference count times 0.7 to 4.7, and none is better than that range. Linux and U-Boot counts are master as fetched on 2026-10-21 (UTC).

xenon (OptiPlex 7050 Micro, x86_64)

radon (VisionFive 2, JH7110, riscv64)

argon (Jetson TX1, Tegra210, aarch64)

Summary

Option A Option B
xenon a QEMU graphical leg on x86_64 (270), then the bench built; 242's bench evening (high confidence no code)
radon milestone 157, then the bench 163 (800 to 5,600 lines plus bench), then a confinement design for xHCI without an IOMMU (1,300 to 4,000, low)
argon 127, then a framebuffer path nothing owns 127, then XUSB glue (1,800 to 12,000, low), a Tegra SMMU (600 to 1,500, low) and NVIDIA's firmware; or an EHCI driver on the micro-USB port (1,600 to 2,000 plus glue, medium-low)

calef's bar for 192 is one machine with a keyboard and a monitor plugged into it. On that bar the cheapest finished story is option B on xenon, which costs a bench evening and no new code. That bench step is the next 192 action, ahead of option A's board run (calef, 2026-10-21: "Yes"). Option A's order stands for radon and argon.

BUGS