243. A machine with no serial port has no way to say anything, and no gate can read it
Built. The boot tour reaches a UEFI machine's framebuffer from early boot on, on all three
architectures, and a gate reads it under QEMU. See notes/serial-less-output.md.
What BUILT means here, stated plainly, because two of the three problems below are answered rather than solved. A kernel that can write its diagnostics somewhere other than a UART now does so on all three architectures. The window before the kernel exists is bounded rather than narrated, and it cannot be narrated (see below). And a gate can read a screen under emulation on all three, while reading a real serial-less machine is milestone 369 (the fleet is not virtual) and has always been its own block.
What was built, and what it does not cover
The mechanism chosen is the firmware's own linear framebuffer. UEFI's
EFI_GRAPHICS_OUTPUT_PROTOCOL reports one, and its address survives ExitBootServices, because
the aperture is a BAR on the display adapter rather than firmware memory: what ends is the firmware's
console, not the display. That single fact is why this milestone is a week rather than a quarter.
| Piece | Where |
|---|---|
| The sentence one boot stage says to the next | machine_discovery::framebuffer, riding PVH's own cmdline_paddr (a field the format has always had and nothing ever read) |
| Asking the firmware | uefi_loader::find_screen, one LocateProtocol call |
| Painting text | crates/screen_console (name provisional), sharing bitmap_font with the graphical terminal and sharing nothing else with video_terminal |
| The kernel seam | console::attach_screen, teed under the lock print! already takes; arch::x86_64::mmu carries the aperture into the fine map |
| A gate reading a screen | board_console::screen: a screendump decoded back into text by exact glyph match, judged by board_console::progress unchanged |
Measured under OVMF, 2026-09-04: 1280x800 bgrx at 0x80000000, 182x100 cells, and
cargo xtask uefi-boot reads 96 non-blank rows of the boot tour back off the framebuffer. That
assertion is the one the serial transcript could not make: the transcript would be identical if the
screen were black.
One thing it still does not cover, and two that were closed on 2026-09-19:
- Problem 2 on real hardware, still open and now its own block. A gate can read a virtual machine's screen. Nobody can ask a real laptop for a screendump, so the fleet's record is still a photograph and a person. That is milestone 369, and it is blocked on USB mass storage.
- Problem 3, early boot: bounded, and it cannot be more than bounded. See Early boot below.
- The other two architectures: a screen under the emulator, and none on silicon. The board half is milestone 157's U-Boot handoff and stays there. See The other two architectures below.
In brief. Every word nife has ever said, it said down a UART.
- The boot tour, on all three machines.
- The console server and the shell (DECISIONS §21's line discipline).
- Kernel fault reports, which milestone 230 (
script/shell-checkis red onmain, on both architectures, and nothing says so) found interleaving with the console server's own output because two address spaces drive the one device. - And every automated gate:
script/board-console(milestone 216), the soak's heartbeat, and milestone 218's (every boot of the VisionFive 2 needs a human typing four commands into U-Boot) boot script all read that line.
A commodity machine does not have one. xenon does, and that was chosen rather than lucky: milestone 87 (the x86_64 bare-metal machine) picked a Dell with a C4PDJ serial module and a null modem. So this was consciously deferred, and this block is where the deferral stops being implicit.
Three problems wearing one name
-
A human watching a machine boot. Answered by the framebuffer chain: milestone 157 (the U-Boot framebuffer handoff), milestone 242 (USB host and HID) and milestone 177 (wire the graphical terminal stack into the real interactive boot). That path exists and is partly built.
-
A gate reading a machine. No answer exists. Every instrument this project has for unattended hardware reads a serial line. The candidates each cost something:
- A network console.
smoltcpworks and radon's tree describes two Ethernet controllers, but it needs a NIC driver per board and says nothing until the stack is up. - Postmortem to storage, which is what a headless panic actually needs and what nothing here does.
- The firmware's own console. UEFI
ConOutworks beforeExitBootServicesand therefore covers the loader and not the kernel.
- Early boot, which is the hardest. Before the framebuffer exists, a serial-less machine is silent, and a panic there produces nothing at all. This is not a nife peculiarity: it is why commodity operating systems ship a firmware console, a splash, or postmortem logging. nife has none of the three.
The fleet this unlocks, which calef named on the day this was minted
The household machines calef named, why a nife stick already reaches them, which
of them it cannot start, and the cheap experiment they make available are in
the-fleet.md. The bench
procedure for that experiment is notes/serial-less-output.md's bench section.
Why it is worth one block rather than three
Because the answer might be one mechanism. A kernel that can write its diagnostics somewhere other than a UART serves the human, the gate and the panic at once, and choosing three separate answers would be the expensive way to discover that. This block does not pick the mechanism, and the choice is the milestone.
The constraint that should drive it: whatever it is has to work when the thing being reported is the reason the machine is broken. A network console needs a working stack; a filesystem log needs a working filesystem; the UART needed neither, which is why it was the right first answer and why replacing it is harder than it looks.
Follow-on
- Milestone 369. A gate that can read a serial-less machine on real hardware, which is the half
of this block that QEMU answered and silicon did not.
design/roadmap/0369-a-gate-that-can-read-a-machine-with-no-serial-port.md. - Milestone 377. One screendump decoder rather than two: milestone 177's graphical
swish-checkleg carriesparse_ppm/decode_cell/scanout_rowsinsidextaskand this milestone wrote a second, more general one inboard_console::screen.design/roadmap/0377-one-screendump-decoder-not-two.md. - Done. Problem 3, early boot, closed 2026-09-19. The premise was checked and half of it is true.
kernel/src/arch/x86_64/boot.swrites to no device and cannot, because it is a 32-bit instruction stream with no idea where the screen is and no IDT. A fault in it is a triple fault and a reset. What can be done is done by the stage before it. See the section below. - Milestone 511. milestone 511 (the boards' screen comes from the firmware),
design/roadmap/0511-the-boards-screen-under-uefi.md. The boards' screen under UEFI, which milestone 441 (the program that makes the stick) made reachable while this lane was running.uefi_loadernow has aarch64 and riscv64 boot files, so on those architectures there is, for the first time, a firmware stage that has already lit a display and can be asked about it. Two things fall out and neither is built. The loader could paint this block's handoff banner on those architectures too (find_screenis underarch/x86_64/today). And it could carry the screen to the kernel by synthesizing asimple-framebuffernode in the device tree it already copies, which is the same node milestone 157 will read from U-Boot. That second one is the interesting half: it would give the boards a real firmware framebuffer with noramfband no.bss, and 157's parser would serve both. Not done here because it is a wire format between two boot stages and belongs with 157's own premise check. - Done. aarch64 and riscv64 have a screen under QEMU, closed 2026-09-19,, through
ramfb. The arch-neutral halves needed no change, which was the claim they were written to make good on. Milestone 157 remains the board half. See the section below. - Done. 2026-10-04 (UTC): the scroll redraws from cells in RAM and never reads the aperture,
which
x86_64now maps write-combining (#1645), and the screen terminal fills the screen (#1648).crates/screen_console/src/lib.rs'sBUGShas the counts. - Recorded. Only ASCII reaches the screen, so
§in the tour's last line is two blanks there and correct on the UART.notes/serial-less-output.md'sBUGS. - Refused. A network console, on the block's own argument: it needs a driver per machine, says nothing until the stack is up, and cannot report the failure of the thing carrying it.
- Refused. Reading a photograph of a screen.
board_console::screenworks because a screendump is pixel-aligned with exact glyph matches and no threshold; a camera has none of those properties and making it work is optical character recognition, which is a different project.
Early boot, 2026-09-19: bounded rather than narrated
The window cannot be made to speak, and that is a finding rather than a concession. From
ExitBootServices to console::attach_screen there is no console at all. The firmware's is gone by
specification and the kernel's is not up. Everything in between (the loader's mode-switch
trampoline, boot.s's 32-bit half, the page tables, the long-mode jump) runs 32-bit with no IDT.
A fault there is a triple fault and a silent reset. No code anybody could write in that window knows
where the screen is.
So the window is bounded instead. uefi_loader clears the screen and paints two lines as its
final act, after ExitBootServices and before the jump:
nife loader: firmware released, entering the kernel.
If this line is still here, the kernel stopped before its console came up.
The screen is therefore never blank across the handoff. Five outcomes are distinguishable where
four used to share one appearance. The firmware never started the stick. The loader refused and said
why over ConOut. The kernel never reached its first statement (this line, still there). The
kernel armed its console and died after (black). Or the boot tour. The third is the one that did not
exist, and it is the whole of what is buyable.
Proved rather than reasoned. With a temporary halt in place of the jump, cargo xtask uefi-boot's
screendump had ink in exactly the top sixteen pixel rows of a 1280x800 screen, reading those two
lines and nothing else.
The boards get nothing equivalent and the reason is the boot chain. Under QEMU they are entered
from -kernel with no stage before the kernel to paint anything. The kernel's own ramfb
framebuffer is in .bss, which boot.s has not finished zeroing at the point a banner would have to
be written. On the VisionFive 2 the stage that could speak is U-Boot, which is milestone 157. Their
dark window is boot.s plus one fw_cfg conversation, a few hundred instructions.
The other two architectures, 2026-09-19: ramfb
x86_64 gets a screen because the firmware already lit one. The two virt boards are entered
from -kernel with nothing configured, so there was nothing to discover and no amount of
arch-neutral console code could help. What those boards can present is ramfb, which inverts the
arrangement: the guest owns the pixels and tells the emulator their physical address over
fw_cfg, after which QEMU scans them out continuously. Nothing sits between a println! and the
picture.
| Piece | Where |
|---|---|
The fw_cfg wire format, host-tested (10 tests) |
crates/firmware_configuration (name provisional) |
The register poking, two DMA transactions before arch::mmu::init |
kernel/src/drivers/ramfb.rs |
| The memory and the wiring | kernel/src/screen.rs (name provisional), console::peek_screen (provisional) |
| Painting text | crates/screen_console, unchanged |
| The gate | cargo xtask screen-boot <arch> (name provisional), uefi-boot's twin, decoding with board_console::screen unchanged |
Measured 2026-09-19, and both legs run inside script/test:
screen-boot: read 33 non-blank row(s) of the aarch64 tour back off a ramfb, ending
screen-boot: | nife self-test: 5 of 5 passed
screen-boot: read 63 non-blank row(s) of the riscv64 tour back off a ramfb, ending
The surprise worth recording is what the inversion broke. Milestone 400's handover maps the
screen's physical range into a userspace driver, which is right for a display adapter's BAR and is a
hole for a framebuffer that is the kernel's own .bss. user::boot_screen_terminal now refuses a
screen inside the kernel image, checked before the yield so a refusal leaves the kernel still
painting rather than a cleared screen nobody owns. It is a range test rather than a flag, so
milestone 157's U-Boot aperture will pass it with nothing to remember.
It is a boot of its own rather than a stage of the suite, for the reason the boards' screen gives.
Two repairs the lane made to these gates afterwards are in
gate-repairs.md: the
x86_64 marker that asserted a race on 2026-09-20, and the riscv64 leg's first red run in CI with the
diagnostic line that made it readable.
BUGS
- The mechanism is one idea and two discoveries. A linear framebuffer painted by
screen_consoleis what every architecture ends at. How one is found is per-machine, and there are two answers rather than one (a UEFI aperture, aramfbthe guest supplies) with a third owed by milestone 157. - Nothing here has run on real silicon except the UEFI half, and that half shows a grid rather
than text on the one machine that has run it (
screen_console's BUGS, xenon, 2026-09-04 and 2026-09-17). Theramfbhalf is QEMU-only by construction: no board has the device. - A
ramfbscreen costs 1.9 MB of.bsson every board boot, including the VisionFive 2 boots where the device cannot exist.kernel/src/screen.rs's BUGS has the reason and the exit. - The loader's handoff banner is unobservable in a healthy boot, so no gate asserts it: the
kernel clears within milliseconds. What is gated is that it compiles and that
uefi-bootstays green; what proves it is the halted-loader experiment above. Rung four, honestly. - It does not cover the interleaving defect milestone 230 found, where the kernel and the console server both drive one UART with nothing arbitrating. That is a live bug on the machines that do have a serial port and it has its own home.
- A machine that can only report over a network is a machine whose failures you cannot see when the network is the failure, and no answer here escapes that entirely.
Index row
the boot tour is on the screen on all three architectures, read back off the framebuffer by a gate
that decodes the glyphs: a UEFI aperture on x86_64 and a ramfb the guest supplies on the two
boards. The window before the kernel exists is bounded by a line the loader paints and cannot be
narrated further; a gate reading a real serial-less machine is milestone 369