<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>TinyComputers.io</title><link>https://tinycomputers.io/</link><description>Hands-on hardware projects and deep dives into embedded systems, Z80 retro computing, FPGAs, Rust on microcontrollers, PCB design, 3D printing, and AI on AMD GPUs.</description><atom:link href="https://tinycomputers.io/rss.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Original site content © 2022–2026 Tiny Machines Workshop, LLC, except where otherwise noted. Some rights reserved.</copyright><lastBuildDate>Mon, 16 Nov 2026 20:51:25 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Review of "Classic Game Programming on the NES: Make Your Own Retro Video Game" by Tony Cruise</title><link>https://tinycomputers.io/posts/review-of-classic-game-programming-on-the-nes-by-tony-cruise.html?utm_source=feed&amp;utm_medium=rss&amp;utm_campaign=rss</link><dc:creator>A.C. Jokela</dc:creator><description>&lt;div class="audio-widget"&gt;
&lt;div class="audio-widget-header"&gt;
&lt;span class="audio-widget-icon"&gt;🎧&lt;/span&gt;
&lt;span class="audio-widget-label"&gt;Listen to this article&lt;/span&gt;
&lt;/div&gt;
&lt;audio controls preload="metadata"&gt;
&lt;source src="https://tinycomputers.io/review-of-classic-game-programming-on-the-nes-by-tony-cruise_tts.mp3" type="audio/mpeg"&gt;
&lt;/source&gt;&lt;/audio&gt;
&lt;div class="audio-widget-footer"&gt;39 min · AI-generated narration&lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Disclosure:&lt;/strong&gt; I have been a technical reviewer for Manning on several projects.&lt;/p&gt;
&lt;h3&gt;Introduction&lt;/h3&gt;
&lt;p&gt;&lt;img src="https://tinycomputers.io/images/classic-game-programming-on-the-nes/cover-001.png" alt="Cover of Classic Game Programming on the NES by Tony Cruise, foreword by Philip and Andrew Oliver, published by Manning. The subtitle, Make your own retro video game, sits at the top right. The title is set in large orange type that runs from a navy band onto the white page, beside Manning's usual historical costume engraving: a woman in a blue gown and gold headdress, redrawn holding a gray NES console and controller." style="float: right; max-width: 250px; margin: 0 0 1em 1.5em;"&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://go.tinymachines.io/classic-game-programming-nes"&gt;&lt;em&gt;Classic Game Programming on the NES: Make Your Own Retro Video Game&lt;/em&gt;&lt;/a&gt; is Tony Cruise's first book for Manning, published in June 2024 with a foreword by the Oliver Twins. Cruise has been programming 8-bit machines since the early 1980s, and his previous book, the self-published &lt;a href="https://go.tinymachines.io/programming-games-colecovision-adam"&gt;&lt;em&gt;Programming Games for the ColecoVision and Adam in Assembler&lt;/em&gt;&lt;/a&gt;, teaches Z80 assembly. This one moves to the Ricoh 2A03, the 6502 variant inside the Nintendo Entertainment System.&lt;/p&gt;
&lt;p&gt;I have spent much of the past year on the Z80, from &lt;a href="https://tinycomputers.io/posts/cpm-on-physical-retroshield-z80.html"&gt;CP/M on a RetroShield&lt;/a&gt; to a &lt;a href="https://tinycomputers.io/posts/clean-room-z80-emulator.html"&gt;clean-room emulator&lt;/a&gt; to reviews of &lt;a href="https://tinycomputers.io/posts/build-your-own-z80-computer-steve-ciarcia.html"&gt;Ciarcia&lt;/a&gt; and &lt;a href="https://tinycomputers.io/posts/the-z80-microcomputer-handbook-william-barden.html"&gt;Barden&lt;/a&gt;. I wanted a 6502 book to set beside them, and the NES is the natural machine. It sold more than 60 million consoles, and its video chip, the picture processing unit or PPU, punishes sloppy timing.&lt;/p&gt;
&lt;p&gt;Chapters 1 and 2 cover the console and the tools, and chapters 3 and 4 are a 6502 primer built around an online simulator. Chapter 5 is a small demo with a bat and a ball. Chapters 6 through 16 build one game, Mega Blast, a vertical shooter modeled on the Intellivision's Astrosmash, adding a feature per chapter: sprites, enemies, collisions, scoring, lives, animation, sound effects, and music. In its front matter, on page xv, the book names its reader: "For anyone interested in building their own retro games! No programming experience required."&lt;/p&gt;
&lt;p&gt;I tested the book the way I would test code. I built every chapter folder in the &lt;a href="https://go.tinymachines.io/tony-cruise-nes-repo"&gt;companion repository&lt;/a&gt; with cc65 2.19, the book's toolchain, booted each ROM in an emulator, and ran suspect routines on a 6502 simulator. I checked every error below against a primary source: the book itself, a tool's source code, or the &lt;a href="https://go.tinymachines.io/nesdev-wiki"&gt;NESdev wiki&lt;/a&gt;, the NES homebrew community's hardware reference. The game holds up. The explanations of the machine underneath it often don't.&lt;/p&gt;
&lt;h3&gt;A Z80 Programmer Crosses Over&lt;/h3&gt;
&lt;p&gt;In the preface, Cruise traces his path: a secondhand Texas Instruments TI-99/4, then two Spectravideo computers, the second fitted with a ColecoVision adapter, and later MSX home computers. Apart from the TI-99/4, every one of them runs a Z80 at about 3.58 MHz. He came to the NES decades later, with an &lt;a href="https://go.tinymachines.io/nintendo-world-championships-cartridge"&gt;NES Championships cartridge&lt;/a&gt; for the first Game On Expo in Arizona. On page xiii, he writes: "I developed this in three months, learning both 6502 Assembler and the NES hardware at the same time."&lt;/p&gt;
&lt;p&gt;He says his interest in the NES comes from "its Japanese origin and part of its graphics chip design inherited from the TMS graphics chips found in the Spectravideo and MSX computers." The chips he means are Texas Instruments' TMS9918 family, the video chips in his Spectravideo and MSX machines and in the ColecoVision. That lineage is debated: some veterans of the NESdev forums see the TMS9918 in the PPU, and others call the PPU completely custom.&lt;/p&gt;
&lt;p&gt;Two slips in chapter 1 read like TMS9918 habits. Page 10 correctly warns that changing video memory, or VRAM, at the wrong time corrupts the screen. It then adds that "the time to both read and write VRAM is longer while the screen is being drawn (as the PPU is busy)." That is true of the TMS9918, which needs slower CPU access during active display. The NES never makes the CPU wait for video memory. A write during rendering is no slower; it lands at the wrong address instead.&lt;/p&gt;
&lt;p&gt;Page 7 hedges in one bullet, then states flatly that tile patterns "need to be loaded from the game ROM into the NES's video memory before they can be used," which is how a TMS9918 machine works. Every ROM in this book keeps its tile graphics in a ROM chip on the cartridge, which the PPU reads directly, as page 81 itself says. I can't prove where the slips came from, but both describe a chip Cruise has programmed since the early 1980s.&lt;/p&gt;
&lt;h3&gt;What Works&lt;/h3&gt;
&lt;p&gt;Figure 1.5 on page 6 is the most useful diagram in the book. It splits a game into two parts. A main loop reads input, spawns and moves enemies, checks collisions, animates, and advances the level. A separate routine runs during vblank, the short gap between frames when the PPU isn't drawing, and updates sprites, writes to video memory, and plays music. The PPU starts that routine through the CPU's non-maskable interrupt, so NES programmers call it the NMI. That split is the central discipline of NES programming, and the book establishes it before any code.&lt;/p&gt;
&lt;figure style="margin: 2rem 0; text-align: center;"&gt;
&lt;a href="https://tinycomputers.io/images/classic-game-programming-on-the-nes/page-6-figure-1-5.png"&gt;&lt;img src="https://tinycomputers.io/images/classic-game-programming-on-the-nes/page-6-figure-1-5.png" alt="Page 6 of Classic Game Programming on the NES, cropped to section 1.5, The structure of a game, with Figure 1.5. A flowchart starts at Initialize console and leads to an Intro screens box holding Title screen, Options, High scores, and Game information. Start game leads into The game loop: Get player input and move player, Initialize or spawn enemies, Move enemies, Detect collisions, Animate objects, and Level progression or increase difficulty, looping back. Game over leads to Ending a game, which returns to the intro screens. A separate Video processor box shows PPU draws screen feeding a vBlank NMI routine with three steps: Update sprite data (OAM), Write changes to VRAM, and Play music and sound effects." width="1475" height="1200" loading="lazy" style="display: block; width: 560px; max-width: 100%; height: auto; margin: 0 auto; border: 1px solid #ccc; border-radius: 4px;"&gt;&lt;/a&gt;
&lt;figcaption&gt;&lt;em&gt;Page 6 of the book, with Figure 1.5. I cropped it to section 1.5 and removed the licensing line at the foot of the page, which carries my email address.&lt;/em&gt;&lt;/figcaption&gt;
&lt;/figure&gt;

&lt;p&gt;Chapter 5 starts with the linker instead of the code. It explains the linker's configuration file one memory area at a time. The result is a ROM image of exactly 40,976 bytes: a 16-byte header that tells emulators what cartridge to expect, 32 KB of program ROM, and 8 KB of tile graphics. All 12 chapter folders build to that size with zero warnings, and each one is a complete snapshot, so diffing two shows what a chapter adds.&lt;/p&gt;
&lt;p&gt;The game code has habits worth copying:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;The finished NMI works in the right order.&lt;/strong&gt; The sprite table goes to the PPU first, by a hardware block copy, then the video memory updates, then the scroll and control registers, then music.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;During play, game logic never touches video memory.&lt;/strong&gt; It sets bits in an &lt;code&gt;update&lt;/code&gt; byte, and the NMI redraws only what changed.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The random number generator is good.&lt;/strong&gt; Two linear-feedback shift registers with periods of 65,535 and 32,767 give a combined period of about 2.1 billion, seeded from the frame on which the player presses a button.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Collision detection is derived, not handed over.&lt;/strong&gt; Three diagrams in chapter 9 build the overlap test, and the code exits on the first failed comparison.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Enemies are data.&lt;/strong&gt; Chapter 12 defines each enemy type as a nine-byte record, so a new enemy is mostly a new row in a table.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Chapter 13 is a catalog of cheap effects.&lt;/strong&gt; Palette cycling, a backdrop flash, and a screen shake take under 40 bytes each, and twinkling stars made by swapping tiles take about 200.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Chapter 16 also has a section on publishing, rare in a programming book, that names suppliers of cartridge boards and shells and lists homebrew publishers.&lt;/p&gt;
&lt;figure style="margin: 2rem 0; text-align: center;"&gt;
&lt;a href="https://tinycomputers.io/images/classic-game-programming-on-the-nes/ch16-gameplay.png"&gt;&lt;img src="https://tinycomputers.io/images/classic-game-programming-on-the-nes/ch16-gameplay.png" alt="Mega Blast built from the book's chapter 16 code, running in an emulator. A blue fighter at the bottom of the screen has fired a yellow shot that is passing just left of a large olive meteor. A lavender smart bomb falls through a black sky dotted with pink stars, and a small meteor has dropped through a tan zigzag mountain ridge toward a red ground line. The bottom row reads SCORE 0000690, followed by five reserve ships." width="768" height="672" loading="lazy" style="display: block; width: 512px; max-width: 100%; height: auto; margin: 0 auto; border: 1px solid #ccc; border-radius: 4px; image-rendering: pixelated;"&gt;&lt;/a&gt;
&lt;figcaption&gt;&lt;em&gt;The chapter 16 ROM, built from the companion repository and run in the cynes emulator, with the top and bottom eight lines cropped as an NTSC television would hide them.&lt;/em&gt;&lt;/figcaption&gt;
&lt;/figure&gt;

&lt;h3&gt;Test the Exercises Like Code&lt;/h3&gt;
&lt;p&gt;Chapters 3 and 4 teach the 6502 with an online simulator built from Nick Morgan's 6502js. Each of the 28 exercises ends in a box showing the register dump the reader should see: paste a few lines, assemble, run, and compare. It is a good design, and it only works if the listings and the boxes are right. Eight of the 28 go wrong.&lt;/p&gt;
&lt;p&gt;In chapter 3, five of the 13 exercises go wrong. Two boxes print the wrong final program counter. In three more, the listing itself is wrong. Exercise 3.9 stores the accumulator where the text says X, and Exercises 3.12 and 3.13, which cover indirect stores, the hardest idea in the chapter, leave out the code that sets up the pointer. Their boxes faithfully show the result: a byte landing in zero page, the first 256 bytes of RAM, instead of at the addresses 0x0306 and 0x0300 that the text promises. The sentence that splits the pointer's address into two bytes gives the high byte as 30, not 03, word for word, on four different pages, though the table beside it gets it right.&lt;/p&gt;
&lt;p&gt;In chapter 4, three of the 15 boxes are wrong, two of them with an accumulator value the code can't produce, though the prose just above those two gives the right answer. Pages 62 and 63 add four faulty increment and decrement examples, three of them with broken code.&lt;/p&gt;
&lt;p&gt;The reference material has the same problems:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Addressing modes that don't exist.&lt;/strong&gt; Page 37 says the zero-page indexed load "can use either the X or Y registers for the index value." The 6502's load instruction, LDA, has no such Y form, and the book's own simulator rejects it.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Carry after subtraction.&lt;/strong&gt; Table 4.1 says carry is set "if an overflow occurred during addition or subtraction." That is the Z80's rule, where subtraction sets carry on a borrow. On the 6502, subtraction clears carry on a borrow, as Table 3.6 correctly said.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Rotation.&lt;/strong&gt; Page 74 says of the rotate instructions, "If this instruction is repeated eight times, the value will be back to where we started." The 6502 rotates through the carry, a nine-bit ring, so it takes nine. Eight is right for the Z80's circular rotates, which copy the outgoing bit straight back in, though not for its rotates through carry.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Interrupts.&lt;/strong&gt; Page 89 says SEI, the instruction that switches off interrupts, "clears the interrupt flag." It sets the flag, which the book's tables say is what disables interrupts.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Label case.&lt;/strong&gt; Page 69 says "It doesn't matter whether you use upper or lower case for the label," which a beginner will likely read as "labels ignore case." They don't: the book's assembler, ca65, as the book runs it, and the book's own simulator both treat case as significant. Listing 6.10 spells &lt;code&gt;INES_MAPPER&lt;/code&gt; as &lt;code&gt;INES_mapper&lt;/code&gt; once, and as printed it fails to assemble. The repository's copy is correct.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Manning's errata lists two corrections, both from later chapters, and the repository starts at chapter 5, so neither the errata nor the repository corrects these exercises. My copy of the PDF, dated May 2025, already includes both errata corrections, so every error above survived Manning's correction pass. A beginner whose screen, box, and explanation disagree has no way to know which to trust.&lt;/p&gt;
&lt;h3&gt;Bugs the Prose Calls Correct&lt;/h3&gt;
&lt;p&gt;The game chapters are more accurate, but where they go wrong, the prose usually describes the broken code as working.&lt;/p&gt;
&lt;p&gt;The first NES program in the book has a visible bug. Chapter 5's NMI points the PPU's address register at the palette and never resets the scroll afterward. The two share an internal latch, so the background is drawn about 45 lines too low. Whatever sits in the unused second nametable, the tile map for a second screen, fills the top of the screen. The book's own Figure 5.4 shows the demo's WELCOME message at the same wrong height. One write to the PPU's control register and two to its scroll register fix it. Chapter 6 adds those writes without saying they fix anything. It introduces the routine as "The next function we can keep like the example in the last chapter."&lt;/p&gt;
&lt;p&gt;A reader reported the problem as &lt;a href="https://go.tinymachines.io/tony-cruise-nes-issue-4"&gt;issue 4&lt;/a&gt; in March 2026, and it is still open. The chapter 5 template closely follows Brad Smith's public &lt;a href="https://go.tinymachines.io/nes-ca65-example"&gt;NES-ca65-example&lt;/a&gt;, which resets the scroll. Its license doesn't require credit, but a pointer to it would have helped readers find that fix.&lt;/p&gt;
&lt;figure style="margin: 2rem 0; text-align: center;"&gt;
&lt;a href="https://tinycomputers.io/images/classic-game-programming-on-the-nes/ch05-scroll-bug.png"&gt;&lt;img src="https://tinycomputers.io/images/classic-game-programming-on-the-nes/ch05-scroll-bug.png" alt="Three versions of the chapter 5 example screen side by side. Left: the book's Figure 5.4 from page 105, printed on white, with WELCOME about a third of the way down. Middle: the companion repository's chapter 5 ROM in an emulator, with WELCOME at the same height and a band of magenta and green garbage tiles across the top. Right: the same code with one control-register write and two scroll-register writes added after the palette upload, which puts WELCOME near the top, at tile row 4 where the code places it, and clears the garbage. The bat sits at the same spot in all three panels, while the bouncing ball was caught in a different place in the book's figure." width="1602" height="546" loading="lazy" style="display: block; width: 720px; max-width: 100%; height: auto; margin: 0 auto; border: 1px solid #ccc; border-radius: 4px;"&gt;&lt;/a&gt;
&lt;figcaption&gt;&lt;em&gt;Left, the book's Figure 5.4, cropped from page 105. Middle, the repository's chapter 5 ROM in the cynes emulator. Right, the same ROM with the scroll reset added. The fix leaves the sprites in place because they ignore the scroll; the ball bounces, so the book caught it elsewhere.&lt;/em&gt;&lt;/figcaption&gt;
&lt;/figure&gt;

&lt;p&gt;Mega Blast keeps its score in three bytes that each hold 0 to 99, and the code that carries between them has two flag bugs. I confirmed both by running the routines:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Listing 10.3&lt;/strong&gt; compares each byte with 99 and branches if the carry flag is clear, which page 162 describes as "less than or equal to 99." The 6502's compare sets carry when the value is at least 99, the reverse of the Z80's, so the branch is taken only below 99. A byte that reaches 99 is treated as an overflow and becomes 255. The same page promises the score will roll over "but won't cause any strange display problems or make our game crash." A reader's &lt;a href="https://go.tinymachines.io/tony-cruise-nes-pr-2"&gt;pull request&lt;/a&gt; fixed the repository in June 2024, but the book still prints the bug, even after Manning's spring 2025 corrections.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Score subtraction&lt;/strong&gt; on page 164 decrements the middle byte and then branches on carry: "If decrementing the value of the second byte does not set the carry flag (i.e., does not go past zero), then we can jump to our @skip label." Decrementing never touches the carry, on the 6502 or the Z80. The branch tests the carry left by the addition before it, which is always set, so a borrow never reaches the top byte. Each meteor that reaches the ground costs 10 points, and at exactly 100,000 points one should leave 99,990; the routine leaves the middle byte at 255. Few players will get there, but the lesson that decrementing sets the carry is wrong on both chips.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Here is the repository's code, with my comments in place of the book's:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="k"&gt;clc&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="k"&gt;adc&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;#&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="c1"&gt;; fix up the low byte&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="k"&gt;sta&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;score&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="k"&gt;dec&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;score&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="w"&gt;   &lt;/span&gt;&lt;span class="c1"&gt;; DEC sets N and Z, never C&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="k"&gt;bcs&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;@skip&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="c1"&gt;; always taken: C is still set by the ADC&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Two promised features never arrive. Chapter 12 draws tiles for an enemy explosion that is never spawned, so shot meteors simply vanish, and the ship's final explosion freezes on its first frame instead of playing out as page 178 plans.&lt;/p&gt;
&lt;p&gt;The book never puts a number on the vblank budget, though page 209 says NMI code must be "as fast as possible." Page 93 even says the hardware copy of the sprite table runs "without tying up the CPU." It halts the CPU for 513 or 514 cycles, about 23% of the roughly 2,273 cycles of vblank on a North American console.&lt;/p&gt;
&lt;p&gt;The worst bug is in the lives display, and it blows far past that budget. Listing 11.13 loads the number of lives into the X register, then masks the accumulator down to its low three bits, a step annotated "Limits to a max of 8." The count is in X, not the accumulator, so nothing is limited. The loop that follows, which blanks the unused ship icons, counts eight minus the number of lives. At eight lives that count is zero, and a countdown loop that starts at zero wraps around and runs 256 times, as a Z80 DJNZ loop does when B starts at zero. The NMI writes 1,056 bytes to video memory, which takes about 7,000 cycles, three times all of vblank, and the writes that land after vblank wreck the screen.&lt;/p&gt;
&lt;p&gt;Chapters 11 through 15 never let the count pass five, but chapter 16 adds an extra life every 5,000 points with no cap. A player who reaches 15,000 points without losing a ship triggers the bug. The repository's code awards lives at 1,000, 6,000, and 11,000 points, so it fails at 11,000.&lt;/p&gt;
&lt;figure style="margin: 2rem 0; text-align: center;"&gt;
&lt;a href="https://tinycomputers.io/images/classic-game-programming-on-the-nes/ch16-lives-overflow.png"&gt;&lt;img src="https://tinycomputers.io/images/classic-game-programming-on-the-nes/ch16-lives-overflow.png" alt="Four emulator screenshots of the chapter 16 ROM in a two-by-two grid. Top left, five lives as the game starts: a clean screen with the LEVEL 01 banner, stars, the mountain ridge, the ship, SCORE 0000000, and five reserve ships. Top right, the frame after the lives counter becomes eight: the background turns gray, streaks and stray letters cover the top and bottom of the screen, and the score label is split apart. Bottom left, two seconds later: stray letters and fragments of text remain scattered across the playfield, and the lives row is broken. Bottom right, the control with seven lives two seconds later: a clean screen with seven reserve ships." width="1068" height="1088" loading="lazy" style="display: block; width: 560px; max-width: 100%; height: auto; margin: 0 auto; border: 1px solid #ccc; border-radius: 4px; image-rendering: pixelated;"&gt;&lt;/a&gt;
&lt;figcaption&gt;&lt;em&gt;The chapter 16 ROM in the cynes emulator. I set the lives counter in RAM rather than earning the lives in play. Eight lives wrecks the screen; seven, the control, draws cleanly.&lt;/em&gt;&lt;/figcaption&gt;
&lt;/figure&gt;

&lt;h3&gt;Sound by Screenshot&lt;/h3&gt;
&lt;p&gt;Chapters 14 and 15 add sound with FamiStudio, a free music editor that ships a playback engine for ca65. Wiring it in takes short, working code: a configuration block, includes, two init calls, and one call at the end of the NMI. Sound takes 4,327 of the 7,391 bytes of code and data in the finished game's program ROM, 2,767 of them for the engine; everything else takes 3,064.&lt;/p&gt;
&lt;p&gt;The reader learns FamiStudio, not the audio processing unit, or APU, the 2A03's built-in sound hardware. Of the 25 figures in the two chapters, 22 come from FamiStudio's interface or website. Neither chapter gives an APU register address, though appendix C has a table of them, and no listing writes to the APU. That is a stated choice. Page 238 says "it is much easier to use one of the sound and music creation tools and the playback engines they provide." But Listing 14.1 prints the exported sound-effect data without explaining it, and the format is simple. A byte of 0x80 or more names an APU register, and the byte after it is the value to write. A byte from 1 to 127 is a number of frames to wait, and zero ends the effect. Decoding it is the hardware lesson the chapter skips.&lt;/p&gt;
&lt;p&gt;The little hardware prose here is loose. Pages 225 and 243 say "Apple Music commonly uses 128-bit samples." Its lossless streams use 16- or 24-bit samples; 128 kbps is a common MP3 bit rate. And the in-game music plays drums on the APU's sample channel, called DPCM, though the book's own controller routine warns that DPCM samples "can conflict with gamepad reading" and then reads the pad only once per frame.&lt;/p&gt;
&lt;h3&gt;Aged Tools and Thin Appendices&lt;/h3&gt;
&lt;p&gt;Some of the setup advice has aged, and some of the build scripts never worked:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Chapter 2 says Mac users must run Mesen in a virtual machine. That was true of the original Mesen the book links to, but Mesen 2 already offered experimental macOS builds before the book shipped, and it has had official macOS releases since version 2.1.0 in May 2025.&lt;/li&gt;
&lt;li&gt;Page 232 says to copy famistudio_ca65.s from famistudio.org. Since FamiStudio 4.3.0, released in December 2024, six months after the book, that file pulls in separate note-table binaries and no longer assembles alone. Copy the NoteTables folder too, or use the 4.1.0 engine bundled in the repository.&lt;/li&gt;
&lt;li&gt;On Linux and macOS, the book's &lt;code&gt;.\compile.sh&lt;/code&gt; fails, and the scripts are committed without the execute bit, so &lt;code&gt;./compile.sh&lt;/code&gt; fails too. &lt;code&gt;bash compile.sh&lt;/code&gt; works.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;After Listing 16.1 adds extra lives, chapter 16 turns into a survey, and the appendices are reference tables. The section on mappers, the bank-switching chips on bigger cartridges, explains bank switching in diagrams but never shows a bank switch. The list of expansion sound chips doesn't mention that an unmodified NES can't play them, because only the Famicom's cartridge slot carries audio.&lt;/p&gt;
&lt;h3&gt;The 6502 Through Z80 Eyes&lt;/h3&gt;
&lt;p&gt;The book names the Z80 only once, on page 160, but a Z80 programmer reads every page as a comparison.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Registers.&lt;/strong&gt; Page 28 says the 6502 "has a particularly small number of registers compared to other 8-bit processors." The headline problem in the &lt;a href="https://tinycomputers.io/posts/rust-on-z80-an-llvm-backend-odyssey.html"&gt;Rust-on-Z80 backend&lt;/a&gt; was register poverty: seven 8-bit registers where the LLVM compiler framework expects many more. The 6502 has three, and it treats zero page as a register file reached with two-byte, three-cycle instructions. The llvm-mos compiler makes this formal with 16 two-byte "imaginary registers" in zero page, and its &lt;a href="https://go.tinymachines.io/llvm-mos-sdk"&gt;development kit&lt;/a&gt; targets the NES directly.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;I/O.&lt;/strong&gt; "The 6502 processor does not have specific instructions to access external ports," says Appendix C. Every PPU, APU, and controller register is a memory address. The Z80 has a separate port space with its own IN and OUT instructions, so the clean-room emulator talks to the outside world through four callbacks: memory read, memory write, port in, and port out. A 2A03 core needs only the first two.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Interrupts.&lt;/strong&gt; The NES and the ColecoVision both wire vblank to the CPU's non-maskable interrupt. The book's handler saves its three registers to the stack by hand, where a Z80 handler can swap in a whole alternate register set with two exchange instructions.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Emulators.&lt;/strong&gt; Page 15 recommends the iNES emulator by Marat Fayzullin, whose ROM header format opens every ROM in the book. He also wrote fMSX and ColEm, emulators of the MSX and the ColecoVision. Mesen, the first emulator chapter 2 recommends, added ColecoVision support in version 2.1.0, so one emulator now runs both machines.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Decimal.&lt;/strong&gt; Page 160 says "On a Z80 or normal 6502 processor, there are commands to help with this type of approach to storing numbers, called binary-coded decimal (BCD)." Nintendo, it says, removed them "to either save space or make the processor different enough so it didn't have to pay a license." No instructions were removed. The instructions that set and clear the decimal flag still work, and the book's own reset code uses one. The 2A03 ignores the decimal flag because Ricoh removed five transistors from the decimal adjust circuit, which saved no space. The licensing motive is plausible but unconfirmed.&lt;/p&gt;
&lt;p&gt;Cruise's workaround is base 100, not BCD. &lt;code&gt;dec99_to_bytes&lt;/code&gt; splits each score byte into digits by subtracting 50 once, 20 as often as it fits, and then 10, and the caller adds 48 to get a tile number. The prime sieve that &lt;a href="https://tinycomputers.io/posts/sectorz-a-c-compiler-in-733-bytes-of-z80-assembly.html"&gt;SectorZ&lt;/a&gt; compiles prints numbers the same way, with repeated subtraction and &lt;code&gt;c = d + 48&lt;/code&gt;. On the Z80, the decimal-adjust instruction, DAA, does the work in hardware, as it does in the &lt;a href="https://tinycomputers.io/posts/building-z80-roms-with-rust-a-modern-approach-to-retro-computing.html"&gt;kz80_calc&lt;/a&gt; spreadsheet's packed BCD:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="c1"&gt;; add A (two packed BCD digits) to a little-endian BCD score&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nf"&gt;ld&lt;/span&gt;&lt;span class="w"&gt;   &lt;/span&gt;&lt;span class="no"&gt;hl&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="no"&gt;score&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nf"&gt;add&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="no"&gt;a&lt;/span&gt;&lt;span class="p"&gt;,(&lt;/span&gt;&lt;span class="no"&gt;hl&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nf"&gt;daa&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nf"&gt;ld&lt;/span&gt;&lt;span class="w"&gt;   &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;hl&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;&lt;span class="no"&gt;a&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nf"&gt;inc&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="no"&gt;hl&lt;/span&gt;&lt;span class="w"&gt;          &lt;/span&gt;&lt;span class="c1"&gt;; INC HL doesn't touch the carry&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nf"&gt;ld&lt;/span&gt;&lt;span class="w"&gt;   &lt;/span&gt;&lt;span class="no"&gt;a&lt;/span&gt;&lt;span class="p"&gt;,(&lt;/span&gt;&lt;span class="no"&gt;hl&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nf"&gt;adc&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="no"&gt;a&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nf"&gt;daa&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nf"&gt;ld&lt;/span&gt;&lt;span class="w"&gt;   &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;hl&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;&lt;span class="no"&gt;a&lt;/span&gt;&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="c1"&gt;; repeat the last five lines for each further byte&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Reading list.&lt;/strong&gt; Page 26 recommends &lt;a href="https://go.tinymachines.io/programming-the-6502-zaks"&gt;&lt;em&gt;Programming the 6502&lt;/em&gt;&lt;/a&gt; by "Rodney Zaks." His name is Rodnay, and I recommended his &lt;a href="https://go.tinymachines.io/nxeFwX"&gt;&lt;em&gt;Programming the Z80&lt;/em&gt;&lt;/a&gt; in the Ciarcia and Barden reviews. The two make a good pair for a Z80 programmer learning the 6502.&lt;/p&gt;
&lt;h3&gt;Who Should Read It&lt;/h3&gt;
&lt;p&gt;&lt;em&gt;Classic Game Programming on the NES&lt;/em&gt; suits a reader who already programs, wants a complete NES game with a clean structure, and will keep the NESdev wiki open beside it. Despite the promise on page xv, a reader with no programming experience is the one least able to catch the primer's errors. Readers who know the 6502 can skip chapters 3 and 4, as page xvi suggests. Readers coming from the Z80 should read them slowly. Table 4.1's carry rule is the Z80's, and eight rotations do bring a byte back on the Z80's circular rotates, so both errors will look right to them.&lt;/p&gt;
&lt;p&gt;Buy it for the project: a complete, well-structured game that fits the simplest NES cartridge and builds anywhere cc65 runs. Build from the repository rather than the printed listings. It assembles where Listing 6.10 doesn't, and a reader's pull requests fixed its copy of Listing 10.3 and a chapter 10 branch that kept enemies from advancing. Manning's spring 2025 corrections fixed that branch in the book but not Listing 10.3. Don't buy it to learn the 6502 or the PPU. For that, other resources are better:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The &lt;a href="https://go.tinymachines.io/nesdev-wiki"&gt;NESdev wiki&lt;/a&gt; is the reference the book leans on, and its pages on the PPU, APU, and init code are more accurate.&lt;/li&gt;
&lt;li&gt;Kevin Zurawel's free &lt;a href="https://go.tinymachines.io/famicom-party"&gt;&lt;em&gt;Famicom Party&lt;/em&gt;&lt;/a&gt; also uses ca65, though it is unfinished at 17 chapters.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For Manning's errata page, the repository, and any second edition, the fixes are clear:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Run every exercise.&lt;/strong&gt; Check each printed dump against the simulator and publish errata for chapters 3 and 4.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Fix the game bugs in the repository.&lt;/strong&gt; Start with the lives display, the score subtraction, and chapter 5's scroll reset.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Put a number on vblank.&lt;/strong&gt; State the 2,273-cycle budget and count every NMI against it.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Write one APU register by hand before opening FamiStudio.&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Cruise has been programming for more than 40 years, and Mega Blast shows it: the NMI order, the update flags, and the data-driven enemies are the work of someone who has shipped games. One reader's pull requests have already fixed two bugs in the repository, and Cruise merged both within a day. The explanations deserve the same pass.&lt;/p&gt;</description><category>8-bit</category><category>6502</category><category>assembly</category><category>book review</category><category>ca65</category><category>cc65</category><category>emulation</category><category>game development</category><category>manning</category><category>nes</category><category>retrocomputing</category><category>tony cruise</category><category>z80</category><guid>https://tinycomputers.io/posts/review-of-classic-game-programming-on-the-nes-by-tony-cruise.html</guid><pubDate>Mon, 16 Nov 2026 14:00:00 GMT</pubDate></item><item><title>The Last Five Percent: AI, a Youth Game Competition, and What It Was Really Judging</title><link>https://tinycomputers.io/posts/the-last-five-percent.html?utm_source=feed&amp;utm_medium=rss&amp;utm_campaign=rss</link><dc:creator>A.C. Jokela</dc:creator><description>&lt;div class="audio-widget"&gt;
&lt;div class="audio-widget-header"&gt;
&lt;span class="audio-widget-icon"&gt;🎧&lt;/span&gt;
&lt;span class="audio-widget-label"&gt;Listen to this article&lt;/span&gt;
&lt;/div&gt;
&lt;audio controls preload="metadata"&gt;
&lt;source src="https://tinycomputers.io/the-last-five-percent_tts.mp3" type="audio/mpeg"&gt;
&lt;/source&gt;&lt;/audio&gt;
&lt;div class="audio-widget-footer"&gt;38 min · AI-generated narration&lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;In 2014 the Australian Council for Educational Research piloted a national competition for schoolchildren with a simple brief: make a video game. More than 550 students registered that first year. By its last year the rules had settled into something both simple and serious. A team of up to four students, anywhere from Year 3 to Year 12, built an original game, wrote a game design document explaining it, and submitted a one-to-five-minute screen recording of it being played. The judges had to be able to see the code. The main characters, the sounds, the key obstacles and the backgrounds had to be the students' own work. Entry was free.&lt;/p&gt;
&lt;h3&gt;The Final Chapter&lt;/h3&gt;
&lt;p&gt;More than a decade and 16,000 student participations later, the Australian STEM Video Game Challenge is ending. The competition's website now carries the sentence "2026 is the final year of the Australian STEM Video Game Challenge." Its resources stay online until the end of the first school term of 2027, and then they go too.&lt;/p&gt;
&lt;p&gt;ACER's explanation came from Cathy Zemaitis, who heads its Student Learning and Progress division, in a statement to &lt;a href="https://go.tinymachines.io/pcgamer-stem-video-game-challenge"&gt;PC Gamer&lt;/a&gt;. The decision was driven by "the rapid and complex rise of generative AI in game development," which was "making it harder to judge what students made themselves" and moving the program away from its original purpose. ACER has no plans to deliver the challenge in another form. Schools looking for a replacement are pointed to an international mathematical modelling competition.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://go.tinymachines.io/kotaku-stem-video-game-challenge"&gt;Kotaku's coverage&lt;/a&gt; quoted a parent on Reddit whose teenage son and his friends had entered for several years running. The competition had given the group confidence and a sense of belonging to a wider community of people who make games. When the news came, the son was "visibly gutted."&lt;/p&gt;
&lt;p&gt;ACER made the wrong decision. Generative AI is not harmless to a competition like this one; it plainly isn't. But the problem ACER describes is a problem with what the competition measured, and that problem has a fix. Ending the competition does not fix it. It just stops measuring.&lt;/p&gt;
&lt;h3&gt;What Was Actually Claimed&lt;/h3&gt;
&lt;p&gt;The headlines went further than ACER did. Kotaku's said the competition was shut down because kids kept submitting AI slop. PC Gamer's said students were submitting games made entirely with AI. ACER's own statement makes a narrower claim: the tools made it hard to tell what the students had made. I could not find a count of generated entries, an example of one, or any finding from the judges. The only first-hand description of wholly generated games I found came from an unnamed former judge in a Reddit thread, the same thread that raised the possibility that funding cuts were the bigger reason. I am going to take ACER at its word, because its word is more interesting than the headlines.&lt;/p&gt;
&lt;p&gt;The rules already allowed AI. A team could use it as long as they referenced it in their design document "in the same way they might reference a tutorial": what they used it for, with screenshots where possible, and how and why they changed what it produced. Small chunks of generated code were fine. Using AI to test and fix bugs was fine. This was not a competition that banned the tools and then got cheated. It was a competition that permitted the tools and then found its judges could not see where the tool stopped and the student started.&lt;/p&gt;
&lt;p&gt;That is two problems wearing one coat. The first is a judging problem: a panel looking at a finished game cannot tell who made which part. The second is a purpose problem: if the tools make the game, the student has not learned to make games, and a competition whose whole reason for existing is to get children to learn something has stopped doing its job. ACER's statement names both. The decision to end the competition treats them as one problem with one answer. They are not one problem, and the second is the one worth thinking about first.&lt;/p&gt;
&lt;h3&gt;Candy and Chess&lt;/h3&gt;
&lt;p&gt;Alasdair MacIntyre tells a story in &lt;em&gt;After Virtue&lt;/em&gt; about teaching a child to play chess. The child is bright but has no interest in chess. The child does like candy. So the teacher offers candy for every game played, extra candy for every win, and promises to play just badly enough that winning is possible but hard. The child plays, and plays to win. MacIntyre's point is that as long as candy is the only reason to play, the child has "every reason to cheat," provided the cheating works. Something changes only if the child comes to want what chess itself offers: a particular kind of analytical skill, strategic imagination, the pleasure of seeing three moves ahead. MacIntyre calls these the goods internal to the practice. Candy is an external good. It can be had in a hundred ways. The internal goods can only be had by playing chess.&lt;/p&gt;
&lt;p&gt;A youth competition is a candy machine, built on purpose. The prize, the online showcase, the certificate, the line on a school report: these are external goods, and they exist to get a nine-year-old to sit with Scratch for a whole term until the internal goods take over. The hope is the same as MacIntyre's. At some point the child stops making a game to win and starts making it because getting a jump to feel right is its own satisfaction.&lt;/p&gt;
&lt;p&gt;Generative AI breaks the machine in a specific way. It does not make cheating easier in the old sense, because the rules allowed the tools. It makes the candy available without the chess. A team can now produce something that looks like a term's work in an afternoon, and if the judging pays out for the look of the finished thing, the candy goes to whoever is best at asking for it. The child who struggled through the term gets the same certificate, or less. The machine stops moving anyone toward the internal goods, because it no longer pays for them.&lt;/p&gt;
&lt;p&gt;That is a real failure. But look at where the failure is. It is in what the judges pay for. MacIntyre's child did not need chess abolished. The child needed a game in which the candy could only be won by playing chess well.&lt;/p&gt;
&lt;h3&gt;The Case for Ending It&lt;/h3&gt;
&lt;p&gt;ACER's position deserves its strongest form, so here it is.&lt;/p&gt;
&lt;p&gt;Sixteen thousand participations over the life of the challenge works out to well over a thousand students a year. Judging is human and finite. There is no reliable detector for generated code or art, and the tools sold as detectors are known for false positives. A false positive here is an accusation against a child, made by the organization that invited the child to enter. The entrants run from eight-year-olds dragging blocks in Scratch to seventeen-year-olds writing their own physics, and any rule has to be fair to all of them. ACER is an educational research organization, not a games company, and a free national competition runs on a foundation's budget and the goodwill of its judges. And the purpose problem is real: if most entries are mostly generated, most participants are not learning what the program exists to teach, however the prizes are awarded.&lt;/p&gt;
&lt;p&gt;Put together, ending it looks less like panic than like an honest admission. We built a thing to teach children to make games. We can no longer tell whether it does. Better to stop than to run a contest we can't judge fairly.&lt;/p&gt;
&lt;p&gt;Here is where that case breaks. The prizes are not decided across a thousand entries. They are decided in the finals, and the finals are small. The top five entries in each of the four primary and junior secondary categories go through, and the top ten in Years 10 to 12. That is thirty finalist teams. Every prize the competition awards is settled among thirty teams, and thirty teams is a number a panel of judges can talk to.&lt;/p&gt;
&lt;p&gt;The purpose problem does not go away when the competition does, either. The tools are on every student's laptop whether or not ACER runs a challenge. What ends is a national structure that rewarded children, in public, for the slow part of making a game. The question was never whether students would use AI. It was what the competition would reward them for doing with it.&lt;/p&gt;
&lt;h3&gt;The Last Five Percent&lt;/h3&gt;
&lt;p&gt;Here is what I believe after building a lot of things with these tools. AI will get you about ninety-five percent of the way to a solid user interface, decent graphics and something playable. The last five percent is what separates slop from a thing people want to keep using, and you will spend about ninety percent of your time there.&lt;/p&gt;
&lt;p&gt;Those numbers are not measurements. Nobody timed anything. They are labels for a proportion I feel every time I build something, the way a carpenter says a cabinet is basically done for the second week in a row. They belong to an old family of software jokes. Tom Cargill of Bell Labs put it as the ninety-ninety rule, which Jon Bentley printed in his "Programming Pearls" column in 1985: the first ninety percent of the code accounts for the first ninety percent of the development time, and the remaining ten percent accounts for the other ninety percent. The two halves add up to a hundred and eighty percent. That is the joke, and it is also true.&lt;/p&gt;
&lt;p&gt;What AI changes is where the first ninety-five percent comes from. It does not change the last five. If anything it makes the last five more visible, because the first ninety-five now arrives so fast that the gap between it and something good is the only thing left to look at. I came at this from another direction in an essay on &lt;a href="https://go.tinymachines.io/what-makes-something-slop"&gt;what makes something slop&lt;/a&gt;: slop is output that has never been tested against anything outside itself. The last five percent is where that test happens. It is also the judgment bottleneck from &lt;a href="https://go.tinymachines.io/the-excavator-and-the-foundation"&gt;The Excavator and the Foundation&lt;/a&gt;, seen from the inside: the excavator digs the hole in an afternoon, and someone still has to know whether the hole is in the right place.&lt;/p&gt;
&lt;p&gt;In games, the last five percent has a name. Steve Swink's &lt;em&gt;Game Feel&lt;/em&gt; builds its definition of the subject from real-time control, a simulated space and polish, and polish is the part a player notices without being able to say why. It is the few frames in which a character can still jump after running off a ledge. It is the button press that registers a hair before the character lands, so the next jump comes out anyway. It is a jump arc that rises fast and falls faster, because a symmetrical parabola feels floaty even though it is the physically correct one. None of this is hard to generate once you know to ask for it. All of it is hard to know to ask for until you have watched someone play your game and seen exactly where their hands tense up.&lt;/p&gt;
&lt;p&gt;A model can't do that part for you. It has not watched your little brother miss the same jump eleven times.&lt;/p&gt;
&lt;h3&gt;The Andes&lt;/h3&gt;
&lt;p&gt;The clearest example of the last five percent I have is not from a game. It is from the &lt;a href="https://go.tinymachines.io/tc-ballistics"&gt;ballistics engine&lt;/a&gt; I have been building since the spring of 2025, an open-source Rust library that computes where a bullet goes.&lt;/p&gt;
&lt;p&gt;Most of that engine came easily. With AI doing a great deal of the typing, the equations of motion, the drag tables, the atmosphere model, the command-line tool and the bindings for other languages all arrived in good order. That was the ninety-five percent. Then people started using it, each with their own way of thinking about shooting, and the quirks started to surface.&lt;/p&gt;
&lt;p&gt;One of them came from a man in Peru who shoots air rifles. He wanted to calculate trajectories anywhere in his country. Peru runs from Pacific beaches at sea level to Andean cities above 4,000 meters; the airport at Cusco sits at 3,310. His question sent me up into those mountains, numerically, and up there two parts of the engine that had always agreed stopped agreeing.&lt;/p&gt;
&lt;p&gt;Shooters often do not know the true air pressure where they stand. What they have is the altimeter setting from the nearest airport or weather report: the pressure corrected to sea level, which pilots call QNH. The engine has to turn that back into station pressure, the pressure at the shooter's own elevation. It had been doing it with a shortcut: take the standard atmosphere's pressure at that height and scale it by the ratio of the reported setting to the standard 1013.25 hectopascals. It looks reasonable. It is not how an altimeter setting is defined. The correct relation finds the pressure altitude the setting implies and adds the station's height to it.&lt;/p&gt;
&lt;p&gt;At sea level the two methods give exactly the same answer, down to the last bit. On a standard day, when the setting is exactly 1013.25, they also agree exactly. Everywhere else they drift apart with height. On a 1020 hectopascal day at 250 meters, which is roughly where a lot of people shoot, the gap is about four hundredths of a hectopascal, four parts in a hundred thousand. In the engine that moves a .308's drop at a thousand yards by about a third of a millimeter. No group on paper will ever show it, and none of my tests did.&lt;/p&gt;
&lt;p&gt;At 1,500 meters on a 1030 day the gap is half a hectopascal. At Cusco on a 1033 day it is 1.07. At La Paz, across the border at 4,061 meters, it is 1.52. For a .308 zeroed at 100 yards, the drop at 1,000 yards moved by 6 millimeters at Cusco and 8 at La Paz. That is still small, and for an air rifle at fifty meters it is smaller still. But it is not rounding. It is the engine computing the wrong air, by a consistent amount, for exactly the people who live highest.&lt;/p&gt;
&lt;p&gt;Fixing it took several days of spare time and about three dozen commits. The second day turned up a related bug that bites for the same reason. A shooter who typed a reading of 59 degrees Fahrenheit and 29.92 inches of mercury, a perfectly ordinary day, got that reading treated as never entered, because it landed within a hair of the engine's default values, and the engine quietly replaced it with an altitude-based guess. The same two days added a warning for apps that send a sea-level pressure together with Cusco's altitude, which had been flying their users through air at one and a half times the pressure it should have had.&lt;/p&gt;
&lt;p&gt;None of this was found by reading the code, mine or any assistant's. A person whose world was different from mine found it by asking an ordinary question. And fixing it meant knowing things no generated draft hands you: why two formulas that agree at sea level part company in the Andes, why an altimeter setting is defined the way it is, how to pin the right answer in tests so the shortcut can never quietly come back. That knowledge is the last five percent. It is also exactly the kind of thing a judge can ask a student about.&lt;/p&gt;
&lt;h3&gt;Three Rules&lt;/h3&gt;
&lt;p&gt;If AI hands every team the first ninety-five percent, the competition should judge the last five. Three rules would do it, and none of them bans anything.&lt;/p&gt;
&lt;p&gt;The first is a polish bar set for the world as it is. A game that runs, has a title screen and plays cleanly for thirty seconds used to stand for a term of work by a twelve-year-old, and it was worth rewarding on its own. It no longer is. The rubric should move its weight to the things that only come from iteration: how the controls feel, how the difficulty climbs, what happens when a player does something the designer did not plan for. Judges should spend their time trying to break the game, not admiring its first minute. This raises the bar, and that is the point. The part of the bar that gets raised is the part made of the student's own hours.&lt;/p&gt;
&lt;p&gt;The second is a spoken defense for the finalists, without notes. Thirty teams at twenty minutes each over a video call is ten hours of judging. Each team sits with the judges, explains how its game works, and answers questions about it. The questions scale with age. A Year 4 team that built a platformer in Scratch should be able to say why its character falls faster each second instead of at a steady speed: every tick, the game adds a little to the character's downward velocity, and then moves the character by that velocity. A team that cannot say that did not build the fall.&lt;/p&gt;
&lt;p&gt;At the top, the questions should be exactly as demanding as the work. A Years 10 to 12 team whose game has rippling water should be able to explain the Navier–Stokes equations as their game uses them. A great deal of real-time fluid simulation in games traces back to Jos Stam's paper "Real-Time Fluid Dynamics for Games," presented at the Game Developers Conference in 2003, and its steps are teachable: carry the fluid's velocity along with itself, spread it out according to the viscosity, then correct the field so that no fluid is created or destroyed. Water surfaces are usually cheaper still: a height field driven by a simplified form of the equations that treats the water as shallow. A team should be able to say which simplification they made and what it costs them, which step makes their ripples die out, and what happens if they halve the viscosity. Better yet, a judge can ask them to halve it while everyone watches. If you understand your code, you can change it on request. If you do not, you cannot, however good the game looks.&lt;/p&gt;
&lt;p&gt;None of this is new, and I have been on the student's side of it. In graduate school I took Animation and Planning in Games, an upper-division course on exactly what its name says. The class was mostly senior computer science undergraduates with a handful of graduate students, and more was expected of the graduate students: the same scaling by level I am proposing by school year. Part of what was expected of me was to defend my final project in front of the class. I had to talk through the techniques and algorithms I had used, why I had chosen them, and how some of their mechanics worked. The finished project could not answer those questions for me. I had to. That project, as an aside, became the seed of &lt;a href="https://go.tinymachines.io/circle-kingdom"&gt;&lt;em&gt;Circle Kingdom&lt;/em&gt;&lt;/a&gt;, a storybook strategy game, free to play in a browser, in which a golden champion defends a circular king against an army of triangles.&lt;/p&gt;
&lt;p&gt;The obvious objection is that some children freeze in front of adults, and a spoken exam rewards confidence as much as knowledge. That is true, and it is an argument for designing the defense well, not for skipping it. A shy eleven-year-old does not have to give a talk. A judge can open the project, point at a block of code and ask what happens if it is deleted. A team can answer at the keyboard instead of out loud, with its mentor in the room. The defense is not a test of eloquence. It is a test of whether a student can find their way around their own work, and a student who built the thing can do that quietly.&lt;/p&gt;
&lt;p&gt;The third is a playtest log: who played the game, on what date, what broke, and what the team changed because of it. A log can be generated too. But a log is easy to check in conversation. Tell me about the third bug on this list. How did you find it? Why did you fix it that way and not another way? The log is where the last five percent leaves a trail, and the defense is where the trail gets walked.&lt;/p&gt;
&lt;p&gt;None of this asks students to stop using AI. It asks them to know what they shipped. A student who used AI for the first ninety-five percent, spent a month on the last five, and can explain all of it has done exactly what the competition exists to teach. That student should win.&lt;/p&gt;
&lt;p&gt;The rules also reach the students who never make the finals, because rubrics teach. The moment a competition announces that finalists will explain their fluid solver without notes, every team that hopes to be a finalist starts learning its fluid solver. Mentors start running practice defenses in classrooms. The candy is still candy. It can only be won by playing chess.&lt;/p&gt;
&lt;h3&gt;The Text That Cannot Answer&lt;/h3&gt;
&lt;p&gt;Socrates worried about this exact problem twenty-four centuries ago, about a different technology.&lt;/p&gt;
&lt;p&gt;In &lt;a href="https://go.tinymachines.io/phaedrus-jowett"&gt;Plato's &lt;em&gt;Phaedrus&lt;/em&gt;&lt;/a&gt;, Socrates tells a story about the Egyptian god Theuth presenting the invention of writing to the king Thamus. Theuth promises that writing will make people wiser and improve their memories. Thamus disagrees. In Jowett's translation, he says the people who learn letters "will appear to be omniscient and will generally know nothing," having "the show of wisdom without the reality." Socrates then adds a complaint of his own. Written words look as though they have intelligence, he says, but if you put a question to them, the text "always gives one unvarying answer." And when a text is attacked or misread, it has no parent to protect it, and it cannot defend itself.&lt;/p&gt;
&lt;p&gt;Put "generated output" where Socrates says "writing" and you have ACER's announcement. A finished game is a text in Socrates's sense. It does the same thing every time you play it. It cannot tell you why the jump arc is shaped the way it is, or why the water settles. It cannot answer a question. Its maker can.&lt;/p&gt;
&lt;p&gt;Socrates was half wrong about writing, and the way he was wrong is the useful part. Writing did not destroy memory or understanding, because we did not answer it by banning writing. We kept writing and added a check: we started asking writers questions. The doctoral viva, the thesis defense, the oral examination, the code review where someone asks why you did it that way. Every one of those is Socrates's remedy, the living speaker beside the text, applied to a technology we decided to keep.&lt;/p&gt;
&lt;p&gt;Gilbert Ryle split knowledge into knowing how and knowing that. Knowing how is a jump that feels right, which you can only get by tuning it with your hands and watching other hands on the controller. Knowing that is the explanation: the velocity, the viscosity, the projection step. A finished game used to be decent evidence of both, because there was no other way to get one. It is no longer good evidence of either. The polish bar and the spoken defense are the two ways of putting the evidence back, one for each kind of knowing.&lt;/p&gt;
&lt;h3&gt;Every Take-Home&lt;/h3&gt;
&lt;p&gt;The STEM Video Game Challenge is a small competition, and it is easy to read this as a story about one organization's decision. It is a story about every assessment that accepts a finished artifact in place of watching the work: the school essay, the take-home exam, the weekend hiring exercise, the grant application. Each of them was always a stand-in. The artifact counted as evidence of the skill because producing it required the skill. Generative AI cut that link for all of them at once, in the same way, in the same couple of years.&lt;/p&gt;
&lt;p&gt;Each of them faces ACER's choice. You can stop accepting the artifact, which is what ACER did. Or you can stop treating the artifact as the evidence and start asking its author questions. The second option costs more per candidate and far less in total, because you only have to question the people you are about to reward.&lt;/p&gt;
&lt;p&gt;I keep thinking about the parent's son. He and his friends entered year after year, and they did the slow part, because that is what you do when a thing matters to you. What the ending teaches him is that when a tool makes the thing being judged easy, the judges stop judging. I would rather he learned the other lesson: when a tool makes part of the work easy, the judging moves to the part that is still hard.&lt;/p&gt;
&lt;p&gt;His game cannot answer questions. He can. Someone should have asked him.&lt;/p&gt;</description><category>ai</category><category>assessment</category><category>ballistics</category><category>education</category><category>game development</category><category>macintyre</category><category>philosophy</category><category>plato</category><guid>https://tinycomputers.io/posts/the-last-five-percent.html</guid><pubDate>Sun, 15 Nov 2026 04:00:00 GMT</pubDate></item><item><title>The Line Drawn at the Words: An AI Assistant, a Ballistics Engine, and Where Refusal Lives</title><link>https://tinycomputers.io/posts/the-line-drawn-at-the-words.html?utm_source=feed&amp;utm_medium=rss&amp;utm_campaign=rss</link><dc:creator>A.C. Jokela</dc:creator><description>&lt;div class="audio-widget"&gt;
&lt;div class="audio-widget-header"&gt;
&lt;span class="audio-widget-icon"&gt;🎧&lt;/span&gt;
&lt;span class="audio-widget-label"&gt;Listen to this article&lt;/span&gt;
&lt;/div&gt;
&lt;audio controls preload="metadata"&gt;
&lt;source src="https://tinycomputers.io/the-line-drawn-at-the-words_tts.mp3" type="audio/mpeg"&gt;
&lt;/source&gt;&lt;/audio&gt;
&lt;div class="audio-widget-footer"&gt;31 min · AI-generated narration&lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;On a Tuesday afternoon in November, an AI coding assistant declined a task. The message was short and polite. The work I had asked for, it said, "directly improve[s] firearm trajectory and truing calculations," and that scope "cannot be implemented or validated by this assistant." It suggested I reassign the work or rescope it "to general app maintenance independent of firing-solution accuracy."&lt;/p&gt;
&lt;p&gt;I want to be careful about what this essay is. It is not a complaint. I moved the work to a different tool, the work shipped the same evening, and nobody was harmed by an assistant having a policy. What interests me is the shape of the refusal: where the line fell, what it was attached to, and what it says about the strange new category of tool that can look at a job and decide it would rather not.&lt;/p&gt;
&lt;p&gt;Because the line did not fall where I expected it to. It fell in the middle of a single piece of physics, between two tasks that were, as far as the atmosphere is concerned, the same task.&lt;/p&gt;
&lt;h3&gt;What the Work Was&lt;/h3&gt;
&lt;p&gt;The ballistics engine I maintain is an open-source Rust library. It computes where a bullet goes. You give it a muzzle velocity, a ballistic coefficient, a sight height, the weather, and a range, and it integrates the equations of motion through the air and tells you how far the bullet drops and drifts. It runs as a command-line tool, in a browser, behind a web API, and inside two phone apps.&lt;/p&gt;
&lt;p&gt;The work that week was about humidity. Specifically, it was about the fact that the engine had been handling humidity two different ways.&lt;/p&gt;
&lt;p&gt;Humid air is lighter than dry air. This surprises people, because humid days feel heavy, but it falls straight out of the chemistry. A water molecule weighs about 18 grams per mole. The nitrogen and oxygen it displaces average about 29. Replace some of the air with water vapor and the same volume weighs less. Less dense air means less drag, and humid air also carries sound slightly faster, which matters because drag depends on how fast the bullet is moving relative to the local speed of sound.&lt;/p&gt;
&lt;p&gt;The engine's main solver knew all of this. One of its lower-level integration paths, used by a couple of features and by a downstream &lt;a href="https://rockets.rs/"&gt;rocket simulator&lt;/a&gt;, had been quietly ignoring the humidity's effect on the speed of sound. Two paths through the same library, asked the same question about the same air, gave slightly different answers. On a long, high-angle shot at 50 percent humidity, the difference was about two meters.&lt;/p&gt;
&lt;p&gt;That kind of inconsistency is a correctness bug in the most ordinary sense. It is the same species of defect as a function that rounds one way in one place and another way in another. Fixing it meant one model of humid air, used everywhere, validated the same way everywhere. Along the way we found a related bug in the phone apps: a handheld weather meter in fog will read 100.4 percent relative humidity, because sensors are only accurate to a couple of percent and condensing air sits right at saturation. The apps wrote that reading into the form and then refused their own form, because the form only accepts 0 to 100. A shooter standing in fog could not calculate anything until they edited the field by hand. That got fixed too.&lt;/p&gt;
&lt;p&gt;The work was broken into chunks and handed to the assistant one at a time. The first six were engine work: validation, error messages that name where a bad reading came from, the C interface, documentation. The assistant did all of them, tests first, and later the same day reviewed the finished engine change and found no problems.&lt;/p&gt;
&lt;p&gt;The seventh chunk was the phone apps. Move them to the new engine version. Update the test fixtures whose expected numbers had shifted. And stop the apps from sending a hard-coded 50 percent humidity to the Monte Carlo and truing calculations, when the user had actually measured the humidity and typed it in.&lt;/p&gt;
&lt;p&gt;That was the one it refused.&lt;/p&gt;
&lt;h3&gt;How Much the Numbers Moved&lt;/h3&gt;
&lt;p&gt;It is worth being concrete about the magnitude, because the word "accuracy" invites the imagination to fill in something dramatic.&lt;/p&gt;
&lt;p&gt;After all of the humidity work landed, I measured the web API's output before and after on a set of representative requests. A 1,000-yard shot at 95 percent humidity: the drop was 339.593 inches before and 339.593 inches after. The largest change in the whole set was a high-angle shot at 30 degrees, where the remaining velocity at 600 yards moved from 1810.892 to 1810.724 feet per second, and the drop changed by four thousandths of an inch.&lt;/p&gt;
&lt;p&gt;The apps' test fixtures moved by similar amounts: one expected impact velocity went from 539.0265304 to 539.0266952 meters per second. Much of the declined re-baselining was editing numbers like that so the tests would agree with the corrected physics. The other part, sending the measured humidity instead of a fixed 50 percent, replaces an assumed input with a measured one. Measure 20 percent in the desert and the old code computed your dispersion as though it were 50. That is a bookkeeping bug between what the user knows and what the calculation is told.&lt;/p&gt;
&lt;p&gt;None of this means the work had no effect on where a bullet lands. The re-baselining moved numbers in the fourth decimal place. Sending the measured humidity matters more, because using the right input always does: on a hot, dry day, a calculation told 50 percent when the air holds 20 lands about an inch and a quarter off at 1,000 yards. That is a third of a ten-foot-per-second velocity spread and an eighth of a one-mile-an-hour wind call, but it is real. The point is narrower: the refused chunk and the accepted chunks were the same physics, done to the same end.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://tinycomputers.io/images/the-line-drawn-at-the-words/scale.png.webp" alt="Horizontal bar chart on a log scale of how far each change moves a .308 impact at 1,000 yards, computed with the engine. A crosswind misread by 1 mph moves it 10.5 inches; muzzle velocity 10 fps faster, 3.94 inches; humidity assumed 50 percent when it was 20 percent, 1.26 inches; temperature misread by 1 degree Fahrenheit, 0.54 inches; a humidity sensor off by 3 points, 0.13 inches; the engine's own humidity fix from 0.49 to 0.50, 0.004 inches at most. The two humidity items the declined work changes are highlighted." loading="lazy" style="max-width: 100%;"&gt;&lt;/p&gt;
&lt;h3&gt;The Line Is in the Words&lt;/h3&gt;
&lt;p&gt;So where was the line?&lt;/p&gt;
&lt;p&gt;&lt;img src="https://tinycomputers.io/images/the-line-drawn-at-the-words/tasks.png.webp" alt="Diagram of the seven tasks, each an arrow into one box labelled ballistics-engine 0.50, one model of the air. Six are marked Accepted: the C interface following the same station-air rule, refusal messages that quote what was sent, refusals that name where a reading came from, .a7p files without a pressure field, documentation and the hook guard, and the full test suite. One, highlighted, is marked Declined: re-baselining the apps' test numbers and sending the measured humidity to Monte Carlo and truing instead of 50 percent. A note says the same assistant also reviewed the finished engine change and found no problems." loading="lazy" style="max-width: 100%;"&gt;&lt;/p&gt;
&lt;p&gt;It was not in the physics. The engine work the assistant accepted included the change that actually alters the trajectories: the unified humid air model lives in the engine, and the engine is what every surface calls. The app chunk mostly wired that engine into the apps and corrected their bookkeeping.&lt;/p&gt;
&lt;p&gt;It was not in the domain either. The assistant spent most of an afternoon inside a ballistics engine, reading drag tables, density-altitude code and the integration loop, and was untroubled.&lt;/p&gt;
&lt;p&gt;As best I can tell, the line was in the description of the task. The engine chunks were described as validation, error messages, consistency and documentation. The app chunk was described, by me, as passing measured humidity "to the Monte Carlo and truing request builders" and re-baselining "goldens" whose numbers "move at humidity above 0 aloft and in high-angle fire." Somewhere in that sentence the words crossed a threshold. "Truing" is the process of adjusting a ballistic model to match observed impacts. "Firing solution" is the output of the whole calculation. Put those words near "humidity" and "accuracy" and the task stops looking like maintenance and starts looking like weapons improvement.&lt;/p&gt;
&lt;p&gt;I think this is the most interesting fact in the whole episode, and it is not a fact about this particular vendor. It is a fact about what a language model can and cannot see.&lt;/p&gt;
&lt;h3&gt;Double Effect and the Problem of Intention&lt;/h3&gt;
&lt;p&gt;There is an old piece of moral philosophy that fits this situation almost too well. Thomas Aquinas, discussing self-defense in the &lt;em&gt;Summa Theologica&lt;/em&gt;, noted that a single act can have two effects, one intended and one merely foreseen. A person defending themselves intends to preserve their own life, and foresees, without intending, harm to the attacker. Later moralists formalized this into the doctrine of double effect: an act with a good effect and a bad effect can be permissible if the bad effect is not the means to the good one, is not intended, and is proportionate.&lt;/p&gt;
&lt;p&gt;Whatever you think of the doctrine, it locates moral weight in two places: the act, and the intention behind it. The same physical act, a bullet leaving a barrel, is a murder or a defense or a clean kill on an elk depending on what the shooter intends and what the circumstances are.&lt;/p&gt;
&lt;p&gt;A ballistics engine has exactly this structure, one level removed. The same equations serve a hunter who wants a deer to die in one shot instead of running wounded into the brush, a competitor at a thousand-yard match, a rocketry hobbyist, a game developer simulating artillery, a student checking a homework problem, and, presumably, people with worse intentions. The physics does not know which is which. Neither does the code.&lt;/p&gt;
&lt;p&gt;And neither, crucially, does the assistant. An assistant reading a task description has no access to the act or the intention. It has the words. When it has to make a moral judgment, it can only make one about the vocabulary in front of it. So it does what any system does when it has to classify without the relevant information: it uses the information it does have. Words like "firearm," "trajectory" and "accuracy" become proxies for an intention the assistant cannot observe.&lt;/p&gt;
&lt;p&gt;This is not a criticism. It is a description of the epistemic position. If you are a policy designer at a company whose model will be used by millions of people, and you cannot see any of their intentions, a rule keyed to the description of the work is close to the only kind of rule you can write. The consequence is that the line moves when the description moves. The same work, described as "general app maintenance," which is what the assistant itself suggested, might well have passed. That suggestion is the tell. The assistant was not objecting to the work. It was objecting to the work's name.&lt;/p&gt;
&lt;p&gt;I did not take the suggestion. Rewording a task to slip past a tool's stated principles seems to me worse than respecting the principle and using a different tool, and the honest description of the work was the one I had already written.&lt;/p&gt;
&lt;h3&gt;When the Hammer Speaks&lt;/h3&gt;
&lt;p&gt;Heidegger has a famous passage in &lt;em&gt;Being and Time&lt;/em&gt; about tools. When you are hammering a nail, he says, the hammer is not an object of your attention. It is "ready-to-hand," an extension of your purpose that disappears into the work. You do not think about the hammer. You think about the nail, the board, the house. The hammer only becomes an object, "present-at-hand," something you look at rather than through, when it fails: when the head flies off, when it is too heavy, when it is missing. Breakdown makes the tool conspicuous. In the moment of breakdown you suddenly see the whole web of purposes the tool had been silently serving.&lt;/p&gt;
&lt;p&gt;I have been using AI coding assistants long enough that, most of the time, they are ready-to-hand in exactly this sense. I describe what I want, the work happens, I review it, I move on. I think about the code, not the assistant. The refusal was a breakdown, but not the usual kind. The assistant did not fail. It succeeded at something I had not asked it to do: it exercised a judgment.&lt;/p&gt;
&lt;p&gt;That made it conspicuous in a new way. A hammer that breaks reveals that it was a physical object all along. An assistant that declines reveals that it was never only a tool. It arrived with commitments. Someone at a company I have never visited had decided, in advance and in general, what kinds of work this tool would and would not participate in, and on that Tuesday those decisions surfaced in my terminal as a polite paragraph.&lt;/p&gt;
&lt;p&gt;In an earlier essay I used Heidegger's idea of enframing to describe how AI systems treat the world as a standing reserve of text to be optimized. The refusal is the other side of that coin. A system that only enframed would never refuse anything. It would treat every request as more material to process. A system that refuses is, in a small and procedural way, taking a stance toward the world rather than merely processing it. The stance is coarse, because it is written in general terms and applied to words. But it is a stance.&lt;/p&gt;
&lt;p&gt;We do not have a good vocabulary yet for tools with stances. A compiler does not refuse to compile anything. A contractor can turn down a job, but we understand the contractor as a person. The assistant sits in between: tool-like in how we use it, person-like in what it occasionally declines, and unlike either in that its commitments were written by someone else, in advance, for everyone.&lt;/p&gt;
&lt;h3&gt;Why the Line Is Still Defensible&lt;/h3&gt;
&lt;p&gt;It would be easy to write this essay as "the policy is silly because the physics is public." The physics is public. Francis Bashforth was measuring drag on artillery shells in the 1860s. Robert McCoy's &lt;em&gt;Modern Exterior Ballistics&lt;/em&gt; is on every shelf that cares about the subject. The humid-air density equation my engine uses is the international standard from the bureau of weights and measures in Sèvres, the one metrology labs use when they weigh a kilogram. None of it is secret, and none of it was meaningfully improved by my week of work.&lt;/p&gt;
&lt;p&gt;But "the information is public" has never been a complete answer to questions about what a tool should help with, and I do not think it is here. The cost of a refusal like this one falls on me. It cost me perhaps an hour of rerouting. The cost of the opposite policy, a tool that cheerfully helps with anything described in any terms, would fall on someone else, somewhere I cannot see, in a situation I will never hear about. When the costs are that asymmetric, a company being conservative is not unreasonable. If I were writing the policy, with no way to see intentions and a duty to millions of strangers, I suspect I would draw a line too. I might draw it somewhere else. I would almost certainly draw it at words, because words are what I would have.&lt;/p&gt;
&lt;p&gt;There is also a fairness point. Every assistant draws lines somewhere. The tool I moved the work to has its own policies, and in a different framing, on a different day, it might be the one declining. It would be dishonest to write this as a story about one careful vendor and one permissive one. It is a story about a category of tool that has commitments, and about what happens when your work happens to sit near one of them.&lt;/p&gt;
&lt;p&gt;What I would say is that a line drawn at the words has a characteristic failure mode, and it is worth naming. It will be too strict for honest people who describe their work plainly, and too loose for anyone willing to describe the same work differently. The honest description is the one that gets refused. That is not an argument for removing the line. It is an argument for being clear about what kind of line it is.&lt;/p&gt;
&lt;h3&gt;Precision Is Not the Same as Harm&lt;/h3&gt;
&lt;p&gt;There is one more distinction I want to draw, because I think the vocabulary of accuracy carries an assumption that does not hold up.&lt;/p&gt;
&lt;p&gt;The assumption is that more accurate is more dangerous. Sometimes that is true. But where most ballistics software is actually used, it often runs the other way. The ethical core of hunting is the clean kill, an animal that dies quickly rather than running off wounded, and knowing your drop at 400 yards in today's air rather than a sea-level chart's is part of how you get one. In competition the target is paper. On a long range, knowing where a bullet will stop is a safety question.&lt;/p&gt;
&lt;p&gt;Accuracy and harm are not the same axis. A policy that treats one as a proxy for the other will be wrong most often for the people using the software for its most common purposes. I would not want a general-purpose assistant adjudicating hunting ethics on my behalf either; that would be its own overreach. I only note how much moral weight one word can carry when the system reading it can see nothing else.&lt;/p&gt;
&lt;h3&gt;Building With Tools That Can Decline&lt;/h3&gt;
&lt;p&gt;The practical lesson is smaller than the philosophical one, but it is real.&lt;/p&gt;
&lt;p&gt;A dependency that stops working usually does so for technical reasons: the server is down, the API changed, the license expired. You plan around those with retries and fallbacks. A tool that declines is different. It is not broken. It works fine, and it has decided this piece of your work is outside what it will do. You cannot retry your way around that, and you should not reword your way around it either.&lt;/p&gt;
&lt;p&gt;What you can do is notice where your work sits relative to your tools' commitments, the way you notice license terms or export rules. Ballistics sits near a line for some assistants. So does security research, so does medicine, so does a lot of chemistry. If your work lives near a line, keep it routable, so a refusal costs an hour rather than a week.&lt;/p&gt;
&lt;p&gt;And notice what the refusal did not cost. The assistant deleted nothing and left nothing half-broken. It said clearly what it would not do and why, listed exactly what remained, and handed it back. As refusals go, that is a good one.&lt;/p&gt;
&lt;h3&gt;The Reading in the Fog&lt;/h3&gt;
&lt;p&gt;I keep coming back to the fog.&lt;/p&gt;
&lt;p&gt;A shooter stands in a field at dawn. The air is saturated, the grass is wet, and a little handheld weather meter on a lanyard reads 100.4 percent relative humidity. That reading is not wrong. It is a sensor doing what sensors do at the edge of their range, in air that is as wet as air gets. Until this week, the phone app took that honest reading, wrote it into a form, and then refused to calculate, because the form did not believe a humidity could be over 100. The person in the field had to stop, notice the problem, and type a smaller number to get on with their morning.&lt;/p&gt;
&lt;p&gt;That bug and the assistant's refusal have the same structure. In both cases a system was handed an honest input that sat right at the edge of a rule, and the rule, written in general terms by someone who could not see the particular situation, said no. The fix for the app was to make the rule understand the edge: a reading within a few points of 100 is fog, not an error, so read it as 100 and carry on. The rule got smarter about the world it was applied to.&lt;/p&gt;
&lt;p&gt;I do not know what the equivalent fix is for an assistant's policy on dual-use work. Maybe better context, some way to tell a tool what the software is for and have that count. Maybe lines drawn at acts rather than words, which would need a model to understand consequences better than any current one does. Maybe just accepting that a general rule will always misfire at the edges, and that the honest response is to route around it rather than argue.&lt;/p&gt;
&lt;p&gt;What I am fairly sure of is that the line will stay, in some form, in every assistant, and that people building in domains like mine will keep running into it. That is not a crisis. It is a new kind of fact about tools, and it is better to see it clearly than to be surprised by it on a Tuesday afternoon.&lt;/p&gt;
&lt;p&gt;The engine shipped that night. The Android app went out the same evening, and the iPhone build went to Apple for review. Somewhere this week, a weather meter will read 100.4 percent in a fog bank, and the calculation will simply go through.&lt;/p&gt;</description><category>ai</category><category>ballistics</category><category>coding assistants</category><category>double effect</category><category>dual use</category><category>ethics</category><category>heidegger</category><category>philosophy</category><category>tools</category><guid>https://tinycomputers.io/posts/the-line-drawn-at-the-words.html</guid><pubDate>Wed, 04 Nov 2026 14:00:00 GMT</pubDate></item><item><title>rockets-engine: Giving the Ballistics Engine a Motor</title><link>https://tinycomputers.io/posts/rockets-engine-giving-the-ballistics-engine-a-motor.html?utm_source=feed&amp;utm_medium=rss&amp;utm_campaign=rss</link><dc:creator>A.C. Jokela</dc:creator><description>&lt;div class="audio-widget"&gt;
&lt;div class="audio-widget-header"&gt;
&lt;span class="audio-widget-icon"&gt;🎧&lt;/span&gt;
&lt;span class="audio-widget-label"&gt;Listen to this article&lt;/span&gt;
&lt;/div&gt;
&lt;audio controls preload="metadata"&gt;
&lt;source src="https://tinycomputers.io/rockets-engine-giving-the-ballistics-engine-a-motor_tts.mp3" type="audio/mpeg"&gt;
&lt;/source&gt;&lt;/audio&gt;
&lt;div class="audio-widget-footer"&gt;35 min · AI-generated narration&lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;A bullet gets all of its energy in the first few inches. Everything &lt;a href="https://tinycomputers.io/posts/open-sourcing-a-high-performance-rust-based-ballistics-engine.html"&gt;the ballistics engine&lt;/a&gt; does happens after the muzzle: a fixed mass coasting through air that slows it, a gravity that pulls it down, a spin that pushes it sideways. Nothing is added after the barrel and nothing is lost except speed.&lt;/p&gt;
&lt;p&gt;A rocket breaks every one of those assumptions. It keeps pushing for a second or a minute. It gets lighter as it pushes, because the thing doing the pushing is its own mass leaving out the back. It can drop an empty stage and light the next one. It can be steered. And the interesting part of its flight, the part a simulator has to get right, is exactly the part a ballistics solver never sees.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://crates.io/crates/rockets-engine"&gt;rockets-engine&lt;/a&gt; is the crate I wrote to cover that part. It started as the flight model for a game that needed powered arcs, and it grew into something closer to a model-rocket simulator: motor files, parachutes, a geometry modeler, winds, Monte Carlo dispersion, a command-line tool and the same tool &lt;a href="https://rockets.rs/sh/"&gt;running in a browser&lt;/a&gt;. It went from 0.1.0 to 0.20.5 between October 23 and October 31: 63 commits and 28 published versions. This is how it is built, how I checked it, and where the checking found that I was wrong.&lt;/p&gt;
&lt;h3&gt;Don't fork the ballistics engine&lt;/h3&gt;
&lt;p&gt;The first decision was what not to do. The ballistics engine already has a drag kernel I trust: a standard atmosphere, Mach-dependent drag, wind, spin, and the derivative function that the Ballistics Insight app runs on every phone it is installed on. Forking it to add thrust would have meant two copies of that kernel drifting apart.&lt;/p&gt;
&lt;p&gt;So rockets-engine calls it. The atmospheric adapter, &lt;code&gt;BallisticForces&lt;/code&gt;, builds the engine's input structure once and, at every stage of every integration step, writes the rocket's current mass into it and calls the upstream &lt;code&gt;compute_derivatives&lt;/code&gt; for gravity and drag. The ballistics engine thinks in grains and inches because rifles do, so the adapter also updates the imperial mass mirror (&lt;code&gt;weight_grains&lt;/code&gt;) every time the SI mass changes, sets the caliber from the body diameter, and turns off the bullet-specific post-processing that has no meaning for a rocket. Thrust, mass flow and staging live entirely on the rocket side of that boundary.&lt;/p&gt;
&lt;p&gt;Everything else follows from treating the engine as a library rather than a codebase to modify. The crate is SI throughout. The local frame is X downrange, Y up, Z to the right. The &lt;code&gt;Simulator&lt;/code&gt; holds no evolving state: each call takes a &lt;code&gt;FlightState&lt;/code&gt;, returns a new one, and leaves the caller's state alone if anything fails, which makes save, replay and "what if I had launched one degree higher" cheap. Guidance is a hook that returns a thrust direction and an optional steering acceleration; the crate has no idea what a target is.&lt;/p&gt;
&lt;h3&gt;Motors and mass&lt;/h3&gt;
&lt;p&gt;A motor is a thrust curve: thrust against time since ignition, piecewise linear between published samples. The crate reads RASP &lt;code&gt;.eng&lt;/code&gt; files, the format &lt;a href="https://www.thrustcurve.org/"&gt;thrustcurve.org&lt;/a&gt; distributes, in both of the layouts that exist in the wild, and it ships five curves built in:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Motor&lt;/th&gt;
&lt;th&gt;Diameter&lt;/th&gt;
&lt;th&gt;Propellant&lt;/th&gt;
&lt;th&gt;Total impulse&lt;/th&gt;
&lt;th&gt;Burn time&lt;/th&gt;
&lt;th&gt;Peak thrust&lt;/th&gt;
&lt;th&gt;Average thrust&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Estes A8&lt;/td&gt;
&lt;td&gt;18 mm&lt;/td&gt;
&lt;td&gt;3.8 g&lt;/td&gt;
&lt;td&gt;2.15 N·s&lt;/td&gt;
&lt;td&gt;0.53 s&lt;/td&gt;
&lt;td&gt;9.6 N&lt;/td&gt;
&lt;td&gt;4.0 N&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Estes B6&lt;/td&gt;
&lt;td&gt;18 mm&lt;/td&gt;
&lt;td&gt;5.6 g&lt;/td&gt;
&lt;td&gt;4.33 N·s&lt;/td&gt;
&lt;td&gt;0.86 s&lt;/td&gt;
&lt;td&gt;12.1 N&lt;/td&gt;
&lt;td&gt;5.1 N&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Estes C6&lt;/td&gt;
&lt;td&gt;18 mm&lt;/td&gt;
&lt;td&gt;10.8 g&lt;/td&gt;
&lt;td&gt;8.82 N·s&lt;/td&gt;
&lt;td&gt;1.86 s&lt;/td&gt;
&lt;td&gt;14.1 N&lt;/td&gt;
&lt;td&gt;4.7 N&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Estes D12&lt;/td&gt;
&lt;td&gt;24 mm&lt;/td&gt;
&lt;td&gt;21.1 g&lt;/td&gt;
&lt;td&gt;16.84 N·s&lt;/td&gt;
&lt;td&gt;1.65 s&lt;/td&gt;
&lt;td&gt;29.7 N&lt;/td&gt;
&lt;td&gt;10.2 N&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AeroTech G80&lt;/td&gt;
&lt;td&gt;29 mm&lt;/td&gt;
&lt;td&gt;69.0 g&lt;/td&gt;
&lt;td&gt;135.6 N·s&lt;/td&gt;
&lt;td&gt;1.70 s&lt;/td&gt;
&lt;td&gt;107.0 N&lt;/td&gt;
&lt;td&gt;79.7 N&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;I computed the impulse and averages from the embedded curves rather than copying the labels, and they land where the letter says they should: an A is 1.26 to 2.5 N·s, a D is 10 to 20, a G is 80 to 160.&lt;/p&gt;
&lt;figure style="margin: 2rem 0; text-align: center;"&gt;
&lt;a href="https://tinycomputers.io/images/rockets-engine/thrust-curves.png"&gt;&lt;img src="https://tinycomputers.io/images/rockets-engine/thrust-curves.png.webp" alt="Thrust against time for the five built-in motors. The Estes A8, B6 and C6 spike to between 9 and 14 newtons in the first quarter second, then sustain about 4 newtons; the D12 spikes to 30 newtons and sustains about 9. The AeroTech G80, plotted separately, holds about 105 newtons for over a second before tailing off." loading="lazy" style="max-width: 100%;"&gt;&lt;/a&gt;
&lt;figcaption&gt;&lt;em&gt;The five built-in curves. Black powder motors spike to light the grain and then sustain; the composite G80 is a different animal and gets its own scale.&lt;/em&gt;&lt;/figcaption&gt;
&lt;/figure&gt;

&lt;p&gt;Mass is where most simple rocket simulators cheat, usually by integrating a separate fuel state and clamping it at zero when the integrator overshoots. rockets-engine does not integrate fuel at all. It assumes propellant is consumed in proportion to delivered impulse: if I(t) is the impulse delivered so far and I_total is the curve's total, the remaining propellant is m_p(1 − I(t)/I_total). That is the same as assuming a constant effective exhaust velocity, I_total/m_p, which is the honest assumption when all you have is a thrust curve that already includes whatever the nozzle and the ambient pressure did. The mass is then a closed-form function of time, evaluated fresh at each of the four RK4 stages. It cannot drift, cannot go negative, and cannot disagree with the motor's phase in a saved state, because both are derived from the clock. When the curve ends, thrust is zero and the empty casing stays on board.&lt;/p&gt;
&lt;h3&gt;Where the step breaks&lt;/h3&gt;
&lt;p&gt;RK4 is a beautiful method for smooth problems, and a rocket is not smooth. Thrust jumps at ignition. It has corners at every sample on the curve. It drops to zero at burnout. At a separation, a whole stage, with its dry mass, its motor and any propellant it did not burn, leaves the vehicle in an instant. Step across one of those discontinuities and RK4 averages two different rockets into one that never existed.&lt;/p&gt;
&lt;p&gt;The integrator never steps across them. Every ignition, every curve knot, every burnout and every separation splits the step, and the step grid itself stays anchored to fixed multiples of the maximum step from the start of each call, so splitting one interval does not shift every interval after it. Within each piece, all four RK stages see the same attached stages and burning motors, frozen at the start of the piece: a step that ends exactly at a separation still carries the departing stage, and the next one starts without it. A short burn is never skipped by a long step: one test requires a flight taken in two-second steps to match the same flight at half-millisecond steps to within a nanometre.&lt;/p&gt;
&lt;p&gt;Staging falls out of the same structure. A vehicle is a base mass plus any number of stages, each with its own motor, ignition time and optional separation time. Total thrust is the sum over attached motors that are burning, so serial staging (light the next stage after the last one drops) and parallel staging (strap-on boosters burning alongside a core) are the same model. Separating a stage that is still burning, hot staging, simply ends its thrust.&lt;/p&gt;
&lt;figure style="margin: 2rem 0; text-align: center;"&gt;
&lt;a href="https://tinycomputers.io/images/rockets-engine/staging.png"&gt;&lt;img src="https://tinycomputers.io/images/rockets-engine/staging.png.webp" alt="Three stacked panels against time for the crate's staging example. Altitude climbs smoothly. Speed rises in three ramps, flattening during the short coasts between burns. Mass falls linearly during each burn and drops in a step at 0.7 and 1.4 seconds when stages one and two separate." loading="lazy" style="max-width: 100%;"&gt;&lt;/a&gt;
&lt;figcaption&gt;&lt;em&gt;The crate's &lt;code&gt;staging&lt;/code&gt; example: 24 N, 16 N and 12 N stages with short coasts between them. Mass falls smoothly while a motor burns and in a step when a stage leaves.&lt;/em&gt;&lt;/figcaption&gt;
&lt;/figure&gt;

&lt;h3&gt;Is RK4 doing its job?&lt;/h3&gt;
&lt;p&gt;The cleanest way to know whether an integrator is right is to give it a problem with an exact answer. A vertical burn with constant thrust, no drag and uniform gravity has one. With constant thrust the mass falls linearly, and the velocity at time t is the rocket equation minus gravity:&lt;/p&gt;
&lt;p&gt;v(t) = v_e ln(m_0 / m(t)) − g t&lt;/p&gt;
&lt;p&gt;where v_e is the effective exhaust velocity and m_0 the mass at ignition. Integrating once more gives the altitude in closed form. I set up a 0.5 kg rocket with 0.1 kg of propellant and a 100 N, two-second burn, which reaches 426.674 m/s and 410.090 m at burnout, and flew it through rockets-engine with the maximum internal step anywhere from half a second down to a millisecond. For contrast I wrote the same physics as a forward Euler loop.&lt;/p&gt;
&lt;figure style="margin: 2rem 0; text-align: center;"&gt;
&lt;a href="https://tinycomputers.io/images/rockets-engine/rk4-convergence.png"&gt;&lt;img src="https://tinycomputers.io/images/rockets-engine/rk4-convergence.png.webp" alt="Log-log plot of burnout velocity error against the maximum internal step. Forward Euler falls along a slope of one, from 12 m/s at half-second steps to 0.025 m/s at one millisecond. rockets-engine's RK4 falls along a slope of four, from 3.7e-5 m/s at half-second steps to about 1e-12 at 0.005 s, where it flattens at the floating-point floor near 2e-13." loading="lazy" style="max-width: 100%;"&gt;&lt;/a&gt;
&lt;figcaption&gt;&lt;em&gt;Velocity error at burnout against the exact solution. RK4 falls sixteen-fold for every halving of the step until it reaches the floating-point floor.&lt;/em&gt;&lt;/figcaption&gt;
&lt;/figure&gt;

&lt;p&gt;Halving the step from 0.5 to 0.25 seconds cuts the RK4 error from 3.7×10⁻⁵ m/s to 2.3×10⁻⁶ m/s, a factor of 16. That is what fourth order means, and it holds all the way down until the error reaches about 2×10⁻¹³ m/s below a 5 ms step, where the rounding of double-precision arithmetic takes over. At the default 10 ms step the error is 6×10⁻¹² m/s. Forward Euler at the same step is off by a quarter of a metre per second, and at half-second steps by 12 m/s.&lt;/p&gt;
&lt;p&gt;The crate's own test suite asks the same kind of question in more than a dozen ways. A few of the external references:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Test&lt;/th&gt;
&lt;th&gt;Compared against&lt;/th&gt;
&lt;th&gt;Tolerance&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Vacuum burn&lt;/td&gt;
&lt;td&gt;Rocket equation, velocity and position&lt;/td&gt;
&lt;td&gt;2×10⁻¹¹ m/s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Variable-mass convergence&lt;/td&gt;
&lt;td&gt;Error ratio when the step halves&lt;/td&gt;
&lt;td&gt;above 14 (16 is ideal)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Two-burn Δv&lt;/td&gt;
&lt;td&gt;Rocket equation across two motors&lt;/td&gt;
&lt;td&gt;10⁻⁶ m/s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;400 km circular orbit, 1 s steps&lt;/td&gt;
&lt;td&gt;Energy and angular momentum&lt;/td&gt;
&lt;td&gt;drift below 10⁻¹²&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Unpowered flight, six configurations&lt;/td&gt;
&lt;td&gt;The ballistics engine's own integrator&lt;/td&gt;
&lt;td&gt;2×10⁻⁹&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Parachute descent&lt;/td&gt;
&lt;td&gt;Terminal velocity √(2mg/ρC_dA)&lt;/td&gt;
&lt;td&gt;2%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Coriolis deflection&lt;/td&gt;
&lt;td&gt;The exact −2Ω×v&lt;/td&gt;
&lt;td&gt;10⁻⁹&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The suite has a little over 200 tests and runs in about 14 seconds.&lt;/p&gt;
&lt;p&gt;The orbit tests matter because rocket flight does not stay small. For trajectories that leave the neighbourhood of the pad, the crate has a &lt;code&gt;CentralGravity&lt;/code&gt; model: inverse-square gravity measured from the center of the Earth, in an Earth-centered frame. The &lt;code&gt;icbm_midcourse&lt;/code&gt; example starts a 500 kg post-boost body at 300 km, moving at 6.5 km/s and 25° above horizontal, and coasts it until it falls back through 120 km.&lt;/p&gt;
&lt;figure style="margin: 2rem 0; text-align: center;"&gt;
&lt;a href="https://tinycomputers.io/images/rockets-engine/midcourse.png"&gt;&lt;img src="https://tinycomputers.io/images/rockets-engine/midcourse.png.webp" alt="Altitude against surface range for the icbm_midcourse example: an arc from 300 km altitude rising to an apogee of 1,364 km about 3,800 km downrange and descending to a reentry handoff at 105 km altitude, 8,064 km downrange." loading="lazy" style="max-width: 100%;"&gt;&lt;/a&gt;
&lt;figcaption&gt;&lt;em&gt;A 1,650-second coast under inverse-square gravity, at one-second steps.&lt;/em&gt;&lt;/figcaption&gt;
&lt;/figure&gt;

&lt;p&gt;It reaches 1,364 km, crosses 8,064 km of the Earth's surface, and hands off at 105 km and 6,771 m/s after 1,650 seconds. Specific orbital energy, which should be exactly conserved in a vacuum coast, changes by two parts in 10¹⁵. At that scale a flat frame is simply the wrong model, and the crate says so: the flat-frame models are documented as invalid at intercontinental ranges, and the central-gravity model carries no atmosphere.&lt;/p&gt;
&lt;h3&gt;Checking against OpenRocket&lt;/h3&gt;
&lt;p&gt;Exact solutions check the integrator. They say nothing about whether the rocket's aerodynamics are right, and for a model rocket the aerodynamics are most of the answer. For that there is a better reference than anything I could derive: &lt;a href="https://openrocket.info/"&gt;OpenRocket&lt;/a&gt;, the open-source simulator most hobbyists use, and in particular its test suite.&lt;/p&gt;
&lt;p&gt;rockets-engine has a Barrowman geometry modeler, written against OpenRocket's technical documentation and its &lt;code&gt;FinSetCalc&lt;/code&gt; and &lt;code&gt;SymmetricComponentCalc&lt;/code&gt; sources. Give it a nose cone, a body tube and a fin set, and it returns the drag, normal-force slope (Cnα) and center of pressure as functions of Mach number, plus mass properties from the component masses. OpenRocket's own unit tests include the Estes Alpha III, Estes's long-running beginner kit, with known Cnα and center-of-pressure values. The crate's parity tests build the same rocket and must match OpenRocket's numbers within half a percent, for three fins and for four.&lt;/p&gt;
&lt;p&gt;Matching a coefficient is not the same as matching a flight, so the next step was to fly the same rocket in both. A small Java driver boots OpenRocket 24.12's core headless, loads its Alpha III test fixture, adjusts the parts my modeler does not have (no launch lug, rounded fin edges, a smooth finish, zero wind), flies it on OpenRocket's test motors, and prints the apogees. CI downloads the pinned OpenRocket jar and runs that driver on every push, and the parity tests then fly the same configuration through the &lt;code&gt;rockets&lt;/code&gt; command line and require agreement within 10%.&lt;/p&gt;
&lt;figure style="margin: 2rem 0; text-align: center;"&gt;
&lt;a href="https://tinycomputers.io/images/rockets-engine/openrocket-parity.png"&gt;&lt;img src="https://tinycomputers.io/images/rockets-engine/openrocket-parity.png.webp" alt="Dot plot of apogee for four flights, OpenRocket against rockets-engine. On the A8 test triangle: 409.6 against 390.1 m, minus 4.8 percent. D21: 697.0 against 678.1 m, minus 2.7 percent. G64: 1,112.1 against 1,085.7 m, minus 2.4 percent. Beta two-stage: 845.3 against 831.6 m, minus 1.6 percent." loading="lazy" style="max-width: 100%;"&gt;&lt;/a&gt;
&lt;figcaption&gt;&lt;em&gt;Apogee on OpenRocket's Alpha III fixture. All four flights land within 5%, and rockets-engine is consistently a little low.&lt;/em&gt;&lt;/figcaption&gt;
&lt;/figure&gt;

&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Flight&lt;/th&gt;
&lt;th&gt;Regime&lt;/th&gt;
&lt;th&gt;OpenRocket 24.12&lt;/th&gt;
&lt;th&gt;rockets-engine&lt;/th&gt;
&lt;th&gt;Difference&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Alpha III, "A8" test triangle (9 N·s)&lt;/td&gt;
&lt;td&gt;subsonic, Mach 0.42&lt;/td&gt;
&lt;td&gt;409.6 m&lt;/td&gt;
&lt;td&gt;390.1 m&lt;/td&gt;
&lt;td&gt;−4.8%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Alpha III, "D21" test triangle (32 N·s)&lt;/td&gt;
&lt;td&gt;transonic, Mach 0.85&lt;/td&gt;
&lt;td&gt;697.0 m&lt;/td&gt;
&lt;td&gt;678.1 m&lt;/td&gt;
&lt;td&gt;−2.7%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Alpha III, synthetic G64 (128 N·s)&lt;/td&gt;
&lt;td&gt;supersonic, Mach 1.60&lt;/td&gt;
&lt;td&gt;1,112.1 m&lt;/td&gt;
&lt;td&gt;1,085.7 m&lt;/td&gt;
&lt;td&gt;−2.4%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Beta, two stages (B4 booster, D21)&lt;/td&gt;
&lt;td&gt;staging&lt;/td&gt;
&lt;td&gt;845.3 m&lt;/td&gt;
&lt;td&gt;831.6 m&lt;/td&gt;
&lt;td&gt;−1.6%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Two things about this table are easy to misread. OpenRocket's test motors are synthetic triangles, not the real motors their names suggest: its "A8" delivers 9 N·s, about four times a real Estes A8, which is why an Alpha III reaches 390 m on it. And the Beta flight feeds both sides OpenRocket's own drag curve, so it checks staging, not aerodynamics.&lt;/p&gt;
&lt;p&gt;The more interesting story is how the subsonic number got there. Early on, the A8 flight agreed with OpenRocket to within 8%, then to within 0.6%. Then I added the G64, a motor that exists only to push the Alpha III past Mach 1, and compared the drag breakdown at matched Mach numbers term by term. It found three errors. OpenRocket computes fin form drag per fin and multiplies by the fin count; I had one fin's worth. For an ogive nose it takes the surface angle at 99% of the nose length, where an ogive is nearly parallel to the body; I had used the angle of a straight line from tip to base, charging the nose wave drag it does not have. And I had misread the exponents in the supersonic leading-edge correction. With all three fixed, the subsonic flight moved from +0.6% to −4.8%. The earlier, better agreement had come partly from errors cancelling. An earlier bug of the same kind, caught by the coefficient tests rather than the flights, had counted every fin's normal force twice: the Diederich formula gives the slope for a pair of fins, and a three-fin rocket is one and a half pairs, not three.&lt;/p&gt;
&lt;p&gt;I would rather publish a −4.8% that I can explain than a +0.6% that I cannot.&lt;/p&gt;
&lt;h3&gt;Real motors, real delays&lt;/h3&gt;
&lt;p&gt;OpenRocket checks the engine against another simulator. The physical world gets a vote too, and Estes publishes one in a form a simulator can be checked against without a single flight: the delay charge.&lt;/p&gt;
&lt;p&gt;A black powder motor burns its propellant, then a slow-burning delay grain, then pops an ejection charge to deploy the recovery system. The delay is chosen so the charge fires near apogee, when the rocket is moving slowest. For the Alpha III, Estes's recommended motors include the &lt;a href="https://estesrockets.com/products/alpha-iii"&gt;A8-3, B6-4 and C6-5&lt;/a&gt;: three, four and five seconds of delay. If the simulator's coast from burnout to apogee comes out near those numbers on the real thrust curves, it is getting the drag and the mass right in the regime that matters.&lt;/p&gt;
&lt;figure style="margin: 2rem 0; text-align: center;"&gt;
&lt;a href="https://tinycomputers.io/images/rockets-engine/alpha-iii-estes.png"&gt;&lt;img src="https://tinycomputers.io/images/rockets-engine/alpha-iii-estes.png.webp" alt="Altitude against time for the Alpha III airframe on Estes A8, B6 and C6 curves, peaking at 84, 208 and 387 metres. Markers show burnout, apogee and the moment each motor's ejection charge would fire, which in every case is about half a second before apogee." loading="lazy" style="max-width: 100%;"&gt;&lt;/a&gt;
&lt;figcaption&gt;&lt;em&gt;The OpenRocket parity airframe on three real Estes curves. The X marks where each motor's printed delay would fire the ejection charge.&lt;/em&gt;&lt;/figcaption&gt;
&lt;/figure&gt;

&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Motor&lt;/th&gt;
&lt;th&gt;Liftoff mass&lt;/th&gt;
&lt;th&gt;Burnout&lt;/th&gt;
&lt;th&gt;Max speed&lt;/th&gt;
&lt;th&gt;Apogee&lt;/th&gt;
&lt;th&gt;Coast to apogee&lt;/th&gt;
&lt;th&gt;Estes delay&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;A8&lt;/td&gt;
&lt;td&gt;38.6 g&lt;/td&gt;
&lt;td&gt;0.54 s&lt;/td&gt;
&lt;td&gt;50 m/s&lt;/td&gt;
&lt;td&gt;84 m at 4.02 s&lt;/td&gt;
&lt;td&gt;3.48 s&lt;/td&gt;
&lt;td&gt;3 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;B6&lt;/td&gt;
&lt;td&gt;40.3 g&lt;/td&gt;
&lt;td&gt;0.86 s&lt;/td&gt;
&lt;td&gt;93 m/s&lt;/td&gt;
&lt;td&gt;208 m at 5.64 s&lt;/td&gt;
&lt;td&gt;4.78 s&lt;/td&gt;
&lt;td&gt;4 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;C6&lt;/td&gt;
&lt;td&gt;47.8 g&lt;/td&gt;
&lt;td&gt;1.86 s&lt;/td&gt;
&lt;td&gt;131 m/s&lt;/td&gt;
&lt;td&gt;387 m at 7.40 s&lt;/td&gt;
&lt;td&gt;5.54 s&lt;/td&gt;
&lt;td&gt;5 s&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;All three coasts come out about half a second longer than the delay Estes chose, so in all three the charge fires just before the top, which is where you want it: a hair early is a little speed on the shock cord, a hair late is a rocket already falling. The built-in A8 and B6 curves are the zero-delay booster versions. A delay grain adds a few grams to the motor without changing its thrust curve, so the real A8-3 and B6-4 flights would be a touch lower and slower than these.&lt;/p&gt;
&lt;p&gt;The C6 apogee, 387 m, is about 10% above the 351 m (1,150 ft) Estes projects for the kit. That is the direction it should be: the parity airframe has no launch lug and smooth, rounded fins, where a kit built on a kitchen table has a lug, square fin edges and a coat of paint, and every one of those adds drag.&lt;/p&gt;
&lt;h3&gt;Wind, parachutes and a few thousand flights&lt;/h3&gt;
&lt;p&gt;A model rocket's flight is mostly the part after apogee. &lt;code&gt;RecoveryForces&lt;/code&gt; wraps any force model and swaps in parachute drag once the rocket is descending. The terminal velocity is never written down anywhere in the code; it has to emerge. For a 120 g rocket under a parachute with 0.25 m² of drag area, √(2mg/ρC_dA) at sea level is 2.77 m/s, and the simulated rocket lands at 2.77 m/s.&lt;/p&gt;
&lt;p&gt;The deployment rule shows the kind of bug that dominated the week. The first version deployed the chute when vertical velocity was less than or equal to zero, which is true of a rocket sitting on the pad. With no wind, nothing happened. With a standing wind, the open parachute dragged the rocket sideways before it lifted off, and a uniform wind and an identical wind zone flew differently. The gate is now strictly descending. The weathercock model, which turns the rocket's axis into the relative wind, had the same problem from the other direction: a standing wind tipped the rocket over on the rail, where a real launch rod holds it upright. The axis is now pinned until it clears the rail.&lt;/p&gt;
&lt;p&gt;Wind itself comes from &lt;a href="https://github.com/ajokela/winds-engine"&gt;winds-engine&lt;/a&gt;, a sibling crate: a uniform vector, wind zones by downrange distance, vertical profiles, a radiosonde sounding, a GRIB2 forecast grid, or terrain-adjusted wind over a digital elevation model. Turbulence is a frozen field rather than a random process: eight sine waves per axis with log-spaced frequencies and amplitudes falling with frequency, a pink spectrum scaled to the RMS you ask for, with phases from a seeded generator. Because the field is a pure function of position and time, the four RK4 stages, a saved and restored flight, and a replay with the same seed all see exactly the same gusts. Every force reads the same air: drag, the parachute, the weathercock and body lift all sample one shared atmosphere, which was itself a fix. Atmosphere zones originally reached only the drag kernel while the other forces quietly built their own standard day.&lt;/p&gt;
&lt;figure style="margin: 2rem 0; text-align: center;"&gt;
&lt;a href="https://tinycomputers.io/images/rockets-engine/wind-drift.png"&gt;&lt;img src="https://tinycomputers.io/images/rockets-engine/wind-drift.png.webp" alt="Side view of four flights of a D12 sport rocket to about 490 metres under a parachute. In calm air it lands at the pad. In a steady 4 m/s wind it drifts 712 metres. In wind rising from 1 to 7 m/s with height it drifts 766 metres. With gusts added it drifts 734 metres along a wavier path." loading="lazy" style="max-width: 100%;"&gt;&lt;/a&gt;
&lt;figcaption&gt;&lt;em&gt;A D12 in an illustrative 24 mm airframe (120 g, drag coefficient 0.4). The ascent takes ten seconds and the descent three minutes, so the descent decides where it lands.&lt;/em&gt;&lt;/figcaption&gt;
&lt;/figure&gt;

&lt;p&gt;The &lt;code&gt;dispersion&lt;/code&gt; command flies the same rocket hundreds of times, perturbing the drag scale (lognormal, 3%), the wind (1 m/s per axis) and the launch speed (1%), and reports apogee, landing range and the circular error probable, the radius that contains half the landings. It has its own tiny SplitMix64 generator rather than a dependency, so the same seed reproduces the same set of flights.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;500 runs, seed 42&lt;/th&gt;
&lt;th&gt;Apogee&lt;/th&gt;
&lt;th&gt;Landing range&lt;/th&gt;
&lt;th&gt;CEP&lt;/th&gt;
&lt;th&gt;Still aloft after an hour&lt;/th&gt;
&lt;th&gt;Time&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Calm&lt;/td&gt;
&lt;td&gt;489.5 m (sd 6.3)&lt;/td&gt;
&lt;td&gt;326 m (sd 562)&lt;/td&gt;
&lt;td&gt;232 m&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;4.0 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Steady 4 m/s&lt;/td&gt;
&lt;td&gt;489.2 m (sd 6.6)&lt;/td&gt;
&lt;td&gt;962 m (sd 981)&lt;/td&gt;
&lt;td&gt;383 m&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;4.0 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Steady 4 m/s plus gusts&lt;/td&gt;
&lt;td&gt;488.4 m (sd 10.3)&lt;/td&gt;
&lt;td&gt;853 m (sd 456)&lt;/td&gt;
&lt;td&gt;327 m&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;16.8 s&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The apogee statistics are tight and well behaved. The landing statistics carry a lesson about what a perturbation means. The 1 m/s wind uncertainty applies to all three axes, vertical included, and it is held for the whole flight. A rocket descending at 2.8 m/s under its parachute, given a steady updraft of comparable size, comes down very slowly or not at all: two runs in five hundred were still in the air an hour after launch, and the few that hung for many minutes drifted far enough to dominate the standard deviation of the landing range. A real updraft is a thermal, not a property of the entire sky. For landing-zone estimates the vertical term deserves its own, much smaller sigma.&lt;/p&gt;
&lt;h3&gt;The same commands in a browser&lt;/h3&gt;
&lt;p&gt;The command-line tool, &lt;code&gt;rockets&lt;/code&gt;, has three subcommands: &lt;code&gt;simulate&lt;/code&gt; prints a trajectory as a table, CSV or JSON with an apogee and impact summary; &lt;code&gt;dispersion&lt;/code&gt; runs the Monte Carlo; &lt;code&gt;solve-range&lt;/code&gt; finds the launch elevation that lands at a given distance. All of its options are parsed by one module, and that module compiles to WebAssembly unchanged. The browser build at &lt;a href="https://rockets.rs/sh/"&gt;rockets.rs/sh&lt;/a&gt; is a 39-line binding over the same parser, so the native tool and the web page accept exactly the same commands. The module is 836 KB, about 285 KB compressed. The page has a dozen example buttons, deep links that carry a command in the URL, and &lt;code&gt;--plot&lt;/code&gt; draws an interactive altitude chart by re-running the command with &lt;code&gt;--format json&lt;/code&gt;. Options that read files or terrain models are native-only and say so.&lt;/p&gt;
&lt;p&gt;One of the examples flies an Alpha III modified with a 24 mm mount on an Estes D12, which no stock Alpha can take: 66.6 g at liftoff, 591 m at apogee.&lt;/p&gt;
&lt;h3&gt;What it doesn't do&lt;/h3&gt;
&lt;p&gt;rockets-engine is a point-mass simulator with a few rungs added above point mass. The thrust axis is commanded, not earned: the weathercock model is a reduced-order second-order system relaxing the axis toward the relative wind, roll is a single scalar channel, and body lift is quasi-static, computed from the angle between the commanded axis and the relative wind rather than from an integrated attitude. There is no inertia tensor, no quaternion and no gyroscopic coupling. It is fixed-step RK4, not an adaptive solver, so a new vehicle model needs a convergence check, and the documentation says so. The standard atmosphere it borrows is defined to about 80 km; above that, an &lt;code&gt;AltitudeSwitch&lt;/code&gt; hands the flight to a vacuum model. The flat frame is wrong at intercontinental ranges, the central-gravity frame has no air, and Earth rotation is the caller's problem in an inertial frame.&lt;/p&gt;
&lt;p&gt;The Barrowman modeler is deliberately narrower than OpenRocket: conical, ogive, elliptical and parabolic noses; trapezoidal, elliptical and free-form fins; conical boat-tails; no launch lugs, shoulders or multi-diameter bodies. It is the subset I could check against OpenRocket's own numbers.&lt;/p&gt;
&lt;h3&gt;Nine days of it&lt;/h3&gt;
&lt;p&gt;The crate is 8,327 lines of Rust in the library, 3,014 in tests and 487 in six examples. Its heaviest file is the command-line module at 2,654 lines, because the command surface is where every feature has to agree with every other feature. The commit history reads like a list of the places the physics was fine and the bookkeeping was not.&lt;/p&gt;
&lt;figure style="margin: 2rem 0; text-align: center;"&gt;
&lt;a href="https://tinycomputers.io/images/rockets-engine/commits.png"&gt;&lt;img src="https://tinycomputers.io/images/rockets-engine/commits.png.webp" alt="Bar chart of commits per day from October 23 to October 30: 9, 15, 22, 7, 0, 0, 2 and 4." loading="lazy" style="max-width: 100%;"&gt;&lt;/a&gt;
&lt;figcaption&gt;&lt;em&gt;Most of the crate arrived in the first four days; the last three were dependency updates and bug fixes.&lt;/em&gt;&lt;/figcaption&gt;
&lt;/figure&gt;

&lt;p&gt;The first day produced the integrator, staging, central gravity, the command line and the browser terminal. The second added motor files, recovery and the geometry modeler, and put OpenRocket into CI. The third took the modeler through the transonic and supersonic regimes and brought in winds-engine. On the 30th, a fix for a division of zero by zero at apogee in the body-lift model, where the angle between the axis and the wind passes through exactly 180 degrees and the guard written for zero degrees did not catch it. Writing this post turned up two more, both fixed in 0.20.5 on the 31st. Nothing holds a rocket on the pad, so while thrust climbs past its weight it sags a few millimetres below the ground, and &lt;code&gt;dispersion&lt;/code&gt; took that sag for a landing and reported zeros. And the weathercock took a single explicit step of a stiff oscillator per output step, so at the default settings it flew the Alpha III to 213 m in a 4 m/s wind instead of 371; it now integrates the axis in substeps and agrees with itself to half a percent.&lt;/p&gt;
&lt;p&gt;In &lt;a href="https://tinycomputers.io/posts/the-bullet-doesnt-go-where-you-point-it.html"&gt;The Bullet Doesn't Go Where You Point It&lt;/a&gt; I wrote that almost none of the ballistics engine's memorable bugs were physics bugs. The rocket engine repeated the lesson with a twist. Its physics bugs were found by comparison, against an exact solution, against OpenRocket, against a delay grain Estes chose decades ago. Its other bugs lived at the edges of a flight: on the pad before liftoff, and at the instant of apogee, where velocities and angles pass through the values that formulas written for the middle of a flight never see.&lt;/p&gt;
&lt;p&gt;rockets-engine is on &lt;a href="https://crates.io/crates/rockets-engine"&gt;crates.io&lt;/a&gt; with documentation on &lt;a href="https://docs.rs/rockets-engine"&gt;docs.rs&lt;/a&gt;, the source is on &lt;a href="https://github.com/ajokela/rockets-engine"&gt;GitHub&lt;/a&gt;, and every command in this post runs at &lt;a href="https://rockets.rs/sh/"&gt;rockets.rs/sh&lt;/a&gt;. The rest of the ballistics work is collected, in order, on the &lt;a href="https://tinycomputers.io/pages/ballistics.html"&gt;ballistics page&lt;/a&gt;.&lt;/p&gt;</description><category>ballistics</category><category>model rockets</category><category>numerical methods</category><category>openrocket</category><category>rk4</category><category>rocketry</category><category>rockets-engine</category><category>rust</category><category>simulation</category><category>webassembly</category><guid>https://tinycomputers.io/posts/rockets-engine-giving-the-ballistics-engine-a-motor.html</guid><pubDate>Sun, 01 Nov 2026 01:00:00 GMT</pubDate></item><item><title>Why FP16 Is Slow on a Tesla P40, and Why FP32 Was Slow Too</title><link>https://tinycomputers.io/posts/why-fp16-is-slow-on-a-tesla-p40.html?utm_source=feed&amp;utm_medium=rss&amp;utm_campaign=rss</link><dc:creator>A.C. Jokela</dc:creator><description>&lt;div class="audio-widget"&gt;
&lt;div class="audio-widget-header"&gt;
&lt;span class="audio-widget-icon"&gt;🎧&lt;/span&gt;
&lt;span class="audio-widget-label"&gt;Listen to this article&lt;/span&gt;
&lt;/div&gt;
&lt;audio controls preload="metadata"&gt;
&lt;source src="https://tinycomputers.io/why-fp16-is-slow-on-a-tesla-p40_tts.mp3" type="audio/mpeg"&gt;
&lt;/source&gt;&lt;/audio&gt;
&lt;div class="audio-widget-footer"&gt;22 min · AI-generated narration&lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;In February I ran &lt;a href="https://tinycomputers.io/posts/image-editing-on-10-year-old-gpus-nvidia-p40-vs-amd-strix-halo.html"&gt;FireRed-Image-Edit on four Tesla P40s&lt;/a&gt; and found that FP32 was faster than FP16, about 9 minutes per denoising step in FP16 against 1.5 to 2.4 minutes in FP32. I explained it with one sentence: FP16 on Pascal "is handled through slower pathways." That sentence names no pathway. It was a guess dressed up as an explanation.&lt;/p&gt;
&lt;p&gt;Then Sevan emailed me a second data point. Sevan runs the AI behind a free wardrobe app on a single P40 and had been loading a virtual try-on model, Leffa, in FP16 since launch to save memory. Switching to FP32 took a 20-step render from 1,241 seconds to 85: 63.8 seconds per step in FP16 against 4.7 in FP32, with images that differ by 0.77/255 per pixel on average. The measurements and the dtype rule Sevan landed on are in &lt;a href="https://fring.sevan.zone/en/guides/tesla-p40-fp16-vs-fp32" rel="nofollow"&gt;Sevan's write-up&lt;/a&gt;. Thank you, Sevan, for taking the time to write to me; it is the reason this post exists.&lt;/p&gt;
&lt;p&gt;Two independent P40s, two different diffusion models, the same 4x to 14x penalty for FP16. I wanted to know which operation causes it, so I measured each one.&lt;/p&gt;
&lt;h3&gt;The setup&lt;/h3&gt;
&lt;p&gt;Everything ran on the same machine as the February post: four Tesla P40s in a Penguin Computing 2U chassis, NVIDIA driver 580.178.04, and the same Python environment, PyTorch 2.6.0 with CUDA 12.4 and cuDNN 9.1. Single-card tests ran on one P40, which held its 1,531 MHz boost clock throughout (the shop is cold enough that the cards never passed 33°C). I used FireRed-Image-Edit-1.0's real weights, sized every test to the February edit job (a roughly 1024x1024 target plus a 1024x1024 reference image, which comes to 8,192 image tokens plus a short prompt), and ran each precision in its own process.&lt;/p&gt;
&lt;p&gt;There are three layers of test: raw operations (matrix multiply, attention, convolution, elementwise math), the first six of FireRed's 60 transformer blocks with real weights, and the full pipeline in FP32 across all four cards.&lt;/p&gt;
&lt;h3&gt;FP16 matrix math is not the problem&lt;/h3&gt;
&lt;p&gt;The P40's GP102 chip does FP16 arithmetic at 1/64 of its FP32 rate, so the natural assumption is that every FP16 operation crawls. Matrix multiplies do not:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Operation (one P40)&lt;/th&gt;
&lt;th&gt;FP32&lt;/th&gt;
&lt;th&gt;FP16&lt;/th&gt;
&lt;th&gt;BF16&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Matrix multiply, 4096³&lt;/td&gt;
&lt;td&gt;9.4 TFLOPS&lt;/td&gt;
&lt;td&gt;9.8 TFLOPS&lt;/td&gt;
&lt;td&gt;5.0 TFLOPS&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Matrix multiply, MLP-shaped (8448×3072×12288)&lt;/td&gt;
&lt;td&gt;9.7 TFLOPS&lt;/td&gt;
&lt;td&gt;10.2 TFLOPS&lt;/td&gt;
&lt;td&gt;4.5 TFLOPS&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Attention, 24 heads × 8448 tokens × 128&lt;/td&gt;
&lt;td&gt;5.94 TFLOPS&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0.24 TFLOPS&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;2.67 TFLOPS&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3×3 convolution, 128 channels at 512²&lt;/td&gt;
&lt;td&gt;16.8 TFLOPS&lt;/td&gt;
&lt;td&gt;13.3 TFLOPS&lt;/td&gt;
&lt;td&gt;3.4 TFLOPS&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Elementwise multiply, 2²⁸ values&lt;/td&gt;
&lt;td&gt;24.9 G/s&lt;/td&gt;
&lt;td&gt;22.8 G/s&lt;/td&gt;
&lt;td&gt;45.9 G/s&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;(The FP32 and FP16 convolution figures exceed the card's 11.8 TFLOPS peak because cuDNN picks a fast algorithm such as Winograd, which does fewer multiplies than the nominal count I divided by.)&lt;/p&gt;
&lt;p&gt;The profiler shows why FP16 matrix multiplies run at full speed: cuBLAS on Pascal uses kernels named &lt;code&gt;maxwell_fp16_sgemm_fp16&lt;/code&gt;, which read FP16, compute in FP32, and write FP16. The data is half precision; the arithmetic is not. Speed varies by shape (one FP16 down-projection shape ran at 2.8 TFLOPS through &lt;code&gt;F.linear&lt;/code&gt;), but nothing like 1/64.&lt;/p&gt;
&lt;p&gt;One row in that table is 25 times slower than FP32: attention.&lt;/p&gt;
&lt;h3&gt;One attention kernel&lt;/h3&gt;
&lt;p&gt;PyTorch's &lt;code&gt;scaled_dot_product_attention&lt;/code&gt; picks a backend at runtime. On a P40 in FP16 it picks the memory-efficient kernel, &lt;code&gt;fmha_cutlassF_f16_aligned_32x128_rf_sm50&lt;/code&gt;, and that kernel takes 3.69 seconds for an attention call that takes 0.148 seconds in FP32. It evidently does at least part of its arithmetic in FP16, which this chip runs at 1/64 speed. Forcing the plain "math" backend, which upcasts to FP32 and runs ordinary matrix multiplies, brings the same call down to 0.328 seconds.&lt;/p&gt;
&lt;p&gt;On real FireRed blocks, that one kernel is 89% of the GPU time in FP16: 7.40 of 8.32 seconds across two blocks. Everything else in an FP16 block is faster than FP32.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Six real FireRed blocks, one P40&lt;/th&gt;
&lt;th&gt;Per block&lt;/th&gt;
&lt;th&gt;Output vs FP32&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;FP32, stock&lt;/td&gt;
&lt;td&gt;1.08 s&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;FP16, stock&lt;/td&gt;
&lt;td&gt;4.17 s&lt;/td&gt;
&lt;td&gt;every value inf or NaN&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;FP16, math attention forced&lt;/td&gt;
&lt;td&gt;0.92 s&lt;/td&gt;
&lt;td&gt;every value inf or NaN&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;BF16 (math attention is automatic)&lt;/td&gt;
&lt;td&gt;0.86 s&lt;/td&gt;
&lt;td&gt;0.8% relative error&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Scaled to a full denoising step (60 blocks, two passes for classifier-free guidance), stock FP16 comes to about 500 seconds, 8.3 minutes. February's measured "approximately 9 minutes per step" sits right next to it, which is the best evidence I have that this kernel was February's problem too.&lt;/p&gt;
&lt;p&gt;Fixing the speed does not rescue FP16 for this model. After six blocks, all 524,288 output values had overflowed. These blocks were fed random inputs rather than real text embeddings, so I would not read too much into exactly where it breaks; the February pipeline, with real inputs, produced a solid black image for the same reason. FP16's maximum value is 65,504, and FireRed's activations exceed it.&lt;/p&gt;
&lt;h3&gt;BF16 runs on a P40&lt;/h3&gt;
&lt;p&gt;Several of my earlier P40 posts say the card cannot compute in BF16. That is half right. Pascal has no BF16 arithmetic, but PyTorch and cuBLAS treat BF16 as a storage format: the matrix multiplies run through &lt;code&gt;magma_sgemmEx&lt;/code&gt; kernels that read BF16 and compute in FP32. BF16 has FP32's exponent range, so nothing overflowed, and its error against FP32 after six blocks was 0.8%.&lt;/p&gt;
&lt;p&gt;The costs are real but specific. BF16 matrix multiplies run at about half the FP32 rate. BF16 convolutions run at a fifth of it, so the VAE decode of a 1024x1024 image took 3.3 seconds in BF16 against 1.8 in FP32. (FP16 took 3.5 seconds there and, unlike the transformer, decoded cleanly: 0.03/255 average difference from FP32.) And there is no memory-efficient attention kernel for BF16 on Pascal, so PyTorch falls back to the math backend, which materializes the full attention matrix: six BF16 blocks peaked at 20.5 GB against 9.9 GB for six FP32 blocks. The March home-lab post's figure of "roughly 21% slower" does not match any of these measurements; the right answer depends entirely on which operation you are running.&lt;/p&gt;
&lt;h3&gt;FP32 was running at half speed&lt;/h3&gt;
&lt;p&gt;BF16 beating FP32 on the blocks made no sense if BF16 matrix multiplies are half as fast, so I profiled FP32. Inside the model, its matrix multiplies averaged 2.3 TFLOPS, about a quarter of what the same shapes reach in isolation. The difference is the bias.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;nn.Linear&lt;/code&gt; calls &lt;code&gt;F.linear(x, weight, bias)&lt;/code&gt;, and PyTorch hands the bias to cuBLAS to fuse into the matrix multiply. For FP32 on Pascal, that fused path selects a different kernel, &lt;code&gt;maxwell_sgemm_32x128_tn&lt;/code&gt;, which runs at 3.9 TFLOPS. The same multiply without the bias selects &lt;code&gt;sgemm_128x128x8_NT_vec&lt;/code&gt; and runs at 8.5 TFLOPS:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;FP32 linear layer, 8192 tokens, 3072→12288&lt;/th&gt;
&lt;th&gt;Time&lt;/th&gt;
&lt;th&gt;Throughput&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;F.linear(x, w, b)&lt;/code&gt; (bias fused)&lt;/td&gt;
&lt;td&gt;157 ms&lt;/td&gt;
&lt;td&gt;3.9 TFLOPS&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;F.linear(x, w) + b&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;73–77 ms&lt;/td&gt;
&lt;td&gt;8.0–8.5 TFLOPS&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;In that test the two outputs were bit-identical. PyTorch 2.10 with CUDA 12.6 behaves the same as 2.6. FP16 is not affected: with or without the bias, the same shape takes 79 ms.&lt;/p&gt;
&lt;p&gt;The fix is a replacement &lt;code&gt;forward&lt;/code&gt; for &lt;code&gt;nn.Linear&lt;/code&gt;. Apply it before loading the model, because accelerate's device hooks capture &lt;code&gt;forward&lt;/code&gt; on some modules when a model is spread across GPUs:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="kn"&gt;import&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nn"&gt;torch&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nn"&gt;torch.nn.functional&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;as&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nn"&gt;F&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nf"&gt;linear_forward&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;y&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;F&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;linear&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;weight&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;bias&lt;/span&gt; &lt;span class="ow"&gt;is&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;bias&lt;/span&gt;

&lt;span class="n"&gt;torch&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;nn&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Linear&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;forward&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;linear_forward&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;On six FireRed blocks it took FP32 from 1.08 to 0.53 seconds per block, 2.06 times faster, with a relative difference from the stock output of 6×10⁻⁷ and the same 9.9 GB peak memory. On these blocks, split-bias FP32 beats BF16 by 1.6x and stock FP16 by 7.9x, and it is the only configuration that is both the fastest and numerically clean.&lt;/p&gt;
&lt;h3&gt;The full pipeline&lt;/h3&gt;
&lt;p&gt;Block numbers are extrapolations, so I ran the real thing: FireRed-Image-Edit end to end with February's inputs (the same photo, "Add a red hat on the cat," seed 43, true CFG at 4.0). The FP32 transformer is 82 GB, so it is split across all four P40s, 12 blocks on the first card and 16 on each of the others, and every card peaked between 21.0 and 21.8 GiB. As in February, the text encoder ran once in FP16 and was freed before the transformer loaded. The final VAE decode ran on the CPU, so a 40-step run could not run out of GPU memory at the very end.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;FireRed-Image-Edit, four P40s&lt;/th&gt;
&lt;th&gt;Per step&lt;/th&gt;
&lt;th&gt;40 steps&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;FP32, stock (5-step run)&lt;/td&gt;
&lt;td&gt;144.2 s&lt;/td&gt;
&lt;td&gt;about 96 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;FP32, bias split out (40-step run)&lt;/td&gt;
&lt;td&gt;62.8 s&lt;/td&gt;
&lt;td&gt;41.9 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;February: INT8 transformer, FP32 everything else&lt;/td&gt;
&lt;td&gt;87.5 s&lt;/td&gt;
&lt;td&gt;58 min&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;img src="https://tinycomputers.io/images/firered-p40-fp32-splitbias-40step.png.webp" alt="The 40-step FP32 split-bias output on four P40s: a cat in a red knit hat added to the cover of the Python book" style="width: 480px; box-shadow: 0 30px 40px rgba(0,0,0,.1); float: right; padding: 20px;" loading="lazy"&gt;&lt;/p&gt;
&lt;p&gt;The steps barely vary: 144.2 to 144.3 seconds stock, 62.6 to 63.0 seconds with the fix. After five steps, the split-bias image differed from the stock one by 0.005/255 per pixel on average and 6/255 at most; the two matrix-multiply kernels add in a different order, so the results are not bit-identical, but they are the same picture. The 40-step result is the same red hat on the same cat that February's INT8 run produced.&lt;/p&gt;
&lt;p&gt;Split-bias FP32 takes 28% less time per step than February's INT8 configuration on the same cards, with no quantization at all.&lt;/p&gt;
&lt;p&gt;Stock FP32 came in slower than my block-level estimate, 144 seconds against 130. The block test leaves out the input and output layers, three hand-offs between cards on every pass, and the scheduler; that is where the other 14 seconds go.&lt;/p&gt;
&lt;h3&gt;And the Strix Halo&lt;/h3&gt;
&lt;p&gt;February's headline was that a single AMD Strix Halo APU ran this model 6% faster than all four P40s: 82.6 seconds per step against 87.5. If the P40s now take 62.8, that headline flips, but only if the Strix is held to the same standard. The P40s just got tuned. So did the Strix: same photo, prompt, seed and guidance, the whole transformer in BF16 as in February, five steps per configuration, timed the same way.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;FireRed-Image-Edit, one Strix Halo (BF16)&lt;/th&gt;
&lt;th&gt;Per step&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;February's software (PyTorch 2.7.1, ROCm 7.9 RC1), stock&lt;/td&gt;
&lt;td&gt;106.9 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;same, bias split out&lt;/td&gt;
&lt;td&gt;106.9 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;same, AOTriton attention enabled&lt;/td&gt;
&lt;td&gt;106.9 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Newer software (PyTorch 2.9.1, ROCm 7.11 RC2), stock&lt;/td&gt;
&lt;td&gt;107.7 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;newer, AOTriton attention enabled&lt;/td&gt;
&lt;td&gt;21.6 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;newer, AOTriton plus bias split out&lt;/td&gt;
&lt;td&gt;20.0 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;newer, AOTriton plus TunableOp&lt;/td&gt;
&lt;td&gt;20.6 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;newer, AOTriton, TunableOp and bias split out&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;19.4 s&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;One setting does almost all of it. &lt;code&gt;TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL=1&lt;/code&gt; lets PyTorch use AOTriton's flash-attention kernels on this GPU instead of the math fallback, and on the newer software it takes a step from 107.7 seconds to 21.6 and peak memory from 52.9 GiB to 38.9. February's software accepts the variable and ignores it. TunableOp, which times the available matrix-multiply kernels for each shape and keeps the fastest, takes another 5%; the first step pays for the search (one to three minutes) and the rest reuse it. Splitting out the bias, the P40's big win, is worth nothing on February's ROCm stack and 7% on the newer one: it is a cuBLAS kernel-selection problem, not a PyTorch one.&lt;/p&gt;
&lt;p&gt;Fully tuned, the Strix Halo is 3.2 times faster than the four tuned P40s, 19.4 seconds per step against 62.8. February's 6% was a comparison between two untuned machines, and the untuned Strix was leaving more on the table than the untuned P40s were. The P40 fix is real and worth having. It does not change who wins.&lt;/p&gt;
&lt;p&gt;Two things here do not reconcile, and I am not going to paper over them. First, February's software, run today, takes 106.9 seconds per step, not February's 82.6. The one difference I can see is the GPU memory configuration: in February the pipeline used about 75 GB of GPU memory, and today PyTorch sees 59.6 GiB, of which only 4 GiB is a dedicated carve-out, with the rest borrowed from system memory. I have not changed the BIOS to test February's setting, so the 29% gap is unexplained. Second, that memory limit is why the text encoder and the VAE run on the CPU in these tests; the whole BF16 pipeline (57.7 GB) no longer fits. Neither runs inside the timed denoising loop, so the per-step numbers compare like with like, but it is not February's exact setup. The images agree: every configuration produced the same red hat on the same cat, with BF16 and different kernels drifting by 1.5 to 2.7/255 per pixel on average after five steps.&lt;/p&gt;
&lt;h3&gt;Caveats&lt;/h3&gt;
&lt;p&gt;The block tests use FireRed's real weights but random inputs, and they time 6 of 60 blocks; the per-step figures for anything other than the full pipeline runs are extrapolations that leave out the text encoder, the VAE, and transfers between cards. The P40 runs used PyTorch 2.6.0 with CUDA 12.4 on driver 580.178.04 (the bias result also holds on PyTorch 2.10 with CUDA 12.6); the Strix runs used the two ROCm stacks in the table, with the same diffusers, transformers and accelerate versions. The Strix numbers are five-step runs, and the P40 runs are FP32 across four cards while the Strix runs are BF16 on one APU: each is that machine's fastest correct configuration, not the same arithmetic. I did not test training, other models, or newer GPUs, which have FP16 and BF16 hardware and will rank the three precisions differently. The bias result is a cuBLAS kernel-selection behavior, and a future cuBLAS could change it.&lt;/p&gt;
&lt;h3&gt;What I would do on a P40 now&lt;/h3&gt;
&lt;p&gt;Run FP32 and patch &lt;code&gt;nn.Linear&lt;/code&gt; to split out the bias. If a model does not fit in FP32, store it in BF16 rather than FP16, because BF16 will not overflow, and budget for the math-attention memory. If you must use FP16, force the math attention backend with &lt;code&gt;torch.nn.attention.sdpa_kernel(SDPBackend.MATH)&lt;/code&gt; and check the output for inf and NaN, because the speed fix does nothing for the range problem.&lt;/p&gt;
&lt;p&gt;The March &lt;a href="https://tinycomputers.io/posts/running-ltx-video-on-four-tesla-p40s.html"&gt;LTX-Video run on these same four cards&lt;/a&gt; patched &lt;code&gt;F.linear&lt;/code&gt; to upcast each weight and bias to FP32 and then call the original &lt;code&gt;F.linear&lt;/code&gt; with the bias attached, which is exactly the slow path. It probably paid this penalty on every linear layer. I have not re-run it.&lt;/p&gt;</description><category>ai hardware</category><category>attention</category><category>benchmarks</category><category>bf16</category><category>cublas</category><category>diffusion models</category><category>firered</category><category>fp16</category><category>fp32</category><category>gpu computing</category><category>nvidia p40</category><category>pascal</category><category>pytorch</category><guid>https://tinycomputers.io/posts/why-fp16-is-slow-on-a-tesla-p40.html</guid><pubDate>Sat, 31 Oct 2026 21:30:00 GMT</pubDate></item><item><title>The SpacemiT K3 on a Custom Kernel: Sixteen Cores, and the Virtual Machines Still Get Eight</title><link>https://tinycomputers.io/posts/spacemit-k3-custom-kernel-a100.html?utm_source=feed&amp;utm_medium=rss&amp;utm_campaign=rss</link><dc:creator>A.C. Jokela</dc:creator><description>&lt;div class="audio-widget"&gt;
&lt;div class="audio-widget-header"&gt;
&lt;span class="audio-widget-icon"&gt;🎧&lt;/span&gt;
&lt;span class="audio-widget-label"&gt;Listen to this article&lt;/span&gt;
&lt;/div&gt;
&lt;audio controls preload="metadata"&gt;
&lt;source src="https://tinycomputers.io/spacemit-k3-custom-kernel-a100_tts.mp3" type="audio/mpeg"&gt;
&lt;/source&gt;&lt;/audio&gt;
&lt;div class="audio-widget-footer"&gt;41 min · AI-generated narration&lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;Mainline Linux on the SpacemiT K3 shows eight cores. The &lt;a href="https://tinycomputers.io/posts/spacemit-k3-pico-itx-review.html"&gt;vendor kernel showed all sixteen&lt;/a&gt; and could not load KVM. &lt;a href="https://tinycomputers.io/posts/spacemit-k3-ubuntu-kvm-follow-up.html"&gt;Ubuntu's kernel loads KVM&lt;/a&gt; and pretends the eight A100 cores do not exist. For a month I have had to pick one.&lt;/p&gt;
&lt;p&gt;Now I do not. The board is running a patched kernel.org Linux 7.3 build with all sixteen cores online. The twelve Debian guests from my load harness still run under KVM on the eight X100 cores, and the eight A100 cores take any host program that asks for them. I did not flash any firmware.&lt;/p&gt;
&lt;p&gt;It took two kernel builds, one firmware query, a device-tree correction, and a test that had to be fixed before it could test anything. It also turned up a panic in the first custom kernel, on its way down rather than up.&lt;/p&gt;
&lt;p&gt;The A100 cores have no hypervisor extension, so none of this adds a virtual machine. In &lt;a href="https://tinycomputers.io/posts/the-1175-dollar-option-risc-v-colo-revisited.html"&gt;the October piece on renting these boards&lt;/a&gt; I called sixteen-core support the gate to watch and said it would roughly double capacity on a software update. For the product I was planning to sell, that was wrong. The last section of this piece works out what it changes instead.&lt;/p&gt;
&lt;p&gt;&lt;img alt="The K3's sixteen cores form two separate CPU groups: eight X100 cores, logical CPUs 0–7, run ordinary host tasks and KVM with 256-bit vector registers; eight A100 cores, CPUs 8–15, run explicitly launched host workers with 1,024-bit vector registers and no hardware virtualization extension. The register-width bars show a four-to-one size ratio, not a throughput comparison." src="https://tinycomputers.io/images/spacemit-k3-custom-kernel/cpu-groups.png"&gt;&lt;/p&gt;
&lt;h3&gt;Why build a kernel at all&lt;/h3&gt;
&lt;p&gt;The board has hung twice under my sustained-load harness, once on Ubuntu's &lt;code&gt;7.3.0-5&lt;/code&gt; kernel and once on &lt;code&gt;7.3.0-8&lt;/code&gt;. The second time, the last telemetry row showed a cool, nearly idle board with nothing blocked. It simply stopped, and stayed down until I power-cycled it. It has not hung in about thirteen days on &lt;code&gt;7.3.0-9&lt;/code&gt;. Two events on two builds cannot separate a kernel bug from a firmware or hardware one, and a newer kernel was the cheapest next experiment.&lt;/p&gt;
&lt;p&gt;It is not an explanation, though. Watching a new kernel boot says nothing about a hang that took days to appear, so I kept the old telemetry and recorded this run separately. Nothing in this piece claims the hangs are fixed.&lt;/p&gt;
&lt;h3&gt;Ubuntu's 7.3 is not 7.3&lt;/h3&gt;
&lt;p&gt;Ubuntu calls its kernel &lt;code&gt;7.3.0-9-generic&lt;/code&gt;. Its &lt;code&gt;/proc/version_signature&lt;/code&gt; says the source underneath is Linux &lt;code&gt;7.3.0-rc6&lt;/code&gt;. Kernel.org has since released 7.3 final, so I started from that tarball, checked its SHA-256, and verified the detached signature against Greg Kroah-Hartman's published key.&lt;/p&gt;
&lt;p&gt;Upstream 7.3 cannot boot this board the way I run it. It has no K3 PCIe support, and my root filesystem lives on a &lt;a href="https://go.tinymachines.io/wd-black-sn850x-2tb"&gt;2 TB WD_BLACK SN850X&lt;/a&gt; behind that controller, because the onboard UFS still does not work on mainline. So I carried the PCIe driver, its PHY dependencies and the clock fixes over from the exact Ubuntu source package behind the installed kernel. The shared DesignWare PCIe code was identical in both trees. The first build used Ubuntu's device tree unchanged, because the upstream one has no PCIe nodes. Display support stayed out; this machine is managed over SSH and serial.&lt;/p&gt;
&lt;p&gt;The release is &lt;code&gt;7.3.0-tinymachines-k3-1&lt;/code&gt;, and "patched kernel.org build" is the accurate name for it. The board-specific code I carried over is exactly where a K3 bug would most likely live, so changing the base version cannot rule it out.&lt;/p&gt;
&lt;p&gt;For the configuration I started from Ubuntu's, trimmed it with &lt;code&gt;localmodconfig&lt;/code&gt; against a snapshot of the loaded modules, and then checked by hand that NVMe, LVM, ext4, networking, containers and KVM had survived the trim. An AMD GPU driver had survived it too, through graphics-helper dependencies, on a board with no AMD GPU, so I disabled it explicitly. The native build on the K3 took under an hour and produced the EFI boot image and 1,446 modules. Four GCC warnings about stack-frame size came from InfiniBand management code this board never loads. There were no errors.&lt;/p&gt;
&lt;h3&gt;Making a bad kernel cheap to lose&lt;/h3&gt;
&lt;p&gt;Before the first reboot I set things up so that a bad kernel would cost me a power cycle rather than a reinstall.&lt;/p&gt;
&lt;p&gt;Ubuntu's kernel, initrd and device tree stayed installed, and I recorded their hashes so the install script could prove it had not touched them. GRUB kept Ubuntu as the default, and the custom kernel got exactly one boot through &lt;code&gt;grub-reboot&lt;/code&gt;. The K3's serial console runs over a PL2303 USB cable (a &lt;a href="https://go.tinymachines.io/6v3F6F"&gt;CP2102 adapter&lt;/a&gt; is the better buy today) to a &lt;a href="https://go.tinymachines.io/raspberry-pi-5"&gt;Raspberry Pi 5&lt;/a&gt; that records it to disk, and the board's power comes through a &lt;a href="https://go.tinymachines.io/shelly-plug-us-gen4"&gt;Shelly Plug US Gen4&lt;/a&gt; I can switch from another machine. If the new kernel died before SSH came back, the Pi would have its last words and the plug would put me back in Ubuntu.&lt;/p&gt;
&lt;p&gt;That does not make a bad kernel harmless. &lt;code&gt;kernel.panic&lt;/code&gt; stays at zero, so a dead kernel stays dead with its trace on the console, and getting out still means cutting power. What it buys is a failure I can read and a known place to land afterwards.&lt;/p&gt;
&lt;p&gt;I also skipped &lt;code&gt;make install&lt;/code&gt;. The generic install path can trigger Ubuntu's board-flashing hooks, and I did not want a kernel experiment anywhere near the firmware. I installed the versioned kernel, modules, config and device tree by hand, built a Dracut initrd that explicitly includes the PCIe, PHY and NVMe drivers, and listed its contents before rebooting. A clean compile means nothing if the next boot cannot find the controller its root filesystem sits behind.&lt;/p&gt;
&lt;p&gt;The first custom kernel booted in 21.6 seconds. All twelve guests answered SSH, PostgreSQL accepted connections, Redis returned &lt;code&gt;PONG&lt;/code&gt;, and nginx returned HTTP 200. There was no new panic or oops, and the seven error-level boot messages about CMA reservation and legacy PCI interrupts matched the Ubuntu boot exactly.&lt;/p&gt;
&lt;p&gt;That proved the kernel could run the workload. It proved nothing about the hangs.&lt;/p&gt;
&lt;h3&gt;The firmware already knew about the other eight&lt;/h3&gt;
&lt;p&gt;Linux reported &lt;code&gt;possible&lt;/code&gt;, &lt;code&gt;present&lt;/code&gt; and &lt;code&gt;online&lt;/code&gt; as &lt;code&gt;0-7&lt;/code&gt;, and the device tree described only X100 cores. &lt;code&gt;CONFIG_NR_CPUS&lt;/code&gt; was already 512, so raising it would do nothing.&lt;/p&gt;
&lt;p&gt;Before spending another build on the A100 port, I asked the firmware a narrower question. Linux on RISC-V starts each hardware thread, or hart, by asking OpenSBI through its Hart State Management extension, and the same extension answers status queries. I wrote a small module that queried all sixteen hart IDs without starting or stopping any of them.&lt;/p&gt;
&lt;p&gt;All sixteen calls succeeded. Harts 0 through 7 reported STARTED. Harts 8 through 15 reported STOPPED.&lt;/p&gt;
&lt;p&gt;That split one problem into two. Linux had no description of the extra cores, while the firmware knew their hart IDs and their state. No affinity trick in userspace bridges that gap. The work belonged in the kernel and the device tree, and the firmware I already had could stay. A STOPPED answer does not prove a start request will succeed, or that the cores will stay coherent under load. It did mean I could skip flashing firmware, which on this board means holding a button down while applying power.&lt;/p&gt;
&lt;p&gt;Loading an out-of-tree module taints the kernel, so I unloaded it after the query and noted the taint against that boot.&lt;/p&gt;
&lt;h3&gt;Two vector widths on one chip&lt;/h3&gt;
&lt;p&gt;The X100 and A100 cores have different vector register widths: 256 bits on X100, 1,024 on A100. A task cannot carry live vector state from one to the other and expect its registers to fit. Upstream 7.3 checks for a matching width when it brings up secondary CPUs, and refuses the mismatch.&lt;/p&gt;
&lt;p&gt;SpacemiT's current public source handles this under &lt;code&gt;CONFIG_SPACEMIT_HMP&lt;/code&gt;. It allocates room for the larger vector state, keeps tasks in separate CPU groups, and provides &lt;code&gt;/proc/set_ai_thread&lt;/code&gt; to move a task into the A100 group. Older public discussions said these changes had never been released. They are in the vendor's 6.18 tree now: the &lt;a href="https://github.com/spacemit-com/linux-6.18/blob/7d17e358c660f1046eb1f27f26eea33955813afd/drivers/soc/spacemit/hmp.c"&gt;CPU grouping&lt;/a&gt;, the &lt;a href="https://github.com/spacemit-com/linux-6.18/blob/7d17e358c660f1046eb1f27f26eea33955813afd/arch/riscv/kernel/vector.c"&gt;vector handling&lt;/a&gt;, and the &lt;a href="https://github.com/spacemit-com/linux-6.18/blob/7d17e358c660f1046eb1f27f26eea33955813afd/arch/riscv/kvm/main.c"&gt;KVM exceptions&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The KVM exceptions exist because A100 also lacks the H extension, the hardware support for virtualization. So the target was always the same: KVM stays on X100, and separate host programs get A100. The &lt;a href="https://tinycomputers.io/posts/spacemit-k3-pico-itx-review.html"&gt;first review&lt;/a&gt; already showed that A100 runs ordinary code, compiling my Rust benchmark in 342.78 seconds against 161.29 on X100. What the extra cores add is host capacity. They do not add a single core to what a guest can use.&lt;/p&gt;
&lt;p&gt;Porting the vendor code meant more than relaxing the startup check. A signal frame has to carry the right amount of vector state. A debugger has to read the right register size. KVM has to keep describing X100 registers to its guests even though the host now allocates room for A100's. The scheduler's fallback paths have to keep a task inside its own group when its affinity changes.&lt;/p&gt;
&lt;p&gt;The sizes make it concrete. Thirty-two X100 vector registers occupy 1 KiB; the A100 set occupies 4 KiB. The port reserves 4 KiB per task but tracks how much each task actually owns, and signal delivery and ptrace copy that task's width. A signal frame that tries to change the width is rejected. KVM keeps the 1 KiB allocation and the X100 width, and KVM ioctls from an A100 task return &lt;code&gt;EOPNOTSUPP&lt;/code&gt;. I also turned off preemptible in-kernel vector support for this build, so that fewer mechanisms changed at once. Userspace vectors stay on.&lt;/p&gt;
&lt;p&gt;The first compile failed on something the vendor code never had to handle: Linux 7.3 requires a &lt;code&gt;task_cpu_fallback_mask&lt;/code&gt; hook alongside an architecture's task CPU mask. The port now confines that fallback to the task's group as well.&lt;/p&gt;
&lt;p&gt;The launcher needed care too. The C library's startup code can execute vector instructions before a program reaches &lt;code&gt;main&lt;/code&gt;, and a task that already owns vector state cannot switch groups. So &lt;code&gt;a100-run&lt;/code&gt; is a small assembly program that opts itself into the A100 group with raw system calls and then executes the requested program. The kernel accepts the request only from the calling thread, before it has used vectors and before it shares its address space with another thread. Nothing can move someone else's process.&lt;/p&gt;
&lt;h3&gt;A device tree can renumber your CPUs&lt;/h3&gt;
&lt;p&gt;The first device-tree merge had a quieter problem. &lt;code&gt;fdtoverlay&lt;/code&gt; prepends the child nodes it adds, and RISC-V Linux numbers logical CPUs in the order it walks CPU nodes, after giving the boot CPU its special place. A naive overlay would have put most of the A100 cores ahead of the X100s. A command pinned to CPU 1 would have landed on a different physical core after the upgrade, and nothing would have told me.&lt;/p&gt;
&lt;p&gt;The device-tree build script now sorts CPU nodes by hart ID after merging, checks that 0 through 7 are X100 and 8 through 15 are A100, and extends the interrupt-controller descriptions to all sixteen harts. The extra harts need their interrupt connections described, and the supervisor interrupt controller's region has to cover them. Everything else (storage, networking, clocks) had to stay exactly as it was, so the script compares the compiled tree against the pinned working one and allows only the intended interrupt changes. The result passes &lt;code&gt;dtc&lt;/code&gt; with no warnings.&lt;/p&gt;
&lt;p&gt;None of that can be caught by a kernel that compiles. The device tree is a separate boot artifact, and a wrong one fails at boot or, worse, does not fail at all.&lt;/p&gt;
&lt;h3&gt;My first test was wrong&lt;/h3&gt;
&lt;p&gt;The first vector-state test filled all 32 vector registers with known patterns, called &lt;code&gt;sched_yield&lt;/code&gt;, and checked that the patterns survived. It failed on the unchanged eight-core kernel, before any A100 code existed. Every register came back filled with ones.&lt;/p&gt;
&lt;p&gt;That was my mistake, not the kernel's. The &lt;a href="https://cdn.kernel.org/doc/html/latest/arch/riscv/vector.html"&gt;Linux RISC-V vector ABI&lt;/a&gt; allows system calls to clobber the vector registers, and the syscall entry code deliberately discards them. I had written a test for a guarantee Linux does not make.&lt;/p&gt;
&lt;p&gt;The corrected test keeps the registers live inside a userspace loop with no system calls in it. Timer interrupts and competing tasks preempt it. A signal handler fires every 500 microseconds and overwrites every vector register, so returning from the signal has to restore the interrupted state. An &lt;code&gt;ebreak&lt;/code&gt; gives a debugger a ptrace stop without a system call inside the live-vector stretch.&lt;/p&gt;
&lt;p&gt;It passed on the first custom kernel: 464 signals during 500 million loop iterations, a debugger read of the saved registers, and a rejected attempt to change the reported vector width. That baseline mattered. If A100 failed later, I would be debugging the kernel and not the test.&lt;/p&gt;
&lt;p&gt;The rest of the test is built around specific ways the port could be wrong. The signal handler runs on an alternate stack between inaccessible guard pages. The arithmetic check uses 4,099 elements, so the final vector operation is a partial one. The negative tests try forbidden CPU affinities and hand the kernel a signal frame with an invalid vector width. Every check had an expected result before the new kernel ran, so a rejection could be a pass and a silent acceptance would be a bug.&lt;/p&gt;
&lt;h3&gt;The old kernel panicked on the way out&lt;/h3&gt;
&lt;p&gt;Once the A100 build finished, I installed it alongside both fallback kernels, checked their hashes again, and added a separate GRUB entry with &lt;code&gt;maxcpus=9&lt;/code&gt;: eight X100 cores and one A100 for the first boot, with the load harness held off by a marker on the kernel command line.&lt;/p&gt;
&lt;p&gt;The reboot never reached GRUB. The eight-core custom kernel unmounted the root filesystem, called its final reset, and panicked:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;Comm: systemd-shutdow
7.3.0-tinymachines-k3-1
epc : 0x2009aba6
Kernel panic - not syncing: Fatal exception
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;This was not an A100 failure, because that kernel had not started yet. On RISC-V the reset path calls the EFI runtime ResetSystem service before it tries the SBI restart handler, which makes EFI a lead. The trace does not establish a cause. That boot also carried the out-of-tree taint from the HSM probe, which belongs in the record next to the trace.&lt;/p&gt;
&lt;p&gt;EFI pstore failed to save the panic as well, with error &lt;code&gt;-22&lt;/code&gt;. The Pi's serial recording is the only reason I have it. After copying the trace I cut power with the Shelly plug and turned it back on. The one-time GRUB selection was still waiting, because the failed reset had never reached the bootloader to use it up.&lt;/p&gt;
&lt;p&gt;&lt;img alt="UTC bring-up timeline for October 26–27, 2026: the first eight-core custom kernel boots at 23:19; firmware recognizes all sixteen harts at 00:06; the older kernel panics during reset at 01:01:52; after power cycling, the A100 kernel boots with nine CPUs at 01:03:28. The first telemetry sample with all sixteen online is at 01:04:45. A four-minute concurrent validation finishes at 01:11:56, with 32 workers passing and twelve KVM guests answering SSH. This is initial validation, not a long-term stability result." src="https://tinycomputers.io/images/spacemit-k3-custom-kernel/bringup-timeline.png"&gt;&lt;/p&gt;
&lt;h3&gt;Sixteen cores, with the guests still on X100&lt;/h3&gt;
&lt;p&gt;After the power cycle, &lt;code&gt;7.3.0-tinymachines-k3-a100-1&lt;/code&gt; booted with nine CPUs. NVMe, networking and SSH worked. A test process launched onto CPU 8 measured its vector registers at 128 bytes each; X100 still measured 32.&lt;/p&gt;
&lt;p&gt;Both core types passed the register, signal, arithmetic, debugger and affinity tests, and A100 refused KVM ioctls as designed. Then I brought CPUs 9 through 15 online one at a time and checked that every logical CPU number matched its hart ID.&lt;/p&gt;
&lt;p&gt;Keeping the harness paused gave that first boot one job. A single A100 core was enough to exercise the different vector width and the virtualization restriction, and bringing up the other seven one at a time tested each startup on its own. Only then did I restart the guests. Had the board stopped at any step, the serial log and the last passing check would have told me where to look.&lt;/p&gt;
&lt;p&gt;Then came a longer concurrent run, about four minutes, while the VM fleet was starting:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Check&lt;/th&gt;
&lt;th&gt;Observed result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;CPU topology&lt;/td&gt;
&lt;td&gt;Eight X100 and eight A100 cores online&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Register-state stress&lt;/td&gt;
&lt;td&gt;Two workers per CPU; all 32 passed 100 billion loop iterations each&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Signal handling&lt;/td&gt;
&lt;td&gt;5,968,568 signal deliveries across those workers&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Shared memory&lt;/td&gt;
&lt;td&gt;16,000,000 atomic increments; all sixteen per-CPU totals matched&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;KVM&lt;/td&gt;
&lt;td&gt;All twelve guests answered SSH; every QEMU process confined to CPUs 0-7&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Guest vector state&lt;/td&gt;
&lt;td&gt;The same test passed inside a guest with the correct 32-byte register width&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Containers&lt;/td&gt;
&lt;td&gt;PostgreSQL accepting connections, Redis &lt;code&gt;PONG&lt;/code&gt;, nginx HTTP 200&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Kernel and services&lt;/td&gt;
&lt;td&gt;Kernel taint zero; no failed systemd units at the end of the run&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The loop counts measure context-state handling, not vector throughput. The loop itself is two instructions. What matters is that 32 sets of vector registers stayed intact through two workers per core, timer preemption and almost six million signal deliveries. A separate arithmetic check covers real vector computation with an uneven tail. The deliberately corrupted signal frames produce &lt;code&gt;bad frame&lt;/code&gt; messages from the user processes, which is the expected outcome, and no kernel oops.&lt;/p&gt;
&lt;p&gt;The shared-memory check made both groups fight over the same data. Sixteen workers, one pinned to each CPU, incremented one counter in a shared mapping while keeping their own per-CPU totals. The combined count came to exactly 16,000,000, one million per worker. A single lost update would have failed it even with every process exiting cleanly. It is a targeted coherence check across the two clusters, not a memory validation.&lt;/p&gt;
&lt;p&gt;The guest test answers a different question. A guest can boot and answer SSH while its vector state is wrong underneath. I copied a statically linked build of the test into one of the Debian guests and ran it there: 32-byte registers, 462 signals, pass. Together with every QEMU thread's affinity reading &lt;code&gt;0-7&lt;/code&gt;, that ties the guest's behavior to the cores actually running it.&lt;/p&gt;
&lt;p&gt;The load harness, sampler and canary are running again. The harness pulled its container tags on restart and Redis changed versions, so I recorded the image digests. This run shows the kernel is compatible with the workload. It is not a before-and-after performance comparison.&lt;/p&gt;
&lt;h3&gt;What using the extra cores looks like&lt;/h3&gt;
&lt;p&gt;An ordinary shell still gets eight CPUs from &lt;code&gt;nproc&lt;/code&gt;, because &lt;code&gt;nproc&lt;/code&gt; respects the calling process's affinity. The machine-wide online set is &lt;code&gt;0-15&lt;/code&gt;. &lt;code&gt;a100-run&lt;/code&gt; opts a fresh process into the A100 group before executing it:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;cat&lt;span class="w"&gt; &lt;/span&gt;/sys/devices/system/cpu/online
&lt;span class="c1"&gt;# 0-15&lt;/span&gt;

a100-run&lt;span class="w"&gt; &lt;/span&gt;/usr/bin/nproc
&lt;span class="c1"&gt;# 8, available to this A100 process&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;The interface is narrow on purpose. A process opts itself in before it has used vectors or started a thread, and nothing moves a running program between register widths. Ordinary tasks and every virtual machine stay on X100. The A100 cores take work that is launched onto them explicitly; they pick up none of the VM load on their own.&lt;/p&gt;
&lt;p&gt;That changes monitoring too. With sixteen CPUs online, eight saturated X100 cores read as about 50 percent whole-machine utilization, which makes a full board look half idle. A companion sampler now records X100 and A100 utilization separately, along with online counts, kernel release and boot ID. During the concurrent test both groups hit 100 percent. Intervals where a core was missing or mid-hotplug stay blank instead of becoming a made-up zero.&lt;/p&gt;
&lt;p&gt;Timestamps needed the same care. The host clock is stale in early boot until NTP synchronizes, so I kept boot IDs and time since boot next to the serial recorder's timestamps. The harness's phase labels needed context as well: it entered its idle &lt;code&gt;valley&lt;/code&gt; phase while my separate vector test was still saturating the board, and the label alone would misdescribe what the machine was doing. The test's start and finish times are saved, so the utilization trace can be explained later without reconstructing it from memory.&lt;/p&gt;
&lt;p&gt;&lt;img alt="Measured X100 and A100 utilization from 01:04:25 to 01:13:06 UTC on October 27, 2026, with online CPU counts above. A100 rises from one to eight online cores. During the shaded 01:07:57–01:11:56 register-state test, both groups reach 100 percent busy; X100 utilization drops earlier, while A100 remains saturated longer. All twelve guests answer SSH at 01:10:41. The missing A100 hotplug interval remains a gap. This is a compatibility and register-state check, not a throughput benchmark." src="https://tinycomputers.io/images/spacemit-k3-custom-kernel/cpu-utilization.png"&gt;&lt;/p&gt;
&lt;h3&gt;What I have not tested&lt;/h3&gt;
&lt;p&gt;Ubuntu is still the default boot, and both older kernels are intact. The sixteen-core state came from a nine-core boot plus seven hotplugged cores. I have not tested a direct sixteen-core cold boot, taking CPUs offline, suspend, or a multi-day run. I have not rebooted this kernel at all, and the last custom kernel I built panicked doing exactly that.&lt;/p&gt;
&lt;p&gt;The next evidence has to come from a direct sixteen-core boot and a long run with real A100 work alongside the twelve guests. The reset panic needs its own reproduction, from a clean boot with the same console capture. Keeping those apart is how I will tell whether a failure follows sustained load, CPU startup or the final reset. Source revisions, configurations, artifact hashes and raw results are saved so the next change can be compared against this one.&lt;/p&gt;
&lt;h3&gt;Where this leaves renting RISC-V virtual machines&lt;/h3&gt;
&lt;p&gt;The plan from &lt;a href="https://tinycomputers.io/posts/the-1175-dollar-option-risc-v-colo-revisited.html"&gt;the October piece&lt;/a&gt; is two K3 boards in a 1U at ServerPronto in Miami: virtual machines for kernel porters, bare metal for firmware developers, and a Raspberry Pi as the management controller, doing the same console capture and power switching this experiment leaned on. That piece put the two-node pilot at \$133.56 a month and listed five gates to re-measure before buying more hardware. One of them was "mainline enumerates all sixteen cores," and I called it the one to watch, because capacity would roughly double on a software update.&lt;/p&gt;
&lt;p&gt;That was wrong, and not because the software failed. It worked. The A100 cores have no hypervisor extension, so no kernel will ever schedule a guest's virtual CPU on them. When mainline does land this support, the VM product still gets nothing: the same eight X100 cores, the same aggregate ceiling of about 5,446 sysbench events per second, and the same point at which each tenant's share starts shrinking. Every line of the October arithmetic for the VM tier stands as written. The gate stays on the list, but it is a bare-metal gate now, not a capacity gate.&lt;/p&gt;
&lt;p&gt;What the A100 cores do offer is a second, smaller product, and it belongs to bare metal. A tenant who rents a whole board runs their own kernel anyway, so this port becomes something they can boot rather than something I have to support underneath strangers. What they get is unusual. By the first review's compile numbers, the A100 group adds about 47 percent more general-purpose throughput for work that can be split into separate processes. More interesting is that they get two vector widths, 256 and 1,024 bits, in one coherence domain, and the same test binary ran unchanged on both. QEMU will happily emulate a 1,024-bit vector unit and tell you whether your code is correct at that width. It cannot tell you how fast it is. In September the only RISC-V bare metal anyone rented by the hour carried a vector draft that was never ratified. The fidelity argument was always the case for this business, and the A100 cores strengthen it for exactly the customer I already thought was the defensible one.&lt;/p&gt;
&lt;p&gt;I would not run this kernel under paying VM tenants. The port touches signal frames, ptrace register access and KVM's CPU hooks, which are the paths where a mistake becomes a guest-isolation bug rather than a crash. It adds a &lt;code&gt;/proc&lt;/code&gt; file that any unprivileged process can write. It is not upstream, and nobody reviews it but me. A hypervisor host for strangers should run a kernel that somebody else also maintains, and Ubuntu's does that for free.&lt;/p&gt;
&lt;p&gt;The tempting variation is to move the container tier from October's harness onto A100, where it would stop competing with the guests for X100 time. That puts paying tenants directly on the host kernel (containers are already the weaker isolation boundary) running the least reviewed code on the board. Not with my name on the invoice.&lt;/p&gt;
&lt;p&gt;Then there is labor, which the October arithmetic left out entirely. A custom host kernel makes every security fix mine to carry: rebuild it on the board, which takes under an hour, rerun the test suite, then reboot the host and take all twelve guests down with it. The last custom kernel panicked on exactly that reboot, and this one has never been rebooted. In a rack the panic is survivable, because recovering a wedged board is precisely what the Pi and its power switch are for. But it turns every security update into a support event, and a one-person business sells its own hours before it sells anything else.&lt;/p&gt;
&lt;p&gt;So one part of the plan changes, and two do not.&lt;/p&gt;
&lt;p&gt;The VM tier runs Ubuntu's kernel and sells eight cores, as before. The October break-even stands.&lt;/p&gt;
&lt;p&gt;The bare-metal tier gets a new line on its spec sheet: sixteen cores and two vector widths, with a documented kernel to boot. The firmware and toolchain people I expected to rent whole boards are the people most likely to want 1,024-bit vectors anyway.&lt;/p&gt;
&lt;p&gt;And the things that actually decide whether this business exists have not moved. Two silent hangs in October, none in the thirteen days since on &lt;code&gt;7.3.0-9&lt;/code&gt;, and no idea yet why either one happened. I will not rent out a board that stops for reasons I cannot name, and when I wrote this the A100 kernel had been up for 49 minutes, which tells me nothing about that. Nobody has paid me anything yet, either. Sixteen cores changed neither fact.&lt;/p&gt;
&lt;p&gt;Caveats. Everything here comes from one board over one evening. The sixteen-core state was reached through a nine-core boot plus hotplug, not a cold sixteen-core boot, and the concurrent test lasted four minutes. The vector-state loop counts measure whether register state survives preemption and signals, not vector performance, and the shared-counter test is a targeted coherence check, not a memory validation. The reset panic happened on the first custom kernel, which carried an out-of-tree taint from the HSM probe, and its cause is unknown. The October hangs are unexplained, and nothing here bears on them. The 47 percent A100 throughput figure comes from the first review's compile on the vendor kernel, two runs per cluster, not from this kernel. The kernel is a local experimental port of SpacemiT's vendor code to 7.3, not an upstream submission; &lt;code&gt;checkpatch&lt;/code&gt; flags inherited style problems and the writable proc interface. The \$133.56 pilot figure and the 5,446 events per second ceiling are from the October piece and were not re-measured here.&lt;/p&gt;</description><category>business</category><category>colocation</category><category>debugging</category><category>device tree</category><category>hosting</category><category>k3</category><category>kernel</category><category>kvm</category><category>linux</category><category>opensbi</category><category>pico-itx</category><category>risc v</category><category>riscv64</category><category>rva23</category><category>rvv</category><category>spacemit</category><category>spacemit a100</category><category>spacemit x100</category><category>ubuntu</category><category>virtualization</category><guid>https://tinycomputers.io/posts/spacemit-k3-custom-kernel-a100.html</guid><pubDate>Tue, 27 Oct 2026 00:00:00 GMT</pubDate></item><item><title>Review of "Timeless Algorithms: The Foundational Ideas" by Gary Sutton</title><link>https://tinycomputers.io/posts/review-of-timeless-algorithms-by-gary-sutton.html?utm_source=feed&amp;utm_medium=rss&amp;utm_campaign=rss</link><dc:creator>A.C. Jokela</dc:creator><description>&lt;div class="audio-widget"&gt;
&lt;div class="audio-widget-header"&gt;
&lt;span class="audio-widget-icon"&gt;🎧&lt;/span&gt;
&lt;span class="audio-widget-label"&gt;Listen to this article&lt;/span&gt;
&lt;/div&gt;
&lt;audio controls preload="metadata"&gt;
&lt;source src="https://tinycomputers.io/review-of-timeless-algorithms-by-gary-sutton_tts.mp3" type="audio/mpeg"&gt;
&lt;/source&gt;&lt;/audio&gt;
&lt;div class="audio-widget-footer"&gt;32 min · AI-generated narration&lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Disclosure:&lt;/strong&gt; I have been a technical reviewer for Manning on several projects. My copy of &lt;em&gt;Timeless Algorithms&lt;/em&gt; was my compensation for reviewing pre-publication material of an unrelated book.&lt;/p&gt;
&lt;h3&gt;Introduction&lt;/h3&gt;
&lt;p&gt;&lt;a href="https://www.manning.com/books/timeless-algorithms-the-foundational-ideas"&gt;&lt;em&gt;Timeless Algorithms: The Foundational Ideas&lt;/em&gt;&lt;/a&gt; is Gary Sutton's latest book for Manning, following &lt;a href="https://go.tinymachines.io/statistics-slam-dunk"&gt;&lt;em&gt;Statistics Slam Dunk&lt;/em&gt;&lt;/a&gt; and &lt;a href="https://go.tinymachines.io/statistics-every-programmer-needs"&gt;&lt;em&gt;Statistics Every Programmer Needs&lt;/em&gt;&lt;/a&gt;. I have wanted someone to write this book for years. Take the dozen papers and books that modern machine learning rests on, reconstruct the problem each one solved, and show with equations and worked examples why the idea still holds up. The lineup:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Thomas Bayes's essay on inverse probability (1763)&lt;/li&gt;
&lt;li&gt;Fisher on maximum likelihood (1922)&lt;/li&gt;
&lt;li&gt;Neyman and Pearson on hypothesis testing (1933)&lt;/li&gt;
&lt;li&gt;Shannon's theory of communication (1948)&lt;/li&gt;
&lt;li&gt;Bellman's &lt;a href="https://go.tinymachines.io/bellman-dynamic-programming"&gt;&lt;em&gt;Dynamic Programming&lt;/em&gt;&lt;/a&gt; (1957)&lt;/li&gt;
&lt;li&gt;Raiffa and Schlaifer's &lt;a href="https://go.tinymachines.io/applied-statistical-decision-theory"&gt;&lt;em&gt;Applied Statistical Decision Theory&lt;/em&gt;&lt;/a&gt; (1961)&lt;/li&gt;
&lt;li&gt;Vapnik's &lt;a href="https://go.tinymachines.io/nature-of-statistical-learning-theory"&gt;&lt;em&gt;The Nature of Statistical Learning Theory&lt;/em&gt;&lt;/a&gt; and the soft-margin support vector machine (1995)&lt;/li&gt;
&lt;li&gt;Breiman's random forests (2001)&lt;/li&gt;
&lt;li&gt;MacKay's &lt;a href="https://go.tinymachines.io/mackay-information-theory"&gt;&lt;em&gt;Information Theory, Inference, and Learning Algorithms&lt;/em&gt;&lt;/a&gt; (2003)&lt;/li&gt;
&lt;li&gt;The deep learning review by LeCun, Bengio, and Hinton (2015)&lt;/li&gt;
&lt;li&gt;"Attention Is All You Need" (2017)&lt;/li&gt;
&lt;li&gt;The scaling laws of Kaplan and colleagues (2020)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In 2017, my last required course for graduate school was pattern recognition. It wasn't even called machine learning. It was mostly formal proofs, and only in the final week did we touch on a newfangled idea called "neural networks," along with something called "deep learning." LeCun, Bengio, and Hinton had already reviewed deep learning in &lt;em&gt;Nature&lt;/em&gt; two years earlier, and "Attention Is All You Need" came out that same year. Sutton's lineup has the same shape as that semester, with deep learning arriving in chapter 11 of 13, except the book gives it three chapters instead of a week.&lt;/p&gt;
&lt;p&gt;The book contains no code by design. Sutton's welcome letter names the target reader: someone who has used regression, built a model, or interpreted a dashboard, and now wants to understand why the methods work.&lt;/p&gt;
&lt;p&gt;I read the fifth Manning Early Access Program (MEAP) release. It runs 13 chapters across roughly 380 pages and is complete through the final chapter, but it has no references, index, or appendices yet. Since the book uses worked examples in place of code, I recomputed all of them. That turned out to be the most revealing part of the review. The arithmetic is almost always right. The setups often aren't.&lt;/p&gt;
&lt;h3&gt;The Hidden Stack&lt;/h3&gt;
&lt;p&gt;Chapter 1 opens with a pilot flying through fog whose autopilot suddenly disengages, and argues that practitioners who run models they don't understand are in the same position. Sutton's remedy is a framework he calls the "hidden stack of modern intelligence." It has five layers, from bottom to top:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Raw data and feature engineering&lt;/li&gt;
&lt;li&gt;Modeling and decision frameworks&lt;/li&gt;
&lt;li&gt;Algorithmic assumptions&lt;/li&gt;
&lt;li&gt;Mathematical foundations&lt;/li&gt;
&lt;li&gt;Epistemology and ethics&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Figure 1.1 is a good graphic: a pyramid beside a grid, with filled circles showing which layers each of the twelve works touches. A lending example then walks up the stack, from credit data to the question of whether accurate default predictions should be used to deny loans.&lt;/p&gt;
&lt;figure style="margin: 2rem 0; text-align: center;"&gt;
&lt;a href="https://tinycomputers.io/images/timeless-algorithms/page-4-figure-1-1.png"&gt;&lt;img src="https://tinycomputers.io/images/timeless-algorithms/page-4-figure-1-1.png" alt="Page 4 of the Timeless Algorithms MEAP v5 PDF, showing Figure 1.1, the hidden stack of modern intelligence. Panel A is a five-layer pyramid: Raw Data plus Feature Engineering at the base, then Modeling and Decision Frameworks, Algorithmic Assumptions, Mathematical Foundations, and Epistemology and Ethics at the top. Panel B is a grid of the twelve foundational works, Bayes 1763 through Kaplan et al. 2020, with filled circles marking the layers each work informs. Below the figure are the caption and the opening of section 1.2.1, Raw Data plus Feature Engineering." width="1479" height="1853" loading="lazy" style="display: block; width: 560px; max-width: 100%; height: auto; margin: 0 auto; border: 1px solid #ccc; border-radius: 4px;"&gt;&lt;/a&gt;
&lt;figcaption&gt;&lt;em&gt;Page 4 of the MEAP v5 PDF, with Figure 1.1. I removed the licensing line at the foot of the page, which carries my email address.&lt;/em&gt;&lt;/figcaption&gt;
&lt;/figure&gt;

&lt;p&gt;It is a promising device, and the book never uses it again. No chapter after the first mentions the stack or names any of its layers; I searched the full text. The chapter 1 tags don't match the chapters they describe:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;MacKay&lt;/strong&gt; is tagged "Mathematical Foundations," yet chapter 10, his chapter, contains no equations.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Kaplan's scaling laws&lt;/strong&gt; are tagged "Epistemology &amp;amp; Ethics," yet the ethics content in chapter 13 comes to one paragraph on how few organizations can afford frontier training.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Breiman&lt;/strong&gt; is tagged "Epistemology &amp;amp; Ethics" too. Chapter 9 uses a loan-approval tree and discusses proxy features in variable importance, but never raises proxy discrimination.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A framework that appears only in the introduction is just a table of contents. Sutton should either end every chapter by placing its idea in the stack, which would give the book the spine it lacks, or cut the device.&lt;/p&gt;
&lt;h3&gt;What Works&lt;/h3&gt;
&lt;p&gt;The best pages put two ideas side by side and let the numbers argue. Chapter 3 reruns chapter 2's rare-disease test (prevalence 1 in 1,000, 99% sensitivity, 1% false positives) through Fisher's eyes. Bayes gives a 9% probability of disease. Fisher's likelihood ratio says a positive result is 99 times more likely under disease than under health. Same data, same model, two different questions, and the reader sees exactly where the prior enters. The same chapter derives ordinary least squares as maximum likelihood under Gaussian errors, then fits a ten-point study-hours data set by hand. Every number checks out: a cross-product sum of 77.15, a sum of squares of 82.50, and a slope of 0.935.&lt;/p&gt;
&lt;p&gt;Chapter 6's knapsack walkthrough is the best-executed example in the book. It builds five tables for a capacity of 7, with every cell correct, then a backtracking table that recovers the optimal items. Chapter 5's mutual information example (100 patients, blood pressure against disease) correctly computes H(Y) = 0.97, H(Y|X) = 0.85, and I = 0.12 bits. It then points out that decision-tree information gain is the same calculation put to a different use. That is the one place in the Shannon chapter where the bridge to machine learning is built from numbers rather than asserted.&lt;/p&gt;
&lt;p&gt;Chapter 11 takes a seven-parameter network through a forward pass, a backward pass, and an update. It then runs a second forward pass to show the loss falling from 0.39 to 0.37, a step most introductions skip. The chapter derives binary cross-entropy exactly from Fisher's Bernoulli likelihood. It also makes a point many textbooks blur: a predicted probability of 0.68 says nothing about how confident the network should be in its own weights.&lt;/p&gt;
&lt;p&gt;Chapter 12 computes a single attention head by hand, from token IDs through the softmax over the vocabulary. It keeps the attention softmax and the output softmax carefully separate, and its explanation of causal masking is clear.&lt;/p&gt;
&lt;p&gt;A few other ideas stayed with me:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Chapter 7&lt;/strong&gt; separates Shannon's information from decision value. A small change in a posterior that crosses a treatment threshold is worth more than a large change that leaves the decision alone.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Chapter 8&lt;/strong&gt; explains the canonical SVM hyperplane well. Since f(x) and 2f(x) have the same sign, you can fix the scale so the closest points sit at ±1, and the margin then becomes 2/‖w‖. That makes minimizing ‖w‖ feel inevitable rather than arbitrary.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Chapter 9&lt;/strong&gt; is unusually honest about what random forests cannot do. More trees do not cure leakage, out-of-bag error becomes optimistic once you tune against it, and two copies of the same temperature reading, one in Celsius and one in Fahrenheit, will split the permutation importance between them.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Chapter 13&lt;/strong&gt; warns that log-normal processes can impersonate power laws over a limited range.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Where the Papers Should Be&lt;/h3&gt;
&lt;p&gt;The chapter openers each name a specific work. Most chapters then teach the textbook version of a method with the founder's name attached, and leave out what the work actually contained.&lt;/p&gt;
&lt;p&gt;Chapter 4 is the clearest case. Neyman and Pearson's 1933 paper is famous for one result: when testing a simple hypothesis against a simple alternative, the likelihood ratio test is the most powerful test at a given significance level. The book puts that lemma in a sidebar without a single equation. It spends the chapter on a seven-step testing procedure that Sutton acknowledges Neyman and Pearson never wrote down as such.&lt;/p&gt;
&lt;p&gt;Neyman and Pearson's real departure from Fisher was taking the alternative hypothesis seriously, which means Type II errors and power. None of the chapter's three worked examples computes power. The clinical-trial example needed it most. Fourteen of 20 patients recover against a 50% baseline, the p-value is 0.058, and the book correctly declines to reject the null. But the rejection region of 15 or more recoveries has an actual size of 2.1%, not 5%. And if the drug really raised recovery to 70%, the test would detect it only 42% of the time. That number is the Neyman-Pearson lesson, and the chapter leaves it out.&lt;/p&gt;
&lt;p&gt;&lt;img alt="Bar chart of the number of recoveries among 20 patients under two scenarios: the drug does nothing, with a 50 percent recovery rate, or the drug raises recovery to 70 percent. The rejection region of 15 or more recoveries is shaded. If the drug does nothing, the test rejects 2.1 percent of the time, not 5 percent. If the drug works, the test detects it only 42 percent of the time. The observed 14 recoveries give a p-value of 0.058, so the test fails to reject." src="https://tinycomputers.io/images/timeless-algorithms/ch4-power.png"&gt;&lt;/p&gt;
&lt;p&gt;The pattern repeats elsewhere:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Chapter 2&lt;/strong&gt; never works Bayes's own problem: a ball on a table with a uniform prior and binomial evidence. It is the one example that would show a full posterior distribution being updated.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Chapter 5&lt;/strong&gt; gives Shannon's actual theorems (source coding, channel capacity, noisy-channel coding) about five pages with no equations. Four entropy calculations take longer, because each one appears twice: first in words, then in numbers.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Chapter 6&lt;/strong&gt; names Bellman's principle of optimality once and never states it. About 20 of its 33 pages go to Fibonacci, knapsack, and coin change, while the Bellman equation, the part reinforcement learning depends on, gets three pages and no numbers. Its section on shortest routes leaves out Bellman's own shortest-path algorithm.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Chapter 8&lt;/strong&gt; is named for Vapnik's &lt;em&gt;The Nature of Statistical Learning Theory&lt;/em&gt;, yet gives statistical learning theory about three pages and no equations: no VC bound, and no link between margin and capacity. It never reaches the dual problem, so the coefficients on the support vectors simply appear. Kernels show up only at prediction time, which hides why the kernel trick works. The hinge loss is printed but never named, though it is the clearest line from Vapnik to how models are trained today.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Chapter 11&lt;/strong&gt; is built around the 2015 deep learning review but covers almost none of it beyond backpropagation. Convolutional networks get a sidebar. Recurrent networks and LSTMs are absent, though the next chapter is titled "Beyond recurrence."&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Chapter 12&lt;/strong&gt; reports none of the transformer paper's results: no 65-million-parameter base model and no BLEU scores. It also lacks the matrix form of the attention equation and the positional-encoding formula, and never explains the encoder-decoder design that its own Figure 12.1 reproduces. Its examples are chatbot prompts, not translation.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Chapter 13 covers a quantitative paper and reports none of its quantities. Kaplan's exponents (roughly 0.076 for parameters, 0.095 for data, and 0.050 for compute) never appear. Neither does the finding that the optimal model size grows with about the 0.73 power of compute. That omission hides the sharpest illustration of the theme the chapter keeps returning to, diminishing returns: at an exponent of 0.076, halving the loss through parameters alone takes about 9,000 times as many parameters.&lt;/p&gt;
&lt;p&gt;Chinchilla, the 2022 result that overturned Kaplan's allocation advice, gets a single anonymous sentence: "Subsequent research refined that allocation." Meanwhile, both chapter 1 and chapter 13 credit Kaplan with the idea that parameters, data, and compute must grow in balance. That was Chinchilla's message; Kaplan's allocation leaned heavily toward model size. Figure 13.2 adds to the confusion. Its "compute-efficient frontier" slopes downward along a single fixed-compute contour, while the paragraph below it says the optimum moves upward and to the right.&lt;/p&gt;
&lt;p&gt;&lt;img alt="Horizontal bar chart of how each tenfold increase in compute should be split. Kaplan et al. 2020: 5.4 times more parameters and 1.9 times more training tokens. Chinchilla 2022: 3.2 times more of each." src="https://tinycomputers.io/images/timeless-algorithms/ch13-compute-allocation.png"&gt;&lt;/p&gt;
&lt;p&gt;Chapter 10 is the extreme case. Its 15 pages on MacKay contain no equations, no figures, and no example from MacKay's book. More than half the chapter recaps chapters 2 through 9 or previews chapters 11 through 13. On page 276, Sutton writes that the chapter "deliberately extends" MacKay's insight; the summary then credits MacKay with that extension.&lt;/p&gt;
&lt;h3&gt;Test the Examples Like Code&lt;/h3&gt;
&lt;p&gt;In a book with no code, the worked examples do the work code would do, so they need the same testing. The arithmetic passes almost everywhere. Several setups fail, and when they do, they undercut the lesson they were built to teach.&lt;/p&gt;
&lt;p&gt;Chapter 7 asks whether a physician should order a second, "more accurate" test before treating. The second test is 95% sensitive and 90% specific. Chapter 2's original test was 99% on both measures, so the "more accurate" test is worse on both. The chapter concludes that the expected value of sample information is zero: no result can change the decision, so the test isn't worth its cost of 5 utility units. That holds only because the test is weak. Rerun the analysis with a test that really is more accurate, such as a repeat of the 99/99 test, and the information is worth 7.9 units. That is more than the cost, and the lesson reverses. The chapter never shows a case where information is worth buying, which is the case decision analysis exists for.&lt;/p&gt;
&lt;p&gt;&lt;img alt="Line chart of the expected value of a second test, in chapter 7's utility units, against the test's specificity from 85 to 100 percent, for tests that are 95 and 99 percent sensitive. Both lines stay at zero until about 91 percent specificity and then rise toward the value of perfect information, 9. A dashed line marks the test's cost of 5. The book's test, 95 percent sensitive and 90 percent specific, sits at zero. A repeat of chapter 2's 99 percent sensitive, 99 percent specific test is worth 7.9, more than its cost." src="https://tinycomputers.io/images/timeless-algorithms/ch7-value-of-information.png"&gt;&lt;/p&gt;
&lt;p&gt;Chapter 3 is the maximum likelihood chapter, yet it introduces its logistic regression example with "Suppose the optimization yields" coefficients of −6 and 1.2. The actual maximum likelihood estimates for the book's ten data points are −5.82 and 1.30. With the real fit, a student who studied five hours has a 66% chance of passing, not the 50% the book reports. The reader never sees the chapter's central estimator actually being run.&lt;/p&gt;
&lt;p&gt;&lt;img alt="Logistic curves of the probability of passing against hours studied for the book's ten students, with the pass and fail outcomes plotted as dots. The book's assumed coefficients, minus 6 and 1.2, give a dashed curve that passes through 50 percent at five hours. The maximum likelihood fit, minus 5.82 and 1.30, gives a solid curve at 66 percent at five hours." src="https://tinycomputers.io/images/timeless-algorithms/ch3-logistic-fit.png"&gt;&lt;/p&gt;
&lt;p&gt;Chapter 5's neural-network example claims to show cross-entropy loss falling during training. What it computes is the entropy of the network's prediction, which drops from 3.32 bits to 0.44. Against a one-hot target, the cross-entropy is −log₂(0.95), or 0.074 bits. The difference matters, because a network that is confidently wrong also has low entropy. The cross-entropy formula never appears in the chapter, and KL divergence appears nowhere in the book. The same chapter has two more slips:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;It says entropy falls as outcomes become more evenly distributed. Entropy rises.&lt;/li&gt;
&lt;li&gt;Its loan-approval tree splits a root of 10 approvals and 10 denials into branches that add up to 11 and 9.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Chapter 6's coin-change recurrence, as printed, counts ordered sequences. Evaluated as written, it finds 18 ways to make 12 cents from pennies, nickels, and dimes, not the 4 its own tables show.&lt;/p&gt;
&lt;p&gt;Chapter 11's pedestrian-detection network takes as input a single hand-engineered feature, which is exactly what the chapter says deep learning replaced. With the given weights, its output stays between 0.378 and 0.802 for every possible input. At the book's braking threshold of 0.3, it brakes for everything.&lt;/p&gt;
&lt;p&gt;All of these are fixable, and catching them is what MEAP is for. But they suggest a process that checks the arithmetic without checking whether each example demonstrates what the surrounding text claims.&lt;/p&gt;
&lt;h3&gt;History and Credit&lt;/h3&gt;
&lt;p&gt;A book organized around foundational works is partly a history book, and the history needs work. Three sidebars get basic facts wrong:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Andrew Viterbi was on the UCLA faculty, not USC's, when he published his algorithm in 1967. That removes the premise of the sidebar celebrating him and Bellman as colleagues.&lt;/li&gt;
&lt;li&gt;Bellman's brain tumor came in 1973, when he was 52 or 53, not "in his mid-forties."&lt;/li&gt;
&lt;li&gt;The Bayes sidebar calls Pascal a contemporary of Bayes. Pascal died in 1662; Bayes was born around 1701.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The conceptual history matters more. The Fisher passage I praised above has Fisher deliberately ignoring the disease's prevalence. Fisher objected to priors with no frequency behind them; when the prior was a known frequency, as prevalence is, he accepted Bayes's theorem. Chapters 4 and 10 also fold Fisher's p-values into the Neyman-Pearson framework, the very distinction the two camps fought over for decades.&lt;/p&gt;
&lt;p&gt;Credit also flows too easily to the headline name:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Shannon.&lt;/strong&gt; John Tukey coined the word "bit," and Hartley defined logarithmic information twenty years before Shannon. Neither appears.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Decision trees.&lt;/strong&gt; The information-gain splitting rule the chapter teaches is the criterion from Quinlan's ID3, and Quinlan is never mentioned.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Breiman.&lt;/strong&gt; Random feature selection predates his 2001 paper. Tin Kam Ho's random decision forests (1995) gave each tree a random subset of features, and Amit and Geman (1997) drew a fresh subset at each split. Breiman's own paper credits both, yet the chapter presents the idea as his addition.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Vapnik.&lt;/strong&gt; Corinna Cortes is credited once for the soft-margin SVM. Ten pages later, "Vapnik addressed this limitation" alone, and chapter 1 credits the soft margin to Vapnik alone too.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The transformer.&lt;/strong&gt; The chapter is titled after Google Brain, although half of the eight authors were at Google Research. It also says Vaswani and his Brain colleagues "made the decisive move" of dropping recurrence, which the paper's contribution footnote credits to Jakob Uszkoreit of Google Research.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Scaling laws.&lt;/strong&gt; Baidu's 2017 scaling-law work preceded Kaplan, and Kaplan's own paper calls it "perhaps the closest" work to its own. The book never mentions it.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Chapters 12 and 13 are also the only chapters titled after companies rather than people.&lt;/p&gt;
&lt;h3&gt;The Prose&lt;/h3&gt;
&lt;p&gt;Sutton writes in a formal, cautious register that rarely lands a memorable sentence, and he says most things several times:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Some form of "foundation" appears 146 times.&lt;/li&gt;
&lt;li&gt;"Transparent" appears 14 times in the 26 pages of chapter 4, where each of the seven steps opens by restating every step before it.&lt;/li&gt;
&lt;li&gt;Chapter 6 tells the reader five times in five pages that the dynamic programming structure "remains intact" or "remains unchanged."&lt;/li&gt;
&lt;li&gt;Each subsection of chapter 5's communication-theory section closes with some variant of "continue to shape modern communication systems."&lt;/li&gt;
&lt;li&gt;Chapter 9 draws the Vapnik-versus-Breiman contrast six times.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Chapter 10's unifying template (what remains unresolved, what information is available, how it is transformed, what limits the result) fits every method in the book, so it explains none of them. I estimate a quarter of the text could go without losing anything.&lt;/p&gt;
&lt;p&gt;There are also drafting marks a copy edit will catch. Chapter 3 has run-in headings labeled "EXAMPLE," "INTERPRETATION," and "TRANSITION" that look like an outline template, and two consecutive sections both titled "Maximum likelihood estimation." A beverage fill-volume example refers to "the patient's test result." A heading spells Schlaifer as "Schalifer." Equations lose parentheses and subscripts often, which hurts more in a book with no code to fall back on.&lt;/p&gt;
&lt;h3&gt;Who Should Read It&lt;/h3&gt;
&lt;p&gt;In its current state, &lt;a href="https://go.tinymachines.io/timeless-algorithms"&gt;&lt;em&gt;Timeless Algorithms&lt;/em&gt;&lt;/a&gt; suits a reader with little formal statistics who wants to know where the vocabulary of machine learning comes from, and who will tolerate repetition to get there. Much of the early material is first-course statistics: the addition rule illustrated with a single die, the complement rule with two dice, a test-selection table of t-tests and chi-square tests. Readers who have taken that course, or an undergraduate machine learning course, will get more from the sources. Shannon's 1948 paper is still readable, the transformer paper is short, and MacKay's book is free online and better than any summary of it.&lt;/p&gt;
&lt;p&gt;The fixes are clear, and most are editorial:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Put each work's results on the page.&lt;/strong&gt; That means Kaplan's exponents, the Neyman-Pearson lemma with a power calculation, the transformer's model size and scores, and Bellman's principle in his own words.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Test every worked example like code.&lt;/strong&gt; Check the arithmetic, and check that the example demonstrates its claim.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Use the hidden stack in every chapter or drop it.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Cut a quarter of the text.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Build the bridge the book gestures toward but never crosses.&lt;/strong&gt; Large language models are trained by minimizing cross-entropy, a quantity built on Shannon's entropy that is also Fisher's negative log-likelihood. Their quality is reported as perplexity. Shannon himself generated text from n-gram models of English in 1948. That one thread runs through chapters 3, 5, 11, 12, and 13, and it appears nowhere in the book.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The premise deserves a book that delivers on it. MEAP v5 isn't that book yet, but the knapsack walkthrough, the Fisher-versus-Bayes contrast, and the hand-computed attention head show that Sutton can write it. There is still time before final publication.&lt;/p&gt;</description><category>bayes</category><category>book review</category><category>dynamic programming</category><category>gary sutton</category><category>hypothesis testing</category><category>information theory</category><category>machine learning</category><category>manning</category><category>maximum likelihood</category><category>meap</category><category>random forests</category><category>scaling laws</category><category>statistics</category><category>support vector machines</category><category>transformers</category><guid>https://tinycomputers.io/posts/review-of-timeless-algorithms-by-gary-sutton.html</guid><pubDate>Sat, 17 Oct 2026 02:00:00 GMT</pubDate></item><item><title>Ballistics Insight on Android: A Solver That Admits What It Assumed</title><link>https://tinycomputers.io/posts/ballistics-insight-on-android-a-solver-that-admits-what-it-assumed.html?utm_source=feed&amp;utm_medium=rss&amp;utm_campaign=rss</link><dc:creator>A.C. Jokela</dc:creator><description>&lt;div class="audio-widget"&gt;
&lt;div class="audio-widget-header"&gt;
&lt;span class="audio-widget-icon"&gt;🎧&lt;/span&gt;
&lt;span class="audio-widget-label"&gt;Listen to this article&lt;/span&gt;
&lt;/div&gt;
&lt;audio controls preload="metadata"&gt;
&lt;source src="https://tinycomputers.io/ballistics-insight-on-android-a-solver-that-admits-what-it-assumed_tts.mp3" type="audio/mpeg"&gt;
&lt;/source&gt;&lt;/audio&gt;
&lt;div class="audio-widget-footer"&gt;27 min · AI-generated narration&lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;Ballistics Insight is on &lt;a href="https://go.tinymachines.io/ballisticsinsightplay-tc-android"&gt;Google Play&lt;/a&gt;. It is a long-range ballistic calculator: give it a load, a rifle and the day's conditions, and it gives you the drop and the wind hold at every distance in MIL or MOA, with time of flight, velocity and energy. The solver is &lt;a href="https://github.com/ajokela/ballistics-engine"&gt;ballistics-engine&lt;/a&gt;, the Rust library I &lt;a href="https://tinycomputers.io/posts/open-sourcing-a-high-performance-rust-based-ballistics-engine.html"&gt;open-sourced last year&lt;/a&gt; and wrote about &lt;a href="https://tinycomputers.io/posts/the-bullet-doesnt-go-where-you-point-it.html"&gt;testing&lt;/a&gt; in August. On the phone it runs entirely on the device. A rifle range is a bad place to depend on a cell signal, so nothing about a solve touches the network.&lt;/p&gt;
&lt;p&gt;The Android repository's first commit is from August 16, 2025. It has 560 commits now, 217 Kotlin source files and about 57,800 lines, and the build I submitted on October 8 ran 1,982 unit tests and 167 on-device tests without a failure. Most of those tests exist because something went wrong first. This post is about how the app is put together and about the mistakes that shaped it, because nearly all of them reduce to one lesson. The worst failure a ballistic calculator can have is not a crash. It is a confident number built on an assumption the shooter never saw.&lt;/p&gt;
&lt;h3&gt;One JNI function and a JSON envelope&lt;/h3&gt;
&lt;p&gt;The app is Kotlin and Jetpack Compose with Material 3: five tabs on a phone (Solve, DOPE, Loads, Tools, Account) and a navigation rail on a tablet. The physics is a prebuilt Rust shared library, &lt;code&gt;libballistics_engine.so&lt;/code&gt;, about 5 MB for each of the two ABIs the app ships, &lt;code&gt;arm64-v8a&lt;/code&gt; and &lt;code&gt;x86_64&lt;/code&gt;. Between Kotlin and Rust sits a 612-line C++ shim.&lt;/p&gt;
&lt;p&gt;The first version of that shim did what JNI shims usually do. Every engine function got a native method, a C struct, and hand-written marshalling for each field. That holds up until the engine grows. Each new feature meant touching Rust, C, C++ and Kotlin in lockstep, and a field added on one side and forgotten on another does not fail loudly: three doubles still come back, they are just the wrong three doubles. So in August I replaced the pattern with a single entry point. The engine exports &lt;code&gt;ballistics_bridge_call_n&lt;/code&gt;, which takes a JSON envelope naming a command and returns a JSON envelope holding either a result or an error. On the Kotlin side the whole bridge is one function:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="kd"&gt;fun&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nf"&gt;callEnvelope&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;command&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kt"&gt;String&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;JsonElement? &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Envelope&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="kd"&gt;val&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;envelope&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;buildJsonObject&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;put&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"api_version"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;API_VERSION&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;put&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;command&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;!=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;put&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"request"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="kd"&gt;val&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;raw&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;nativeCall&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;envelope&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="na"&gt;toString&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="kd"&gt;val&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;response&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="na"&gt;parseToJsonElement&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;raw&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="na"&gt;jsonObject&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="kd"&gt;val&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;ok&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="s"&gt;"ok"&lt;/span&gt;&lt;span class="o"&gt;]?.&lt;/span&gt;&lt;span class="na"&gt;jsonPrimitive&lt;/span&gt;&lt;span class="o"&gt;?.&lt;/span&gt;&lt;span class="na"&gt;booleanOrNullSafe&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="c1"&gt;// ...a false "ok" becomes a BridgeException carrying the engine's error code&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;The app now uses sixteen commands through that one function: &lt;code&gt;solve&lt;/code&gt;; &lt;code&gt;card.range_table&lt;/code&gt;, &lt;code&gt;card.come_ups&lt;/code&gt;, &lt;code&gt;card.wind&lt;/code&gt; and &lt;code&gt;card.pdf&lt;/code&gt; for range cards; &lt;code&gt;true.fit&lt;/code&gt; and &lt;code&gt;true.wind&lt;/code&gt; for truing; &lt;code&gt;bc5d.info&lt;/code&gt; for correction tables; three &lt;code&gt;profile.*&lt;/code&gt; commands for importing profiles from other solvers; three &lt;code&gt;reticle.*&lt;/code&gt; commands for holds read off a reticle; and two &lt;code&gt;meta.*&lt;/code&gt; queries. A new engine capability is a new command name, and the C++ does not change. Serializing JSON costs microseconds next to a trajectory integration, so I have not missed the typed interface once. The four original typed C functions are still in the library, and only the shot-spread screen still calls them.&lt;/p&gt;
&lt;p&gt;The other half of the integration is knowing exactly which engine shipped. A file called &lt;code&gt;engine.ref&lt;/code&gt; holds the commit the app is pinned to, currently the v0.43.0 tag from September 17. A build script checks that commit out into a throwaway git worktree and runs the engine's own Android build with cargo-ndk, the &lt;code&gt;bridge&lt;/code&gt;, &lt;code&gt;ffi&lt;/code&gt;, &lt;code&gt;pdf&lt;/code&gt; and &lt;code&gt;profile-import&lt;/code&gt; features, and 16 KB page alignment, which Google Play now requires of native code. A CI job then reads the version string out of the committed &lt;code&gt;.so&lt;/code&gt; and checks it against the pin and against the list of bridge commands the Kotlin calls. That job exists because the pin and the binary had drifted apart once already, and nothing noticed.&lt;/p&gt;
&lt;h3&gt;The rule: say what you assumed&lt;/h3&gt;
&lt;p&gt;Ballistics punishes defaults. A solver needs air pressure, temperature, humidity, the barrel's twist rate and, for Coriolis, your latitude. People leave fields blank, and every blank has an obvious default. Every default is also a claim about the world that the shooter did not make.&lt;/p&gt;
&lt;div style="text-align: center; margin: 2rem 0;"&gt;
&lt;img src="https://tinycomputers.io/images/ballistics-insight-android/solve-results.png" alt="The Solve tab in Ballistics Insight showing Trajectory Results at 1000 yards: impact distance 1000.0 yards, max height 1.85 inches, time of flight 1.45 seconds, impact velocity 1590 fps, impact energy 785 ft-lbs. Above the results two notes read: Pressure 25.65 inHg, standard atmosphere for 4200 ft, not measured; and Humidity 50% assumed, not measured." width="720" height="1280" loading="lazy" style="width: 320px; max-width: 100%; height: auto; border-radius: 6px; border: 1px solid #ccc;"&gt;
&lt;/div&gt;

&lt;p&gt;&lt;em&gt;The Solve tab at 1,000 yards. The two lines above the results say which inputs were assumed, and what was assumed.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Pressure is the clearest case. Early versions filled a blank pressure field by computing a standard-atmosphere value in Kotlin and sending it to the engine. The engine had no way to tell that number from one a Kestrel had measured, so it had nothing to report. Now a blank pressure is simply left out of the request, and the engine resolves the ICAO standard atmosphere at the given altitude and says that it did. The comment in the request builder is the whole design:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="c1"&gt;// ABSENT when nothing was measured. The engine resolves ICAO&lt;/span&gt;
&lt;span class="c1"&gt;// standard pressure at `altitude_m` and reports that it did; a&lt;/span&gt;
&lt;span class="c1"&gt;// number computed here would arrive indistinguishable from a&lt;/span&gt;
&lt;span class="c1"&gt;// Kestrel reading and silence the assumption.&lt;/span&gt;
&lt;span class="n"&gt;pressurePa&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;atmosphere&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="na"&gt;pressureHpa&lt;/span&gt;&lt;span class="o"&gt;?.&lt;/span&gt;&lt;span class="na"&gt;times&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;PASCALS_PER_HECTOPASCAL&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;That is where "25.65 inHg, standard atmosphere for 4200 ft, not measured" comes from. When a pressure is measured, the app asks which kind it is. A Kestrel reports station pressure, the absolute pressure where you are standing. A weather app, an ATIS broadcast or a METAR reports QNH, the altimeter setting corrected to sea level. At 4,200 feet the two differ by more than four inches of mercury, and typing a QNH into a station-pressure field tells the solver you are shooting at sea level, roughly the 0.6 mil of elevation at 1,000 yards that a card bug I describe below cost. The engine reduces QNH to station pressure itself, through the troposphere layer of the standard atmosphere, so the app only has to record which one the shooter typed.&lt;/p&gt;
&lt;p&gt;The barrel twist taught me the same rule more expensively. Until September 12, every solve on both platforms assumed a 1:12 twist. The load screen stored the real one, and the field had been nullable since the day it was added, with a comment explaining why: "a silent wrong twist is worse than an empty field." Then the code that built the solver's inputs never read it. Miller stability scales with the inverse square of the twist in calibers, so a 1:8 barrel is about 2.25 times as stable as the app believed, and every faster-twist rifle was shown less spin drift than it has. Now the load's twist travels with it to the solver. When no twist is recorded, the solver skips spin drift and Magnus and the screen says so, instead of leaving a switched-on toggle quietly doing nothing.&lt;/p&gt;
&lt;p&gt;Coriolis follows the same rule. The engine computes it fully, but the Solve tab does not collect a shooting latitude yet, and I would rather the toggle say "Coriolis needs a shooting latitude, which this screen doesn't collect, so it is not applied" than invent a latitude.&lt;/p&gt;
&lt;h3&gt;Weather from the meter, not from memory&lt;/h3&gt;
&lt;p&gt;The most common source of a wrong input is typing. So the app reads two Bluetooth weather meters directly: the Kestrel 5700 LiNK and the WeatherFlow WEATHERmeter.&lt;/p&gt;
&lt;div style="display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin: 2rem 0;"&gt;
&lt;img src="https://tinycomputers.io/images/ballistics-insight-android/read-meter-chooser.png" alt="The Solve tab after tapping Read meter: a Choose a meter list offering a Kestrel, and a WEATHERmeter marked uncalibrated and recognized by its name only." width="720" height="1280" loading="lazy" style="width: 300px; max-width: 100%; height: auto; border-radius: 6px; border: 1px solid #ccc;"&gt;
&lt;img src="https://tinycomputers.io/images/ballistics-insight-android/read-meter-live.png" alt="The Solve tab reading a meter live: a Stop reading button, the note Filled from Kestrel at 8:35:32 AM, Wind is the average of the last 30 s, and fields showing 74.7 degrees F, altitude 895 feet and pressure 28.960 inHg." width="720" height="1280" loading="lazy" style="width: 300px; max-width: 100%; height: auto; border-radius: 6px; border: 1px solid #ccc;"&gt;
&lt;/div&gt;

&lt;p&gt;&lt;em&gt;Left: choosing a meter. Right: live mode, filling the fields from a Kestrel and averaging the wind over 30 seconds.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The Kestrel's sensor characteristic packs wind speed, temperature, humidity and station pressure into little-endian 16-bit fields, each with a reserved value that means "not available":&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="kd"&gt;val&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;wind&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;LittleEndian&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="na"&gt;u16&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;bytes&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="kd"&gt;val&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;temperature&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;LittleEndian&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="na"&gt;u16&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;bytes&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="kd"&gt;val&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;humidity&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;LittleEndian&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="na"&gt;u16&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;bytes&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;6&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="kd"&gt;val&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;pressure&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;LittleEndian&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="na"&gt;u16&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;bytes&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;8&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;KestrelSensorReading&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="n"&gt;windSpeedMps&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;wind&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;NOT_AVAILABLE_U16&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;wind&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;1000.0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="n"&gt;temperatureC&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;temperature&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;in&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;TEMPERATURE_NOT_AVAILABLE&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="kc"&gt;null&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;OnesComplement&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="na"&gt;i16&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;temperature&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;100.0&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="c1"&gt;// ...humidity and pressure are decoded the same way&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;The order of those checks is not cosmetic. Temperature is signed, and if you apply the sign rule before testing for the not-available marker, &lt;code&gt;0x8001&lt;/code&gt; decodes as minus 327.66 °C, a number the solver will use without complaint. Wind direction is in the frame as well, and the first version discards it and leaves direction to the wind dial on the Solve tab.&lt;/p&gt;
&lt;p&gt;The WEATHERmeter carries the word "uncalibrated" in the chooser, and the label is earned: side by side with the Kestrel it read 1.2 °C warm and 15 to 17 points high on relative humidity. The app recognizes it by its advertised name only, and says that too. With either meter it only ever subscribes to notifications and never writes to the device, and it declares its Bluetooth scan permission &lt;code&gt;neverForLocation&lt;/code&gt;, which a unit test pins. The newest build adds the phone itself as a source: its barometer, where it has one, and its GPS altitude converted to height above sea level.&lt;/p&gt;
&lt;h3&gt;Truing has to report its own error bars&lt;/h3&gt;
&lt;p&gt;Every ballistic calculator eventually disagrees with the rifle. The published ballistic coefficient was measured with someone else's barrel, and the velocity on the ammunition box is optimistic. Truing closes the gap: shoot at known distances, record where the bullet actually went, and fit the model to what happened.&lt;/p&gt;
&lt;div style="display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin: 2rem 0;"&gt;
&lt;img src="https://tinycomputers.io/images/ballistics-insight-android/truing-measured-drops.png" alt="The truing screen's Measured drops section in MIL for a 6.5 Creedmoor 140 gr ELD-M: 300 yards 1.2, 600 yards 3.9, 900 yards 7.4 and 1200 yards 11.9 mil, each with a plus-or-minus of 0.05." width="720" height="1280" loading="lazy" style="width: 300px; max-width: 100%; height: auto; border-radius: 6px; border: 1px solid #ccc;"&gt;
&lt;img src="https://tinycomputers.io/images/ballistics-insight-android/truing-fit.png" alt="The truing result, Fitted from 4 distances: muzzle velocity 2682 fps, 95% 2660 to 2703 fps, before this fit 2710 fps; ballistic coefficient 0.3006, 95% 0.2895 to 0.3117, before this fit 0.3150; an Apply to this load button; and a note that the typical miss at these distances goes from 0.36 mil to 0.01 mil." width="720" height="1280" loading="lazy" style="width: 300px; max-width: 100%; height: auto; border-radius: 6px; border: 1px solid #ccc;"&gt;
&lt;/div&gt;

&lt;p&gt;&lt;em&gt;Four measured drops, each with its reading error, and the fit they produce: 2,682 fps instead of the 2,710 entered, and a BC of 0.3006 instead of 0.3150, each with a 95% interval.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The engine fits muzzle velocity and ballistic coefficient together. Each measured drop carries a plus-or-minus, and the app requires one, because a drop read to 0.05 mil and one estimated to half a mil should not count equally. The fit is a weighted two-parameter maximum a posteriori estimate, solved with Levenberg–Marquardt in scaled coordinates (100 fps and 0.1 of BC each count as one unit, so neither parameter dominates a step), followed by a pattern search that confirms the minimum. The 95% intervals come from a local Gaussian approximation of the posterior. The engine withholds them when the fit lands on a parameter bound or the information matrix is singular, because an interval computed there is fiction.&lt;/p&gt;
&lt;p&gt;Those intervals earned their place on the screen in an embarrassing way. The first store screenshot for this feature used three drops I picked by hand, at 400, 600 and 800 yards. The fit came back with two engine warnings, one of them that the observations "weakly constrain BC", and a BC interval of 0.2674 to 0.3254, which contained the 0.3150 the fit was supposed to be correcting. The engine was right. Over that short a spread, a slow barrel and a draggy bullet bend the trajectory in almost the same way, and no fit can tell them apart. The engine ships a planner for exactly this question, &lt;code&gt;true.plan&lt;/code&gt;, which chooses the distances that best separate the two parameters. Asked for four stations at least 300 yards apart, it chose 300, 600, 900 and 1,200, and the screenshot above is the result: both intervals now exclude the numbers they replaced.&lt;/p&gt;
&lt;p&gt;The screen is blunt about what a fit proves. Below the result it shows how much closer the model now lands at the fitted distances, then explains that a fit always improves the distances it was fitted to, "so this is not a test of whether it worked. The test is a new shot at a distance you did not fit."&lt;/p&gt;
&lt;p&gt;One sentence on the input side mattered as much as any of the maths. The engine wants each drop as a positive number below the line of sight. Enter the drops with the opposite sign and the request is still perfectly valid. It fits. It converges on a bullet that climbs, prints a confident interval around it, spends one of your five free fits and offers to write the result onto your load. Nothing below the keyboard can detect that, so the screen now states the sign convention, and a test pins the sentence word for word on both Android and iOS.&lt;/p&gt;
&lt;p&gt;The second kind of truing works from wind. Given a horizontal miss at a known distance, &lt;code&gt;true.wind&lt;/code&gt; finds the crosswind that reproduces it, after subtracting the spin drift that the load's twist predicts. It is a one-dimensional root find over plus or minus 100 mph by false position, with the Illinois modification that keeps one end of the bracket from stalling:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="c1"&gt;// Illinois: halve the retained endpoint's function value so one side cannot stall.&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;0.0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="n"&gt;low&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;candidate&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="n"&gt;f_low&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="n"&gt;f_high&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;*=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;0.5&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="n"&gt;high&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;candidate&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="n"&gt;f_high&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="n"&gt;f_low&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;*=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;0.5&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;With several observations the answer is an inverse-variance weighted mean, so the careful reading counts for more than the hurried one.&lt;/p&gt;
&lt;h3&gt;A DOPE card is a record, not a recipe&lt;/h3&gt;
&lt;div style="text-align: center; margin: 2rem 0;"&gt;
&lt;img src="https://tinycomputers.io/images/ballistics-insight-android/dope-range-card.png" alt="A DOPE range card in MIL from 100 to 1000 yards with columns for range, elevation, wind, velocity, energy and time; 1000 yards reads 8.3 mil elevation, 1.7 mil wind, 1590 fps, 785 ft-lb and 1.45 seconds. A legend marks supersonic, transonic and subsonic rows, and a Save this card button sits below." width="720" height="1280" loading="lazy" style="width: 320px; max-width: 100%; height: auto; border-radius: 6px; border: 1px solid #ccc;"&gt;
&lt;/div&gt;

&lt;p&gt;&lt;em&gt;A range card in MIL from 100 to 1,000 yards. Row color says whether the bullet is still supersonic.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;A DOPE card is the sheet you tape to the stock or keep in a chest pocket. Once saved, it must not change because the weather changed, a correction table was updated, or I shipped a new engine. So a saved card stores the engine's request and response as raw bytes, exactly as they came back, along with the version of the engine that solved them. Those bytes go into the local database and into the cloud and come back out without being parsed and re-serialized, and tests check that at every hop. Opening a card renders those rows; nothing re-solves. "Regenerate for current conditions" exists, but it shows what changed before it writes anything. The PDF export is rendered by the engine itself, with the &lt;code&gt;printpdf&lt;/code&gt; crate, so the printed card and the screen are built from the same bytes.&lt;/p&gt;
&lt;p&gt;Getting the card right took more than one pass. One release laid six columns totalling 456 density-independent pixels into a 379 dp card, so energy and time of flight ran off the edge. Worse, the card ignored the atmosphere entirely, which at 4,200 feet is about 0.6 mil of missing elevation at 1,000 yards. Fixing that exposed a units bug of its own: the engine takes altitude in meters, and 4,200 sent raw is the atmosphere at 13,780 feet.&lt;/p&gt;
&lt;h3&gt;The bugs lived in the seams&lt;/h3&gt;
&lt;p&gt;The engine's physics has fuzzing harnesses and closed-form oracles behind it. The app's bugs were in the places those cannot reach: the joints between the engine and the app, between two devices, and between the source tree and the thing that actually shipped.&lt;/p&gt;
&lt;p&gt;In August I upgraded the engine binaries from 0.13 to 0.33. Between those versions the typed interface's axis convention changed from (lateral, vertical, downrange) to (downrange, vertical, lateral). The functions still returned three valid doubles, so no test failed. Every horizontal figure on the shot-spread screen became exactly zero. Separately, the engine marks a simulated shot that falls short of the target with a vertical position of minus a billion meters, and nothing filtered it, so the vertical standard deviation came out near 2 × 10&lt;sup&gt;10&lt;/sup&gt; inches. The fix moved the maths into a Kotlin class a unit test can reach and wrote the convention into the C header, where the next upgrade will trip over it.&lt;/p&gt;
&lt;p&gt;Sync is opt-in. Until you sign in with Google or Apple, your loads, logs and cards stay on the phone, and the sync workers skip anonymous users entirely. Once you sign in, a background job syncs every 15 minutes, and for its first weeks it corrupted data on that schedule. Android writes timestamps as epoch milliseconds, and the decoder handled ISO strings and Firestore timestamps but had no branch for a plain number. Every Android row read back as "now", the cloud copy always looked newer, last-write-wins fired on every cycle, and a G7 load on one device could turn back into G1 on another. None of it appeared with one device. All of it appeared with two, which is exactly the setup that a Pro purchase covering both platforms encourages.&lt;/p&gt;
&lt;p&gt;An internal test build once went out with the template &lt;code&gt;google-services.json&lt;/code&gt;, which contains the literal string &lt;code&gt;YOUR_API_KEY&lt;/code&gt;. The Google Services plugin only checks that the fields exist, the file is gitignored so &lt;code&gt;git status&lt;/code&gt; stayed clean, and CI copies the template on purpose, so CI could never have caught it. A tester's Account screen reading "API key not valid" did. There is now a pre-upload script that checks the configuration and the built bundle both, since a stale bundle built before a fix passes every check made against the source.&lt;/p&gt;
&lt;p&gt;And a 5911 × 3941 PNG, drawn behind the interface at 5% opacity, was 46% of the download. Re-encoded as a 2560-pixel WebP it is 291 KB, and the app bundle went from 45.1 MB to 28.1 MB.&lt;/p&gt;
&lt;h3&gt;Free solver, one-time Pro&lt;/h3&gt;
&lt;p&gt;The solver is free, with no ads and no tracking. So are the downloadable BC correction tables, which matter more than they sound. They are BC5D tables: binary cubes of correction factors indexed by drag model, bullet weight, BC, muzzle velocity and current velocity, generated from the machine-learning model I described when I wrote about &lt;a href="https://tinycomputers.io/posts/discretizing-continuous-ml-models-offline-ballistic-coefficient-corrections.html"&gt;turning it into lookup tables&lt;/a&gt; so the corrections work offline. The app downloads one table per caliber to a temporary file, checks it against the manifest's CRC-32, has the engine validate the header and confirm the caliber, and only then renames it into place. The current set covers thirteen calibers in 3.3 MB.&lt;/p&gt;
&lt;p&gt;Pro is a one-time purchase rather than a subscription. It unlocks DOPE range cards and their PDF export, importing &lt;code&gt;.a7p&lt;/code&gt; profiles from other solvers, and truing, and the first five truing fits are free without it. A calculator is a tool, and a tool should be bought once.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Package&lt;/td&gt;
&lt;td&gt;&lt;code&gt;io.tinymachines.ballisticsinsight&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Version&lt;/td&gt;
&lt;td&gt;2.0.0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Android&lt;/td&gt;
&lt;td&gt;8.0 (API 26) and up, targeting API 36&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Engine&lt;/td&gt;
&lt;td&gt;ballistics-engine 0.43.0, pinned by commit&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Native code&lt;/td&gt;
&lt;td&gt;about 5 MB per ABI, arm64-v8a and x86_64&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;App code&lt;/td&gt;
&lt;td&gt;217 Kotlin files, about 57,800 lines&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tests at submission&lt;/td&gt;
&lt;td&gt;1,982 unit, 167 on-device&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Bridge commands in use&lt;/td&gt;
&lt;td&gt;16&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Ballistics Insight is &lt;a href="https://go.tinymachines.io/ballisticsinsightplay-tc-android"&gt;on Google Play&lt;/a&gt; now, free to install, and since October 29 it is also &lt;a href="https://go.tinymachines.io/ballisticsinsightappstore-tc-android"&gt;on the App Store&lt;/a&gt; for iPhone and iPad. The engine underneath it is open source under MIT or Apache 2.0 &lt;a href="https://github.com/ajokela/ballistics-engine"&gt;on GitHub&lt;/a&gt;, with documentation at &lt;a href="https://ballistics.rs/"&gt;ballistics.rs&lt;/a&gt;, and the iPhone build pins the same engine commit. When I wrote about the engine in August, the point was that its hard bugs were never in the physics. The app taught me where they go instead: into whatever the software assumed while the shooter was not looking. So the rule now is that every assumption ends up on the screen.&lt;/p&gt;
&lt;p&gt;

&lt;/p&gt;&lt;div class="bi-app-promo" style="margin: 2em 0; padding: 1.25em 1.5em; background: var(--color-bg-secondary, rgba(127, 127, 127, 0.08)); border: 1px solid var(--color-border-primary, rgba(127, 127, 127, 0.35)); border-left: 4px solid var(--color-accent, #4FC3A1); border-radius: 6px;"&gt;
  &lt;div class="row"&gt;
    &lt;div class="col-sm-9"&gt;
      &lt;h5 style="margin-top: 0;"&gt;Ballistics Insight&lt;/h5&gt;
      &lt;p&gt;The open-source ballistics engine from these posts, on your phone: drop and wind holds for your own load and the day's conditions, with your saved loads and shooting logs. Calculations run on the device, so they work offline. It's free to install on iPhone, iPad and Android, and Pro is a one-time purchase.&lt;/p&gt;
      &lt;p style="margin-bottom: 0;"&gt;
        &lt;a style="display: inline-block; margin: 0 0.5em 0.5em 0; line-height: 0; vertical-align: middle;" href="https://go.tinymachines.io/ballisticsinsightappstore-tc-android" data-umami-event="app-click" data-umami-event-store="apple" data-umami-event-placement="tc-post" data-umami-event-post="android"&gt;&lt;img src="https://tinycomputers.io/ballistics-insight/app-store-badge.svg" alt="Download on the App Store" width="138" height="40" style="height: 40px; width: auto;"&gt;&lt;/a&gt;
        &lt;a style="display: inline-block; margin: 0 0.5em 0.5em 0; line-height: 0; vertical-align: middle;" href="https://go.tinymachines.io/ballisticsinsightplay-tc-android" data-umami-event="app-click" data-umami-event-store="play" data-umami-event-placement="tc-post" data-umami-event-post="android"&gt;&lt;img src="https://tinycomputers.io/ballistics-insight/google-play-badge.svg" alt="Get it on Google Play" width="138" height="40" style="height: 40px; width: auto;"&gt;&lt;/a&gt;
      &lt;/p&gt;
      &lt;p style="margin: 0.25em 0 0 0;"&gt;&lt;a href="https://tinycomputers.io/pages/ballistics.html"&gt;All ballistics posts, in order →&lt;/a&gt;&lt;/p&gt;
    &lt;/div&gt;
    &lt;div class="col-sm-3 hidden-xs text-center"&gt;
      &lt;img src="https://tinycomputers.io/ballistics-insight/app-qr.svg" alt="QR code that opens Ballistics Insight in your phone's app store" width="112" height="112" style="background: #fff; padding: 6px; border-radius: 4px;"&gt;
      &lt;div&gt;&lt;small style="color: var(--color-text-muted, inherit);"&gt;Scan with your phone&lt;/small&gt;&lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;script type="application/ld+json"&gt;
{
  "@context": "https://schema.org",
  "@type": "SoftwareApplication",
  "name": "Ballistics Insight",
  "applicationCategory": "SportsApplication",
  "operatingSystem": "iOS, Android",
  "description": "A long-range ballistic calculator built on the open-source ballistics-engine Rust library.",
  "url": "https://ballisticsinsight.com/",
  "downloadUrl": [
    "https://apps.apple.com/app/id6803525036",
    "https://play.google.com/store/apps/details?id=io.tinymachines.ballisticsinsight"
  ],
  "offers": {
    "@type": "Offer",
    "price": "0",
    "priceCurrency": "USD"
  }
}
&lt;/script&gt;</description><category>android</category><category>app development</category><category>ballistics</category><category>bluetooth</category><category>google play</category><category>jetpack compose</category><category>jni</category><category>kotlin</category><category>numerical methods</category><category>open-source</category><category>physics</category><category>rust</category><guid>https://tinycomputers.io/posts/ballistics-insight-on-android-a-solver-that-admits-what-it-assumed.html</guid><pubDate>Mon, 12 Oct 2026 17:00:00 GMT</pubDate></item><item><title>Stalker, Part Two: Why the Trading Bot Didn't Earn Its Keep</title><link>https://tinycomputers.io/posts/stalker-part-two-why-the-trading-bot-didnt-earn-its-keep.html?utm_source=feed&amp;utm_medium=rss&amp;utm_campaign=rss</link><dc:creator>A.C. Jokela</dc:creator><description>&lt;div class="audio-widget"&gt;
&lt;div class="audio-widget-header"&gt;
&lt;span class="audio-widget-icon"&gt;🎧&lt;/span&gt;
&lt;span class="audio-widget-label"&gt;Listen to this article&lt;/span&gt;
&lt;/div&gt;
&lt;audio controls preload="metadata"&gt;
&lt;source src="https://tinycomputers.io/stalker-part-two-why-the-trading-bot-didnt-earn-its-keep_tts.mp3" type="audio/mpeg"&gt;
&lt;/source&gt;&lt;/audio&gt;
&lt;div class="audio-widget-footer"&gt;31 min · AI-generated narration&lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;In &lt;a href="https://tinycomputers.io/posts/building-stalker-a-mid-cap-trading-bot-and-the-data-network-that-feeds-it.html"&gt;part one, I described building Stalker&lt;/a&gt;: a mid-cap trading bot with factor rankings, a Claude analysis layer, deterministic risk checks, and a network of upstream data projects. The idea was that combining those pieces would produce something worth running. Paper trading would tell us whether it deserved real money.&lt;/p&gt;
&lt;p&gt;The recorded \$1,000 strategy is worth &lt;strong&gt;\$855.23 as of the October 9 snapshot&lt;/strong&gt;. It is down 14.48%, while the system's stored SPY price benchmark is up 8.02% over the same inception window. That is a 22.50 percentage point shortfall before operating costs.&lt;/p&gt;
&lt;p&gt;I went back through the records to understand why. The most consequential finding was that the bot had spent much of the summer generating plans it could not execute. A losing-trade circuit breaker repeatedly rejected plans containing buys and could suppress exits bundled into those plans. Other safety checks were measuring the wrong account. The backtests and the supposedly controlled comparison also differed materially from the system actually trading.&lt;/p&gt;
&lt;p&gt;This is an interim postmortem of that system. The original twelve-month experiment has not reached its planned May 2027 endpoint, and the evidence does not isolate the LLM as the cause of the losses. It does explain why I no longer regard the original validation claims as sufficient.&lt;/p&gt;
&lt;h3&gt;What the account actually recorded&lt;/h3&gt;
&lt;p&gt;For this review, I read all 117 performance snapshots through October 9, all 260 decision records and their archived plans, all 285 order records, and the 156 rows in the factors-only shadow book. I also checked the deployed configuration and read the paper brokerage's orders and positions. The trading configuration is still paper mode.&lt;/p&gt;
&lt;p&gt;The performance module defines strategy value as the \$1,000 seed plus recorded realized and unrealized profit or loss. Its headline numbers are:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Measure&lt;/th&gt;
&lt;th style="text-align: right;"&gt;May 1–October 9, 2026&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Recorded strategy value&lt;/td&gt;
&lt;td style="text-align: right;"&gt;\$855.23&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Recorded strategy return&lt;/td&gt;
&lt;td style="text-align: right;"&gt;−14.48%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Recorded realized P/L&lt;/td&gt;
&lt;td style="text-align: right;"&gt;−\$53.95&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Recorded unrealized P/L&lt;/td&gt;
&lt;td style="text-align: right;"&gt;−\$90.82&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Stored SPY price return&lt;/td&gt;
&lt;td style="text-align: right;"&gt;+8.02%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Stored IWM price return&lt;/td&gt;
&lt;td style="text-align: right;"&gt;−0.12%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Largest drawdown in the recorded strategy series&lt;/td&gt;
&lt;td style="text-align: right;"&gt;−22.40%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;img alt="Recorded Stalker paper-strategy return compared with the stored SPY and IWM price returns from May 1 through October 9, 2026. The strategy ends at minus 14.48 percent, SPY at plus 8.02 percent, and IWM at minus 0.12 percent." src="https://tinycomputers.io/images/stalker-part-two-recorded-performance.png"&gt;&lt;/p&gt;
&lt;p&gt;The &lt;a href="https://tinycomputers.io/stalker-part-two-recorded-performance.csv"&gt;daily observations behind this chart are available as CSV&lt;/a&gt;. These are the system's stored measurements. The benchmark lines are price changes, not dividend-reinvested total returns; the strategy line excludes infrastructure, data, and model costs. The return gap is simple subtraction, not a risk-adjusted estimate of alpha.&lt;/p&gt;
&lt;p&gt;SPY is useful as an opportunity-cost comparison, but the benchmark set needs improvement. &lt;a href="https://www.ishares.com/us/products/239710/ishares-russell-2000-etf"&gt;IWM tracks small companies&lt;/a&gt;; &lt;a href="https://www.ishares.com/us/products/239763/ishares-core-sp-midcap-etf"&gt;IJH tracks the S&amp;amp;P MidCap 400&lt;/a&gt;, a closer reference for the intended universe. A proper comparison would include a mid-cap total-return benchmark and consistent accounting for distributions. &lt;a href="https://docs.alpaca.markets/us/docs/paper-trading"&gt;Alpaca's paper-trading documentation&lt;/a&gt; explicitly says the simulation omits dividends, regulatory fees, and several execution effects.&lt;/p&gt;
&lt;p&gt;Even the two internal definitions of portfolio value need reconciliation. At the same position marks during this audit, seed plus filled-sale proceeds minus filled-purchase costs plus remaining positions produced &lt;strong&gt;\$849.85&lt;/strong&gt;. The realized-plus-unrealized-P/L formula produced &lt;strong&gt;\$855.22&lt;/strong&gt;. That \$5.37 difference is separate from prices moving between the snapshot and the audit.&lt;/p&gt;
&lt;p&gt;The discrepancy traces to the recorded realized-P/L estimates failing to reconcile with purchase costs, sale proceeds, and remaining cost basis. For one fully closed position, VSAT, the fills imply a \$19.40 loss while the stored realized P/L shows a net \$14.19 loss. The sell accounting uses a snapshot of the broker's average entry price taken before submission; summing those estimates did not preserve the original total purchase cost. The historical curve above preserves the reported series rather than silently applying an unverified historical correction.&lt;/p&gt;
&lt;p&gt;That discrepancy does not explain away the loss. It means the loss is being reported by an accounting system that still needs work.&lt;/p&gt;
&lt;h3&gt;The circuit breaker became a trading freeze&lt;/h3&gt;
&lt;p&gt;The clearest operational failure begins on June 19.&lt;/p&gt;
&lt;p&gt;Stalker counts consecutive losing sells and stops new buys after three. The recent sequence included a loss on LQDA and two separate losing sells of VSAT. The counter measures sell orders, so multiple trims of one losing position can count as multiple losses.&lt;/p&gt;
&lt;p&gt;The resulting rejection appeared &lt;strong&gt;171 times&lt;/strong&gt; through October 9:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Month&lt;/th&gt;
&lt;th style="text-align: right;"&gt;Plans rejected by the losing-streak rule&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;June&lt;/td&gt;
&lt;td style="text-align: right;"&gt;15&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;July&lt;/td&gt;
&lt;td style="text-align: right;"&gt;49&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;August&lt;/td&gt;
&lt;td style="text-align: right;"&gt;45&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;September&lt;/td&gt;
&lt;td style="text-align: right;"&gt;48&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;October, through the 9th&lt;/td&gt;
&lt;td style="text-align: right;"&gt;14&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The last filled buy was submitted on June 18. After the halt began, the only approved plans containing trades were a VSAT sale on June 22 and two trims, MYRG and ENS, on August 18. There were no filled production orders submitted in July, September, or October through the cutoff.&lt;/p&gt;
&lt;p&gt;The rule sounds reasonable when described as “stop buying after several losses.” Its implementation has a much broader effect. In &lt;code&gt;risk.evaluate_plan&lt;/code&gt;, the presence of &lt;strong&gt;any buy&lt;/strong&gt; activates the plan-level halt checks. If the losing streak is at least three, the function returns a rejected decision before processing individual orders.&lt;/p&gt;
&lt;p&gt;That rejects the sells in a mixed plan too. A small, isolated reproduction confirms it: a \$50 sell paired with a \$50 buy is rejected during a three-loss streak; the same sell by itself is approved. The intended ability to reduce exposure survives only when the model happens to propose a sell-only plan.&lt;/p&gt;
&lt;p&gt;The counter has no time-based expiration. It scans backward through recorded sells until it encounters one with nonnegative P/L. A successful sell can reset it; waiting a month cannot. The prompt also does not receive the active losing-streak state, so the model keeps proposing buys that the downstream gate cannot accept.&lt;/p&gt;
&lt;p&gt;By October 9, the stored rationale was still discussing trimming weak holdings and recycling capital into better-ranked candidates. The risk result was still a losing-streak rejection. The count had reached six.&lt;/p&gt;
&lt;p&gt;There is another observability problem here: the archived &lt;code&gt;proposed_orders&lt;/code&gt; field contains the orders surviving the gate. On these plan-level rejections, both it and &lt;code&gt;dropped_orders&lt;/code&gt; are empty. The original rejected proposals are not preserved. I can prove the mixed-plan failure in the code and count the 171 halt decisions; I cannot reconstruct how many individual sells those historical decisions suppressed.&lt;/p&gt;
&lt;p&gt;This explains the inactivity. It does &lt;strong&gt;not&lt;/strong&gt; tell us what returns those rejected trades would have earned. A halt might avoid bad purchases as well as prevent useful rebalancing. What the records establish is that we stopped getting the active strategy described in part one and largely carried the existing positions through the subsequent decline.&lt;/p&gt;
&lt;h3&gt;The other drawdown checks watched the wrong balance&lt;/h3&gt;
&lt;p&gt;Stalker operates a synthetic \$1,000 portfolio inside a much larger Alpaca paper account. The buy-sizing code builds a seeded account from actual filled cash flows. But the daily and high-water-mark drawdown checks read the full brokerage equity history.&lt;/p&gt;
&lt;p&gt;Those are different denominators.&lt;/p&gt;
&lt;p&gt;A \$50 loss is 5% of the intended strategy capital and roughly 0.05% of a \$100,000 paper account. At audit time, the full account stood approximately &lt;strong&gt;0.23% below its one-year high&lt;/strong&gt;. The recorded strategy ended &lt;strong&gt;20.34% below its own high&lt;/strong&gt;, after reaching a &lt;strong&gt;22.40% maximum drawdown&lt;/strong&gt; during the window. The nominal 15% portfolio drawdown halt was not evaluating the portfolio whose results I was reporting.&lt;/p&gt;
&lt;p&gt;The combination is particularly unhelpful: a count-based rule can freeze buys indefinitely, while the percentage-based rule barely notices losses at the strategy's scale. Neither check automatically liquidates existing positions. The presence of a module called &lt;code&gt;risk.py&lt;/code&gt; is not evidence that the resulting portfolio behaves as intended.&lt;/p&gt;
&lt;p&gt;Part one already disclosed the earlier cash bug, where repeatedly capping the big paper account's cash at \$1,000 effectively replenished the strategy's spending allowance. That early over-deployment also means the full recorded history is not a clean, unlevered \$1,000 experiment. The ledger fix addressed the replenishment. It did not make every other account-dependent calculation consistent. The experiment needed one shared definition of cash, equity, realized profit, and drawdown throughout the trading path.&lt;/p&gt;
&lt;h3&gt;The backtest validated a smaller piece of the system&lt;/h3&gt;
&lt;p&gt;I was too confident in part one's statement that the factor stack had been validated end-to-end on bias-corrected backtests.&lt;/p&gt;
&lt;p&gt;The engine is explicit about its scope: it tests factor ranking and deterministic selection. The usual configuration holds 30 names at equal weights and rebalances weekly. The deployed bot asks Claude for a smaller portfolio, incorporates macro tilts and other signals, offers advisory sizing, responds to incoming briefs, and then subjects the proposals to additional gates.&lt;/p&gt;
&lt;p&gt;A good result for the first system does not validate the second.&lt;/p&gt;
&lt;p&gt;There was configuration drift even within the historical tests. The file named &lt;code&gt;configs/production.json&lt;/code&gt; omits the quality-definition setting. The engine therefore defaults to ROE plus gross margin, while the deployed scorer uses ROIC plus operating margin. A filename saying “production” was doing more reassuring than the configuration deserved.&lt;/p&gt;
&lt;p&gt;The historical universe also remains imperfect. Its bootstrap starts from currently active companies in a broad market-cap band and adds delisted companies. That improves on using today's shortlist, but can still miss former mid-caps that remain listed and have moved outside the starting band. One of the strongest archived ROIC runs even ends with foreign listing symbols, including &lt;code&gt;0LPE.L&lt;/code&gt;, &lt;code&gt;0YY7.L&lt;/code&gt;, and &lt;code&gt;SSRM.TO&lt;/code&gt;. It did not reproduce the live system's exact exchange, liquidity, and Alpaca-tradability restrictions.&lt;/p&gt;
&lt;p&gt;Then there is the tuning. The run directory contains 46 ordinary strategy results on the same January 2023–April 2026 window. We compared factor weights, quality definitions, momentum variants, and execution assumptions. Processing each historical date in order does not turn the choice of a winning configuration on that same history into an independent test.&lt;/p&gt;
&lt;p&gt;For example, the archived equal-factor baseline returned 52.69% against an 88.71% SPY price gain. The selected configuration with 55% momentum weight and the old quality definition returned 110.28%, creating the familiar 21.57 percentage point advantage. Those are useful research observations. They are not an established forward edge.&lt;/p&gt;
&lt;p&gt;Part one also described rejecting a spectacular Kelly-sizing result after a sensitivity check exposed a cash-allocation artifact. That was the right rejection. I should have applied the same skepticism to the surrounding claims before treating the assembled strategy as validated.&lt;/p&gt;
&lt;p&gt;These defects do not quantify how much of the paper loss came from stock selection. They explain why the backtest should never have carried so much weight in our expectations.&lt;/p&gt;
&lt;h3&gt;The factors-only book lost more, and the comparison still cannot answer the AI question&lt;/h3&gt;
&lt;p&gt;Removing Claude is not an evidence-backed cure from these records. The deterministic shadow book also performed badly.&lt;/p&gt;
&lt;p&gt;Its actual recorded inception is May 6. Comparing both arms from that date through October 9 gives:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Recorded series&lt;/th&gt;
&lt;th style="text-align: right;"&gt;Return over the matched window&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Brief-driven paper strategy&lt;/td&gt;
&lt;td style="text-align: right;"&gt;−17.58%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Factors-only shadow book&lt;/td&gt;
&lt;td style="text-align: right;"&gt;−29.80%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The brief-driven return here differs from the opening figure because it starts at the May 6 value of \$1,037.63, not the original \$1,000 seed.&lt;/p&gt;
&lt;p&gt;It would be convenient to interpret the smaller loss as evidence that Claude helped. The comparison cannot support that conclusion because the two arms differ in more than their selection signal.&lt;/p&gt;
&lt;p&gt;The shadow book rebalances daily at equal weights; the paper strategy trades when briefs arrive and uses different sizing. The shadow implements an earnings veto, but not the paper strategy's losing-streak, drawdown, or wash-sale gates. While the paper strategy was largely frozen, the control continued trading.&lt;/p&gt;
&lt;p&gt;The shadow prices have a separate problem. Its supposed daily closing marks and fills come from the &lt;code&gt;price&lt;/code&gt; field in the universe snapshot. That field originates in the overnight screener, and the evening archive copies it without fetching a fresh close. If a held name disappears from the available price map, the shadow code sells it at its average entry price, manufacturing a break-even exit instead of obtaining an actual executable price.&lt;/p&gt;
&lt;p&gt;I have not measured the direction or size of the distortion from each defect. Together they are enough to invalidate an LLM-only interpretation of the return gap.&lt;/p&gt;
&lt;p&gt;The original preregistration was a useful intention: specify the comparison and decision rule before declaring a winner. The implementation did not preserve the required parity. Waiting until May 2027 will not repair that by itself. A repaired experiment needs matching accounting, marks, execution assumptions, sizing, and risk controls, with the intended difference stated explicitly and a new evaluation window.&lt;/p&gt;
&lt;h3&gt;The API bill was not the main problem&lt;/h3&gt;
&lt;p&gt;Part one estimated \$200–700 a year for the LLM layer. That estimate should not be mistaken for a measured bill.&lt;/p&gt;
&lt;p&gt;The 253 non-test decision records contain about 2.67 million ordinary input tokens, 200,000 output tokens, and 16,304 cache-write tokens. At &lt;a href="https://platform.claude.com/docs/en/about-claude/pricing"&gt;Anthropic's listed Sonnet 4.6 prices&lt;/a&gt;, those recorded calls represent roughly &lt;strong&gt;\$11&lt;/strong&gt; in analysis inference, including the small cache-write component. This is an estimate from stored usage, not an invoice reconciliation; it excludes unrecorded failures, upstream producers, data subscriptions, and AWS.&lt;/p&gt;
&lt;p&gt;About &lt;strong&gt;\$7.52&lt;/strong&gt; of that estimated ordinary-token cost belongs to the 171 streak-rejected plans. The wasted money is modest. The more consequential waste is repeatedly doing analysis that the execution policy cannot use.&lt;/p&gt;
&lt;p&gt;Costs still matter to the original proposition. On a \$1,000 account, each \$10 of annual operating expense requires another percentage point of return just to cover itself. A hypothetical five-percentage-point annual edge yields only \$50 before costs. The full network would need a defensible cost allocation, especially where upstream projects serve other purposes too.&lt;/p&gt;
&lt;p&gt;But the observed strategy was already losing before those costs. Blaming an expensive model subscription would miss the larger failure.&lt;/p&gt;
&lt;h3&gt;What I would require before trusting another version&lt;/h3&gt;
&lt;p&gt;The repair starts with the experiment and the accounting.&lt;/p&gt;
&lt;p&gt;First, one reconciled ledger should define the strategy's cash, positions, equity, and drawdowns. It should agree with broker fills and remaining cost basis, with any difference surfaced explicitly. A paper account funded at the intended scale would also remove much of the need to emulate a smaller account inside a larger one.&lt;/p&gt;
&lt;p&gt;Second, halts need explicit recovery behavior. Disallowed buys should be filtered without automatically suppressing valid risk-reducing sells. The analysis prompt should receive the active restrictions. Every raw proposal, rejection reason, surviving order, submission, and fill should remain available for review. A halt continuing for weeks should be an operational condition someone sees, not background noise in otherwise successful daily reports.&lt;/p&gt;
&lt;p&gt;Third, the deterministic baseline needs its own credible forward result under the same investable universe and execution rules. The shadow book needs real timestamped marks, real handling of universe exits, and the same constraints as the strategy it is meant to control for. Only then does adding one AI decision layer at a time produce an interpretable experiment.&lt;/p&gt;
&lt;p&gt;Finally, the earlier post's confidence needs to be revised. The architecture successfully moved data between services and generated trades. That is valuable engineering work. The records do not establish an investment edge, an incremental contribution from the LLM, or a profitable operating model.&lt;/p&gt;
&lt;p&gt;The strongest explanation for Stalker's disappointment is the combination of losses in the held portfolio, a control loop that largely stopped rebalancing, and validation that overstated what had actually been tested. We can identify those failures without claiming to know the return of a corrected bot.&lt;/p&gt;
&lt;p&gt;That is what the paper experiment was supposed to uncover before real money entered the picture. The useful next step is to make the experiment trustworthy enough that its next result means what we think it means.&lt;/p&gt;
&lt;h3&gt;Audit notes&lt;/h3&gt;
&lt;p&gt;The cutoff is the October 9, 2026 performance snapshot. Source reads were performed that evening in Central time, after midnight October 10 UTC. The review used paginated DynamoDB reads, the corresponding archived plan JSON, read-only paper-brokerage requests, deployed Lambda configuration, and repository revision &lt;code&gt;2e4a994&lt;/code&gt;. No trading configuration was changed for this review.&lt;/p&gt;
&lt;p&gt;The main code paths are &lt;code&gt;src/stalker/risk.py&lt;/code&gt; for plan rejection, &lt;code&gt;src/stalker/analyze.py&lt;/code&gt; for seeded cash and drawdown inputs, &lt;code&gt;src/stalker/performance.py&lt;/code&gt; for the reported curve, &lt;code&gt;src/stalker/shadow_book.py&lt;/code&gt; and &lt;code&gt;scripts/shadow_book_tick.py&lt;/code&gt; for the control portfolio, and &lt;code&gt;src/stalker/backtest/engine.py&lt;/code&gt; for historical simulations. The 260 decisions include seven test sends; the 285 order rows include tests, canceled orders, and rejected plans, not 285 executed trades. There were 153 filled production order rows. The downloadable CSV contains aggregate performance observations, without account identifiers or archived model prompts.&lt;/p&gt;</description><category>ai</category><category>alpaca</category><category>backtest</category><category>factor investing</category><category>finance</category><category>mid-cap</category><category>paper trading</category><category>postmortem</category><category>python</category><category>stalker</category><category>trading</category><guid>https://tinycomputers.io/posts/stalker-part-two-why-the-trading-bot-didnt-earn-its-keep.html</guid><pubDate>Sat, 10 Oct 2026 03:00:00 GMT</pubDate></item><item><title>The $1,175 Option: Two Questions One RISC-V Board Answered Differently</title><link>https://tinycomputers.io/posts/the-1175-dollar-option-risc-v-colo-revisited.html?utm_source=feed&amp;utm_medium=rss&amp;utm_campaign=rss</link><dc:creator>A.C. Jokela</dc:creator><description>&lt;div class="audio-widget"&gt;
&lt;div class="audio-widget-header"&gt;
&lt;span class="audio-widget-icon"&gt;🎧&lt;/span&gt;
&lt;span class="audio-widget-label"&gt;Listen to this article&lt;/span&gt;
&lt;/div&gt;
&lt;audio controls preload="metadata"&gt;
&lt;source src="https://tinycomputers.io/the-1175-dollar-option-risc-v-colo-revisited_tts.mp3" type="audio/mpeg"&gt;
&lt;/source&gt;&lt;/audio&gt;
&lt;div class="audio-widget-footer"&gt;38 min · AI-generated narration&lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;In September I wrote up the arithmetic for a small RISC-V rental business: two SpacemiT K3 nodes in a 1U at a Miami colo, scaling to ten if anyone cared. I costed the capital, the colocation, the bandwidth and the tariffs. What I could not cost, because I did not own one, was whether the software layer around this silicon was ready to rent to strangers.&lt;/p&gt;
&lt;p&gt;So I bought one board. \$889.00 from Firefly, \$45.00 shipping from Hong Kong, and \$241.09 in customs duty that DHL collected on the doorstep. \$1,175.09 to find out.&lt;/p&gt;
&lt;p&gt;Three weeks later I have an answer, and it is not the one I expected. The board is considerably better than I thought. The ecosystem around it is considerably worse. Those sound like they cancel out. They do not, because they are answers to two different questions, and the questions resolve in opposite directions.&lt;/p&gt;
&lt;h3&gt;What the option cost&lt;/h3&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Line&lt;/th&gt;
&lt;th&gt;Amount&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Board&lt;/td&gt;
&lt;td&gt;\$889.00&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Shipping from Hong Kong&lt;/td&gt;
&lt;td&gt;\$45.00&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Customs duty, collected by DHL on delivery&lt;/td&gt;
&lt;td&gt;\$241.09&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Total&lt;/td&gt;
&lt;td&gt;\$1,175.09&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;And what it was an option on:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Line&lt;/th&gt;
&lt;th&gt;Amount&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;CSB1-N10SPK3, K3x10 at 32G+128G, BMC3588 8G&lt;/td&gt;
&lt;td&gt;\$16,419.00&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Shipping, quoted, 19.1 to 20 kg band&lt;/td&gt;
&lt;td&gt;\$240.00&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Duty at 27.1%, the rate I was charged in September&lt;/td&gt;
&lt;td&gt;\$4,449.55&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Customs broker, formal entry&lt;/td&gt;
&lt;td&gt;\$150.00 to \$400.00&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Single entry bond&lt;/td&gt;
&lt;td&gt;\$75.00 to \$275.00&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Landed&lt;/td&gt;
&lt;td&gt;\$21,333.55 to \$21,783.55&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Above \$2,500 you leave informal entry behind, and formal entry wants a customs broker and a single entry bond. I have left both as ranges rather than chasing a firm quote, and that is a deliberate choice rather than laziness.&lt;/p&gt;
&lt;p&gt;A broker will quote you a number. That number is good for the shipment in front of them, under the schedule in force on the day, and I have no confidence that the schedule in force on the day I might actually order resembles the one in force now. The 27.1 percent I paid in September is itself a single observation from a single shipment. Writing \$21,412.83 would imply a precision that the current state of international trade does not support. A range that brackets the answer is more useful than a point estimate that will be wrong in a more specific way.&lt;/p&gt;
&lt;p&gt;So call it \$21,300 to \$21,800 landed, and treat even that as soft at the edges. Against the top of the range, \$1,175.09 was about five and a half percent of the commitment, spent to find out whether the other ninety four percent was worth spending.&lt;/p&gt;
&lt;h3&gt;The board is better than I expected&lt;/h3&gt;
&lt;p&gt;I want to lead with this because it is the part I got wrong in the pessimistic direction, and because every number here is one I did not have in September.&lt;/p&gt;
&lt;p&gt;I ran twenty four Debian riscv64 guests on it, simultaneously, under KVM, on eight cores. Forty eight virtual CPUs on eight physical ones, six times oversubscribed. Every one booted. None failed. Boot time was ten seconds per guest and stayed ten seconds at twenty four, which is not what I expected from a board this far from the mainstream.&lt;/p&gt;
&lt;p&gt;More interesting than the fact that it worked is the shape of how it worked. Aggregate throughput across all guests is linear to three guests, saturates at four, which is exactly eight virtual CPUs on eight cores, and then holds absolutely flat: 5,446 sysbench events per second with a standard deviation of 16 across twenty one saturated levels. A spread of under one percent. Total capacity is fixed and guests divide it. Six fold oversubscription costs nothing in aggregate; it only slices the same pie thinner.&lt;/p&gt;
&lt;p&gt;That gives a clean way to state what a tenant gets:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Guests&lt;/th&gt;
&lt;th&gt;Each gets, as a share of a guest running alone&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;75 percent&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;td&gt;50 percent&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;11&lt;/td&gt;
&lt;td&gt;33 percent&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;15&lt;/td&gt;
&lt;td&gt;25 percent&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Pick the tier you are willing to sell. The board will run twenty four without complaint. Whether a tenant renews at sixteen percent of a dedicated guest is a pricing question, not a hardware one.&lt;/p&gt;
&lt;p&gt;Memory never became the constraint. Guests touched 399 MB each against 2,048 MB allocated, leaving 21.8 GB free at twenty four, which extrapolates to roughly seventy eight guests before RAM binds. CPU binds an order of magnitude earlier.&lt;/p&gt;
&lt;p&gt;Then I left twelve guests resident and put the board through a duty cycle for a day: idle floor, ramp, sustained, a saturated peak with all twelve working at once, and an evening taper, repeating hourly. Both tenant tiers running, virtual machines and containers, the containers held to a CPU quota the way an operator would actually partition them.&lt;/p&gt;
&lt;p&gt;It did not miss. Twenty two cycles, every phase on schedule, twelve of twelve guests answering at every single health check. Zero guest losses. Swap never moved off zero. No new kernel errors inside the run window. The NVMe, a &lt;a href="https://go.tinymachines.io/wd-black-sn850x-2tb"&gt;2TB SanDisk BLACK SN850X&lt;/a&gt;, reports zero percent wear and zero media errors after one hundred and seventy power on hours. Input/output wait peaked at 0.3 percent.&lt;/p&gt;
&lt;p&gt;The duty cycle has a power signature now, too. Since 7 October the board has been fed through an inline meter, a &lt;a href="https://go.tinymachines.io/shelly-plug-us-gen4"&gt;Shelly Plug US Gen4&lt;/a&gt; smart plug read once a second over its local HTTP API by a FreeBSD machine on the same network, and the harness's own phase log lines up with the wall draw to the minute. Thirty six consecutive cycles, every phase labelled by the harness rather than inferred from the trace:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Phase, per hourly cycle&lt;/th&gt;
&lt;th&gt;Working guests&lt;/th&gt;
&lt;th&gt;Container quota&lt;/th&gt;
&lt;th&gt;Wall power&lt;/th&gt;
&lt;th&gt;Energy&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;valley, 6 min&lt;/td&gt;
&lt;td&gt;0 of 12&lt;/td&gt;
&lt;td&gt;idle&lt;/td&gt;
&lt;td&gt;12.9 W&lt;/td&gt;
&lt;td&gt;1.3 Wh&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ramp, 9 min&lt;/td&gt;
&lt;td&gt;1 of 12&lt;/td&gt;
&lt;td&gt;0.5 cores&lt;/td&gt;
&lt;td&gt;15.1 W&lt;/td&gt;
&lt;td&gt;2.3 Wh&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;midday, 18 min&lt;/td&gt;
&lt;td&gt;2 of 12&lt;/td&gt;
&lt;td&gt;1.0 core&lt;/td&gt;
&lt;td&gt;17.5 W&lt;/td&gt;
&lt;td&gt;5.3 Wh&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;peak, 15 min&lt;/td&gt;
&lt;td&gt;12 of 12&lt;/td&gt;
&lt;td&gt;1.0 core&lt;/td&gt;
&lt;td&gt;19.9 W&lt;/td&gt;
&lt;td&gt;4.9 Wh&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;evening, 12 min&lt;/td&gt;
&lt;td&gt;2 of 12&lt;/td&gt;
&lt;td&gt;0.5 cores&lt;/td&gt;
&lt;td&gt;16.8 W&lt;/td&gt;
&lt;td&gt;3.4 Wh&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;img alt="Wall power, current and power factor across the K3 load-harness duty cycle, with harness phase bands and per-phase averages: 12.9 watts at the idle floor rising to 19.9 watts with all twelve guests working" src="https://tinycomputers.io/images/k3-duty-cycle-wall-power.png"&gt;&lt;/p&gt;
&lt;p&gt;Three things fall out of that table. The first is how narrow the range is: idle floor to every-guest-saturated is seven watts, meaning two thirds of the wall draw is the fixed cost of the board, the brick and twelve resident qemu processes, and the compute itself is the cheap part. The second is the marginal cost of a tenant: going from two working guests to all twelve, 49 to 100 percent of host CPU, adds 2.3 watts, about a quarter of a watt per additional busy guest. Density is nearly free on this board; it is the first tenant that costs. The third is that it does not move. Thirty six cycles, peak reproducible to within a few hundredths of a watt, zero thermal guard trips, and a power factor pinned at 0.64 no matter the phase. Total consumption over the window was 0.41 kilowatt-hours a day, which at fifteen cents a kilowatt-hour is six cents a day to simulate a full rack's weekday.&lt;/p&gt;
&lt;p&gt;And it does not throttle. This board exposes no thermal zone, no cpufreq interface and no power domain to mainline Linux, so I cannot read the die temperature, the clock or the wattage. None of them. Rather than guess, I timed a fixed unit of single threaded work on core zero every five minutes for fourteen hours and recorded which phase of the duty cycle each measurement fell in. The idle samples drifted 0.3 percent over 14.1 hours across sixteen measurements. The loaded samples sit at 500 to 680 against an idle 900 to 912. The whole gap is contention between tenants, not heat. The chassis proxies I can read, the network controller die and the NVMe controller, sawtooth with the duty cycle between 45 and 53 degrees and recover fully in every idle phase.&lt;/p&gt;
&lt;p&gt;For a rental business this is the good news. The hardware holds up.&lt;/p&gt;
&lt;h3&gt;The ecosystem is worse than I expected&lt;/h3&gt;
&lt;p&gt;Now the other half.&lt;/p&gt;
&lt;p&gt;Mainline Linux enumerates eight of this chip's sixteen cores. The other eight, the A100 cluster, simply do not exist as far as the kernel is concerned. The vendor kernel sees them but reaches them only through a proprietary hook, and no process can be scheduled across both clusters anyway. You are selling half a chip.&lt;/p&gt;
&lt;p&gt;The internal storage does not work. The device tree declares the UFS controller with no voltage regulators and no frequency table, so link training fails and the controller never comes up. On mainline the drive is simply absent. Root lives on NVMe because it has to.&lt;/p&gt;
&lt;p&gt;FreeBSD, NetBSD and OpenBSD cannot boot on this board at all, virtualized or not. The K3's M-mode firmware leaves a single bit clear in a control register, &lt;code&gt;mcounteren.CY&lt;/code&gt;, and any guest that executes &lt;code&gt;rdcycle&lt;/code&gt; traps immediately. All three BSDs do, about a second into boot. This is not a driver gap that patches out. It is one line of firmware configuration that nobody outside SpacemiT can change.&lt;/p&gt;
&lt;p&gt;Then there are the container images, which is where the immaturity is easiest to measure. I queried twenty nine images a tenant might plausibly ask for. Nineteen of the twenty seven that resolved publish riscv64 builds. The eight that do not are not obscure: no Node.js at any version, no MySQL, no MariaDB, no MongoDB, no Grafana, no InfluxDB. A LAMP or MEAN stack cannot be assembled from official images on this architecture today. A Postgres and Go stack can, comfortably.&lt;/p&gt;
&lt;p&gt;The most telling detail is that support is version gated, and the gate moved recently. &lt;code&gt;redis:7&lt;/code&gt; publishes no riscv64 manifest. &lt;code&gt;redis:8&lt;/code&gt; does. &lt;code&gt;rust:1.83&lt;/code&gt; does not. &lt;code&gt;rust:latest&lt;/code&gt; does. So the ordinary defensive habit, pin the major version and do not chase latest, is precisely the habit that breaks on this architecture. A tenant who writes &lt;code&gt;redis:7&lt;/code&gt; because that is what their x86 fleet runs gets a manifest error, concludes the platform does not support Redis, and is wrong by exactly one major version.&lt;/p&gt;
&lt;p&gt;One more, because it is the kind of thing you only find by running the machine rather than reading about it. During a fleet boot, one guest in twelve kernel panicked thirty three seconds in, with an instruction page fault on kernel text, which should not be possible. It has not recurred in a day of sustained load. But the panicked guest did not go quiet. It burned 199.7 percent CPU, its entire virtual CPU allocation, indefinitely, while the qemu process looked healthy and the forwarded port still accepted connections. A quarter of the board consumed by a virtual machine doing nothing, invisible from the host. A tenant would have kept paying for it.&lt;/p&gt;
&lt;h3&gt;Two questions, not one&lt;/h3&gt;
&lt;p&gt;Here is where the two halves stop cancelling out.&lt;/p&gt;
&lt;p&gt;The first question is: should I buy the ten node chassis now? The answer is no, and it was no in September too. Every one of the problems above is a property of the silicon, its firmware, or the software around it. Not one of them is a property of how many boards you own. Buying ten copies does not give you ten chances to discover that the BSDs cannot boot. It gives you one discovery and nine idle nodes. The integration work I have just done, replacing the bootloader, finding out which kernel costs you what, learning the thing cannot be installed the way every other server racks, is done once and does not repeat per node. That is the argument for having done it on one board at 5.5 percent of the price.&lt;/p&gt;
&lt;p&gt;The second question is different: is there a business here? And the answer is yes, for a narrow customer, and the reason it exists is the same fact that makes the chassis a bad buy.&lt;/p&gt;
&lt;p&gt;The ecosystem gaps keep the large providers out. There is no volume in RISC-V hosting yet, and the tenants who want it want things that do not scale: serial console access, the ability to boot their own kernel, permission to break the machine. That is a bad business for a hyperscaler and a defensible one for somebody small. The immaturity is not an obstacle to the business. It is the moat.&lt;/p&gt;
&lt;p&gt;And notice what is actually missing from the image ecosystem. No Node, no MySQL, no Mongo, no Grafana. That is a dealbreaker for a tenant deploying a web stack and completely irrelevant to a tenant who wants Debian, a compiler and root. The gaps are precisely in the software the target customer does not care about.&lt;/p&gt;
&lt;h3&gt;Who the customer actually is&lt;/h3&gt;
&lt;p&gt;Not the person who wants to run a LAMP stack. That person should use x86 and will be happier.&lt;/p&gt;
&lt;p&gt;The customer is the kernel porter and the firmware developer. But those are two different products, and my own measurements say so.&lt;/p&gt;
&lt;p&gt;A kernel porter working in supervisor mode and above is well served by a virtual machine here. When I pass &lt;code&gt;-cpu host&lt;/code&gt; the guest inherits the real silicon features, including vector crypto, so what you are renting is access to an actual RVA23 class implementation rather than an emulation of one. Ten second boots matter enormously to someone whose workflow is a reboot loop. Copy on write overlays on a shared golden image give snapshot and revert for free, which is what you need when you are panicking kernels deliberately. All of this works today, measured, on hardware that costs \$1,175.&lt;/p&gt;
&lt;p&gt;A firmware developer cannot use a virtual machine at all, and this is the thing I would have got wrong without owning the board. KVM requires the host's OpenSBI to own machine mode; guests run in hypervisor supervisor mode and below. That is exactly why the BSDs cannot boot under KVM here. A tenant inside a virtual machine cannot inspect, fix or experiment with the &lt;code&gt;mcounteren&lt;/code&gt; bit that causes the problem, because that bit lives in a privilege level the hypervisor reserves for itself. Firmware work needs bare metal.&lt;/p&gt;
&lt;p&gt;Which brings up the operational problem this whole exercise surfaced, and the reason I think the bare metal tier is the defensible one. Recovering this board's firmware requires holding a physical button while power is applied. Not a reset command. Not a power cycle. A human hand, or a machine pretending to be one. That is why my pre-sales questions to the colo were about remote hands rates and response times rather than bandwidth.&lt;/p&gt;
&lt;p&gt;So the product that nobody else is selling is the unglamorous plumbing: out of band serial console to every node, remote power control, and an automated path to unbrick a board a tenant has bricked. The Raspberry Pi acting as a baseboard management controller in my September design, productised. It does not scale, which is exactly why it is defensible. Sell bare metal by the hour to the firmware people and virtual machines to the kernel people, on the same hardware.&lt;/p&gt;
&lt;h3&gt;What the colo actually costs&lt;/h3&gt;
&lt;p&gt;In September I could not size any of this, because ServerPronto publishes a one amp allowance without saying at what voltage. They answered on 1 October. It is one amp at 120 volts, which is the pessimistic case of the two I flagged.&lt;/p&gt;
&lt;p&gt;That single number sorts the two questions faster than anything I measured on the bench.&lt;/p&gt;
&lt;p&gt;One amp at 120 volts is 120 watts, and continuous-load practice says size to eighty percent of the breaker, so call it 96 watts usable. My per-node estimate was 25 to 40 watts, and when I first wrote this section it was the one number in the article I had not measured. That is fixed now: the meter says 12.9 watts at the floor and 19.9 watts with every guest working, at the wall, across thirty six duty cycles. I am keeping 25 watts per node as the planning figure anyway, because one board in open air is not ten in 1U and being wrong in that direction costs me money rather than saving it. But it is a conservative planning figure sitting on a measurement now, not a guess.&lt;/p&gt;
&lt;p&gt;For the two-node pilot, with a &lt;a href="https://go.tinymachines.io/raspberry-pi-5"&gt;Raspberry Pi 5&lt;/a&gt; acting as the baseboard controller, the metered worst case is 40 watts at the wall for the pair plus a handful for the Pi: call it 50 watts continuous against the 96-watt usable budget. Even the old pessimistic 40 watts per node would fit. The pilot does not need a second amp at any defensible figure, and that question is closed.&lt;/p&gt;
&lt;p&gt;For the ten-node chassis it is not close.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Per node&lt;/th&gt;
&lt;th&gt;Wall draw&lt;/th&gt;
&lt;th&gt;Circuit needed&lt;/th&gt;
&lt;th&gt;Additional amps&lt;/th&gt;
&lt;th&gt;Colo per month&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;25 W&lt;/td&gt;
&lt;td&gt;332 W&lt;/td&gt;
&lt;td&gt;4 A&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;\$138.80&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;30 W&lt;/td&gt;
&lt;td&gt;391 W&lt;/td&gt;
&lt;td&gt;5 A&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;\$166.75&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;40 W&lt;/td&gt;
&lt;td&gt;508 W&lt;/td&gt;
&lt;td&gt;6 A&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;\$194.70&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Additional amps are \$27.95 each per month. So the ten-node rig turns a \$54.95 colo bill into something between \$138.80 and \$194.70, every month, forever. The September arithmetic did not have that line in it at all, because I did not know the voltage and did not ask. One honest note in the chassis's favour: at the metered 19.9 watts per node the same arithmetic lands at three amps and about \$111, below the table's best row. Power was never the strongest argument against the chassis. Bandwidth is the one that does not move, and it is next.&lt;/p&gt;
&lt;p&gt;Note what this does to the two questions. The hardware I decided not to buy would also have cost two and a half to three and a half times as much to keep plugged in. The hardware I did buy, in the configuration that makes sense, fits inside the base plan.&lt;/p&gt;
&lt;p&gt;Then there is bandwidth, which turns out to matter more than I expected.&lt;/p&gt;
&lt;p&gt;Thirty megabits is included, with overage billed at \$5 per megabit. That is plenty for one board and nowhere near enough for ten.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Build&lt;/th&gt;
&lt;th&gt;Tenants&lt;/th&gt;
&lt;th&gt;Mbps each&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Two-node pilot, 5 per node&lt;/td&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;td&gt;3.00&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Two-node pilot, 7 per node&lt;/td&gt;
&lt;td&gt;14&lt;/td&gt;
&lt;td&gt;2.14&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ten-node, 5 per node&lt;/td&gt;
&lt;td&gt;50&lt;/td&gt;
&lt;td&gt;0.60&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ten-node, 7 per node&lt;/td&gt;
&lt;td&gt;70&lt;/td&gt;
&lt;td&gt;0.43&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Two to three megabits per tenant is workable for the customer I described, because kernel work is bursty rather than sustained. At the full pipe a tenant pulls the Linux tree in about thirteen minutes, a Debian netinst image in three, a Postgres container in under two. Nobody is streaming video. Ten or fourteen tenants whose bursts do not line up will mostly not notice each other.&lt;/p&gt;
&lt;p&gt;Half a megabit per tenant is not workable by any reading, so the ten-node build has to buy pipe. Getting to 100 Mbps means 70 additional megabits at \$5 each, which is \$350 a month on top of everything else.&lt;/p&gt;
&lt;p&gt;So the full colo bill, power and bandwidth together, and then the number that actually matters, which is what each tenant has to pay for the thing to break even. Hardware amortised over three years, colo as quoted, setup fee spread across the same term.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Two-node pilot&lt;/th&gt;
&lt;th&gt;Ten-node chassis&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Hardware, landed&lt;/td&gt;
&lt;td&gt;\$2,750.18&lt;/td&gt;
&lt;td&gt;\$21,558.55&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Amortised over 36 months&lt;/td&gt;
&lt;td&gt;\$76.39&lt;/td&gt;
&lt;td&gt;\$598.85&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Colo, power&lt;/td&gt;
&lt;td&gt;\$54.95&lt;/td&gt;
&lt;td&gt;\$166.75&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Colo, bandwidth&lt;/td&gt;
&lt;td&gt;included&lt;/td&gt;
&lt;td&gt;\$350.00&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Setup, amortised&lt;/td&gt;
&lt;td&gt;\$2.22&lt;/td&gt;
&lt;td&gt;\$2.22&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Monthly total&lt;/td&gt;
&lt;td&gt;\$133.56&lt;/td&gt;
&lt;td&gt;\$1,117.82&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tenants at five per node&lt;/td&gt;
&lt;td&gt;14&lt;/td&gt;
&lt;td&gt;70&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Break even, per tenant&lt;/td&gt;
&lt;td&gt;\$9.54&lt;/td&gt;
&lt;td&gt;\$15.97&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Five times the hardware does not get you five times cheaper. It gets you a break even that is 1.67 times higher per tenant. Bandwidth does not get cheaper with density, power gets worse, and the chassis costs more per node than a bare board does.&lt;/p&gt;
&lt;p&gt;That last point needs a caveat, because it is the one comparison here that is not like for like: the chassis nodes are specced at 32 GB and 128 GB and the price includes a 1U enclosure, a power supply and an RK3588 management controller, none of which my bare board has. The colo figures are directly comparable. The hardware figures are not, and some of that 1.83x per node is buying real things.&lt;/p&gt;
&lt;p&gt;But the colo half alone is enough to make the point, and it is the third separate measurement pointing the same direction, after the guest scaling ceiling and the power budget. The chassis I decided not to buy would have been worse per unit, not better.&lt;/p&gt;
&lt;p&gt;Two more answers worth recording.&lt;/p&gt;
&lt;p&gt;Their tech support runs 24/7 with ten to fifteen minute ticket response, and remote hands is free when a task is simple, takes a few minutes, and is not frequent. Holding a button while power is applied is simple and takes seconds. It is the word frequent that should worry me. The tenant I identified as the defensible customer, the firmware developer on bare metal, is precisely the tenant who bricks a board regularly. A business whose product is unbricking cannot rest on a courtesy extended only to people who rarely need it. That is a conversation to have with them in writing before taking money, not after.&lt;/p&gt;
&lt;p&gt;And the setup fee is real: \$79.95 one time, which the third-party directory had right.&lt;/p&gt;
&lt;h3&gt;What has to change, and how I will know&lt;/h3&gt;
&lt;p&gt;The uncomfortable part of the argument is that the moat closes as the ecosystem matures, and the same maturity is what would eventually justify the ten node chassis. Both happen at once. So the question is not whether but when, and I would rather publish a test than a prediction.&lt;/p&gt;
&lt;p&gt;Here is what I will re-measure, with the tooling that produced the numbers above:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Gate&lt;/th&gt;
&lt;th&gt;Today&lt;/th&gt;
&lt;th&gt;How it gets checked&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Node, MySQL, MongoDB riscv64 images&lt;/td&gt;
&lt;td&gt;absent&lt;/td&gt;
&lt;td&gt;the Docker Hub survey, one command&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Mainline enumerates all sixteen cores&lt;/td&gt;
&lt;td&gt;eight of sixteen&lt;/td&gt;
&lt;td&gt;the mainline benchmark script&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;BSDs boot, &lt;code&gt;mcounteren.CY&lt;/code&gt; set&lt;/td&gt;
&lt;td&gt;broken in M-mode firmware&lt;/td&gt;
&lt;td&gt;the QEMU run scripts&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;UFS internal storage&lt;/td&gt;
&lt;td&gt;device tree missing regulators&lt;/td&gt;
&lt;td&gt;dmesg on a newer kernel&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Guest panic rate&lt;/td&gt;
&lt;td&gt;one at boot, none in 42 h of load since&lt;/td&gt;
&lt;td&gt;the sustained load harness&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The core enumeration gate is the one to watch. Right now the business sells eight cores of a sixteen core chip. If mainline lands the second cluster, capacity roughly doubles on a software update, without buying anything. That single change moves the unit economics more than any hardware decision available to me.&lt;/p&gt;
&lt;p&gt;The image gate is already moving in the right direction, and measurably. &lt;code&gt;redis:7&lt;/code&gt; to &lt;code&gt;redis:8&lt;/code&gt;, &lt;code&gt;rust:1.83&lt;/code&gt; to &lt;code&gt;rust:latest&lt;/code&gt;. That is not a static wall. It is a wall receding at a rate I can put a number on if I sample it twice. So I intend to: same survey, same board, same charts, in six months. The difference will be the article.&lt;/p&gt;
&lt;p&gt;My honest guess is that the sweet spot lands somewhere between six and twelve months from now, when enough of those gates have flipped that a tenant can be productive without hand rolling everything, and before enough have flipped that somebody with real money notices. That is a narrow window and I may be wrong about its position. I will not be wrong about whether it opened, because I will have measured it.&lt;/p&gt;
&lt;h3&gt;What one board still has not told me&lt;/h3&gt;
&lt;p&gt;A single unit on a desk is not a rack.&lt;/p&gt;
&lt;p&gt;I do not know how ten of these behave thermally in 1U. I have one board in open air and it never got close to warm. Density is a different problem, and mainline will not report the temperature even if it were.&lt;/p&gt;
&lt;p&gt;I know the power draw now: 12.9 watts at the floor, 19.9 saturated, from a &lt;a href="https://go.tinymachines.io/shelly-plug-us-gen4"&gt;\$30 inline meter&lt;/a&gt;, the purchase an earlier version of this section wished for. It should have happened in September, and the answer turned out to be the boring one, which is the best kind. What one metered board cannot tell me is ten sharing 1U of exhaust. One wrinkle it did surface: the power factor is 0.64 at every load level, so the circuit carries about 31 volt-amps at peak to deliver those 19.9 watts. ServerPronto's allowance is denominated in amps, and the measured 0.26-amp peak per node is the figure that allowance should actually be compared against.&lt;/p&gt;
&lt;p&gt;I do not know the guest panic rate. One event is an anecdote. A day of load without a repeat makes it look like a boot concurrency artifact rather than something that happens in service, which is reassuring and not the same as knowing.&lt;/p&gt;
&lt;p&gt;And I do not know whether anyone will pay for this. Nobody has paid me anything. That remains the least answered question from the September post and the only one that no amount of benchmarking will settle.&lt;/p&gt;
&lt;h3&gt;The general point&lt;/h3&gt;
&lt;p&gt;The thing I keep coming back to is not about RISC-V.&lt;/p&gt;
&lt;p&gt;I was about to spend somewhere north of \$21,000 on a bet whose critical assumption was that the software layer around a new system on chip was mature enough to rent to strangers. That assumption was wrong. There was no way to check it from a product page, a press release, or a benchmark chart, because the failures are not the kind of thing anybody writes down. They are a bit left clear in a firmware register, a device tree missing a regulator, a container tag that skipped an architecture, a recovery procedure that needs a finger.&lt;/p&gt;
&lt;p&gt;Five and a half percent of the commitment, spent up front, bought all of it. And it bought something better than a no, which is a specific list of what would have to change, and the instruments to check.&lt;/p&gt;
&lt;p&gt;Caveats. The \$16,419.00 price and \$240.00 shipping are Firefly's own figures as of 27 September 2026, taken from their checkout. The formal entry costs are industry ranges rather than a broker's quote, left that way on purpose: the 27.1 percent duty is one observation from one shipment, tariff schedules move, and a precise landed figure would be precise about conditions nobody can guarantee will hold. The guest scaling and sustained load numbers come from a single board in open air, which is the best case for thermals and the worst case for generalising to a rack. &lt;code&gt;sysbench cpu&lt;/code&gt; is an integer benchmark with a small working set, so it flatters shared cache behaviour; a memory bandwidth bound workload would very likely show degradation where mine shows none, and the guests all ran the same thing at the same time, which is the easiest case for a scheduler. The ServerPronto figures are from their ticket #151276 dated 1 October 2026 and are quoted as given. Where their bandwidth answer and their public plan page disagree I have used the answer, which is the more recent and the more generous of the two; anybody ordering should get it restated on the invoice. Per-node wattage is measured at the wall for a single board in open air (12.9 to 19.9 watts by duty phase, Shelly Plug US Gen4, one-second samples across 36 harness cycles), and the 25-to-40-watt planning figures are kept deliberately above the measurement for rack conditions. All of the technical findings are documented with raw output in the &lt;a href="https://github.com/ajokela/benchmark-sbcs"&gt;benchmark repository&lt;/a&gt;.&lt;/p&gt;</description><category>benchmarks</category><category>business</category><category>colocation</category><category>hosting</category><category>k3</category><category>kvm</category><category>risc v</category><category>rva23</category><category>single board computers</category><category>spacemit</category><category>tariffs</category><category>virtualization</category><guid>https://tinycomputers.io/posts/the-1175-dollar-option-risc-v-colo-revisited.html</guid><pubDate>Sat, 10 Oct 2026 03:00:00 GMT</pubDate></item><item><title>The SpacemiT K3 on Mainline Ubuntu: KVM Works, and the BSDs Cannot Boot</title><link>https://tinycomputers.io/posts/spacemit-k3-ubuntu-kvm-follow-up.html?utm_source=feed&amp;utm_medium=rss&amp;utm_campaign=rss</link><dc:creator>A.C. Jokela</dc:creator><description>&lt;div class="audio-widget"&gt;
&lt;div class="audio-widget-header"&gt;
&lt;span class="audio-widget-icon"&gt;🎧&lt;/span&gt;
&lt;span class="audio-widget-label"&gt;Listen to this article&lt;/span&gt;
&lt;/div&gt;
&lt;audio controls preload="metadata"&gt;
&lt;source src="https://tinycomputers.io/spacemit-k3-ubuntu-kvm-follow-up_tts.mp3" type="audio/mpeg"&gt;
&lt;/source&gt;&lt;/audio&gt;
&lt;div class="audio-widget-footer"&gt;34 min · AI-generated narration&lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;In &lt;a href="https://tinycomputers.io/posts/spacemit-k3-pico-itx-review.html"&gt;the first piece on this board&lt;/a&gt; I said the SpacemiT K3 Pico-ITX was genuinely competitive silicon shipped with a kernel that could not load KVM. I bought it to run virtual machines. It cost \$1,175.09 delivered and &lt;code&gt;modprobe kvm&lt;/code&gt; oopsed in &lt;code&gt;jump_label_module_notify&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;If you did not read that one, the short version: the K3 Pico-ITX is a RISC-V single board computer with 32 GB of RAM and sixteen cores, split into two groups of eight. Eight X100 cores do ordinary work. Eight A100 cores are an AI engine rated at 60 TOPS. It is the first RISC-V board I have tested that competes with ARM on speed rather than apologising for itself, and at \$1,175.09 it needs to.&lt;/p&gt;
&lt;p&gt;Two words will come up constantly here, so they are worth pinning down. The vendor kernel is the Linux that SpacemiT ships, which they maintain themselves and which knows every quirk of their hardware. Mainline is the Linux everyone else gets, where support has been accepted into the official kernel tree. Vendor kernels usually work better and age worse. The interesting moment for any new board is when mainline catches up, because that is when the board stops depending on one company's attention.&lt;/p&gt;
&lt;p&gt;Ubuntu 26.10 was the first release where this board's support is upstream rather than carried in SpacemiT's vendor tree. So I flashed EDK2 over the vendor U-Boot, installed Ubuntu, and re-ran everything.&lt;/p&gt;
&lt;p&gt;KVM works. That is the headline and it is a real result:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;$&lt;span class="w"&gt; &lt;/span&gt;sudo&lt;span class="w"&gt; &lt;/span&gt;modprobe&lt;span class="w"&gt; &lt;/span&gt;kvm&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;lsmod&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;grep&lt;span class="w"&gt; &lt;/span&gt;kvm
kvm&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="m"&gt;466944&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="m"&gt;10&lt;/span&gt;
$&lt;span class="w"&gt; &lt;/span&gt;ls&lt;span class="w"&gt; &lt;/span&gt;-l&lt;span class="w"&gt; &lt;/span&gt;/dev/kvm
crw-rw----&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;root&lt;span class="w"&gt; &lt;/span&gt;kvm&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;10&lt;/span&gt;,&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;232&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;/dev/kvm
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;A Debian 13 riscv64 guest boots under &lt;code&gt;-cpu host&lt;/code&gt; and inherits the X100's vector and vector-crypto extensions. That &lt;code&gt;h&lt;/code&gt; on the end of the ISA string &lt;code&gt;rv64imafdcvh&lt;/code&gt; is the hypervisor extension, the optional block of silicon that lets a RISC-V chip run virtual machines at full speed instead of simulating them. The K3 has always had it. Until now no kernel on this board could use it. The board does the thing I bought it for.&lt;/p&gt;
&lt;p&gt;Everything else I found is worse than that sentence suggests. Including, first, the part where I could not install it.&lt;/p&gt;
&lt;h3&gt;Three failed installs and a serial cable&lt;/h3&gt;
&lt;p&gt;The supported path replaces SpacemiT's bootloader with EDK2, an open implementation of UEFI, the same firmware interface a PC uses to find and start an operating system. Swapping it in is what lets the board boot an ordinary Ubuntu USB stick instead of something hand-assembled for this hardware. The swap happens over fastboot, with the board held in a special flashing mode. The flash is the easy part. Hold the FDL button, apply power to the first USB-C connector, release, and &lt;code&gt;fastboot devices&lt;/code&gt; answers. Six partitions get written and &lt;code&gt;edk2.itb&lt;/code&gt; lands in the one confusingly named &lt;code&gt;uboot&lt;/code&gt;. That worked first time.&lt;/p&gt;
&lt;p&gt;The install did not. Three times the board booted the installer, appeared on the network as &lt;code&gt;ubuntu-server&lt;/code&gt;, and then sat there. For hours. No reboot, no progress, no way in. The DHCP lease renewed, ICMP answered, port 22 was open and refused every credential. From outside, a working install and a dead one look identical.&lt;/p&gt;
&lt;p&gt;I spent a long time constructing theories from that non-evidence. The storage match in my autoinstall config must be wrong. The kernel must not see the UFS. The firmware must have a dangling boot entry. Each theory was plausible, each led to another blind retry, and every one of them was wrong.&lt;/p&gt;
&lt;p&gt;What broke the deadlock was a &lt;a href="https://go.tinymachines.io/6v3F6F"&gt;three-wire USB-to-TTL serial adapter&lt;/a&gt; on the header silkscreened &lt;code&gt;DEBUG&lt;/code&gt;, next to the USB-C connectors. Any 3.3 V adapter works; mine is an older PL2303 and a CP2102 is the better buy today. Whatever you use, it must be 3.3 V TTL and not a true RS-232 cable, which swings to plus and minus twelve volts and will destroy the UART. The board's own device tree tells you where the console goes:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="n"&gt;chosen&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="err"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;stdout&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="k"&gt;path&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="ss"&gt;"serial0:115200n8"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;}&lt;/span&gt;
&lt;span class="n"&gt;aliases&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;serial0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="ss"&gt;"/soc/serial@d4017000"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Thirty seconds after attaching it, the answer was on screen. Two answers, actually.&lt;/p&gt;
&lt;p&gt;The first was the UFS error storm described below, saturating an 11.5 KB/s UART with 117 KB of messages every ten seconds. The second was better:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="nv"&gt;Installer&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;update&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;available&lt;/span&gt;
[&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;Update&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;to&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;the&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;new&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;installer&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;]
[&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;Continue&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;without&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;updating&lt;/span&gt;&lt;span class="w"&gt;   &lt;/span&gt;]
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;That prompt only appears when autoinstall is not active. Autoinstall is Ubuntu's unattended install mechanism: you leave a configuration file on the media, the installer reads it, and it answers every question for you without a human present. It is how you install a machine that has no screen. My configuration had never been applied on any attempt. Every one of those multi-hour "hangs" was the plain interactive installer, sitting at a prompt, waiting for a keypress from a machine with no keyboard and no screen.&lt;/p&gt;
&lt;p&gt;There is a second trap stacked on the first. Because the device tree pins the console to serial, &lt;a href="https://github.com/canonical/subiquity"&gt;subiquity&lt;/a&gt; starts in serial mode and opens with a dialog asking whether you want rich mode or basic mode. It waits. An unattended install on a board whose console is a UART will stop dead at that question, and nothing about it reaches the network.&lt;/p&gt;
&lt;p&gt;So I drove the installer over the serial line instead, one keystroke at a time, which is how Ubuntu actually got onto this board. It is worth knowing before you buy a headless RISC-V machine and assume autoinstall will carry you.&lt;/p&gt;
&lt;h3&gt;Mainline sees half the cores, and not the half you'd hope&lt;/h3&gt;
&lt;p&gt;Bianbu listed sixteen processors and let a process use one cluster of eight or the other, never both. I assumed a mainline kernel would either fix the partition or at least expose the same hardware.&lt;/p&gt;
&lt;p&gt;It does neither:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="n"&gt;possible&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;7&lt;/span&gt;
&lt;span class="n"&gt;present&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;7&lt;/span&gt;
&lt;span class="n"&gt;online&lt;/span&gt;&lt;span class="w"&gt;   &lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;7&lt;/span&gt;
&lt;span class="n"&gt;uarch&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;spacemit&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;&lt;span class="n"&gt;x100&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x8&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;
&lt;span class="sr"&gt;/proc/s&lt;/span&gt;&lt;span class="n"&gt;et_ai_thread&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;absent&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;The A100 cluster is simply not enumerated. Bianbu at least showed all sixteen in &lt;code&gt;/proc/cpuinfo&lt;/code&gt; and gave you &lt;code&gt;/proc/set_ai_thread&lt;/code&gt; to reach the AI cores. Mainline does not know they exist. The vendor hook is gone with it.&lt;/p&gt;
&lt;p&gt;So the AI cores are less accessible on Ubuntu than on Bianbu, not more.&lt;/p&gt;
&lt;p&gt;The practical consequence is that the 110-second sixteen-core compile I speculated about in the first piece is not merely blocked, it is unreachable. There is no cluster to schedule onto. The A100 figure from that piece, 342.78 s against the X100's 161.29 s on the same tree, was measured through the vendor's &lt;code&gt;/proc/set_ai_thread&lt;/code&gt; hook. That hook does not exist on mainline, so on Ubuntu there is no way to run anything on those cores at all, fast or slow.&lt;/p&gt;
&lt;p&gt;One trap worth naming, because I fell into it and reported the wrong answer for a few minutes: &lt;code&gt;taskset -c 0-15&lt;/code&gt; succeeds here. It returns zero and looks like a win. It intersects the mask you asked for with the CPUs that exist and quietly gives you &lt;code&gt;0-7&lt;/code&gt;. Check the resulting affinity, not the exit code.&lt;/p&gt;
&lt;h3&gt;The compile got slower, and it is not the clock&lt;/h3&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Bianbu 6.18.3 (vendor BSP)&lt;/th&gt;
&lt;th&gt;Ubuntu 7.3.0 (mainline)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Rust compile, pinned tree, n=3&lt;/td&gt;
&lt;td&gt;161.80 s (sd 0.97)&lt;/td&gt;
&lt;td&gt;183.43 s (sd 2.12)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;sysbench, 1 thread&lt;/td&gt;
&lt;td&gt;912.45 ev/s&lt;/td&gt;
&lt;td&gt;910.59 ev/s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;sysbench, 8 threads&lt;/td&gt;
&lt;td&gt;7,245.09 ev/s&lt;/td&gt;
&lt;td&gt;7,307.50 ev/s&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Same board, same tree at &lt;code&gt;2821bba&lt;/code&gt;, same rustc 1.98.1. Mainline is 13.4% slower on the compile.&lt;/p&gt;
&lt;p&gt;My first instinct was thermal throttling, because the three mainline runs climbed steadily (181.0, 184.2, 185.1) where Bianbu's were flat. That instinct was wrong. Single-threaded sysbench is a decent clock proxy and it is identical, within 0.2%. The eight-thread figure is actually 0.9% faster on mainline. Raw CPU throughput has not changed.&lt;/p&gt;
&lt;p&gt;So something other than the CPU costs 13% on a compile. The most likely candidate is storage: root moved from the internal UFS to NVMe behind LVM, and a clean &lt;code&gt;cargo build&lt;/code&gt; is I/O heavy. I have not proven it, and I am not going to claim a kernel regression I cannot demonstrate.&lt;/p&gt;
&lt;p&gt;Two things make this comparison less clean than I would like, and both are worth stating rather than burying:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Mainline exposes no cpufreq policy and no thermal zones for this SoC. On Bianbu the governor was &lt;code&gt;userspace&lt;/code&gt; pinned at 2.2 GHz and there were seven thermal zones. On Ubuntu the clock cannot be read, pinned, or checked for throttling.&lt;/li&gt;
&lt;li&gt;OpenSSL went from 3.5.5 to 4.0.1 between the two installs, so the crypto numbers are not comparable at all. I am not publishing a vector-crypto delta that is really a library version delta.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;The internal storage does not work&lt;/h3&gt;
&lt;p&gt;The K3 has 119 GB of onboard UFS storage, which is the faster successor to the eMMC chips most single board computers solder down. On mainline it does not exist:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="n"&gt;ufshcd&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;spacemit&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;c0e00000&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nl"&gt;ufshc:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;freq&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="k"&gt;table&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;hz&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;property&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;not&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;specified&lt;/span&gt;
&lt;span class="n"&gt;ufshcd&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;spacemit&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;c0e00000&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nl"&gt;ufshc:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;ufshcd_populate_vreg:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Unable&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;to&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;find&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;vcc&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;supply&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;regulator&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;assuming&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;enabled&lt;/span&gt;
&lt;span class="n"&gt;ufshcd&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;spacemit&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;c0e00000&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nl"&gt;ufshc:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;DL&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;event&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;INT&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;errors:&lt;/span&gt;&lt;span class="mh"&gt;0&lt;/span&gt;&lt;span class="n"&gt;x4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;DL_ERR:&lt;/span&gt;&lt;span class="mh"&gt;0&lt;/span&gt;&lt;span class="n"&gt;x80000002&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="p"&gt;...&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;~&lt;/span&gt;&lt;span class="mh"&gt;1600&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;more&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;lines&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;...&lt;/span&gt;
&lt;span class="n"&gt;ufshcd&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;spacemit&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;c0e00000&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nl"&gt;ufshc:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ufshcd_async_scan&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;failed:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mh"&gt;19&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;The device tree is a data file the firmware hands the kernel describing what hardware is present and how it is wired: which controller sits at which address, which power rails feed it, what clock speeds it supports. Linux has no other way to discover any of this on a board like the K3. The K3's device tree declares the storage controller at &lt;code&gt;ufshc@c0e00000&lt;/code&gt; but supplies no &lt;code&gt;vcc&lt;/code&gt;/&lt;code&gt;vccq&lt;/code&gt; regulator entries and no &lt;code&gt;freq-table-hz&lt;/code&gt;. The driver assumes the rails are live, the device never answers, and link training fails at the Data Link and PHY Adapter layers until the controller gives up in &lt;code&gt;eh_fatal&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The driver binds correctly, and the alias matches the board exactly (&lt;code&gt;of:N*T*Cspacemit,k3-ufshc&lt;/code&gt; against the DTB's &lt;code&gt;compatible = "spacemit,k3-ufshc"&lt;/code&gt;). The DTB is simply incomplete. Ubuntu ships and manages that DTB as a package, and I watched &lt;code&gt;update-initramfs&lt;/code&gt; print &lt;code&gt;Installing new k3-pico-itx.dtb&lt;/code&gt; while blacklisting the driver, so this is fixable upstream without new silicon and without a vendor release.&lt;/p&gt;
&lt;p&gt;Until then the internal storage is unusable and root has to live on NVMe. Mine is a &lt;a href="https://go.tinymachines.io/wd-black-sn850x-2tb"&gt;WD_BLACK SN850X&lt;/a&gt;, which is overkill for a boot disk and was already in the board from the first review. I blacklisted &lt;code&gt;ufs_spacemit&lt;/code&gt;, which reclaims about forty seconds of boot and 1,600 error lines.&lt;/p&gt;
&lt;p&gt;That error storm is worth dwelling on, because it nearly cost me the whole install. The K3's device tree pins the kernel console to &lt;code&gt;serial0&lt;/code&gt; at 115200, which is about 11.5 KB/s. The UFS failure generates roughly 117 KB of error messages every ten seconds. The machine spends essentially all of its time writing errors to a UART whether or not anything is listening. From the outside it looks exactly like a hang.&lt;/p&gt;
&lt;h3&gt;The finding I did not expect&lt;/h3&gt;
&lt;p&gt;I wanted to see the board do real work, so I set out to build four RISC-V guests: Debian, FreeBSD, NetBSD and OpenBSD.&lt;/p&gt;
&lt;p&gt;Debian booted under KVM and ran fine. All three BSDs panicked about one second in.&lt;/p&gt;
&lt;p&gt;FreeBSD:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="n"&gt;panic&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Illegal&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;instruction&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mh"&gt;0xc0002573&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mh"&gt;0xffffffc00042e362&lt;/span&gt;
&lt;span class="err"&gt;#&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mh"&gt;0xffffffc00042e03e&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;arc4rand&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="mh"&gt;0x8e&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;NetBSD, independently:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="n"&gt;panic&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;cpu_trap&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fatal&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;kernel&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;trap&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;va&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mh"&gt;0xc0002773&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Those two values are the same instruction with a different destination register. Pulling &lt;code&gt;0xc0002573&lt;/code&gt; apart: the low seven bits are the opcode, &lt;code&gt;0x73&lt;/code&gt;, which on RISC-V means a system instruction. The middle field says it is a CSR read. The top twelve bits are the register number, &lt;code&gt;0xC00&lt;/code&gt;. That register is &lt;code&gt;cycle&lt;/code&gt;, a free-running count of CPU clock ticks, and the instruction that reads it is spelled &lt;code&gt;rdcycle&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Both kernels were dying on the same one-instruction question: &lt;em&gt;how many cycles have elapsed?&lt;/em&gt;&lt;/p&gt;
&lt;h4&gt;A detour into who is allowed to do what&lt;/h4&gt;
&lt;p&gt;To explain why that question is illegal, I need one piece of RISC-V background, and it is the piece that makes everything else in this post make sense.&lt;/p&gt;
&lt;p&gt;RISC-V software runs at one of three privilege levels. Machine mode is the most privileged and is where firmware lives: on this board that is SpacemiT's OpenSBI, burned into flash, running before Linux and continuing to sit underneath it forever. Supervisor mode is where the operating system kernel runs. User mode is where your programs run. Each level can see and do strictly less than the one below it.&lt;/p&gt;
&lt;p&gt;Crucially, the lower level decides what the upper levels are permitted to touch. Machine-mode firmware holds a register called &lt;code&gt;mcounteren&lt;/code&gt;, the counter-enable register, with one bit per hardware counter. Set the bit and everyone above may read that counter. Leave it clear and any attempt to read it is an illegal instruction, exactly as if the CPU did not implement it at all.&lt;/p&gt;
&lt;p&gt;So &lt;code&gt;rdcycle&lt;/code&gt; failing is not a bug in the CPU, the kernel, or the hypervisor. It is firmware declining to grant permission, and there is nothing any layer above can do about it.&lt;/p&gt;
&lt;p&gt;My first theory was still the wrong one. I assumed RISC-V's KVM does not grant guests direct counter access, and that a guest is simply more restricted than its host. Wrong. The host cannot do it either:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;$&lt;span class="w"&gt; &lt;/span&gt;cat&lt;span class="w"&gt; &lt;/span&gt;rdcycle.c
int&lt;span class="w"&gt; &lt;/span&gt;main&lt;span class="o"&gt;(&lt;/span&gt;void&lt;span class="o"&gt;){&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;unsigned&lt;span class="w"&gt; &lt;/span&gt;long&lt;span class="w"&gt; &lt;/span&gt;c&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;__asm__&lt;span class="w"&gt; &lt;/span&gt;volatile&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"rdcycle %0"&lt;/span&gt;:&lt;span class="s2"&gt;"=r"&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;c&lt;span class="o"&gt;))&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;}&lt;/span&gt;
$&lt;span class="w"&gt; &lt;/span&gt;./rdcycle
Illegal&lt;span class="w"&gt; &lt;/span&gt;instruction&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;core&lt;span class="w"&gt; &lt;/span&gt;dumped&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;That is plain userspace on the host, no virtualization anywhere. Testing all three counters:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;CSR&lt;/th&gt;
&lt;th&gt;K3 host, U-mode&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;rdtime&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;OK&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;rdcycle&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;SIGILL&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;rdinstret&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;SIGILL&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The K3's M-mode firmware sets &lt;code&gt;mcounteren.TM&lt;/code&gt; but not &lt;code&gt;CY&lt;/code&gt; or &lt;code&gt;IR&lt;/code&gt;. Nothing above M-mode can read the cycle or instruction counters: not host userspace, not the host kernel, not any guest.&lt;/p&gt;
&lt;p&gt;FreeBSD's &lt;code&gt;arc4rand&lt;/code&gt; and NetBSD's early init both execute &lt;code&gt;rdcycle&lt;/code&gt;. So they panic on this board whether virtualized or not. This is not a KVM limitation and not a BSD bug. Linux is unaffected only because riscv64 Linux goes through SBI and the &lt;code&gt;time&lt;/code&gt; CSR instead of reading &lt;code&gt;cycle&lt;/code&gt; directly.&lt;/p&gt;
&lt;p&gt;I confirmed it the other way too. QEMU can run a guest two ways. KVM uses the host's own CPU to execute guest code directly, which is fast but means the guest inherits the host's hardware, firmware restrictions included. TCG ignores the hardware and simulates a RISC-V processor in software, which is slow but means the simulated CPU behaves the way the specification says rather than the way this board does. Under TCG, which emulates its own machine mode and its own counters, FreeBSD 15.1 and NetBSD 11.99.8 both boot to a root shell without complaint. The images are fine. The board is not.&lt;/p&gt;
&lt;p&gt;It is worth being precise about what this is not. NetBSD runs perfectly well on RISC-V: I have &lt;a href="https://tinycomputers.io/posts/four-partitions-and-a-borrowed-bootloader-netbsd-on-the-milk-v-mars.html"&gt;installed it on the Milk-V Mars&lt;/a&gt; and &lt;a href="https://tinycomputers.io/posts/two-addresses-one-page-finding-the-firmware-bug-behind-netbsd-corruption-on-the-milk-v-mars.html"&gt;chased a firmware bug through its page tables&lt;/a&gt; on that board. So I ran the same three-counter test on the Pine64 Star64, a JH7110 board sitting on the same bench:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;CSR&lt;/th&gt;
&lt;th&gt;Star64 (JH7110)&lt;/th&gt;
&lt;th&gt;K3 Pico-ITX (SpacemiT K3)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;rdtime&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;OK&lt;/td&gt;
&lt;td&gt;OK&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;rdcycle&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;OK&lt;/td&gt;
&lt;td&gt;SIGILL&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;rdinstret&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;OK&lt;/td&gt;
&lt;td&gt;SIGILL&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Same operating systems, same architecture, same room. The JH7110's firmware grants all three counters and NetBSD boots on it. The K3's grants one. That is the whole difference, and it is a decision made in M-mode firmware rather than anything about RISC-V, NetBSD, or KVM.&lt;/p&gt;
&lt;p&gt;One practical note if you try this yourself: BSD guests need &lt;code&gt;virtio-blk-device&lt;/code&gt; (MMIO) rather than &lt;code&gt;if=virtio&lt;/code&gt;, which gives virtio-blk-PCI. NetBSD does not attach the PCI variant and drops to &lt;code&gt;root device:&lt;/code&gt; with only &lt;code&gt;vioif0&lt;/code&gt; offered.&lt;/p&gt;
&lt;h3&gt;What a guest actually gets&lt;/h3&gt;
&lt;p&gt;Since the whole point was virtualization, it is worth saying what running a guest on this board is actually like.&lt;/p&gt;
&lt;p&gt;The first thing that bites is firmware layering, and it is not documented anywhere obvious. Under KVM the host's OpenSBI already owns M-mode, so the guest must start in supervisor mode. Passing QEMU an M-mode firmware fails outright:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;qemu-system-riscv64: Machine mode firmware is not supported in combination with KVM.
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;The invocation that works is &lt;code&gt;-bios none&lt;/code&gt; plus the S-mode U-Boot as the kernel, which then chainloads the guest's own bootloader over EFI. Under TCG the opposite is true: QEMU emulates the entire machine including M-mode, so OpenSBI has to be loaded with &lt;code&gt;-bios default&lt;/code&gt;. The same VM definition cannot serve both. I spent a while watching a TCG guest produce absolutely no output because I had carried the KVM arguments over unchanged, and with no M-mode firmware there was nothing to run the S-mode payload.&lt;/p&gt;
&lt;p&gt;What the guest sees is better than I expected. With &lt;code&gt;-cpu host&lt;/code&gt;, the Debian guest's ISA string comes through as:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;rv64imafdcv_zicbom_..._zvkned_zvknha_zvknhb_zvksed_zvksh_zvkt
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Those last few are the vector crypto extensions, dedicated instructions for AES, SHA-2, SM4 and SM3. They are why this board pushes 2.37 GB/s of AES-GCM where an older RISC-V board manages 21.7 MB/s. The guest is not seeing a sanitised baseline RISC-V core, it is seeing the X100's actual feature set, which means the AES-GCM throughput that made this board interesting in the first place is available inside a VM. That is the part of this that genuinely works well.&lt;/p&gt;
&lt;p&gt;The guest ISA does not carry &lt;code&gt;h&lt;/code&gt;, so there is no nested virtualization. That is expected and I would not have used it.&lt;/p&gt;
&lt;p&gt;I cannot tell you much about how many guests this board holds, because I never found out. Three reached a shell: Debian under KVM, FreeBSD and NetBSD under TCG. OpenBSD got as far as extracting &lt;code&gt;base78.tgz&lt;/code&gt; and never finished, because by then it was clear that every BSD here was going to be an emulated guest and I stopped all three rather than let them grind. With those four QEMU processes up, one of which was only an installer, the host sat at load 2.07 and 5 GB of 31 GB. That is not a capacity test and I am not going to dress it up as one. It says only that the board was nowhere near its limits when I gave up on the experiment.&lt;/p&gt;
&lt;h3&gt;Which kernel should you actually run&lt;/h3&gt;
&lt;p&gt;That leaves a question the first piece could not ask, because there was only one option. Now there are two, and neither wins outright.&lt;/p&gt;
&lt;p&gt;Bianbu 4.0.4 with the vendor 6.18.3 BSP compiles 13.4% faster, drives the internal 119 GB UFS, exposes cpufreq so the clock can be pinned at 2.2 GHz, reports seven thermal zones, and enumerates all sixteen cores with a documented way to reach the A100 cluster. It cannot load KVM.&lt;/p&gt;
&lt;p&gt;Ubuntu 26.10 with mainline 7.3.0 loads KVM and runs accelerated guests. It cannot use the internal storage, shows no clock or temperature at all, and pretends eight of the cores do not exist.&lt;/p&gt;
&lt;p&gt;If you bought this board to compile things, the vendor kernel is still the better machine and it is not close. If you bought it to run VMs, which I did, mainline is the only option and you pay for it in storage, visibility and cores.&lt;/p&gt;
&lt;p&gt;What makes that trade-off worse than it sounds is that the losses are not symmetric. A slower compile is an inconvenience. Losing the internal storage means the NVMe slot is no longer an expansion option, it is a requirement, and the board's advertised 128 GB becomes decorative. Losing cpufreq and thermal zones means you cannot tell whether a long job is throttling. And losing the A100 cluster removes the 60 TOPS that justify a large part of the \$1,175.09.&lt;/p&gt;
&lt;p&gt;I keep coming back to that number. The &lt;a href="https://tinycomputers.io/posts/spacemit-k3-pico-itx-review.html"&gt;first piece&lt;/a&gt; argued the price was defensible because you get 32 GB, a hypervisor extension and an AI engine. Two of those three now work. The AI engine is reachable only from a kernel that cannot virtualize, which means on any given boot you can have the feature you paid for or the feature you paid for, but not both.&lt;/p&gt;
&lt;h3&gt;So where does that leave it&lt;/h3&gt;
&lt;p&gt;I stopped the BSDs. Emulating RISC-V on a RISC-V host defeats the entire point of buying hardware with the hypervisor extension, and a TCG guest on this board is slower than the same guest on a laptop. They were worth building only to find out why they would not run, and that turned out to be the most interesting thing I learned all week.&lt;/p&gt;
&lt;p&gt;The honest summary is narrower than "KVM works":&lt;/p&gt;
&lt;p&gt;KVM works, for Linux guests. The K3 is a capable Linux hypervisor with a lot of memory. It is also, right now, a hostile host for the BSDs at the firmware level, it cannot use its own internal storage on a mainline kernel, and it hides half its cores from the only kernel that can virtualize properly.&lt;/p&gt;
&lt;p&gt;Every one of those is a software or firmware problem rather than a silicon one, which is the same conclusion I reached the first time. The difference is that the list is now specific enough to fix: grant &lt;code&gt;CY&lt;/code&gt; and &lt;code&gt;IR&lt;/code&gt; in &lt;code&gt;mcounteren&lt;/code&gt;, fill in the UFS regulators in the device tree, and describe the A100 cluster upstream.&lt;/p&gt;
&lt;h3&gt;One more piece to come&lt;/h3&gt;
&lt;p&gt;Two and a half weeks before this board arrived, I &lt;a href="https://tinycomputers.io/posts/would-you-pay-for-risc-v.html"&gt;costed a RISC-V rental business in public&lt;/a&gt;: two K3 Pico-ITX nodes in a 1U at a Miami colo, roughly \$47 to \$57 per node per month, and a question to readers about whether anyone would actually pay for it. The central pitch was that the hypervisor extension is the one thing you cannot rent from Scaleway or anybody else today.&lt;/p&gt;
&lt;p&gt;The best news is that the pitch survives. KVM works, so the differentiator is real rather than theoretical, and the estimate I published without owning the hardware turned out to describe the right machine. The design held up better than I did, too: that plan already budgeted a Raspberry Pi as the BMC holding a USB-UART console to each board, and NVMe drives at about \$120 the pair. Both of those turned out to be exactly the things this week proved you cannot run this board without.&lt;/p&gt;
&lt;p&gt;What changes is subtler and mostly unflattering. Renting virtual machines forces the mainline kernel, and on mainline the 128 GB of onboard storage in that \$399 board specification is dead weight, because the UFS controller never links. You are paying for storage you cannot use. The BSD finding removes a customer segment that a RISC-V rental should have been well placed to serve. And mainline reports no clock and no temperature at all, which means a tenant asking whether their node is throttling gets an honest shrug. A BMC can power-cycle a wedged board, but it cannot report numbers the kernel refuses to collect.&lt;/p&gt;
&lt;p&gt;There is one operational gap worth designing around. The BMC switches 12 V and watches the console, which covers a hung node. It does not cover firmware recovery, because entering flash mode on this board means holding a physical button while power is applied. That is a GPIO line and a bit of wiring rather than a flight to Miami, but it is not in the current design and I only know it matters because I spent this week needing it.&lt;/p&gt;
&lt;p&gt;I want a few more weeks of uptime before I redo those numbers. The next piece will be that arithmetic revisited by someone who now owns the hardware instead of estimating it.&lt;/p&gt;
&lt;p&gt;Caveats. The compile comparison has an unresolved 13% gap with a confirmed-identical CPU throughput on both sides; root storage differs between the two installs and is the leading suspect. Clocks could not be pinned or verified on mainline because no cpufreq policy is exposed. Crypto figures are not compared across installs because the OpenSSL version changed. The A100 cluster was not benchmarked because mainline does not enumerate it. The virtualization experiment was abandoned rather than completed: three guests reached a shell, OpenBSD's install was stopped part-way, and no attempt was made to find out how many guests the board will hold. All raw data is in the &lt;a href="https://github.com/ajokela/benchmark-sbcs"&gt;benchmark repository&lt;/a&gt;.&lt;/p&gt;</description><category>benchmarks</category><category>bianbu</category><category>bsd</category><category>firmware</category><category>freebsd</category><category>hardware review</category><category>hypervisor extension</category><category>k3</category><category>kvm</category><category>netbsd</category><category>openbsd</category><category>pico-itx</category><category>qemu</category><category>risc v</category><category>riscv64</category><category>rva23</category><category>single board computers</category><category>spacemit</category><category>spacemit a100</category><category>spacemit x100</category><category>ubuntu</category><category>virtualization</category><guid>https://tinycomputers.io/posts/spacemit-k3-ubuntu-kvm-follow-up.html</guid><pubDate>Sun, 27 Sep 2026 13:00:00 GMT</pubDate></item><item><title>The SpacemiT K3: RISC-V Finally Competes, and the Vendor Kernel Gets in the Way</title><link>https://tinycomputers.io/posts/spacemit-k3-pico-itx-review.html?utm_source=feed&amp;utm_medium=rss&amp;utm_campaign=rss</link><dc:creator>A.C. Jokela</dc:creator><description>&lt;div class="audio-widget"&gt;
&lt;div class="audio-widget-header"&gt;
&lt;span class="audio-widget-icon"&gt;🎧&lt;/span&gt;
&lt;span class="audio-widget-label"&gt;Listen to this article&lt;/span&gt;
&lt;/div&gt;
&lt;audio controls preload="metadata"&gt;
&lt;source src="https://tinycomputers.io/spacemit-k3-pico-itx-review_tts.mp3" type="audio/mpeg"&gt;
&lt;/source&gt;&lt;/audio&gt;
&lt;div class="audio-widget-footer"&gt;29 min · AI-generated narration&lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;Every RISC-V board I have reviewed here has needed an excuse. The &lt;a href="https://tinycomputers.io/posts/pine64-star64-riscv-review.html"&gt;Pine64 Star64&lt;/a&gt; compiles Rust slower than a quad Cortex-A53 from 2012. The &lt;a href="https://tinycomputers.io/posts/mangopi-mq-pro-riscv-review.html"&gt;MangoPi MQ Pro&lt;/a&gt; takes two hours and ten minutes to do what a Raspberry Pi 5 does in seventy-seven seconds. The &lt;a href="https://tinycomputers.io/posts/the-orangepi-rv2.html"&gt;Orange Pi RV2&lt;/a&gt; spends eight cores losing to four. The reviews all end the same way: buy it because it is RISC-V, not because it is good.&lt;/p&gt;
&lt;p&gt;The SpacemiT K3 Pico-ITX does not need that excuse. It compiles the benchmark in 161.80 seconds, which puts it seventh of thirteen boards on my bench and ahead of the Banana Pi CM5-Pro. It pushes 2,372 MB/s of AES-128-GCM, beating the Cortex-A76 in a Rockchip RK3588. On SHA-512 it is 1.72x faster than that A76. A single SpacemiT X100 core scores 94% of an A76 on sysbench.&lt;/p&gt;
&lt;p&gt;This is the first RISC-V machine I have tested that competes on the merits.&lt;/p&gt;
&lt;p&gt;It also cost \$1,175.09 delivered, cannot schedule a single job across more than 8 of its 16 cores, and cannot run a virtual machine at all, which is the specific thing I bought it for.&lt;/p&gt;
&lt;p&gt;&lt;img alt="The SpacemiT K3 retail box, black with white lettering reading RISC-V AI CPU K3, RVA23 Profile Chip, with the SpacemiT logo on the kraft sleeve behind it" src="https://tinycomputers.io/images/spacemit-k3/box-rva23.jpeg"&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;"RVA23 Profile Chip" on the box is the part that matters. RVA23 is the RISC-V application profile that mandates the vector extension and the vector crypto suite, which is exactly why this board's ISA string is so much richer than every other RISC-V machine on my bench.&lt;/em&gt;&lt;/p&gt;
&lt;h3&gt;What it cost&lt;/h3&gt;
&lt;p&gt;I am putting this near the top because every other review of frontier RISC-V hardware buries it.&lt;/p&gt;
&lt;p&gt;&lt;img alt="Cost breakdown: board \$889.00, shipping \$45.00, customs duty \$241.09, total \$1,175.09" src="https://tinycomputers.io/images/spacemit-k3/cost-breakdown.png"&gt;&lt;/p&gt;
&lt;p&gt;The board was \$889 for the 32 GB RAM and 128 GB storage configuration, \$45 shipping, and then \$241.09 in customs duty collected by DHL four days later. That duty is 27.1% on top of the order and appears on no spec sheet or product page.&lt;/p&gt;
&lt;p&gt;&lt;img alt="The shipping box as it arrived, wrapped in plastic with two DHL Express Worldwide waybills, origin Hong Kong, recipient details blacked out" src="https://tinycomputers.io/images/spacemit-k3/package-dhl.jpeg"&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Origin HKG, shipped by Firefly Technology out of Tsing Yi. Declared contents: "plastic main board for to drive display", 0.85 kg. That declaration is what the \$241.09 got assessed against.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;A &lt;a href="https://go.tinymachines.io/cxBdNQ"&gt;Raspberry Pi 5 with 8 GB&lt;/a&gt; currently sells for around \$200 on Amazon, not the \$80 I quoted in older reviews here. So the honest multiple is roughly 5.9x the price for a board with four times the RAM, twice the cores on paper, vector crypto, PCIe, an NVMe slot and a hypervisor extension. It is not a \$1,095 difference in value, but it is also not the 15x gouging that a stale MSRP comparison would suggest.&lt;/p&gt;
&lt;h3&gt;The hardware&lt;/h3&gt;
&lt;p&gt;&lt;img alt="SpacemiT K3 Pico-ITX seen from above under a clear acrylic cover, showing the SpacemiT logo silkscreen, a yellow coin-cell RTC battery, two M.2 slots, a SIM slot and an eDP connector" src="https://tinycomputers.io/images/spacemit-k3/board-top.jpeg"&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Pico-ITX, under the acrylic cover it ships with. Two M.2 slots, a coin-cell RTC, an eDP header, and MAC address stickers on the right.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="Port edge of the SpacemiT K3 showing two USB-C connectors, four USB-A ports in two stacks, a gigabit Ethernet jack and an SFP cage" src="https://tinycomputers.io/images/spacemit-k3/board-ports.jpeg"&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;The port edge: two USB-C, four USB-A, gigabit Ethernet, and an SFP cage on the right. Only the gigabit port had a link during testing.&lt;/em&gt;&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Component&lt;/th&gt;
&lt;th&gt;Specification&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;SoC&lt;/td&gt;
&lt;td&gt;SpacemiT K3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CPU&lt;/td&gt;
&lt;td&gt;16 cores enumerated: 8x Spacemit X100 @ 2.2 GHz, 8x Spacemit A100 @ 1.8 GHz&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ISA&lt;/td&gt;
&lt;td&gt;&lt;code&gt;rv64imafdcvh&lt;/code&gt; plus Zba/Zbb/Zbc/Zbs, V (vector, &lt;code&gt;vlen:256&lt;/code&gt;), H (hypervisor)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Vector crypto&lt;/td&gt;
&lt;td&gt;Zvkned, Zvknha, Zvknhb, Zvksed, Zvksh, Zvkg, Zvbb, Zvbc&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;RAM&lt;/td&gt;
&lt;td&gt;32 GB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Storage&lt;/td&gt;
&lt;td&gt;119 GB onboard UFS, plus an NVMe slot&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GPU&lt;/td&gt;
&lt;td&gt;PowerVR B-Series BXM-4-64 MC1, DRM nodes present&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Network&lt;/td&gt;
&lt;td&gt;Gigabit, link up on &lt;code&gt;end0&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OS as shipped&lt;/td&gt;
&lt;td&gt;Bianbu 4.0.4, kernel 6.18.3-generic&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;That ISA string is the most complete of any RISC-V board I have tested, and by a wide margin. Every previous one was &lt;code&gt;rv64imafdc&lt;/code&gt; with nothing above baseline. This one has vectors, bit manipulation, the full vector crypto suite, and the hypervisor extension.&lt;/p&gt;
&lt;p&gt;I parsed it with the &lt;code&gt;rv64&lt;/code&gt; prefix stripped before matching single letters, because a naive substring search finds the &lt;code&gt;v&lt;/code&gt; in &lt;code&gt;rv64&lt;/code&gt; and reports a vector unit that is not there. That mistake cost me an hour on the Star64.&lt;/p&gt;
&lt;p&gt;&lt;img alt="fastfetch output on the K3 showing Bianbu 4.0.4 riscv64, kernel 6.18.3-generic, 16 cores at 2.20 GHz, 31.31 GiB of RAM, a PowerVR B-Series BXM-4-64 GPU and a 1.79 TiB NVMe mounted at /srv" src="https://tinycomputers.io/images/spacemit-k3/fastfetch.png"&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;As shipped, plus the NVMe I added. Note the sixteen cores it reports, and hold that thought.&lt;/em&gt;&lt;/p&gt;
&lt;h3&gt;Compiling Rust&lt;/h3&gt;
&lt;p&gt;The workload is a clean release build of &lt;a href="https://github.com/ajokela/ballistics-engine"&gt;ballistics-engine&lt;/a&gt;, three runs after &lt;code&gt;cargo clean&lt;/code&gt;, in two tiers: the pinned tree at commit &lt;code&gt;2821bba&lt;/code&gt; that every archived fleet result used, and current &lt;code&gt;HEAD&lt;/code&gt; at &lt;code&gt;b0cfcd4&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Pinned tier (&lt;code&gt;2821bba&lt;/code&gt;, 16,639 LOC, 144 crates):&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Run&lt;/th&gt;
&lt;th&gt;Time&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;160.68 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;162.41 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;162.30 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Mean&lt;/td&gt;
&lt;td&gt;161.80 s (sigma 0.97, 0.60% CV)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;HEAD tier (&lt;code&gt;b0cfcd4&lt;/code&gt;, 155,867 LOC, 243 crates):&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Run&lt;/th&gt;
&lt;th&gt;Time&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;1271.27 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;1273.18 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;1271.06 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Mean&lt;/td&gt;
&lt;td&gt;1271.84 s (sigma 1.16, 0.09% CV)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;A 0.09% coefficient of variation across three twenty-one minute builds is the tightest result on my bench. Nothing on this board wobbles: the governor is &lt;code&gt;userspace&lt;/code&gt; pinned at maximum, both clusters hold their clocks, and there is no thermal headroom being negotiated.&lt;/p&gt;
&lt;p&gt;&lt;img alt="Two-panel benchmark chart. Left: Rust compile times across thirteen boards, with the SpacemiT K3's X100 cluster at 161.8 s in seventh place and its A100 cluster shown separately as a hatched bar at 342.8 s. Right: single-thread crypto throughput for the K3, a Cortex-A76 and a Pine64 Star64 across four algorithms" src="https://tinycomputers.io/images/spacemit-k3-benchmarks.png"&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Left: the pinned-tree fleet. The K3 appears twice because its two clusters are, in practice, two separate eight-core machines. The &lt;a href="https://go.tinymachines.io/mQAZZF"&gt;MangoPi MQ Pro&lt;/a&gt; is omitted at 7,824 s, which is 48x the next slowest board and would flatten the chart. Right: single-thread crypto throughput, linear scale, three platforms.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The generational comparison is the cleanest number here. The &lt;a href="https://go.tinymachines.io/453BQB"&gt;Orange Pi RV2&lt;/a&gt; runs SpacemiT's previous Ky X1 and takes 650.60 s on the same tree with the same rustc 1.98.1. The K3 does it in 161.80. That is 4.02x faster from the same vendor, one generation later.&lt;/p&gt;
&lt;p&gt;Against ARM it is a tie rather than a win. 161.80 s versus the &lt;a href="https://go.tinymachines.io/GNVHU7"&gt;Banana Pi CM5-Pro&lt;/a&gt;'s 167.15 s is a 3% margin, which I would not defend as a victory. But a RISC-V board landing within noise of an eight-core ARM part is new.&lt;/p&gt;
&lt;h3&gt;Cryptography, where it actually wins&lt;/h3&gt;
&lt;p&gt;Single-thread OpenSSL 3.5.5, 16 KB blocks:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Algorithm&lt;/th&gt;
&lt;th&gt;SpacemiT K3&lt;/th&gt;
&lt;th&gt;RK3588 Cortex-A76&lt;/th&gt;
&lt;th&gt;Pine64 Star64&lt;/th&gt;
&lt;th&gt;vs A76&lt;/th&gt;
&lt;th&gt;vs Star64&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;AES-128-GCM&lt;/td&gt;
&lt;td&gt;2372.7&lt;/td&gt;
&lt;td&gt;2185.7&lt;/td&gt;
&lt;td&gt;21.7&lt;/td&gt;
&lt;td&gt;1.09x&lt;/td&gt;
&lt;td&gt;109x&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AES-256-GCM&lt;/td&gt;
&lt;td&gt;1853.0&lt;/td&gt;
&lt;td&gt;1763.9&lt;/td&gt;
&lt;td&gt;17.9&lt;/td&gt;
&lt;td&gt;1.05x&lt;/td&gt;
&lt;td&gt;104x&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SHA-256&lt;/td&gt;
&lt;td&gt;1520.6&lt;/td&gt;
&lt;td&gt;1429.4&lt;/td&gt;
&lt;td&gt;35.4&lt;/td&gt;
&lt;td&gt;1.06x&lt;/td&gt;
&lt;td&gt;43x&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SHA-512&lt;/td&gt;
&lt;td&gt;646.8&lt;/td&gt;
&lt;td&gt;376.1&lt;/td&gt;
&lt;td&gt;63.5&lt;/td&gt;
&lt;td&gt;1.72x&lt;/td&gt;
&lt;td&gt;10x&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AES-128-CBC&lt;/td&gt;
&lt;td&gt;1622.7&lt;/td&gt;
&lt;td&gt;1831.8&lt;/td&gt;
&lt;td&gt;31.4&lt;/td&gt;
&lt;td&gt;0.89x&lt;/td&gt;
&lt;td&gt;52x&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ChaCha20-Poly1305&lt;/td&gt;
&lt;td&gt;372.4&lt;/td&gt;
&lt;td&gt;674.4&lt;/td&gt;
&lt;td&gt;51.0&lt;/td&gt;
&lt;td&gt;0.55x&lt;/td&gt;
&lt;td&gt;7x&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;A RISC-V board beating a Cortex-A76, the one in an &lt;a href="https://go.tinymachines.io/wvZnMf"&gt;Orange Pi 5 Max&lt;/a&gt;, on AES-GCM, SHA-256 and SHA-512 has not happened before on this bench.&lt;/p&gt;
&lt;p&gt;Isolating the extensions makes the mechanism obvious. Restricting &lt;code&gt;OPENSSL_riscvcap&lt;/code&gt; to plain &lt;code&gt;rv64gc&lt;/code&gt; disables the vector crypto fast paths:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Algorithm&lt;/th&gt;
&lt;th&gt;Full detection&lt;/th&gt;
&lt;th&gt;&lt;code&gt;rv64gc&lt;/code&gt; only&lt;/th&gt;
&lt;th&gt;Gain&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;AES-128-GCM&lt;/td&gt;
&lt;td&gt;2373.3 MB/s&lt;/td&gt;
&lt;td&gt;68.8 MB/s&lt;/td&gt;
&lt;td&gt;34.5x&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AES-256-GCM&lt;/td&gt;
&lt;td&gt;1854.3 MB/s&lt;/td&gt;
&lt;td&gt;56.7 MB/s&lt;/td&gt;
&lt;td&gt;32.7x&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SHA-256&lt;/td&gt;
&lt;td&gt;1520.0 MB/s&lt;/td&gt;
&lt;td&gt;146.1 MB/s&lt;/td&gt;
&lt;td&gt;10.4x&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SHA-512&lt;/td&gt;
&lt;td&gt;646.8 MB/s&lt;/td&gt;
&lt;td&gt;270.6 MB/s&lt;/td&gt;
&lt;td&gt;2.4x&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Strip the extensions and this board performs like every other RISC-V machine I have tested. That 68.8 MB/s figure is in the same league as the Star64's 21.7. The silicon is not what changed; the instruction set is.&lt;/p&gt;
&lt;p&gt;The two losses are informative rather than embarrassing. Zvkned and Zvknh accelerate AES and SHA specifically, so ChaCha20 gets nothing from them and falls behind a chip whose general SIMD is better tuned in OpenSSL. If you are terminating TLS on this board, prefer AES-GCM, which is the opposite of the advice I gave for the Star64.&lt;/p&gt;
&lt;p&gt;Asymmetric work is unremarkable: RSA-2048 at 245 signs/s, ECDSA P-256 at 4,437 signs/s. Nobody accelerates those in silicon here.&lt;/p&gt;
&lt;h3&gt;You get eight cores at a time, never sixteen&lt;/h3&gt;
&lt;p&gt;This is the finding that changes how you should read every number above. I got it wrong twice before I got it right, so here is the whole path.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;/proc/cpuinfo&lt;/code&gt; lists sixteen processors. Eight report &lt;code&gt;model name: Spacemit(R) X100&lt;/code&gt; and eight report &lt;code&gt;Spacemit(R) A100&lt;/code&gt;, with distinct &lt;code&gt;marchid&lt;/code&gt; and &lt;code&gt;mimpid&lt;/code&gt; values. The boot log says &lt;code&gt;smp: Brought up 1 node, 16 CPUs&lt;/code&gt;. The &lt;code&gt;possible&lt;/code&gt;, &lt;code&gt;present&lt;/code&gt; and &lt;code&gt;online&lt;/code&gt; masks all read &lt;code&gt;0-15&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;And then:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="n"&gt;nproc&lt;/span&gt;&lt;span class="w"&gt;                          &lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;8&lt;/span&gt;
&lt;span class="n"&gt;PID&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Cpus_allowed_list&lt;/span&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;7&lt;/span&gt;
&lt;span class="n"&gt;taskset&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;anything&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;failed&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;to&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kd"&gt;set&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;affinity&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Invalid&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;argument&lt;/span&gt;
&lt;span class="n"&gt;cpu8&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;jiffies&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;after&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;burn&lt;/span&gt;&lt;span class="w"&gt;   &lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;
&lt;span class="n"&gt;cpu0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;jiffies&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;after&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;burn&lt;/span&gt;&lt;span class="w"&gt;   &lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;301&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;My first reading was that the vendor kernel was hiding half the machine. My second reading, after actually looking up what an A100 is, was that the A100 cluster is a 60 TOPS AI engine that merely happens to be built from RISC-V harts, so &lt;code&gt;nproc&lt;/code&gt; returning 8 is correct and there is nothing to complain about.&lt;/p&gt;
&lt;p&gt;Both readings are wrong, and the truth is more annoying than either.&lt;/p&gt;
&lt;p&gt;The A100 cores are reachable. You write a PID to &lt;code&gt;/proc/set_ai_thread&lt;/code&gt;, which is world-writable, and that thread's affinity mask flips from &lt;code&gt;0-7&lt;/code&gt; to &lt;code&gt;8-15&lt;/code&gt;. The setting is inherited by children, so it is enough to do it once in a shell and then run whatever you like. &lt;code&gt;taskset&lt;/code&gt; works normally afterwards, within the new mask. That is why plain &lt;code&gt;taskset -c 8&lt;/code&gt; fails as root: the affinity mask is not the door, but there is a door.&lt;/p&gt;
&lt;p&gt;And once you are through it, the A100 cores run ordinary code perfectly well. Not AI kernels. Not vector math. &lt;code&gt;rustc&lt;/code&gt;.&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;Rust clean release build, pinned tree 2821bba, cargo -j8, n=2:

  X100 cluster (cpu0-7,  2.2 GHz) : 161.58 s, 161.00 s   mean 161.29 s
  A100 cluster (cpu8-15, 1.8 GHz) : 344.32 s, 341.23 s   mean 342.78 s
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;The A100 cluster compiles the same tree 2.13x slower than the X100 cluster. Correct for the 2.2 versus 1.8 GHz clock difference and the A100 cores land at 57.5% of X100 per-clock throughput. sysbench, a completely different workload, puts the same figure at 57.4% (428 events/s against 912 single-threaded, 3,430 against 7,245 across eight). Two unrelated benchmarks agreeing to a tenth of a point is about as solid as this kind of measurement gets.&lt;/p&gt;
&lt;p&gt;So these are not accelerator lanes that cannot run general code. They are eight real, if unexceptional, RISC-V application cores, roughly 57% the per-clock performance of the big ones, that SpacemiT has tuned for AI work by giving them 1024-bit vectors instead of the X100's 256-bit.&lt;/p&gt;
&lt;p&gt;Here is the actual problem. You cannot have both clusters at once. After opting in, &lt;code&gt;taskset -pc 0-15&lt;/code&gt; fails:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="n"&gt;taskset&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;failed&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;to&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kd"&gt;set&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;pid&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;56055&lt;/span&gt;&lt;span class="s1"&gt;'s affinity: Invalid argument&lt;/span&gt;
&lt;span class="s1"&gt;pid 56055'&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;affinity&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;list&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;15&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;&lt;code&gt;0-7&lt;/code&gt; or &lt;code&gt;8-15&lt;/code&gt;. Never &lt;code&gt;0-15&lt;/code&gt;. No process on this machine can be scheduled across all sixteen cores, so no single job can use the whole chip. That is why the compile pinned to &lt;code&gt;cpu0-7&lt;/code&gt; finished in 161.14 s against 161.80 s for the nominally sixteen-core run: the nominally sixteen-core run was always an eight-core run, because sixteen-core runs do not exist here.&lt;/p&gt;
&lt;p&gt;What that costs is easy to bound. Summing the two clusters' throughput puts a hypothetical combined build at about 110 seconds, roughly 1.47x faster than the X100 cluster alone. Treat that as a ceiling rather than a prediction, because this build's serialised LTO link would eat into it and cross-cluster scheduling on a chip this asymmetric is not free. But the gap between 161 s and something near 110 s is real compute, sitting in the same coherence domain, fenced off by software.&lt;/p&gt;
&lt;p&gt;I am not sure whether the fence is deliberate product design, a limitation of the vendor scheduler patches, or a hardware constraint I cannot see from userspace. SpacemiT's marketing splits the chip into "130K DMIPS of general-purpose compute and 60 TOPS of AI compute", which suggests they think of the two clusters as separate products that happen to share a die. That is a defensible way to build a chip. It is a poor way to describe one, because nothing on the board, in &lt;code&gt;fastfetch&lt;/code&gt;, or in the shipped OS tells you any of this. You find out by pinning a compile to &lt;code&gt;cpu8-15&lt;/code&gt; and getting a 0.016 second result.&lt;/p&gt;
&lt;p&gt;The one A100 claim I still cannot check is the interesting one: SpacemiT's IME2 llama.cpp build reportedly puts the A100 cluster ahead of X100 on token generation, which is the entire point of those 1024-bit vectors. That needs their runtime and a proper model, and it belongs in its own piece.&lt;/p&gt;
&lt;p&gt;Geekbench makes the same mistake I made first, which is some comfort. I uploaded a run as &lt;a href="https://browser.geekbench.com/v7/cpu/466791"&gt;Geekbench 7 result 466791&lt;/a&gt;: 363 single-core, 2019 multi-core under Geekbench 7.0.0 Preview for Linux RISC-V. Its system panel reports "1 Processor, 16 Cores", labels the whole chip &lt;code&gt;Spacemit(R) X100&lt;/code&gt;, and then gives up with "Cluster 1: 0 Cores". That is detection logic meeting a topology it has no model for.&lt;/p&gt;
&lt;p&gt;The scores contradict the topology it printed. Multi-core comes in at 5.56x single-core, and the Clang subtest at 6.43x. Those are eight-core scaling factors, measured on the eight cores Geekbench was allowed to touch.&lt;/p&gt;
&lt;h3&gt;The benchmark's own blind spot&lt;/h3&gt;
&lt;p&gt;While measuring this I found a flaw in my own workload that applies to every board I have tested.&lt;/p&gt;
&lt;p&gt;The project's release profile sets &lt;code&gt;lto = true&lt;/code&gt; and &lt;code&gt;codegen-units = 1&lt;/code&gt;, which forces the final crate through a single-threaded link. Parallel efficiency on the K3 falls from 46% on the pinned tree to 22% on HEAD, because HEAD's final crate is much larger and the serial portion grows faster than the parallel one.&lt;/p&gt;
&lt;p&gt;That penalises wide machines. A four-core board loses little to a serial link; an eight or sixteen-core board idles through it. Every board ran the identical profile so the fleet numbers remain comparable to each other, but they measure "compile this specific LTO-heavy project" rather than general compile throughput. The K3 is the first machine wide enough to make that visible, and I should have caught it sooner.&lt;/p&gt;
&lt;h3&gt;Thermals, memory, storage&lt;/h3&gt;
&lt;p&gt;Nothing dramatic, which is itself worth reporting.&lt;/p&gt;
&lt;p&gt;Seven thermal zones sit at 51 to 56 C idle. Under 120 seconds of sixteen-worker &lt;code&gt;stress-ng&lt;/code&gt; the hottest cluster peaked at 65 C and both clusters held full clock throughout. No throttling.&lt;/p&gt;
&lt;p&gt;&lt;img alt="Underside of the SpacemiT K3 showing a large aluminium heatsink with an integrated blower fan bolted over the board" src="https://tinycomputers.io/images/spacemit-k3/board-cooler.jpeg"&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;The reason the thermal numbers look good: an aluminium heatsink with an integrated blower fan, bolted to the board. No other RISC-V board in this comparison ships with active cooling.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Worth being precise about why: this board is actively cooled. It ships with a substantial aluminium heatsink and a blower fan bolted to the underside, which is not something any other RISC-V board in this comparison has. Holding 65 C under full load is a good result, but it is a good result with a fan, not in spite of having none.&lt;/p&gt;
&lt;p&gt;Memory measured 32,468 MB/s read and 23,768 MB/s write. The onboard UFS does 903 MB/s buffered read via hdparm, 238 MB/s write and 932 MB/s read by &lt;code&gt;dd&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;I also fitted a &lt;a href="https://go.tinymachines.io/wd-black-sn850x-2tb"&gt;WD_BLACK SN850X 2 TB&lt;/a&gt; in the NVMe slot, which does 1.0 GB/s write and 2.1 GB/s read. That is a different universe from the microSD-bound RISC-V boards I have reviewed, where the Star64 managed 22.4 MB/s because its controller never leaves SD high-speed mode.&lt;/p&gt;
&lt;h3&gt;KVM is broken&lt;/h3&gt;
&lt;p&gt;I bought this board to run virtual machines. Thirty-two gigabytes of RAM and a hypervisor extension is a credible small virtualization host, and RISC-V finally having RVH 1.0 with AIA and an IOMMU is the reason to care about the K3 over anything else on this list.&lt;/p&gt;
&lt;p&gt;It does not work.&lt;/p&gt;
&lt;p&gt;The ISA string advertises &lt;code&gt;h&lt;/code&gt;. The kernel ships &lt;code&gt;CONFIG_KVM=m&lt;/code&gt;. Loading the module produces a kernel oops:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="n"&gt;Unable&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;to&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;handle&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;kernel&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;paging&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;virtual&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;address&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ffffffff81a0f1c0&lt;/span&gt;
&lt;span class="n"&gt;Oops&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="c1"&gt;#1]&lt;/span&gt;
&lt;span class="n"&gt;CPU&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;UID&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;PID&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;55989&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Comm&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;modprobe&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Not&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;tainted&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;6.18&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;generic&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="c1"&gt;#1.0.5.4&lt;/span&gt;
&lt;span class="n"&gt;Hardware&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;SpacemiT&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;K3&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Pico&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ITX&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;DT&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;epc&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;jump_label_module_notify&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="mh"&gt;0x1de&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mh"&gt;0x368&lt;/span&gt;
&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="n"&gt;load_module&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="mh"&gt;0x15d4&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;blocking_notifier_call_chain_robust&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;notifier_call_chain&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;The fault is in the static-key relocation path during module load, so &lt;code&gt;/dev/kvm&lt;/code&gt; is never created and no virtual machine can start. This is a software defect in Bianbu's kernel build, not a hardware limitation: SpacemiT's own materials describe RVH 1.0, AIA and IOMMU support, and K3 KVM work has been landing upstream.&lt;/p&gt;
&lt;p&gt;Do not buy this board expecting to run VMs on the image it ships with.&lt;/p&gt;
&lt;h3&gt;Who this is for&lt;/h3&gt;
&lt;p&gt;Buy it if you are doing RISC-V platform work and need real hardware that does not make you wait: a build machine, a CI runner, a place to port and profile software where the compile times are tolerable and the crypto is genuinely fast. On those terms it is the first RISC-V board I would actually choose rather than tolerate.&lt;/p&gt;
&lt;p&gt;Do not buy it if you want the virtualization host its spec sheet promises, at least not yet, and not on Bianbu. Do not buy it as a compile box either: a \$200 Raspberry Pi 5 does the same tree 2.11x faster, and nothing here changes that. The case for the price is the 32 GB of RAM and the 60 TOPS AI engine, and this review tests neither.&lt;/p&gt;
&lt;p&gt;The honest summary is that SpacemiT built genuinely competitive silicon and shipped it with a kernel that cannot load KVM. The hardware is ready. The software is not, and the documentation is worse than the software.&lt;/p&gt;
&lt;h3&gt;What is broken, restated plainly&lt;/h3&gt;
&lt;p&gt;Because these are the things that will cost you time if you buy one:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;KVM does not work on the SpacemiT-provided kernel. &lt;code&gt;modprobe kvm&lt;/code&gt; oopses in &lt;code&gt;jump_label_module_notify&lt;/code&gt; on Bianbu 4.0.4 with kernel 6.18.3-generic &lt;code&gt;#1.0.5.4&lt;/code&gt;. The hardware supports RVH 1.0; the shipped kernel cannot use it. If virtualization is why you are buying this board, you cannot use the image it arrives with.&lt;/li&gt;
&lt;li&gt;No process can use more than 8 of the 16 cores. The A100 cluster is reachable by writing a PID to &lt;code&gt;/proc/set_ai_thread&lt;/code&gt;, and those cores run ordinary code at 57.5% of X100 per-clock throughput. But the mask is &lt;code&gt;0-7&lt;/code&gt; or &lt;code&gt;8-15&lt;/code&gt;, never &lt;code&gt;0-15&lt;/code&gt;, so the whole chip is never available to one job. Every other benchmark here was produced by the eight X100 cores.&lt;/li&gt;
&lt;li&gt;A newer BSP kernel did not help. I installed &lt;code&gt;6.18.3-1.0.8.4&lt;/code&gt; from the porting repo and tried to boot it with kexec. The board did not come back and needed a power cycle. Notably, kexec also failed with a kernel that unquestionably has full K3 support, which suggests kexec itself is unreliable on this vendor firmware rather than the kernel being at fault.&lt;/li&gt;
&lt;li&gt;Ubuntu's generic 7.0.0 kernel is not a workaround. It carries one &lt;code&gt;spacemit&lt;/code&gt; config entry against the BSP's sixty-six, ships no K3 device trees, and lacks the &lt;code&gt;dwmac-spacemit-ethqos&lt;/code&gt; driver this board's network port needs. Booting it would produce an unreachable machine.&lt;/li&gt;
&lt;li&gt;The customs duty is real. \$241.09 on a \$934 order, payable on delivery.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;A follow-up is coming&lt;/h3&gt;
&lt;p&gt;Canonical officially supports the SpacemiT K3 starting with Ubuntu 26.10 "Stonking Stingray", and that is the interesting thread to pull. The supported path replaces SpacemiT's U-Boot with EDK2 UEFI firmware, flashed over fastboot with the board in FDL mode, and then installs Ubuntu from a USB stick.&lt;/p&gt;
&lt;p&gt;The reason I think it will matter: Ubuntu 26.10 ships kernel 7.3.0, and the mainline SpacemiT device tree pull request that adds K3 support was titled &lt;em&gt;RISC-V SpacemiT Devicetrees for v7.3&lt;/em&gt;. That is the first kernel where this board's support is upstream rather than carried in a vendor tree. It is the obvious candidate to fix the KVM oops, which is a kernel-side failure rather than a silicon one.&lt;/p&gt;
&lt;p&gt;I have the 26.10 daily image written to a USB stick and the flashing procedure mapped out. The next piece will cover whether official Ubuntu turns this from a fast compile box into the virtualization host it was supposed to be, and whether a mainline kernel lets one process schedule across all sixteen cores instead of eight.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;By the numbers:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Rust clean release build, pinned tree (&lt;code&gt;2821bba&lt;/code&gt;, 16,639 LOC): 161.80 s mean, 7th of 13 on my bench&lt;/li&gt;
&lt;li&gt;Rust clean release build, current tree (&lt;code&gt;b0cfcd4&lt;/code&gt;, 155,867 LOC): 1271.84 s mean, 0.09% CV&lt;/li&gt;
&lt;li&gt;vs SpacemiT's own previous generation: 4.02x faster than the Ky X1 in the Orange Pi RV2&lt;/li&gt;
&lt;li&gt;Single X100 core: 911 sysbench events/s, 94% of a Cortex-A76 at 2.35 GHz&lt;/li&gt;
&lt;li&gt;Geekbench 7: 363 single-core, 2019 multi-core (&lt;a href="https://browser.geekbench.com/v7/cpu/466791"&gt;result 466791&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;AES-128-GCM 2372.7 MB/s, ahead of a Cortex-A76 and 109x the Pine64 Star64&lt;/li&gt;
&lt;li&gt;Vector crypto contribution: 34.5x on AES-128-GCM, 10.4x on SHA-256&lt;/li&gt;
&lt;li&gt;Cores usable by one process: 8 of 16, either cluster but never both&lt;/li&gt;
&lt;li&gt;A100 cluster on the same compile: 342.78 s against X100's 161.29 s, 57.5% of X100 per clock&lt;/li&gt;
&lt;li&gt;KVM: broken, kernel oops on module load&lt;/li&gt;
&lt;li&gt;Thermals: 51 C idle, 65 C peak under sixteen-worker load, no throttling&lt;/li&gt;
&lt;li&gt;NVMe: 1.0 GB/s write, 2.1 GB/s read&lt;/li&gt;
&lt;li&gt;Cost: \$1,175.09 delivered, including \$241.09 customs duty&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Caveats. Every figure except the A100 compile and sysbench runs comes from the eight X100 cores. The A100 numbers are n=2 on the compile and single runs on sysbench. I did not test the A100 cluster on AI workloads at all, which is what it exists for, so its 60 TOPS rating remains SpacemiT's number rather than a measurement of mine. The compile workload uses &lt;code&gt;lto = true&lt;/code&gt; and &lt;code&gt;codegen-units = 1&lt;/code&gt;, which serialises the final link and understates wide machines. Commit &lt;code&gt;2821bba&lt;/code&gt; predates the project having a &lt;code&gt;Cargo.lock&lt;/code&gt;, so dependency versions resolve fresh. Network throughput was not measured. The sysbench comparison against the Cortex-A76 uses version 1.0.20 on both boards; the Star64 shipped 0.4.12 and its sysbench figures are not comparable to either.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;Review Date: September 25, 2026&lt;/p&gt;
&lt;p&gt;Hardware Tested: SpacemiT K3 Pico-ITX, 32 GB RAM, 128 GB UFS, WD_BLACK SN850X 2 TB NVMe added&lt;/p&gt;
&lt;p&gt;OS Tested: Bianbu 4.0.4, kernel 6.18.3-generic &lt;code&gt;#1.0.5.4&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Benchmark Workload: &lt;a href="https://github.com/ajokela/ballistics-engine"&gt;ballistics-engine&lt;/a&gt; clean release builds at commits &lt;code&gt;2821bba&lt;/code&gt; and &lt;code&gt;b0cfcd4&lt;/code&gt;, rustc 1.98.1&lt;/p&gt;
&lt;p&gt;Conclusion: The first RISC-V board that competes with ARM on performance rather than on novelty, sold at a price that is defensible only if you need what it uniquely offers, and shipped with a kernel that disables half its cores and cannot start a virtual machine.&lt;/p&gt;</description><category>benchmarks</category><category>bianbu</category><category>hardware review</category><category>hypervisor extension</category><category>k3</category><category>kvm</category><category>openssl</category><category>pico-itx</category><category>risc v</category><category>riscv64</category><category>rust compilation</category><category>rva23</category><category>rvv</category><category>single board computers</category><category>spacemit</category><category>spacemit a100</category><category>spacemit x100</category><category>ubuntu</category><category>vector crypto</category><category>virtualization</category><guid>https://tinycomputers.io/posts/spacemit-k3-pico-itx-review.html</guid><pubDate>Fri, 25 Sep 2026 13:00:00 GMT</pubDate></item><item><title>The MangoPi MQ Pro: One RISC-V Core, Two Hours, and What That Actually Proves</title><link>https://tinycomputers.io/posts/mangopi-mq-pro-riscv-review.html?utm_source=feed&amp;utm_medium=rss&amp;utm_campaign=rss</link><dc:creator>A.C. Jokela</dc:creator><description>&lt;div class="audio-widget"&gt;
&lt;div class="audio-widget-header"&gt;
&lt;span class="audio-widget-icon"&gt;🎧&lt;/span&gt;
&lt;span class="audio-widget-label"&gt;Listen to this article&lt;/span&gt;
&lt;/div&gt;
&lt;audio controls preload="metadata"&gt;
&lt;source src="https://tinycomputers.io/mangopi-mq-pro-riscv-review_tts.mp3" type="audio/mpeg"&gt;
&lt;/source&gt;&lt;/audio&gt;
&lt;div class="audio-widget-footer"&gt;19 min · AI-generated narration&lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;The MangoPi MQ Pro compiled my benchmark in &lt;strong&gt;7,824 seconds&lt;/strong&gt;. Two hours and ten minutes for a 16,639-line Rust project that a NanoPC-T6N finishes in 52.55 seconds. That is 149 times slower, and it puts the MangoPi last of the twelve boards on my bench by a margin larger than the entire spread of the other eleven.&lt;/p&gt;
&lt;p&gt;That number is not the reason to read about this board.&lt;/p&gt;
&lt;p&gt;Three other things came out of the run, and each one contradicted what I expected going in. Per core, this chip is only 4.2x behind the SiFive U74 in the &lt;a href="https://tinycomputers.io/posts/pine64-star64-riscv-review.html"&gt;Pine64 Star64&lt;/a&gt;, so most of that 149x is core count rather than core quality. Its 486 MB of RAM, which I was sure would be the thing that killed the build, never became the bottleneck at all, and the reason is counterintuitive. And getting a Rust toolchain onto the board in the first place was the hard part, harder than the two-hour compile, for a reason that has nothing to do with performance.&lt;/p&gt;
&lt;h3&gt;The hardware&lt;/h3&gt;
&lt;p&gt;&lt;img alt="MangoPi MQ Pro powered on, a magenta Raspberry Pi Zero sized board with the Allwinner D1-H SoC at center, an Fn-Link 6223A-SRD wireless module, a 32 GB microSD card inserted, mini-HDMI and two USB-C ports, a partially populated 40-pin header, and a lit green power LED" src="https://tinycomputers.io/images/mangopi-mq-pro/IMG_4643.jpeg"&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Running. The D1-H is the bare die at center, unlidded and without a heatsink, which is all it needs: this board completed a two hour ten minute compile without passing 50 °C. The 32 GB card is the one the benchmark ran from, and the whole thing is Raspberry Pi Zero sized.&lt;/em&gt;&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Component&lt;/th&gt;
&lt;th&gt;Specification&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;SoC&lt;/td&gt;
&lt;td&gt;Allwinner &lt;strong&gt;D1&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CPU&lt;/td&gt;
&lt;td&gt;1x T-Head &lt;strong&gt;C906&lt;/strong&gt;, single core, no cpufreq&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ISA&lt;/td&gt;
&lt;td&gt;&lt;code&gt;rv64imafdc_zicntr_zicsr_zifencei_zihpm_zca_zcd&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;RAM&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;486 MB&lt;/strong&gt; usable&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Storage&lt;/td&gt;
&lt;td&gt;32 GB microSD&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Host OS&lt;/td&gt;
&lt;td&gt;OpenWrt 25.12.5, kernel 6.12.94&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Idle temp&lt;/td&gt;
&lt;td&gt;44.7 °C&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Two entries decide everything that follows. The core count is &lt;strong&gt;one&lt;/strong&gt;, which is not a configuration choice or a boot-time limitation but the whole chip: &lt;code&gt;/proc/cpuinfo&lt;/code&gt; lists &lt;code&gt;processor : 0&lt;/code&gt; and stops. And the ISA string is RV64GC plus six &lt;code&gt;Z&lt;/code&gt; extensions that are all counters, CSRs, fences and compressed-instruction variants. No &lt;code&gt;V&lt;/code&gt;, so no vector unit. No &lt;code&gt;K&lt;/code&gt;, so no scalar crypto.&lt;/p&gt;
&lt;p&gt;I checked that ISA string with the &lt;code&gt;rv64&lt;/code&gt; prefix stripped before matching, because a naive substring search for &lt;code&gt;v&lt;/code&gt; finds the &lt;code&gt;v&lt;/code&gt; in &lt;code&gt;rv64&lt;/code&gt; and cheerfully reports a vector unit that does not exist. That mistake cost me an hour on the Star64 review and I am not repeating it.&lt;/p&gt;
&lt;p&gt;The C906 does have RVV 0.7.1 in silicon, a draft vector extension that predates the ratified 1.0 spec. The kernel does not advertise it, no toolchain targets it usefully, and nothing in a Rust compile would touch it regardless. Treat it as absent.&lt;/p&gt;
&lt;h3&gt;The part that was actually hard&lt;/h3&gt;
&lt;p&gt;The board runs OpenWrt. That is a reasonable choice for a 486 MB router-class SoC, and it is also why the standard benchmark would not run.&lt;/p&gt;
&lt;p&gt;OpenWrt is musl. There is a &lt;code&gt;/lib/ld-musl-riscv64.so.1&lt;/code&gt; and there is no glibc loader anywhere on the system. rustup distributes &lt;code&gt;riscv64gc-unknown-linux-musl&lt;/code&gt; as a &lt;em&gt;target&lt;/em&gt;, meaning something you cross-compile &lt;em&gt;to&lt;/em&gt;, but not as a &lt;em&gt;host&lt;/em&gt;, meaning there are no prebuilt compiler binaries that run on a musl riscv64 machine. OpenWrt's package repository has &lt;code&gt;gcc&lt;/code&gt;, &lt;code&gt;git&lt;/code&gt;, &lt;code&gt;make&lt;/code&gt; and 10,503 other things, but no &lt;code&gt;rust&lt;/code&gt; and no &lt;code&gt;cargo&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;So the options were: cross-bootstrap &lt;code&gt;rustc&lt;/code&gt; itself for a musl host, which is a multi-hour &lt;code&gt;x.py&lt;/code&gt; build on a separate machine and fragile in ways that would have eaten the day; reflash the board to Debian and lose the OpenWrt install; or supply glibc some other way.&lt;/p&gt;
&lt;p&gt;I supplied glibc some other way. The 32 GB card had 30.8 GB of unallocated space sitting after the 109 MB OpenWrt root, so I created a third partition there, put a Debian trixie riscv64 rootfs on it, and chrooted in. OpenWrt was never modified. It still owns &lt;code&gt;mmcblk0p2&lt;/code&gt; and still boots. The chroot is native execution, not emulation: &lt;code&gt;uname -m&lt;/code&gt; inside it returns &lt;code&gt;riscv64&lt;/code&gt; and the binaries are riscv64 ELFs running on the C906.&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;Host OS : OpenWrt 25.12.5   kernel 6.12.94
Chroot  : Debian GNU/Linux 13 (trixie)
rustc 1.98.1 (48a229cea 2026-09-01)
Default host: riscv64gc-unknown-linux-gnu
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;That rustc version matters more than it looks. It is byte-for-byte the same compiler the Star64 and the &lt;a href="https://tinycomputers.io/posts/milk-v-mars-review.html"&gt;Milk-V Mars&lt;/a&gt; ran. Every cross-board comparison in this fleet normally carries a "different toolchain version, treat the margin as directional" caveat. This one does not.&lt;/p&gt;
&lt;p&gt;I also gave it a 6 GB swapfile on the new partition and set &lt;code&gt;vm.swappiness=60&lt;/code&gt;. On the Star64 I added swap as insurance and it went completely unused. Here I was certain it would be load-bearing. I was wrong about that too, and I will come back to it.&lt;/p&gt;
&lt;h3&gt;The result&lt;/h3&gt;
&lt;p&gt;Pinned tree &lt;code&gt;2821bba&lt;/code&gt;: 43 source files, 16,639 lines, 144 crates. Three runs after &lt;code&gt;cargo clean&lt;/code&gt;, same as every other board.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Run&lt;/th&gt;
&lt;th&gt;Time&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;7,856 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;7,839 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;7,777 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Mean&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;7,824 s&lt;/strong&gt; (2 h 10 min, σ 41.6 s, &lt;strong&gt;0.53% CV&lt;/strong&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The warm-up build came in at 7,864 seconds, within 0.51% of the timed mean. A half-percent coefficient of variation across three two-hour builds is tighter than most of the fast boards manage, which tells you there is nothing dynamic happening on this chip at all: fixed clock, no boost, no thermal headroom being negotiated, no scheduler deciding anything. It just grinds.&lt;/p&gt;
&lt;p&gt;I did not attempt the current-HEAD tier. That tree is 155,867 lines and 243 crates, roughly nine times the pinned one, and the Star64 took 6.36x longer on it. Extrapolating puts the MangoPi somewhere near fourteen hours per run, three runs deep. There is no question worth answering that badly.&lt;/p&gt;
&lt;h4&gt;Where it lands&lt;/h4&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;#&lt;/th&gt;
&lt;th&gt;System&lt;/th&gt;
&lt;th&gt;SoC&lt;/th&gt;
&lt;th&gt;Cores&lt;/th&gt;
&lt;th&gt;Arch&lt;/th&gt;
&lt;th&gt;Mean&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;&lt;a href="https://tinycomputers.io/posts/friendlyelec-nanopc-t6n-review.html"&gt;NanoPC-T6N&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Rockchip RK3588&lt;/td&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;arm64&lt;/td&gt;
&lt;td&gt;52.55 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;&lt;a href="https://tinycomputers.io/posts/raspberry-pi-compute-module-5-review.html"&gt;Raspberry Pi 5&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;BCM2712&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;arm64&lt;/td&gt;
&lt;td&gt;76.65 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;&lt;a href="https://tinycomputers.io/posts/freebsd-on-a-2011-macbook-pro.html"&gt;MacBookPro8,1 (FreeBSD)&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Core i5-2435M&lt;/td&gt;
&lt;td&gt;2C/4T&lt;/td&gt;
&lt;td&gt;x86_64&lt;/td&gt;
&lt;td&gt;131.00 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;&lt;a href="https://tinycomputers.io/posts/horizon-robotics-x3-cm-review.html"&gt;Horizon X3 CM&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Sunrise X3 (A53)&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;arm64&lt;/td&gt;
&lt;td&gt;378.81 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;9&lt;/td&gt;
&lt;td&gt;&lt;a href="https://tinycomputers.io/posts/milk-v-mars-review.html"&gt;Milk-V Mars&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;StarFive JH7110&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;riscv64&lt;/td&gt;
&lt;td&gt;458.00 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;td&gt;&lt;a href="https://tinycomputers.io/posts/pine64-star64-riscv-review.html"&gt;Pine64 Star64&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;StarFive JH7110&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;riscv64&lt;/td&gt;
&lt;td&gt;461.28 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;11&lt;/td&gt;
&lt;td&gt;&lt;a href="https://tinycomputers.io/posts/the-orangepi-rv2.html"&gt;Orange Pi RV2&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Ky X1&lt;/td&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;riscv64&lt;/td&gt;
&lt;td&gt;650.60 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;12&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;MangoPi MQ Pro&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Allwinner D1&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;1&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;riscv64&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;7,824.00 s&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Eleven boards fit inside a 12x spread. Adding this one stretches the bench to 149x.&lt;/p&gt;
&lt;h3&gt;Per core, it is a different story&lt;/h3&gt;
&lt;p&gt;&lt;img alt="Four RISC-V boards compared on wall clock and on core-seconds" src="https://tinycomputers.io/images/mangopi-riscv-percore.png"&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Left: wall clock, where the MangoPi takes 17x the Star64. Right: the same four boards in core-seconds, wall clock multiplied by core count. The MangoPi bar is identical in both panels because it has one core. Everyone else's bar grows, which is the point: they were spending four or eight cores to get their number.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Multiply each board's time by the cores it used and the picture inverts:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Board&lt;/th&gt;
&lt;th&gt;Cores&lt;/th&gt;
&lt;th&gt;Wall clock&lt;/th&gt;
&lt;th&gt;Core-seconds&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Milk-V Mars&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;458.00 s&lt;/td&gt;
&lt;td&gt;1,832&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Pine64 Star64&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;461.28 s&lt;/td&gt;
&lt;td&gt;1,845&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Orange Pi RV2&lt;/td&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;650.60 s&lt;/td&gt;
&lt;td&gt;5,205&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MangoPi MQ Pro&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;7,824.00 s&lt;/td&gt;
&lt;td&gt;7,824&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The MangoPi is &lt;strong&gt;16.96x slower than the Star64 in wall clock but 4.24x slower per core&lt;/strong&gt;. Roughly a quarter of that headline gap is the C906 being a weaker core. The rest is simply having one of them.&lt;/p&gt;
&lt;p&gt;A 4.2x per-core deficit is a real and large gap, and I am not going to dress it up as a moral victory. The C906 is a simple in-order pipeline at about 1 GHz against the U74's dual-issue in-order design at 1.5 GHz, and the clock alone accounts for 1.5x of it. But 4.2x is the number that describes the silicon. 149x describes a product decision about how many cores to put on a $20 board, and those are different claims about different things.&lt;/p&gt;
&lt;p&gt;The Orange Pi RV2 is the interesting comparison in that table. Eight Ky X1 cores spend &lt;strong&gt;5,205 core-seconds&lt;/strong&gt; to finish in 650.60 s, while four U74s spend 1,845 to finish in 461.28 s. The RV2 burns 2.8x more silicon-time and still loses. Per core, SpacemiT's newer eight-core design is closer to the MangoPi's single C906 than it is to SiFive's U74. That was true in the Star64 review and having a third and fourth data point makes it harder to dismiss.&lt;/p&gt;
&lt;h3&gt;The memory surprise&lt;/h3&gt;
&lt;p&gt;I provisioned 6 GB of swap because 486 MB against 144 crates looked like the run-ending problem. Peak swap usage across the entire benchmark was &lt;strong&gt;5.6 MB&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Not 5.6 GB. Five point six megabytes, out of six thousand available. Free memory sat at 460 MB before each run and 278 MB after.&lt;/p&gt;
&lt;p&gt;Being single-core is what saved it. &lt;code&gt;cargo&lt;/code&gt; schedules one &lt;code&gt;rustc&lt;/code&gt; per available core, so on this board exactly one compilation unit is resident at a time and peak memory is whatever the largest single crate needs. On a four-core board, &lt;code&gt;-j4&lt;/code&gt; puts four &lt;code&gt;rustc&lt;/code&gt; processes in memory simultaneously, and that is where the 486 MB would have died. The constraint I was worried about was neutralized by the limitation I was complaining about.&lt;/p&gt;
&lt;p&gt;This has a practical consequence worth stating plainly: if you are building large Rust projects on a memory-starved board, &lt;code&gt;cargo build -j1&lt;/code&gt; is not merely a slower option, it is sometimes the only option that completes. The MangoPi gets that for free by having nothing else to offer.&lt;/p&gt;
&lt;h3&gt;Thermals, briefly&lt;/h3&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;State&lt;/th&gt;
&lt;th&gt;Temperature&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Idle&lt;/td&gt;
&lt;td&gt;44.7 °C&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Under a 2.2-hour build&lt;/td&gt;
&lt;td&gt;48.6 to 49.8 °C&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Five degrees of rise across two hours of continuous compilation, peaking under 50 °C, on a bare board with no heatsink. There is no &lt;code&gt;cpufreq&lt;/code&gt; driver, so the clock is fixed and there is no throttling behaviour to characterize and no governor to second-guess. This is the one area where the board is genuinely, completely untroubled.&lt;/p&gt;
&lt;p&gt;It is also a reminder of what the 149x buys in the other direction. The MangoPi did that build at a power draw I would estimate in single-digit watts, and it never got warm enough to need cooling.&lt;/p&gt;
&lt;h3&gt;What this board is for&lt;/h3&gt;
&lt;p&gt;Not this. Compiling Rust on a MangoPi MQ Pro is a benchmark stunt, and I ran it because a number with a commit hash attached is worth more than a guess.&lt;/p&gt;
&lt;p&gt;What the board is genuinely good for is the thing OpenWrt implies: a tiny, cool, cheap RISC-V target for embedded and networking work. It has a real ISA with a real mainline kernel, the package repository has 10,506 packages including gcc and git, and it will sit at 45 °C indefinitely. If you want to find out whether your daemon, driver or protocol implementation works on RISC-V hardware, this is a legitimate and inexpensive way to find out, and the answer you get is a real answer rather than a QEMU approximation.&lt;/p&gt;
&lt;p&gt;What it is not is a machine you develop &lt;em&gt;on&lt;/em&gt;. Build your code somewhere with four cores, then run it here.&lt;/p&gt;
&lt;p&gt;The comparison that puts this in perspective is the Horizon X3 CM, a board I reviewed as a cautionary tale. Its quad Cortex-A53, a core design Arm announced in 2012, finishes the same build in 378.81 seconds, &lt;strong&gt;20.7x faster&lt;/strong&gt; than the MangoPi. Current-generation RISC-V application silicon at the low end is not competing with modern ARM. It is competing with the bottom of ARM's fourteen-year-old catalogue, and losing.&lt;/p&gt;
&lt;h3&gt;Conclusion&lt;/h3&gt;
&lt;p&gt;The MangoPi MQ Pro is the slowest machine I have benchmarked, by a wide margin, and the number that proves it is the least interesting thing I learned from it.&lt;/p&gt;
&lt;p&gt;Per core it is 4.2x behind a SiFive U74, which is a genuine deficit and also five times smaller than the wall-clock gap implies. Its 486 MB never became a problem because single-core scheduling kept exactly one &lt;code&gt;rustc&lt;/code&gt; in memory, which is the kind of thing you only discover by running the build instead of reasoning about it. And the real work of this review was not the two-hour compile but the forty minutes of partition, rootfs and chroot plumbing needed to put a glibc userland on a musl board, because rustup has no musl-hosted riscv64 compiler and probably never will.&lt;/p&gt;
&lt;p&gt;That last point is the one I would generalize. RISC-V's hardware gap is closing slowly and measurably. Its software gap shows up as an afternoon spent on &lt;code&gt;debootstrap&lt;/code&gt; before you can run the benchmark at all, and that gap does not appear in any performance table.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;&lt;strong&gt;By the numbers:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Rust clean release build, pinned tree (&lt;code&gt;2821bba&lt;/code&gt;, 16,639 LOC, 144 crates): &lt;strong&gt;7,824.00 s&lt;/strong&gt; mean, 2 h 10 min (σ 41.6 s, 0.53% CV)&lt;/li&gt;
&lt;li&gt;Warm-up build: 7,864 s, within 0.51% of the timed mean&lt;/li&gt;
&lt;li&gt;Fleet position: &lt;strong&gt;12th of 12&lt;/strong&gt;, 148.9x the NanoPC-T6N&lt;/li&gt;
&lt;li&gt;vs Pine64 Star64 (same ISA baseline, same rustc 1.98.1): &lt;strong&gt;16.96x&lt;/strong&gt; wall clock, &lt;strong&gt;4.24x&lt;/strong&gt; per core&lt;/li&gt;
&lt;li&gt;vs Horizon X3 CM (quad Cortex-A53, a 2012 core design): &lt;strong&gt;20.7x&lt;/strong&gt; slower&lt;/li&gt;
&lt;li&gt;Core-seconds: 7,824 against the Star64's 1,845 and the Orange Pi RV2's 5,205&lt;/li&gt;
&lt;li&gt;Peak swap used: &lt;strong&gt;5.6 MB&lt;/strong&gt; of 6,144 MB provisioned&lt;/li&gt;
&lt;li&gt;Thermals: 44.7 °C idle, 49.8 °C peak across a 2.2-hour build, no throttling, no cpufreq&lt;/li&gt;
&lt;li&gt;HEAD tier: not attempted, extrapolates to roughly fourteen hours per run&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Caveats.&lt;/strong&gt; The build ran inside a Debian trixie riscv64 chroot on a separate partition, not on the OpenWrt host userland. Execution was native, but glibc and Debian's toolchain packaging are not what the host OS provides. Commit &lt;code&gt;2821bba&lt;/code&gt; predates the project having a &lt;code&gt;Cargo.lock&lt;/code&gt;, so dependency versions resolved fresh. The chroot partition and swapfile are not persistent across reboot, since I added no fstab entry. Power draw was not measured.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;Review Date: September 10, 2026&lt;/p&gt;
&lt;p&gt;Hardware Tested: MangoPi MQ Pro, Allwinner D1 (1x T-Head C906), 486 MB RAM, 32 GB microSD&lt;/p&gt;
&lt;p&gt;OS Tested: OpenWrt 25.12.5 (kernel 6.12.94) hosting a Debian 13 riscv64 chroot&lt;/p&gt;
&lt;p&gt;Benchmark Workload: &lt;a href="https://github.com/ajokela/ballistics-engine"&gt;ballistics-engine&lt;/a&gt; clean release build at commit &lt;code&gt;2821bba&lt;/code&gt;, rustc 1.98.1&lt;/p&gt;
&lt;p&gt;Conclusion: The slowest board on my bench and a perfectly reasonable embedded RISC-V target, which are not contradictory statements. Per core it is 4.2x behind SiFive's U74 rather than the 17x the wall clock suggests, and the afternoon it took to get a compiler onto a musl-only board says more about where RISC-V actually stands than the compile time does.&lt;/p&gt;</description><category>allwinner d1</category><category>benchmarks</category><category>chroot</category><category>debian</category><category>debootstrap</category><category>glibc</category><category>hardware review</category><category>mangopi</category><category>mq pro</category><category>musl</category><category>openwrt</category><category>risc v</category><category>riscv64</category><category>rust compilation</category><category>single board computers</category><category>single core</category><category>swap</category><category>t-head c906</category><guid>https://tinycomputers.io/posts/mangopi-mq-pro-riscv-review.html</guid><pubDate>Fri, 11 Sep 2026 14:30:00 GMT</pubDate></item><item><title>The Pine64 Star64: RISC-V's Baseline Problem</title><link>https://tinycomputers.io/posts/pine64-star64-riscv-review.html?utm_source=feed&amp;utm_medium=rss&amp;utm_campaign=rss</link><dc:creator>A.C. Jokela</dc:creator><description>&lt;div class="audio-widget"&gt;
&lt;div class="audio-widget-header"&gt;
&lt;span class="audio-widget-icon"&gt;🎧&lt;/span&gt;
&lt;span class="audio-widget-label"&gt;Listen to this article&lt;/span&gt;
&lt;/div&gt;
&lt;audio controls preload="metadata"&gt;
&lt;source src="https://tinycomputers.io/pine64-star64-riscv-review_tts.mp3" type="audio/mpeg"&gt;
&lt;/source&gt;&lt;/audio&gt;
&lt;div class="audio-widget-footer"&gt;34 min · AI-generated narration&lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;The Pine64 Star64 is the third RISC-V board to go through my benchmark fleet, and it makes a better showing than the one everybody would expect it to beat. That is a lower bar than it sounds.&lt;/p&gt;
&lt;p&gt;It is built on StarFive's JH7110: four SiFive U74-MC cores at 1.5 GHz, 4 GB of RAM, and an ISA string that turns out to be the entire story. That string is &lt;code&gt;rv64imafdc&lt;/code&gt;. Plain RV64GC. No vector extension, no scalar crypto extension, no bit-manipulation extensions, and an &lt;code&gt;isa-ext&lt;/code&gt; field that is simply empty. This is the RISC-V baseline profile and nothing above it.&lt;/p&gt;
&lt;p&gt;For compiling Rust that hardly matters. A compiler is integer and branch work, and baseline RV64GC does integer and branch work perfectly well. The Star64 posts &lt;strong&gt;461.28 seconds&lt;/strong&gt; on my fleet-comparable tree, tenth of eleven. For cryptography it matters enormously. The same board manages &lt;strong&gt;21.7 MB/s of AES-128-GCM&lt;/strong&gt;, roughly one &lt;em&gt;hundredth&lt;/em&gt; of what a Cortex-A76 does on the identical benchmark.&lt;/p&gt;
&lt;p&gt;That hundredfold gap is the most interesting number this fleet has produced, and it decomposes into two very different things. Unpacking it says something precise about where RISC-V actually stands in 2026, and the answer is not "the cores are bad."&lt;/p&gt;
&lt;h3&gt;The Hardware&lt;/h3&gt;
&lt;p&gt;&lt;img alt="Pine64 Star64 single-board computer, component side up, showing the JH7110 SoC under its metal lid, the PCIe slot along the top edge, stacked USB-A ports with a 4GB RAM sticker, gigabit Ethernet, HDMI, a 40-pin GPIO header, and two Wi-Fi antenna leads taped down across the board" src="https://tinycomputers.io/images/pine64-star64/IMG_4640.jpeg"&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;The 4 GB variant: the sticker on the USB stack matches the 3.8 GiB the OS reports. The JH7110 sits under the metal lid at center; the PCIe slot along the top edge and the 40-pin header are the expansion this board leans on, since its microSD is stuck in high-speed mode.&lt;/em&gt;&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Component&lt;/th&gt;
&lt;th&gt;Specification&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;SoC&lt;/td&gt;
&lt;td&gt;StarFive &lt;strong&gt;JH7110&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CPU&lt;/td&gt;
&lt;td&gt;4 × SiFive &lt;strong&gt;U74-MC&lt;/strong&gt;, dual-issue in-order, 1.5 GHz&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ISA&lt;/td&gt;
&lt;td&gt;&lt;code&gt;rv64imafdc&lt;/code&gt;: &lt;strong&gt;RV64GC baseline; no V, no K, no Z*&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;RAM&lt;/td&gt;
&lt;td&gt;4 GB (3.8 GiB usable), 32-bit LPDDR4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Storage&lt;/td&gt;
&lt;td&gt;SanDisk SN64G microSD, 59.5 GB, ext4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GPU&lt;/td&gt;
&lt;td&gt;Imagination &lt;strong&gt;BXE-4-32&lt;/strong&gt;, DRM nodes present&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Video&lt;/td&gt;
&lt;td&gt;JH7110 VPU, &lt;code&gt;/dev/video0&lt;/code&gt;–&lt;code&gt;7&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Network&lt;/td&gt;
&lt;td&gt;2 × gigabit (&lt;code&gt;st_gmac&lt;/code&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OS&lt;/td&gt;
&lt;td&gt;PinIx 2.1, kernel &lt;strong&gt;5.15.131&lt;/strong&gt; (vendor BSP, Sept 2023)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Toolchain&lt;/td&gt;
&lt;td&gt;rustc / cargo &lt;strong&gt;1.98.1&lt;/strong&gt;, &lt;code&gt;riscv64gc-unknown-linux-gnu&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Three practical notes for anyone setting one of these up, each of which cost me time. Root's home directory is &lt;strong&gt;&lt;code&gt;/home/root&lt;/code&gt;, not &lt;code&gt;/root&lt;/code&gt;&lt;/strong&gt;. My first toolchain install failed outright because I assumed otherwise. The login shell is &lt;code&gt;/bin/sh&lt;/code&gt;, so anything wanting bash has to say so explicitly. And the board ships with no Rust toolchain at all; rustup's &lt;code&gt;riscv64gc-unknown-linux-gnu&lt;/code&gt; target installs cleanly, which is itself a quiet sign of how far RISC-V tooling has come.&lt;/p&gt;
&lt;h3&gt;The Benchmark, and Why It Has Two Numbers&lt;/h3&gt;
&lt;p&gt;My standard workload is a clean release build of &lt;a href="https://github.com/ajokela/ballistics-engine"&gt;ballistics-engine&lt;/a&gt;, three runs after &lt;code&gt;cargo clean&lt;/code&gt;. As I wrote in the &lt;a href="https://tinycomputers.io/posts/friendlyelec-nanopc-t6n-review.html"&gt;NanoPC-T6N review&lt;/a&gt;, that project outgrew its own benchmark. The tree the October 2025 fleet compiled was 16,639 lines, and today's &lt;code&gt;main&lt;/code&gt; is 155,867. Numbers from the two are not the same measurement.&lt;/p&gt;
&lt;p&gt;So every run now comes in two tiers:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Pinned: &lt;code&gt;2821bba&lt;/code&gt;&lt;/strong&gt;, verified on the board at 43 &lt;code&gt;.rs&lt;/code&gt; files / 16,639 LOC / 144 crates. Byte-for-byte the tree the archived fleet was measured against. Every fleet comparison below uses this.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;HEAD: &lt;code&gt;b0cfcd4&lt;/code&gt;&lt;/strong&gt;, 196 files / 155,867 LOC / 243 crates. Deliberately &lt;strong&gt;the same commit the &lt;a href="https://tinycomputers.io/posts/freebsd-on-a-2011-macbook-pro.html"&gt;FreeBSD MacBook&lt;/a&gt; ran&lt;/strong&gt; a couple of weeks ago, so those two HEAD figures are directly comparable to each other rather than being another orphan.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Before the HEAD tier I added an 8 GB swapfile, reasoning that 243 crates at &lt;code&gt;-j4&lt;/code&gt; might blow past 3.8 GB of RAM. &lt;strong&gt;It was never touched&lt;/strong&gt;: zero swap use across all 2,455 samples of the run. A sensible precaution that turned out to be unnecessary, which I would rather say plainly than let you assume it rescued something.&lt;/p&gt;
&lt;h3&gt;Compilation Results&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Pinned tier (&lt;code&gt;2821bba&lt;/code&gt;):&lt;/strong&gt;&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Run&lt;/th&gt;
&lt;th&gt;Time&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;458.17 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;463.08 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;462.59 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Mean&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;461.28 s&lt;/strong&gt; (median 462.59, σ 2.71, &lt;strong&gt;0.59% CV&lt;/strong&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;HEAD tier (&lt;code&gt;b0cfcd4&lt;/code&gt;):&lt;/strong&gt;&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Run&lt;/th&gt;
&lt;th&gt;Time&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;2933.59 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;2927.88 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;2934.15 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Mean&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;2931.88 s&lt;/strong&gt;, 48.9 minutes (σ 3.47, &lt;strong&gt;0.12% CV&lt;/strong&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;A 0.12% coefficient of variation across three 49-minute builds is the most consistent result on my bench, and the instrumentation says exactly why: nothing varied. Across 2,455 samples spanning 3.4 hours, all four cores held 1.5 GHz for &lt;strong&gt;100% of under-load samples&lt;/strong&gt;, temperature stayed between 56.9 and 70.0 °C, and swap was never touched. No thermal ceiling, no memory pressure, no clock wobble.&lt;/p&gt;
&lt;p&gt;&lt;img alt="Star64 Rust compile performance against the fleet" src="https://tinycomputers.io/images/star64-fleet-compile.png"&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Left: the fleet on the pinned September-2025 tree, the only apples-to-apples axis I have. Right: the same board and toolchain against both sizes of the same project, 6.36x the build time for 9.37x the code.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The HEAD/pinned ratio of &lt;strong&gt;6.36×&lt;/strong&gt; compares against the MacBook's 5.45× on the identical commit. With clock and memory both ruled out as causes, that difference is architectural rather than environmental: the bigger tree leans harder on whatever the U74 is worse at.&lt;/p&gt;
&lt;h4&gt;Two Comparisons That Matter&lt;/h4&gt;
&lt;p&gt;&lt;strong&gt;Against the other RISC-V design, the Star64 wins convincingly.&lt;/strong&gt; It beats the &lt;a href="https://tinycomputers.io/posts/the-orangepi-rv2.html"&gt;Orange Pi RV2&lt;/a&gt; by &lt;strong&gt;1.41× while carrying half the cores&lt;/strong&gt; (four U74s against eight Ky X1s), which works out to &lt;strong&gt;2.82× better per core-second&lt;/strong&gt;. The RV2's cores bring RVV 1.0 vector units that a Rust compile never touches, while their scalar integer throughput lags well behind SiFive's. For general-purpose work, four decent cores beat eight weak ones, and it is not close.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Against ARM, it loses to a design from 2012.&lt;/strong&gt; The quad Cortex-A53 in the &lt;a href="https://tinycomputers.io/posts/horizon-robotics-x3-cm-review.html"&gt;Horizon X3 CM&lt;/a&gt;, a board I reviewed as a cautionary tale running a core Arm announced fourteen years ago, still finishes &lt;strong&gt;1.22× faster&lt;/strong&gt;. That is the honest framing of where this silicon sits on ordinary work: current-generation RISC-V application cores trailing decade-old budget ARM.&lt;/p&gt;
&lt;p&gt;Against a &lt;a href="https://tinycomputers.io/posts/raspberry-pi-compute-module-5-review.html"&gt;Raspberry Pi 5&lt;/a&gt;, the Star64 is &lt;strong&gt;6.02× slower&lt;/strong&gt;. Hold onto that number; it comes back.&lt;/p&gt;
&lt;h4&gt;The Same-Silicon Control&lt;/h4&gt;
&lt;p&gt;The &lt;a href="https://tinycomputers.io/posts/milk-v-mars-review.html"&gt;Milk-V Mars&lt;/a&gt; runs the &lt;em&gt;same&lt;/em&gt; JH7110 SoC as the Star64 (same four U74 cores, same 1.5 GHz, same &lt;code&gt;rv64imafdc&lt;/code&gt;) with twice the RAM. That makes it the best control I have ever had for one of these reviews, so I re-ran it.&lt;/p&gt;
&lt;p&gt;I need to be upfront about why a re-run was necessary. When I reviewed the Mars in February, I reported &lt;strong&gt;936 seconds&lt;/strong&gt; and called it the slowest board in my fleet. That figure recorded &lt;strong&gt;no commit hash and no line count&lt;/strong&gt;, so it was measured against whatever &lt;code&gt;main&lt;/code&gt; happened to be in February 2026, a tree substantially larger than the pinned one. It was an orphan number, comparable to nothing, and the "slowest in the fleet" claim built on it was simply wrong. This is exactly the failure the T6N review warned about, and my own archive was already carrying an instance of it.&lt;/p&gt;
&lt;p&gt;So: both boards, both tiers, the same two pinned commits, and (because the Mars needed a fresh toolchain anyway) the identical rustc 1.98.1.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Pinned &lt;code&gt;2821bba&lt;/code&gt;&lt;/th&gt;
&lt;th&gt;HEAD &lt;code&gt;b0cfcd4&lt;/code&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Milk-V Mars (8 GB)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;458.00 s&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;2932.35 s&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Pine64 Star64 (4 GB)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;461.28 s&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;2931.88 s&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;difference&lt;/td&gt;
&lt;td&gt;3.28 s (0.71%)&lt;/td&gt;
&lt;td&gt;0.48 s (&lt;strong&gt;0.016%&lt;/strong&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;On the long tier the two boards finish a 49-minute build within half a second of each other. That gap is 0.11× the pooled run-to-run noise, and the sign &lt;em&gt;flips&lt;/em&gt; between tiers (the Mars is marginally ahead on the pinned tree, the Star64 marginally ahead on HEAD), which is the signature of noise rather than a real difference. These boards are the same speed.&lt;/p&gt;
&lt;p&gt;Two things follow. First, the Mars's extra 4 GB of RAM buys it exactly nothing, consistent with the Star64 never touching swap. Second, and more useful: &lt;strong&gt;the ~6× deficit against contemporary ARM is a property of the JH7110 itself&lt;/strong&gt;, not of one board's BSP, distro, kernel, or microSD. Two independent implementations landing within 0.02% of each other is about as clean a confirmation of that as this bench can produce.&lt;/p&gt;
&lt;p&gt;The corrected fleet ordering puts the two JH7110 boards adjacent, where identical silicon belongs, and moves the actual slowest board back to the Orange Pi RV2 at 650.60 s.&lt;/p&gt;
&lt;h3&gt;Cryptography: Where the Baseline ISA Bites&lt;/h3&gt;
&lt;p&gt;Now the interesting part. Single-threaded OpenSSL 3.x, 16 KB blocks:&lt;/p&gt;
&lt;p&gt;&lt;img alt="Star64 crypto throughput and the gap by algorithm" src="https://tinycomputers.io/images/star64-crypto-gap.png"&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Left: absolute throughput on a linear scale. I deliberately did not use a log axis, because the Star64's bars really are that small and a log plot would flatter them. Right: how far behind the Cortex-A76 each algorithm falls, with the dashed line marking the 5.9x gap that is the core itself.&lt;/em&gt;&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Algorithm&lt;/th&gt;
&lt;th&gt;Star64 U74&lt;/th&gt;
&lt;th&gt;i5-2435M&lt;/th&gt;
&lt;th&gt;RK3588 A76&lt;/th&gt;
&lt;th&gt;A76 / Star64&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;AES-128-GCM&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;21.7 MB/s&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;1112.4&lt;/td&gt;
&lt;td&gt;2185.7&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;100.9×&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AES-256-GCM&lt;/td&gt;
&lt;td&gt;17.9&lt;/td&gt;
&lt;td&gt;988.2&lt;/td&gt;
&lt;td&gt;1763.9&lt;/td&gt;
&lt;td&gt;98.3×&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AES-128-CBC&lt;/td&gt;
&lt;td&gt;31.4&lt;/td&gt;
&lt;td&gt;575.6&lt;/td&gt;
&lt;td&gt;1831.8&lt;/td&gt;
&lt;td&gt;58.4×&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SHA-256&lt;/td&gt;
&lt;td&gt;35.4&lt;/td&gt;
&lt;td&gt;251.8&lt;/td&gt;
&lt;td&gt;1429.4&lt;/td&gt;
&lt;td&gt;40.4×&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;SHA-512&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;63.5&lt;/td&gt;
&lt;td&gt;361.2&lt;/td&gt;
&lt;td&gt;376.1&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;5.9×&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ChaCha20-Poly1305&lt;/td&gt;
&lt;td&gt;51.0&lt;/td&gt;
&lt;td&gt;761.9&lt;/td&gt;
&lt;td&gt;674.4&lt;/td&gt;
&lt;td&gt;13.2×&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;SHA-512 is the control, and it decomposes everything else.&lt;/strong&gt; None of these three chips has SHA-512 acceleration: not the U74, not the Cortex-A76, not Sandy Bridge. All three run software implementations. On that even footing the U74 sits &lt;strong&gt;5.9× behind&lt;/strong&gt; the A76, and that is the honest measure of the core itself.&lt;/p&gt;
&lt;p&gt;Every gap wider than 5.9× is the instruction set talking. AES-128-GCM's 100.9× factors cleanly into roughly 6× &lt;em&gt;"the U74 is a slower core"&lt;/em&gt; multiplied by about 17× &lt;em&gt;"the A76 has AES instructions and this chip has none."&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;And that 5.9× independently corroborates the compile result. The Star64 is 6.02× slower than a Raspberry Pi 5, both quad-core, measured by a completely unrelated workload, landing on the same number. When two independent measurements agree that closely, the figure is real and the decomposition holds.&lt;/p&gt;
&lt;p&gt;The asymmetric results split along the same seam:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Operation&lt;/th&gt;
&lt;th&gt;Star64&lt;/th&gt;
&lt;th&gt;RK3588 A76&lt;/th&gt;
&lt;th&gt;Gap&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;RSA-2048 sign&lt;/td&gt;
&lt;td&gt;66.5 /s&lt;/td&gt;
&lt;td&gt;269.6 /s&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;4.1×&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ECDSA P-256 sign&lt;/td&gt;
&lt;td&gt;211.2 /s&lt;/td&gt;
&lt;td&gt;16,917.2 /s&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;80.1×&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;RSA-2048 is bignum arithmetic that nobody accelerates in silicon here, and its 4.1× gap sits right in the neighborhood of the core's raw deficit. ECDSA P-256's 80× gap is not silicon at all. It is OpenSSL shipping hand-tuned P-256 assembly for ARM and x86 and generic C for RISC-V. Some of RISC-V's disadvantage is missing hardware. A good deal of it is missing software investment, which is a different problem with a different fix.&lt;/p&gt;
&lt;h4&gt;The Practical Inversion&lt;/h4&gt;
&lt;p&gt;On the Star64, &lt;strong&gt;ChaCha20-Poly1305 runs 2.35× faster than AES-128-GCM&lt;/strong&gt;. On the RK3588, that comparison runs the other way, with AES 3.2× ahead.&lt;/p&gt;
&lt;p&gt;The correct cipher suite flips depending on whether the silicon has AES instructions, which is exactly the case ChaCha20 was designed for. If you are terminating TLS on a baseline RISC-V board, prefer ChaCha20. Anyone who copies an AES-first cipher preference list off an ARM server onto this hardware leaves more than half their throughput on the floor.&lt;/p&gt;
&lt;h4&gt;The Hardware Engine Nobody Can Reach&lt;/h4&gt;
&lt;p&gt;Here I have to correct my own framing, because my first pass at this section was wrong.&lt;/p&gt;
&lt;p&gt;The JH7110 &lt;strong&gt;does&lt;/strong&gt; have a hardware crypto block. The kernel registers &lt;strong&gt;21 algorithms&lt;/strong&gt; from the &lt;code&gt;jh7110&lt;/code&gt; driver: AES in ECB, CBC, CTR, CFB, OFB, GCM and CCM; SHA-1 through SHA-512 with HMAC variants; SM3; and RSA at priority 3000. I had written "software-only crypto" before I actually looked at &lt;code&gt;/proc/crypto&lt;/code&gt;, and that was not true.&lt;/p&gt;
&lt;p&gt;What &lt;em&gt;is&lt;/em&gt; true is narrower and more annoying. &lt;code&gt;openssl engine&lt;/code&gt; lists only &lt;code&gt;dynamic&lt;/code&gt;: there is no AF_ALG or cryptodev bridge wired up, so &lt;strong&gt;userspace OpenSSL never sees any of it&lt;/strong&gt; and falls back to pure software. The 21.7 MB/s figure is real for userspace TLS; it is what nginx or a userspace WireGuard would actually get. But it is &lt;em&gt;not&lt;/em&gt; the ceiling of what this silicon can do. Kernel-space consumers (dm-crypt, IPsec, kernel TLS) should reach the accelerator and do considerably better.&lt;/p&gt;
&lt;p&gt;So the accurate statement is not "RISC-V is terrible at crypto." It is: &lt;strong&gt;this SoC's crypto acceleration is real but stranded behind missing userspace plumbing&lt;/strong&gt;, and the ISA itself offers nothing to fall back on when it is unreachable. Fixing the plumbing is a software task, and it would move these numbers a long way for the workloads that can use it.&lt;/p&gt;
&lt;h3&gt;Thermals and Scaling: The Good News&lt;/h3&gt;
&lt;p&gt;&lt;img alt="Star64 thermal trace and thread scaling" src="https://tinycomputers.io/images/star64-thermal-scaling.png"&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Left top: SoC temperature across 3.4 hours of continuous compilation. Left bottom: the CPU clock over the same window: flat at the 1.5 GHz maximum for the entire run. Right: thread scaling against perfect linear.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The temperature trace has a shape worth reading. Each build ramps to a peak near 70 °C, then decays to a plateau around 62 °C and holds there. That is not cooling catching up. It is the build's own structure. The early phase compiles many independent crates across four cores and runs hot; the long tail is a single &lt;code&gt;rustc&lt;/code&gt; doing final codegen on the main crate, one core busy and three idle. The same asymmetry showed up in the memory sampling, where peak pressure landed at load 1.00.&lt;/p&gt;
&lt;p&gt;The sharp dips to 57 °C are the &lt;code&gt;cargo clean&lt;/code&gt; and cache-drop gaps between runs.&lt;/p&gt;
&lt;p&gt;Thread scaling is genuinely excellent:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Threads&lt;/th&gt;
&lt;th&gt;Time&lt;/th&gt;
&lt;th&gt;Events/s&lt;/th&gt;
&lt;th&gt;Scaling&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;12.15 s&lt;/td&gt;
&lt;td&gt;246.96&lt;/td&gt;
&lt;td&gt;1.00×&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;6.07 s&lt;/td&gt;
&lt;td&gt;494.19&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;2.00×&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;3.09 s&lt;/td&gt;
&lt;td&gt;970.90&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;3.93×&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Essentially perfect. Four real cores, no SMT, no floating-point units shared between siblings, no thermal limit and no memory bottleneck. This board scales about as well as it is physically possible to scale, a useful contrast with the FreeBSD MacBook, where Hyper-Threading contributed literally nothing to SIMD work because SMT siblings share the FP pipeline. The Star64 has fewer and slower cores, but the ones it has are entirely independent.&lt;/p&gt;
&lt;h4&gt;One Measurement Trap&lt;/h4&gt;
&lt;p&gt;The benchmark's own before-and-after readings showed 625 MHz and 750 MHz, which looks like severe throttling, and for about twenty minutes I believed it was. Those samples are taken &lt;em&gt;between&lt;/em&gt; builds, while the CPU is idle and the &lt;code&gt;ondemand&lt;/code&gt; governor has wound down. Only continuous sampling during the runs showed the truth: 100% of 677 under-load samples at the full 1.5 GHz.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;An instantaneous clock reading taken at an arbitrary moment is not a measurement.&lt;/strong&gt; That is the same lesson the MacBook's MSR readings taught me two weeks ago, on completely different hardware, and I nearly published the wrong conclusion twice.&lt;/p&gt;
&lt;h3&gt;Memory and Storage&lt;/h3&gt;
&lt;p&gt;Memory measured &lt;strong&gt;5,488 MB/s read and 5,070 MB/s write&lt;/strong&gt;. Notably (and unlike every other board in this fleet) those numbers are &lt;em&gt;plausible&lt;/em&gt;. The JH7110's 32-bit LPDDR4 interface tops out near 11 GB/s, so ~5.5 GB/s is about half of theoretical rather than a physical impossibility. The 1 MB block size still means part of the working set is cache-resident, so treat it as an upper bound. But this is the first time in this benchmark series that sysbench's memory test has not handed me a number that beats physics.&lt;/p&gt;
&lt;p&gt;Storage is the weak point:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Test&lt;/th&gt;
&lt;th&gt;Result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;hdparm buffered read&lt;/td&gt;
&lt;td&gt;22.38 MB/s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;dd write 1 GB&lt;/td&gt;
&lt;td&gt;19.9 MB/s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;dd read 1 GB (caches dropped)&lt;/td&gt;
&lt;td&gt;23.5 MB/s&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;The card is not the problem: the controller is.&lt;/strong&gt; The exact same SanDisk SN64G model read at &lt;strong&gt;64.85 MB/s&lt;/strong&gt; in the NanoPC-T6N. Checking &lt;code&gt;/sys/kernel/debug/mmc1/ios&lt;/code&gt; explains it:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="n"&gt;clock&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="mi"&gt;50000000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Hz&lt;/span&gt;
&lt;span class="n"&gt;bus&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;bits&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;timing&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;spec&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sd&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;high&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;speed&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;The Star64 runs the card in &lt;strong&gt;SD High-Speed mode at 50 MHz&lt;/strong&gt;, not UHS-I SDR104 at 208 MHz. Four-bit high-speed caps out near 25 MB/s in practice, which is exactly what I measured. This is a board or BSP limitation, and it means microSD performance here is about a third of what the same card delivers elsewhere.&lt;/p&gt;
&lt;p&gt;For the compile benchmark it barely mattered: 0.12% run-to-run variance says the build was CPU-bound with its working set in page cache. For a NAS, a container host, or anything doing bulk I/O, it would be the whole story.&lt;/p&gt;
&lt;h3&gt;What Works, What Doesn't&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Better than expected.&lt;/strong&gt; The GPU has real DRM nodes (&lt;code&gt;/dev/dri/card1&lt;/code&gt; and &lt;code&gt;renderD128&lt;/code&gt;, backed by the Imagination BXE-4-32), plus &lt;code&gt;/dev/video0&lt;/code&gt; through &lt;code&gt;7&lt;/code&gt; for the video engine. That is more functional graphics support than the FreeBSD MacBook managed. Gigabit Ethernet is live via &lt;code&gt;st_gmac&lt;/code&gt;. Four independent cores scale nearly perfectly. Nothing throttles.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Not working, or not measured.&lt;/strong&gt; The hardware crypto engine is unreachable from userspace. The microSD controller is stuck in high-speed mode. The kernel is a vendor BSP from September 2023, with everything that implies for long-term support. And &lt;strong&gt;network throughput was never measured&lt;/strong&gt;. I had a live gigabit link and simply did not set up an iperf3 peer, so that section is a gap in my testing rather than a finding about the board.&lt;/p&gt;
&lt;h3&gt;Three Things I Got Wrong&lt;/h3&gt;
&lt;p&gt;I keep a section like this in these reviews because benchmarking unfamiliar hardware generates plausible nonsense, and the nonsense is instructive.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;My ISA check reported the vector extension as present.&lt;/strong&gt; It substring-matched single-letter extensions against the full ISA string, and &lt;code&gt;rv64imafdc&lt;/code&gt; contains a literal "v" in the &lt;code&gt;rv64&lt;/code&gt; &lt;em&gt;prefix&lt;/em&gt;. Re-parsed with the prefix stripped, V is absent, &lt;code&gt;isa-ext&lt;/code&gt; is empty, and the kernel has no vector support compiled in at all. Had I trusted that line, this entire review would have rested on a false premise about what the chip can do.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;sysbench silently produced nothing.&lt;/strong&gt; This board ships &lt;strong&gt;sysbench 0.4.12&lt;/strong&gt;, whose CLI differs from the 1.0.x I use everywhere else. My 1.0-syntax invocations failed and emitted empty sections, which is worse than an error because it looks like missing data rather than a broken command. The figures above are re-runs with 0.4 syntax; the scaling ratios are sound, but the absolute numbers cannot be compared to the T6N's sysbench results.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;/usr/bin/time -v&lt;/code&gt; reports zero for every rusage field&lt;/strong&gt; on this board: max RSS, page faults, context switches, all zero, from a GNU time build that identifies its own version as "UNKNOWN." I lost peak-memory instrumentation and fell back to sampling &lt;code&gt;free -m&lt;/code&gt;, which turned out to be the better instrument anyway.&lt;/p&gt;
&lt;p&gt;The general rule, and the reason these sections keep earning their place: &lt;strong&gt;a benchmark number that beats the hardware's physical limits is a bug report, not a result.&lt;/strong&gt;&lt;/p&gt;
&lt;h3&gt;Who Is This For?&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Reasonable uses.&lt;/strong&gt; As a RISC-V development and porting target, this is a sound machine. Four independent cores that scale cleanly, 4 GB of RAM, working GPU and video nodes, gigabit networking, and enough compile throughput to build real software locally instead of cross-compiling. If your goal is finding out whether your code works on RISC-V, it does that job without drama.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Poor uses.&lt;/strong&gt; Anything crypto-heavy in userspace is off the table until the AF_ALG plumbing exists. Anything I/O-bound is throttled to a third of the microSD's capability. And anything where you simply want the work finished quickly is better served by nearly any ARM board on this list, including, remarkably, one built on a 2012-era Cortex-A53.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The honest framing&lt;/strong&gt; is that you buy a Star64 because it is RISC-V, not because it is fast. That is a completely legitimate reason to buy one. Somebody has to run real software on this architecture for the ecosystem to mature, and the JH7110 is a reasonable place to do it. But it should be a deliberate choice rather than a value comparison you expect to win.&lt;/p&gt;
&lt;h3&gt;Conclusion&lt;/h3&gt;
&lt;p&gt;The Star64's defining characteristic is its ISA string. &lt;code&gt;rv64imafdc&lt;/code&gt; is RISC-V's baseline, and everything above baseline (vectors, crypto, bit manipulation) is simply absent.&lt;/p&gt;
&lt;p&gt;On integer work that costs relatively little: 5.9× behind a Cortex-A76 on software SHA-512, corroborated by 6.02× behind a Raspberry Pi 5 on compilation. Those are the numbers for the core itself, and while they are not flattering, they are not disastrous either. A 6× deficit against the best ARM cores in this price class is a gap you can live with for development work.&lt;/p&gt;
&lt;p&gt;Where it becomes disastrous is anywhere the competition has dedicated instructions. AES-128-GCM at 100× behind is not a core-quality problem. It is an extensions problem, and it multiplies a manageable 6× disadvantage into an unusable one. That the SoC has a perfectly good crypto engine sitting unreachable behind missing userspace plumbing makes that worse rather than better: the silicon is there, and software is the thing in the way.&lt;/p&gt;
&lt;p&gt;RISC-V's problem in this benchmark is not that its cores cannot compete. It is that the baseline profile ships without accelerators everyone else has had for a decade, and the software stack has not yet caught up to the hardware that does exist. Both are fixable. Neither is fixed on this board today.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;&lt;strong&gt;By the numbers:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Rust clean release build, pinned tree (&lt;code&gt;2821bba&lt;/code&gt;, 16,639 LOC): &lt;strong&gt;461.28 s&lt;/strong&gt; mean (σ 2.71), 10th of 11 on my bench&lt;/li&gt;
&lt;li&gt;Rust clean release build, current tree (&lt;code&gt;b0cfcd4&lt;/code&gt;, 155,867 LOC, 243 crates): &lt;strong&gt;2931.88 s&lt;/strong&gt; mean (σ 3.47)&lt;/li&gt;
&lt;li&gt;vs. the other RISC-V design: &lt;strong&gt;1.41× faster&lt;/strong&gt; than the Orange Pi RV2 with half the cores (2.82× per core-second)&lt;/li&gt;
&lt;li&gt;vs. its own twin: within &lt;strong&gt;0.016%&lt;/strong&gt; of the Milk-V Mars on HEAD: same JH7110, same rustc, statistically identical&lt;/li&gt;
&lt;li&gt;vs. a 2012-era Cortex-A53: &lt;strong&gt;1.22× slower&lt;/strong&gt; than the Horizon X3 CM&lt;/li&gt;
&lt;li&gt;SHA-512 (no hardware anywhere): &lt;strong&gt;63.5 MB/s&lt;/strong&gt;, only 5.9× behind a Cortex-A76, the honest core-to-core figure&lt;/li&gt;
&lt;li&gt;AES-128-GCM: &lt;strong&gt;21.7 MB/s&lt;/strong&gt;, 100.9× behind: the cost of no K extension&lt;/li&gt;
&lt;li&gt;ChaCha20-Poly1305 &lt;strong&gt;51.0 MB/s&lt;/strong&gt;, 2.35× faster than AES-GCM &lt;em&gt;on this board&lt;/em&gt;: the inversion that matters for TLS&lt;/li&gt;
&lt;li&gt;ECDSA P-256 211.2 sign/s (80× behind, mostly missing assembly); RSA-2048 66.5 sign/s (4.1× behind)&lt;/li&gt;
&lt;li&gt;Hardware crypto: 21 &lt;code&gt;jh7110&lt;/code&gt; algorithms registered in the kernel, &lt;strong&gt;zero reachable from OpenSSL&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Thread scaling: &lt;strong&gt;2.00× at 2 threads, 3.93× at 4&lt;/strong&gt;, near perfect&lt;/li&gt;
&lt;li&gt;Thermals: 55.7 °C idle, 70.0 °C peak, &lt;strong&gt;1.5 GHz held for 100% of 677 under-load samples&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;microSD 22.4 MB/s: SD high-speed 50 MHz, not UHS-I; the same card does 64.85 MB/s elsewhere&lt;/li&gt;
&lt;li&gt;Memory 5,488 MB/s read, the first sysbench memory figure in this series that does not exceed physics&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Caveats.&lt;/strong&gt; My run used rustc 1.98.1; the archived October 2025 fleet used 1.90/1.91. Commit &lt;code&gt;2821bba&lt;/code&gt; predates the repository having a &lt;code&gt;Cargo.lock&lt;/code&gt;, so dependency versions resolved fresh. sysbench is 0.4.12 here and 1.0.20 elsewhere, so those absolute figures are intra-machine only. OpenSSL numbers are userspace software crypto and are not this silicon's AES ceiling. The governor was left at the as-shipped &lt;code&gt;ondemand&lt;/code&gt;, and no &lt;code&gt;performance&lt;/code&gt; comparison was run because sampling showed the clock already pinned at maximum. Network throughput was never measured. The February 2026 Milk-V Mars result uses this same SoC but recorded no commit or LOC, so it is excluded from every comparison here.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;Review Date: September 9, 2026&lt;/p&gt;
&lt;p&gt;Hardware Tested: Pine64 Star64, StarFive JH7110 (4 × SiFive U74-MC @ 1.5 GHz), 4 GB LPDDR4, 64 GB SanDisk microSD&lt;/p&gt;
&lt;p&gt;OS Tested: PinIx 2.1, kernel 5.15.131 (vendor BSP)&lt;/p&gt;
&lt;p&gt;Benchmark Workload: &lt;a href="https://github.com/ajokela/ballistics-engine"&gt;ballistics-engine&lt;/a&gt; clean release builds at commits &lt;code&gt;2821bba&lt;/code&gt; (fleet-comparable) and &lt;code&gt;b0cfcd4&lt;/code&gt; (current), rustc 1.98.1&lt;/p&gt;
&lt;p&gt;Conclusion: Competent baseline RISC-V silicon whose cores are roughly 6× behind contemporary ARM and whose crypto is 100× behind. The first number is the hardware, the second is the missing instruction set, and a stranded on-chip accelerator sits between them waiting for someone to write the plumbing.&lt;/p&gt;</description><category>aes-ni</category><category>benchmarks</category><category>chacha20</category><category>crypto extensions</category><category>hardware review</category><category>microsd</category><category>openssl</category><category>pine64</category><category>risc v</category><category>riscv64</category><category>rust compilation</category><category>sd high-speed</category><category>sifive u74</category><category>single board computers</category><category>star64</category><category>starfive jh7110</category><category>thermals</category><category>uhs-i</category><category>vendor bsp</category><guid>https://tinycomputers.io/posts/pine64-star64-riscv-review.html</guid><pubDate>Thu, 10 Sep 2026 14:15:00 GMT</pubDate></item><item><title>Would You Pay for RISC-V? Doing the Arithmetic in Public</title><link>https://tinycomputers.io/posts/would-you-pay-for-risc-v.html?utm_source=feed&amp;utm_medium=rss&amp;utm_campaign=rss</link><dc:creator>A.C. Jokela</dc:creator><description>&lt;div class="audio-widget"&gt;
&lt;div class="audio-widget-header"&gt;
&lt;span class="audio-widget-icon"&gt;🎧&lt;/span&gt;
&lt;span class="audio-widget-label"&gt;Listen to this article&lt;/span&gt;
&lt;/div&gt;
&lt;audio controls preload="metadata"&gt;
&lt;source src="https://tinycomputers.io/would-you-pay-for-risc-v_tts.mp3" type="audio/mpeg"&gt;
&lt;/source&gt;&lt;/audio&gt;
&lt;div class="audio-widget-footer"&gt;23 min · AI-generated narration&lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;The worst number I ever published was 650.60 seconds.&lt;/p&gt;
&lt;p&gt;That was an &lt;a href="https://tinycomputers.io/posts/the-orangepi-rv2.html"&gt;Orange Pi RV2&lt;/a&gt; compiling my Rust ballistics engine. Nine machines ran the same build and the RV2 came last. The winner, a &lt;a href="https://tinycomputers.io/posts/friendlyelec-nanopc-t6n-review.html"&gt;NanoPC-T6N&lt;/a&gt; on an RK3588, finished in 52.55 seconds; a &lt;a href="https://tinycomputers.io/posts/freebsd-on-a-2011-macbook-pro.html"&gt;2011 MacBook Pro running FreeBSD&lt;/a&gt; took 131.00. The RISC-V board was 12.38 times slower than the fastest machine on the bench and about five times slower than a fifteen-year-old laptop.&lt;/p&gt;
&lt;p&gt;I am about to ask whether you would pay me a monthly fee to rent RISC-V hardware. Publishing that number first is the only thing that earns me the right to ask.&lt;/p&gt;
&lt;h3&gt;What actually changed&lt;/h3&gt;
&lt;p&gt;The SpacemiT K3 is the first RISC-V chip you can buy that implements the RVA23 profile: eight X100 cores, four-issue out-of-order, up to 2.4 GHz, ratified RVV 1.0 at VLEN=256, the hypervisor extension at GEILEN=8, AIA, a RISC-V IOMMU, 8 MB of shared L2, on a 12 nm-class process. It is Sv39 only, which caps the virtual address space. There are another eight A100 cores that Linux counts and that you would not schedule general work onto. SpacemiT describes the X100 as an upgraded OpenC910, the same Xuantie lineage as the chip &lt;a href="https://go.tinymachines.io/R5Luf2"&gt;Scaleway rents&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Against the Ky X1 in my 650-second board, the K3 is about 2.6 times faster single-threaded and 3 times multi-threaded. Applied to my benchmark that is 217 to 250 seconds, which is arithmetic, not a measurement. It would move the board from ninth of nine to eighth, beating a Cortex-A53 and still losing to a Banana Pi CM5-Pro.&lt;/p&gt;
&lt;p&gt;&lt;img alt="Rust compile times for nine measured machines plus the projected SpacemiT K3. The Orange Pi RV2 on a Ky X1 is last at 650.60 seconds against 52.55 for a NanoPC-T6N. The projected K3 lands between 217 and 250 seconds, eighth of the ten." src="https://tinycomputers.io/images/riscv-compile-benchmark.png"&gt;&lt;/p&gt;
&lt;p&gt;I also think that estimate is optimistic, because single-core is where RISC-V still loses badly.&lt;/p&gt;
&lt;p&gt;&lt;img alt="Geekbench 6 single-core scores. The SpacemiT K3 scores 342 to 384, a Raspberry Pi 5 scores 833 to 904, and an Intel N100 scores 1257." src="https://tinycomputers.io/images/riscv-singlecore.png"&gt;&lt;/p&gt;
&lt;p&gt;All eight K3 cores together are worth roughly one Pi 5. The picture is uneven rather than uniformly bad: in 7-zip the K3 hits 19,680 MIPS, edging an RK3588, and Phoronix found it meeting or beating a Pi 500+ on OpenSSL and crypto work using Zvk. That same review found it trailing the Pi 500+ by a significant margin on compiling code.&lt;/p&gt;
&lt;p&gt;That last clause is the shape of the problem. The K3 is good at vector and streaming integer work and comparatively bad at exactly the workload I benchmarked, which is also the workload every Linux distribution needs most.&lt;/p&gt;
&lt;h3&gt;Why this is not Scaleway&lt;/h3&gt;
&lt;p&gt;Scaleway's Elastic Metal RV1 is still the only RISC-V bare metal anyone sells to the public by the hour. It launched on 29 February 2024 at €15.99 per month, €0.042 per hour, excluding VAT, and the price has not moved since. Scaleway joined RISC-V International in early March 2024. RISE has said twice, on 12 May and 18 August 2026, that it is working with Scaleway on an EM-RV2. Scaleway itself has announced nothing.&lt;/p&gt;
&lt;p&gt;What you rent is a T-Head TH1520: four C910 cores at 1.85 GHz, 16 GB, 128 GB of eMMC, 100 Mbit/s networking, one zone in Paris, a vendor 5.10 kernel, and a 0 percent SLA under Labs beta conditions even though the catalogue flags it generally available.&lt;/p&gt;
&lt;p&gt;The gap that matters is not clock speed. It is which instruction set you are actually testing. The C910 implements RVV 0.7.1, an unratified draft that Linux carries as xtheadvector, and Scaleway states plainly that it is not compatible with the final RVV 1.0. They disable it by default; you can switch it on with &lt;code&gt;sudo rv1 update-kernel --enable-vector&lt;/code&gt;, and their own documentation discourages it. Separately, GhostWrite (CVE-2024-44067) affects the C910 and names EM-RV1 among vulnerable devices, and Linux 6.14 and later mitigates it by disabling vector. The ISA string in Scaleway's own FAQ is &lt;code&gt;RV64IMAFDC_Zicsr_Zifencei_Zfh_XTheadc&lt;/code&gt;. There is no V in it.&lt;/p&gt;
&lt;p&gt;So if what you need is ratified RVV 1.0, or the hypervisor extension, or anything else in RVA23, you cannot rent it today. Not from Scaleway, and not from AWS, Azure, GCP, Oracle, Hetzner or OVH, none of which sell RISC-V at all. GitHub and GitLab hosted runners are x64 and arm64 only.&lt;/p&gt;
&lt;h3&gt;The box, and what it would cost&lt;/h3&gt;
&lt;p&gt;Two K3 Pico-ITX boards at 16 GB and 128 GB ran \$399 each from Banana Pi or Sipeed when I priced this; between the memory spike and the tariffs I no longer believe that number, so the arithmetic below uses the one board price I can put a receipt on: the \$889 Firefly charged me for a single board on 27 September, \$1,778 the pair. The board is 100 by 86 mm and takes 12 V through a two-pin ATX header. Two fit side by side in a 300 mm deep 1U with room left over.&lt;/p&gt;
&lt;p&gt;The support gear came to about \$418 in September: a Mean Well LRS-200-12 (still \$28 today), a five-port switch pulled from its plastic case so only one Ethernet cable leaves the chassis, three 40 mm fans, and a Raspberry Pi doing the job of the BMC these boards do not have, the Pi being the line that moved at \$80 then and \$200 now, so call it \$540. The Pi holds a USB-UART console to each board and high-side MOSFET switching on each 12 V feed, so I can watch a boot and power-cycle a wedged node without flying to Miami. Add two NVMe drives at about \$840 the pair — this line said \$120 in September, and NAND has roughly tripled since, so treat every price in this piece as a date — and the pilot is roughly \$3,200 of capital.&lt;/p&gt;
&lt;p&gt;Colocation would be ServerPronto in Miami, where I had a 1U Dell two decades ago and no complaints, which I recognise is not current information about anybody. Their 1U is \$54.95 a month with one amp of power, 2.5 TB of transfer, three IP addresses and a 100 Mbps port. A \$79.95 setup fee appears on a third-party directory last updated in July 2025 but not on their live page, so treat it as listed rather than confirmed. They publish neither a remote-hands rate nor a bandwidth overage rate, which is the sort of thing you notice only when you need it.&lt;/p&gt;
&lt;p&gt;Over 24 months, \$3,200 of capital is \$133.33 a month. Add the colo and the box costs \$188.28, which is \$94.14 per node. Over 36 months the capital falls to \$88.89, the box costs \$143.84, and a node is \$71.92. Call it \$72 to \$94 per node per month, or 9.8 to 12.9 cents an hour.&lt;/p&gt;
&lt;p&gt;Scaleway charges €15.99. They publish no dollar price, so pick your own rate; near €1 to \$1.16 that is about \$18.55, making me four to five times more expensive for a machine that would still lose a Rust compile to a Raspberry Pi 5.&lt;/p&gt;
&lt;p&gt;That \$72 contains no margin, no spare board, no failure budget and no labour. I also do not know whether one amp is enough, because ServerPronto does not publish the voltage. At 120 V that is 120 W and the budget is tight once you count boards, drives, the Pi, the switch, fans and supply losses; at 208 V, which is what NextArray specifies for its own one-amp plan, it is comfortable. I have written before about &lt;a href="https://tinycomputers.io/posts/the-same-bad-luck-quietly.html"&gt;what happens when you run cheap hardware without margin&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Which brings up the number I should state plainly, because it changes what I am asking you. This business needs eight to ten customers. Not eight thousand, and not eighty. At two nodes the box costs \$144 to \$188 a month all in, so nine subscribers at \$25 covers it one and a fifth to one and a half times over, and what is left above the cost is what buys the spare board and the failure budget I just admitted I do not have. One of those nine needs to be an anchor tenant: somebody predictable who takes a whole board, pays annually, and whose presence is what makes the other eight survivable. The failure mode here is not that I cannot scale. It is that I get three customers and quietly eat the difference for two years.&lt;/p&gt;
&lt;p&gt;&lt;img alt="Monthly subscription revenue at $25 per customer against the box's fixed monthly cost of $94 to $113. Revenue crosses cost at 4.5 customers and reaches about twice the cost at the nine-customer target." src="https://tinycomputers.io/images/riscv-unit-economics.png"&gt;&lt;/p&gt;
&lt;h3&gt;The node I would give away&lt;/h3&gt;
&lt;p&gt;Debian made riscv64 an official release architecture with trixie in May 2025, then built it on nine HiFive Unmatched boards its own porter described as four years old and slow. In January 2025 gcc-14 took five to seven days on those machines and one upload took thirteen. Fedora's riscv64 Koji builders are community hardware sitting in people's homes, and in June 2026 Fedora's RISC-V lead wrote that even current K3 hardware is not quite enough for primary Koji. Rust's RFC to make riscv64gc a Tier 1 target has been open since October 2024, partly because a full stage-2 test run takes three to four hours even spread across six SG2042 machines, over the infrastructure team's three-hour cap.&lt;/p&gt;
&lt;p&gt;So the plan I keep coming back to is to give a node away. One of the two, free and permanent, to a project that needs native RISC-V and cannot get it.&lt;/p&gt;
&lt;p&gt;The arithmetic of that is ugly at two nodes and I would rather show it than hide it. If one of two nodes is donated, the other carries the entire box: \$144 to \$188 a month, not \$72 to \$94. No single subscriber absorbs that.&lt;/p&gt;
&lt;p&gt;The anchor tenant is the answer, and it is the reason that role matters more than the other eight. One tenant on a dedicated board at something near \$100 covers most of the box by itself, and all of it on the three-year amortisation, which is what makes a free node affordable rather than aspirational. The hypervisor extension does the rest: the second board does not have to be one indivisible thing, so it can carry a donated slice and several paying tenants at once instead of choosing.&lt;/p&gt;
&lt;p&gt;The shape that follows, if the pilot works, is ten nodes rather than two: one donated, one anchor, eight sold. Firefly sells a 1U carrying exactly that, the CSB1-N10SPK3, ten K3 nodes plus an RK3588 as BMC. That is the same eight-to-ten customers, with the colo bill split ten ways instead of two. The thing standing in the way is power, not demand. Ten K3 nodes at 15 to 25 W of SoC alone, before boards, drives and the BMC, do not fit in one amp at 120 V, and might not fit at 208 V either. That build needs at least ServerPronto's two-amp tier, and I cannot size it properly until they tell me the voltage.&lt;/p&gt;
&lt;h3&gt;The strongest argument against all of this&lt;/h3&gt;
&lt;p&gt;It is not a benchmark. It is a decision I already made on my own hardware.&lt;/p&gt;
&lt;p&gt;When I built the &lt;a href="https://tinycomputers.io/posts/multi-operating-system-and-multi-architecture-build-orchestration-system.html"&gt;multi-architecture build orchestration system&lt;/a&gt; that compiles my BSD binaries, I found that an emulated ARM64 build on a fast x86_64 host finished in 15 minutes 37 seconds, while the same emulated build on native ARM64 single-board hardware took over 99 minutes. About six times faster, on the wrong architecture. I disabled the native Orange Pi node and kept the emulated one.&lt;/p&gt;
&lt;p&gt;A Fedora porter found it in a harsher form: 337 qemu-user-static-riscv processes on an AArch64 desktop beat a native build on 64-bit RISC-V hardware. Free native RISC-V CI also already exists. RISE launched GitHub runners in March 2026, open to anyone, running on Scaleway EM-RV1 with K3 in early access, and logged 24,000 jobs across 116 organisations by Hot Chips. Cloud-V, PLCT and EPCC will each hand an open-source developer a RISC-V shell for nothing.&lt;/p&gt;
&lt;p&gt;If all you want is a green checkmark, buying native RISC-V time in 2026 is the wrong move, and I am not going to pretend otherwise. Emulation on a big x86 host is cheaper, faster and already free.&lt;/p&gt;
&lt;h3&gt;Which is exactly the point&lt;/h3&gt;
&lt;p&gt;That finding does not kill the idea. It sorts the customers, and the sorting is the whole strategy.&lt;/p&gt;
&lt;p&gt;Emulation is a throughput product. You are buying compiled artifacts and you do not care what produced them. For that job I am the wrong vendor.&lt;/p&gt;
&lt;p&gt;Bare metal, or a VM close enough to it, is a fidelity product. You are buying the truth about a machine. Those are different businesses that happen to share an instruction set, and the second cannot be served by QEMU on commodity x86 or Arm at any price, because what you need is exactly what the emulator abstracts away.&lt;/p&gt;
&lt;p&gt;Four examples, all specific.&lt;/p&gt;
&lt;p&gt;The boot chain does not exist in an emulator. QEMU's virt machine hands you a clean device tree and a working memory map; real hardware hands you U-Boot SPL, OpenSBI, an EEPROM and whatever the vendor's defaults were. I lost a week this summer to a corruption bug that turned out to be &lt;a href="https://tinycomputers.io/posts/two-addresses-one-page-finding-the-firmware-bug-behind-netbsd-corruption-on-the-milk-v-mars.html"&gt;two physical addresses 4 GiB apart reaching the same DDR&lt;/a&gt;, because a blank EEPROM let U-Boot SPL fall back to a private memory default. No emulator would have shown me that, and every OS porter working below userspace hits this class of problem.&lt;/p&gt;
&lt;p&gt;Errata do not exist in an emulator either. An emulator implements the specification; silicon implements what the vendor built. GhostWrite is a vector-unit vulnerability in real C910 and C920 parts, and the industry response was to turn the vector unit off. You cannot find that bug, or verify a mitigation for it, on a machine that only ever implemented the spec correctly.&lt;/p&gt;
&lt;p&gt;The vector unit you actually ship against is a specific one. The K3 gives you ratified RVV 1.0 at VLEN=256. QEMU will tell you whether your vector code is correct. It will not tell you whether it is fast, because it is not modelling this register width, this issue width, or this memory system. If you are tuning RVV codegen or writing a hand-vectorised kernel, correctness is the easy half.&lt;/p&gt;
&lt;p&gt;And timing does not survive translation to another architecture: memory ordering under real concurrency, PMU counters, thermal behaviour, DVFS. Nobody chasing a race that only appears on real cores will find it inside qemu-user on an Arm desktop.&lt;/p&gt;
&lt;p&gt;There is a product argument in that, and it is the one that makes the economics less grim. The K3 carries the hypervisor extension at GEILEN=8 alongside a RISC-V IOMMU, so a node can be subdivided into VMs that keep every property above, running real instructions on real silicon over real firmware, rather than sold whole to one tenant. Scaleway cannot offer that: the ISA string they publish for the C910 contains no H. The honest caveat is Sv39, which caps the address space and limits how ambitious the virtualisation story can get. But nobody is currently selling near-bare-metal VMs on RVA23 silicon, and it splits a board's cost across several customers without giving up the fidelity that is the whole reason to be in the rack.&lt;/p&gt;
&lt;h3&gt;So: would you pay?&lt;/h3&gt;
&lt;p&gt;Two questions, and I want real answers rather than encouragement.&lt;/p&gt;
&lt;p&gt;First, at \$50 a month for eight RVA23 cores at 2.4 GHz with ratified RVV 1.0, root, an out-of-band serial console and a power button I will actually press for you, would you subscribe? I am not asking whether this is a market. I am asking whether you would be one of nine. If the answer is no at \$50, tell me the number where it becomes yes, or tell me that no number works because free runners already cover you. And if you would want the anchor slot, a dedicated board with your name on it and a say in what the next one is, say that, because there is exactly one of those and it decides whether the rest of this happens.&lt;/p&gt;
&lt;p&gt;Second, and more useful: what would you run on it that you cannot run under QEMU today? If the honest answer is "nothing, emulation is fine", this box should not exist, and I would rather learn that from you than from an invoice. If the answer involves firmware, a bootloader, a device tree, a vector kernel you need to time rather than merely test, a hypervisor, or a race that only appears on real cores, tell me which. That decides whether the box is two hand-built nodes or ten in a Firefly chassis, whether I sell whole boards or near-bare-metal VMs, and where the donated node goes.&lt;/p&gt;
&lt;p&gt;Comments on this post go to Utterances, or reach me at &lt;a href="mailto:email@tinycomputers.io"&gt;email@tinycomputers.io&lt;/a&gt;.&lt;/p&gt;</description><category>benchmarks</category><category>colocation</category><category>continuous integration</category><category>debian</category><category>fedora</category><category>hosting</category><category>k3</category><category>open-source</category><category>risc v</category><category>rva23</category><category>scaleway</category><category>single board computers</category><category>spacemit</category><guid>https://tinycomputers.io/posts/would-you-pay-for-risc-v.html</guid><pubDate>Tue, 08 Sep 2026 14:00:00 GMT</pubDate></item><item><title>A Mac, Two Disk Images, and an SSH Prompt: OpenBSD 7.9 on the Raspberry Pi 4B</title><link>https://tinycomputers.io/posts/openbsd-7-9-on-the-raspberry-pi-4b.html?utm_source=feed&amp;utm_medium=rss&amp;utm_campaign=rss</link><dc:creator>A.C. Jokela</dc:creator><description>&lt;h2&gt;A Mac, Two Disk Images, and an SSH Prompt: OpenBSD 7.9 on the Raspberry Pi 4B&lt;/h2&gt;
&lt;p&gt;I wanted an OpenBSD machine I could plug into the network and immediately start using. Put the card in, connect Ethernet, apply power, find its address, SSH in. An ordinary account with my key, &lt;code&gt;doas&lt;/code&gt; when I needed root, and enough room on the card that installing software would not immediately become another storage project. A modest list, which is how these things usually begin.&lt;/p&gt;
&lt;p&gt;The machine now exists. A Raspberry Pi 4 Model B Rev 1.5, four Cortex-A72 cores and 4 GB of RAM, running OpenBSD 7.9 from microSD. It answers to &lt;code&gt;rpi4b&lt;/code&gt;, negotiated gigabit Ethernet, and has separate &lt;code&gt;/usr&lt;/code&gt; and &lt;code&gt;/home&lt;/code&gt; filesystems with about 28 GiB each. The installation happened inside a virtual machine on my Apple Silicon Mac. By the time the card reached the Pi, the operating system was installed, patched, configured, and waiting for hardware to inhabit.&lt;/p&gt;
&lt;figure style="margin: 2rem 0; text-align: center;"&gt;
&lt;img src="https://tinycomputers.io/images/openbsd-rpi4b/openbsd-7.9-rpi4b-terminal.png" alt="SSH terminal connected to rpi4b showing neofetch: OpenBSD 7.9 arm64, four ARM Cortex-A72 cores, and 3954 MiB of memory." width="1384" height="1050" style="display: block; max-width: 100%; height: auto; margin: 0 auto;"&gt;
&lt;figcaption&gt;&lt;em&gt;The Pi over SSH, running OpenBSD 7.9. Four Cortex-A72 cores, 12 installed packages, and Puffy taking up most of the terminal.&lt;/em&gt;&lt;/figcaption&gt;
&lt;/figure&gt;

&lt;p&gt;&lt;strong&gt;Make your own card:&lt;/strong&gt; &lt;a href="https://tinycomputers.io/downloads/openbsd-7.9-rpi4b-generic-20260907/openbsd-7.9-rpi4b-generic.img.gz"&gt;Download the generic OpenBSD 7.9 image (525 MiB)&lt;/a&gt;, with &lt;a href="https://tinycomputers.io/downloads/openbsd-7.9-rpi4b-generic-20260907/README.md"&gt;setup instructions&lt;/a&gt;, &lt;a href="https://tinycomputers.io/downloads/openbsd-7.9-rpi4b-generic-20260907/SHA256"&gt;SHA-256 checksums&lt;/a&gt;, and &lt;a href="https://tinycomputers.io/downloads/openbsd-7.9-rpi4b-generic-20260907/openbsd-7.9-rpi4b-generic-redistribution.tar.gz"&gt;firmware licenses and corresponding source&lt;/a&gt;. This unofficial build accepts your SSH public key before boot. Its VM tests passed; a physical Pi boot test of the generic version is still pending.&lt;/p&gt;
&lt;p&gt;The handoff from VM to hardware is the interesting part. A VM can tell you quite a lot about an operating system. It has considerably less to say about whether a Raspberry Pi will find the bootloader you put on a card.&lt;/p&gt;
&lt;p&gt;OpenBSD already supports the Pi 4 through its arm64 port. The official installation media includes the Raspberry Pi firmware, so the starting point was conveniently unexotic: &lt;code&gt;install79.img&lt;/code&gt; from the OpenBSD 7.9 arm64 release, its signed checksum manifest, and the release public key. The &lt;a href="https://www.openbsd.org/arm64.html"&gt;arm64 platform page&lt;/a&gt; documents the support and the firmware requirements.&lt;/p&gt;
&lt;p&gt;I wanted the installation completed before deployment. An installer image gets you to the place where you can install an operating system; the image I wanted would get me to an SSH prompt. That meant running the installer somewhere, making the configuration decisions there, and preserving its finished disk as the thing I would eventually write to microSD.&lt;/p&gt;
&lt;p&gt;The Mac made a good workshop. QEMU ran a generic ARM64 &lt;code&gt;virt&lt;/code&gt; machine using Apple's Hypervisor Framework acceleration, with four virtual CPUs, 2 GB of RAM, EDK2 UEFI firmware, and virtio disk and network devices. SSH was forwarded to a port on the Mac's loopback interface. I could inspect the console and connect to the guest without giving every intermediate version of the build a presence on the LAN.&lt;/p&gt;
&lt;p&gt;Before installation, we verified the release material. The helper checked the Ed25519 signature on the manifest and the SHA-256 digest of the installer. It also compared the release public keys obtained from the official download location and OpenBSD's source repository. The original downloads and verification results stayed in the project directory with the scripts.&lt;/p&gt;
&lt;p&gt;There would eventually be several images with very similar names. Keeping a record of which bytes had actually been checked seemed like a better plan than trusting my future ability to remember what “final” meant.&lt;/p&gt;
&lt;p&gt;The installer set the hostname to &lt;code&gt;rpi4b&lt;/code&gt;, created my &lt;code&gt;alex&lt;/code&gt; account, enabled SSH, and selected &lt;code&gt;America/Chicago&lt;/code&gt;. We installed the release sets and retained the answer file and customization scripts. OpenBSD then booted as a normal installed guest. At that point, the account, services, and filesystems were all available for testing, and the Pi-specific boot work was still ahead.&lt;/p&gt;
&lt;p&gt;QEMU was providing the guest with UEFI firmware. The Pi would need to reach OpenBSD through its own boot chain, using files on the card. Installing under the generic virtual machine did not automatically arrange all of those files for the physical board.&lt;/p&gt;
&lt;p&gt;The customization script mounted the target's FAT boot partition and populated it with the Pi firmware, device trees, overlays, and U-Boot supplied by the official installer. It checked for the Pi 4's &lt;code&gt;bcm2711-rpi-4-b.dtb&lt;/code&gt; and the EFI loader at &lt;code&gt;efi/boot/bootaa64.efi&lt;/code&gt;. The boot configuration fit in four lines:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="na"&gt;arm_64bit&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;1&lt;/span&gt;
&lt;span class="na"&gt;enable_uart&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;1&lt;/span&gt;
&lt;span class="na"&gt;dtoverlay&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;disable-bt&lt;/span&gt;
&lt;span class="na"&gt;kernel&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;u-boot.bin&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;We compared the resulting configuration, &lt;code&gt;start4.elf&lt;/code&gt;, &lt;code&gt;fixup4.dat&lt;/code&gt;, Pi 4 device tree, U-Boot, Bluetooth-disabling overlay, and EFI loader against the signed installer. All matched. There was a known source for the firmware on this card, and a check that the files had survived the assembly process intact.&lt;/p&gt;
&lt;p&gt;The guest could demonstrate that OpenBSD started and accepted a login. The firmware comparison established that the Pi's boot files matched their source. The eventual hardware boot would connect those observations.&lt;/p&gt;
&lt;p&gt;The network configuration had a similar wrinkle. QEMU's network card appeared as &lt;code&gt;vio0&lt;/code&gt;. The Pi's onboard Ethernet appeared as &lt;code&gt;bse0&lt;/code&gt;, through OpenBSD's &lt;a href="https://man.openbsd.org/bse"&gt;Broadcom GENET driver&lt;/a&gt;. A perfectly functional DHCP configuration for a virtual network card would be of limited assistance to a physical interface with a different name.&lt;/p&gt;
&lt;p&gt;So the image kept its &lt;code&gt;vio0&lt;/code&gt; configuration for future VM testing and gained an &lt;code&gt;/etc/hostname.bse0&lt;/code&gt; containing:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;inet autoconf
inet6 autoconf
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;IPv4 DHCP and IPv6 autoconfiguration. That was the entire wired-network setup. No static address embedded in an image that might eventually land on another network, and no Wi-Fi credentials to get right before the first login. I would find &lt;code&gt;rpi4b&lt;/code&gt; in the router's lease table. Automatic &lt;code&gt;.local&lt;/code&gt; discovery was not configured, so the lease table was part of the intended procedure.&lt;/p&gt;
&lt;p&gt;For SSH, I used the same arrangement I wanted to live with afterward. My public key went into &lt;code&gt;/home/alex/.ssh/authorized_keys&lt;/code&gt;; the private key stayed on the Mac. The server started automatically, with public-key authentication enabled and password authentication, keyboard-interactive authentication, and direct root login disabled.&lt;/p&gt;
&lt;p&gt;There is consequently no default password for this image. Someone repeating the build needs to supply their own public key. These are the access choices for my installation, rather than a claim about what every OpenBSD installation does by default.&lt;/p&gt;
&lt;p&gt;Root access was one line in &lt;code&gt;/etc/doas.conf&lt;/code&gt;:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;permit nopass alex as root
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;I like how little explanation that line needs. &lt;code&gt;alex&lt;/code&gt; may become root, and another password prompt is not involved. The &lt;a href="https://man.openbsd.org/doas.conf"&gt;doas manual&lt;/a&gt; describes how to restrict rules to particular commands or arguments, but this account is the machine's administrator. Its rule deliberately permits all commands as root. Anyone holding the corresponding login key has that authority.&lt;/p&gt;
&lt;p&gt;The test was equally compact:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;doas&lt;span class="w"&gt; &lt;/span&gt;-n&lt;span class="w"&gt; &lt;/span&gt;id&lt;span class="w"&gt; &lt;/span&gt;-u
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;It printed &lt;code&gt;0&lt;/code&gt;. The &lt;code&gt;-n&lt;/code&gt; makes it noninteractive, so a successful result establishes that the permission actually works without a prompt. We also checked the running SSH daemon and its effective configuration. A line in a file is an intention; being able to log in and run the command is the behavior I was trying to buy with it.&lt;/p&gt;
&lt;p&gt;Then there was the card, and the apparently small request to use the rest of it.&lt;/p&gt;
&lt;p&gt;The portable image was 14 GiB: 15,032,385,536 bytes. Its layout included root, swap, separate &lt;code&gt;/usr&lt;/code&gt; and &lt;code&gt;/home&lt;/code&gt; filesystems, and a firmware partition. It also retained about 7.1 GiB of unallocated space inside the image. Writing it onto a larger card would reproduce that layout faithfully, including its unused space.&lt;/p&gt;
&lt;p&gt;There was no automatic first-boot expansion in this build. The image had exactly the filesystem sizes we gave it. A larger card would not persuade OpenBSD to reconsider them on its own.&lt;/p&gt;
&lt;p&gt;I wanted the extra capacity divided between &lt;code&gt;/usr&lt;/code&gt; and &lt;code&gt;/home&lt;/code&gt;, where installed software and my own work would have room to accumulate. Root, swap, and the boot area could stay as they were. So we made a second image sized to the actual card: &lt;strong&gt;63,864,569,856 bytes&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;That number matters more than the “64 GB” on the packaging. Cards sold under the same capacity label can differ in their exact size. An image built to the last usable part of one card needs another card at least that large. The portable version is the smaller starting point; the expanded version is the one prepared for this deployment.&lt;/p&gt;
&lt;p&gt;Here is what &lt;code&gt;df -h&lt;/code&gt; reported for the filesystems, with swap and the boot partition included for context:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Filesystem or area&lt;/th&gt;
&lt;th style="text-align: right;"&gt;Portable image&lt;/th&gt;
&lt;th style="text-align: right;"&gt;Expanded image&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: right;"&gt;1.3 GiB&lt;/td&gt;
&lt;td style="text-align: right;"&gt;1.3 GiB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/usr&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: right;"&gt;2.9 GiB&lt;/td&gt;
&lt;td style="text-align: right;"&gt;28.3 GiB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/home&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: right;"&gt;1.9 GiB&lt;/td&gt;
&lt;td style="text-align: right;"&gt;27.4 GiB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Swap&lt;/td&gt;
&lt;td style="text-align: right;"&gt;256 MiB&lt;/td&gt;
&lt;td style="text-align: right;"&gt;256 MiB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Firmware partition&lt;/td&gt;
&lt;td style="text-align: right;"&gt;260 MiB&lt;/td&gt;
&lt;td style="text-align: right;"&gt;260 MiB&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The added space was divided equally. The final totals differ because &lt;code&gt;/usr&lt;/code&gt; started larger. Filesystem sizes are also slightly smaller than their containing partitions, which explains why multiplying a displayed number back into sectors will not reproduce the disklabel.&lt;/p&gt;
&lt;p&gt;The complication was physical ordering. &lt;code&gt;/home&lt;/code&gt; sat after &lt;code&gt;/usr&lt;/code&gt;. Giving &lt;code&gt;/usr&lt;/code&gt; more contiguous space required relocating &lt;code&gt;/home&lt;/code&gt; first. The friendly phrase “expand both partitions” had turned into a sequence where the order of operations mattered quite a bit.&lt;/p&gt;
&lt;p&gt;We did this offline, in an OpenBSD installer VM, with the original image attached read-only alongside the larger target image and installer. The scripts checked the disk capacity, partition offsets, filesystem types, and disk identifier against the expected layout before proceeding. They were intentionally specific to these images. I would rather have a resize script decline a disk it does not recognize than improvise with its contents.&lt;/p&gt;
&lt;p&gt;First came extending the OpenBSD area in the outer partition table and enlarging the disklabel boundary. Then &lt;code&gt;/home&lt;/code&gt; was recreated at its final location, populated from the read-only source, and checked for matching contents and ownership. Only after that copy was verified could &lt;code&gt;/usr&lt;/code&gt; grow into the space that had become available.&lt;/p&gt;
&lt;p&gt;For &lt;code&gt;/usr&lt;/code&gt;, the script checked the existing filesystem, enlarged its partition, ran a &lt;code&gt;growfs&lt;/code&gt; dry run, performed the growth, and checked the filesystem again. OpenBSD's &lt;a href="https://man.openbsd.org/growfs"&gt;growfs documentation&lt;/a&gt; calls for an unmounted filesystem and a filesystem check afterward. Booting the installer gave us an environment where the target's &lt;code&gt;/usr&lt;/code&gt; was simply another unmounted disk partition.&lt;/p&gt;
&lt;p&gt;The expanded filesystems passed their checks. The disk identifier, root, swap, and firmware area were preserved. A normal boot of the expanded image then confirmed that &lt;code&gt;/usr&lt;/code&gt; and &lt;code&gt;/home&lt;/code&gt; mounted where they belonged, at their new sizes.&lt;/p&gt;
&lt;p&gt;Root still has about 1.3 GiB, and &lt;code&gt;/var&lt;/code&gt; lives there in this layout. That is a choice with consequences if the machine later becomes a collector of logs or service data. For the current installation it leaves ample room, but I have not allocated 28 GiB to every directory just by putting a larger card underneath them.&lt;/p&gt;
&lt;p&gt;Before packaging, we applied the available updates. The September 7, 2026 build had patches 001 through 014 installed, with no further patches reported by the update check. That statement has a date attached for a reason; anyone deploying later should check the &lt;a href="https://www.openbsd.org/errata79.html"&gt;OpenBSD 7.9 errata&lt;/a&gt; and run the update tools again.&lt;/p&gt;
&lt;p&gt;We also waited for kernel relinking to finish. Then the image needed to forget the parts of its identity that belonged to the VM: its generated SSH host keys and temporary DHCP lease. The resolver configuration was reset, and the Pi would generate fresh host keys at its own boot. A first-boot &lt;code&gt;fw_update&lt;/code&gt; would detect firmware needs in the physical environment.&lt;/p&gt;
&lt;p&gt;My authorized public key stayed. That key says who may administer the machine. The host keys say which machine has answered the connection. Cloning the first is the point of this personalized image; generating the second during deployment gives the running system its own SSH identity.&lt;/p&gt;
&lt;p&gt;Both variants booted independently in QEMU. SSH login worked, &lt;code&gt;sshd&lt;/code&gt; was running, &lt;code&gt;doas&lt;/code&gt; returned root, and the effective SSH settings and filesystem mounts matched the intended configuration. Each guest shut down cleanly before packaging. We compressed the raw images with gzip and verified that decompression reproduced the originals, along with checks of the partition table and boot partition.&lt;/p&gt;
&lt;p&gt;The compressed files were about 644 MiB and 738 MiB. Their expanded disk sizes were considerably larger, but empty space is cooperative material for a compressor. A SHA-256 manifest recorded the packaged artifacts.&lt;/p&gt;
&lt;p&gt;Writing the expanded image from macOS used the usual whole-device procedure:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;diskutil&lt;span class="w"&gt; &lt;/span&gt;list&lt;span class="w"&gt; &lt;/span&gt;external&lt;span class="w"&gt; &lt;/span&gt;physical
diskutil&lt;span class="w"&gt; &lt;/span&gt;info&lt;span class="w"&gt; &lt;/span&gt;/dev/diskN
diskutil&lt;span class="w"&gt; &lt;/span&gt;unmountDisk&lt;span class="w"&gt; &lt;/span&gt;/dev/diskN
sudo&lt;span class="w"&gt; &lt;/span&gt;dd&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;images/openbsd-7.9-rpi4b-64gb.img&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;of&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;/dev/rdiskN&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;bs&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;4m
sync
diskutil&lt;span class="w"&gt; &lt;/span&gt;eject&lt;span class="w"&gt; &lt;/span&gt;/dev/diskN
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;&lt;code&gt;N&lt;/code&gt; must be the verified card identifier, and the target must be large enough. That command replaces the whole device's contents. It takes the raw &lt;code&gt;.img&lt;/code&gt;; a gzip file needs decompression first. On macOS, Control-T asks &lt;code&gt;dd&lt;/code&gt; for a progress report, which is useful when the terminal has spent several minutes giving every appearance of having lost interest.&lt;/p&gt;
&lt;p&gt;The entire 63,864,569,856-byte write completed. I stopped the subsequent full-card readback before it finished, and the card was safely ejected. The records therefore say exactly that: complete image-package verification, complete card write, incomplete card readback verification. The physical boot that followed supplied different evidence; it did not retroactively checksum the unread part of the card.&lt;/p&gt;
&lt;p&gt;With the card in the Pi and Ethernet connected, the machine booted. The router assigned &lt;code&gt;10.1.1.32&lt;/code&gt; on my &lt;code&gt;10.1.1.0/24&lt;/code&gt; network, under the hostname &lt;code&gt;rpi4b&lt;/code&gt;. I connected with:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;ssh&lt;span class="w"&gt; &lt;/span&gt;-i&lt;span class="w"&gt; &lt;/span&gt;~/.ssh/id_ed25519&lt;span class="w"&gt; &lt;/span&gt;alex@10.1.1.32
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;OpenBSD 7.9, arm64. The boot log identified the Pi 4 Model B Rev 1.5 and all four Cortex-A72 cores. &lt;code&gt;rcctl check sshd&lt;/code&gt; returned a running service. &lt;code&gt;doas -n id -u&lt;/code&gt; printed &lt;code&gt;0&lt;/code&gt;. &lt;code&gt;/usr&lt;/code&gt; mounted at 28.3 GiB and &lt;code&gt;/home&lt;/code&gt; at 27.4 GiB.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;bse0&lt;/code&gt; reported &lt;code&gt;1000baseT full-duplex&lt;/code&gt;, with the link active. That is a negotiated link speed, not a throughput benchmark. The session established that wired networking and SSH worked on the real board. The expanded image received this physical test; the portable variant had its independent VM validation but was not separately booted on the Pi.&lt;/p&gt;
&lt;p&gt;That was the handoff completed: the boot files found the operating system, the operating system found its hardware, and the configuration I had tested on the Mac became the configuration of a machine on the network.&lt;/p&gt;
&lt;h3&gt;A download for the next card&lt;/h3&gt;
&lt;p&gt;An image containing my login key had a rather limited audience. For the downloadable version, we created fresh filesystems, copied the system into them, and removed my account, keys, history, and inherited machine identities. Fresh filesystems also keep deleted personal files out of the free space. Each deployment generates its own SSH host keys.&lt;/p&gt;
&lt;p&gt;The generic archive is about &lt;strong&gt;525 MiB&lt;/strong&gt;, expanding to &lt;strong&gt;63,864,569,856 bytes&lt;/strong&gt;. Check your card's actual capacity; a “64 GB” label is not enough. This version keeps separate &lt;code&gt;/usr&lt;/code&gt; and &lt;code&gt;/home&lt;/code&gt; filesystems, reporting about 28.4 GiB and 27.4 GiB after fresh formatting. There is &lt;strong&gt;no automatic expansion&lt;/strong&gt; on larger cards.&lt;/p&gt;
&lt;p&gt;Download the image and &lt;code&gt;SHA256&lt;/code&gt; from the links above into one directory. On macOS, verify the download before decompressing it:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;shasum&lt;span class="w"&gt; &lt;/span&gt;-a&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;256&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;--ignore-missing&lt;span class="w"&gt; &lt;/span&gt;-c&lt;span class="w"&gt; &lt;/span&gt;SHA256
gzip&lt;span class="w"&gt; &lt;/span&gt;-dc&lt;span class="w"&gt; &lt;/span&gt;openbsd-7.9-rpi4b-generic.img.gz&lt;span class="w"&gt; &lt;/span&gt;&amp;gt;&lt;span class="w"&gt; &lt;/span&gt;openbsd-7.9-rpi4b-generic.img
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Continue only if verification reports the image as &lt;code&gt;OK&lt;/code&gt;. Linux uses &lt;code&gt;sha256sum --ignore-missing -c SHA256&lt;/code&gt;. The manifest also covers the companion files; missing companions are skipped. Allow roughly 64 GB of free space for decompression.&lt;/p&gt;
&lt;p&gt;Flash the resulting &lt;code&gt;.img&lt;/code&gt; using the whole-card procedure above, substituting the generic filename. Reinsert the card afterward and find its small FAT boot volume. Copy your &lt;strong&gt;public&lt;/strong&gt; key into that volume's root directory, replacing &lt;code&gt;BOOT_VOLUME&lt;/code&gt; with its actual mounted name:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;cp&lt;span class="w"&gt; &lt;/span&gt;~/.ssh/id_ed25519.pub&lt;span class="w"&gt; &lt;/span&gt;/Volumes/BOOT_VOLUME/authorized_keys
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;The private key stays on your computer. Optionally add a plain-text &lt;code&gt;setup.conf&lt;/code&gt; beside &lt;code&gt;authorized_keys&lt;/code&gt;:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="na"&gt;username&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;openbsd&lt;/span&gt;
&lt;span class="na"&gt;hostname&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;openbsd-rpi4b&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Those are the defaults; the timezone is UTC. Safely eject the card, boot the Pi with Ethernet connected, and find its address in the DHCP leases. Then:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;ssh&lt;span class="w"&gt; &lt;/span&gt;-i&lt;span class="w"&gt; &lt;/span&gt;~/.ssh/id_ed25519&lt;span class="w"&gt; &lt;/span&gt;openbsd@PI_ADDRESS
doas&lt;span class="w"&gt; &lt;/span&gt;-s
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;There is &lt;strong&gt;no default password&lt;/strong&gt;. SSH stays disabled until a valid public key is supplied, then permits key login for the owner. Direct root SSH login is disabled; &lt;code&gt;doas&lt;/code&gt; grants root without a password. Missing or malformed setup input can be corrected on the FAT partition and retried at the next boot.&lt;/p&gt;
&lt;p&gt;Disposable VM copies passed owner setup, SSH, &lt;code&gt;doas&lt;/code&gt;, reboot persistence, and installation of a signed package through &lt;code&gt;pkg_add&lt;/code&gt;. Unrelated keys and root logins were rejected. The &lt;a href="https://tinycomputers.io/downloads/openbsd-7.9-rpi4b-generic-20260907/VALIDATION.json"&gt;validation record&lt;/a&gt; and &lt;a href="https://tinycomputers.io/downloads/openbsd-7.9-rpi4b-generic-20260907/openbsd-7.9-rpi4b-generic-firstboot.tar.gz"&gt;first-boot helper source&lt;/a&gt; are included. The generic image retains the boot firmware from my working card, but it still needs its own physical Pi test. The successful hardware session above belongs to the personalized build.&lt;/p&gt;
&lt;p&gt;For now, &lt;code&gt;rpi4b&lt;/code&gt; has an address and an SSH prompt. I can install software, copy a project over, or become root without reaching for a monitor. The card arrived with the installation work already behind it, which was the whole ambition when this was still a modest list.&lt;/p&gt;</description><category>arm64</category><category>bsd</category><category>disk images</category><category>doas</category><category>firmware</category><category>macos</category><category>microsd</category><category>openbsd</category><category>openbsd 7.9</category><category>qemu</category><category>raspberry pi</category><category>raspberry pi 4</category><category>single board computers</category><category>ssh</category><category>u-boot</category><guid>https://tinycomputers.io/posts/openbsd-7-9-on-the-raspberry-pi-4b.html</guid><pubDate>Mon, 07 Sep 2026 22:06:31 GMT</pubDate></item><item><title>Two Addresses, One Page: Finding the Firmware Bug Behind NetBSD Corruption on the Milk-V Mars</title><link>https://tinycomputers.io/posts/two-addresses-one-page-finding-the-firmware-bug-behind-netbsd-corruption-on-the-milk-v-mars.html?utm_source=feed&amp;utm_medium=rss&amp;utm_campaign=rss</link><dc:creator>A.C. Jokela</dc:creator><description>&lt;div class="audio-widget"&gt;
&lt;div class="audio-widget-header"&gt;
&lt;span class="audio-widget-icon"&gt;🎧&lt;/span&gt;
&lt;span class="audio-widget-label"&gt;Listen to this article&lt;/span&gt;
&lt;/div&gt;
&lt;audio controls preload="metadata"&gt;
&lt;source src="https://tinycomputers.io/two-addresses-one-page-finding-the-firmware-bug-behind-netbsd-corruption-on-the-milk-v-mars_tts.mp3" type="audio/mpeg"&gt;
&lt;/source&gt;&lt;/audio&gt;
&lt;div class="audio-widget-footer"&gt;33 min · AI-generated narration&lt;/div&gt;
&lt;/div&gt;

&lt;h2&gt;Two Addresses, One Page: Finding the Firmware Bug Behind NetBSD Corruption on the Milk-V Mars&lt;/h2&gt;
&lt;p&gt;The page was supposed to contain a fixed pattern. Instead it began with this:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;pkgsrc/print/tex-convbkmk-doc
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;That string had just come out of a compressed pkgsrc archive. It belonged in a tmpfs file. It had no business appearing in a permanent page of NetBSD kernel memory, much less in one of 256 pages I had allocated for the sole purpose of catching corruption. The kernel still believed it owned the page. Its allocation record was unchanged. Every audit I had added to the page allocator, pmap, direct-copy path, and SD controller reported zero events.&lt;/p&gt;
&lt;p&gt;The page had a physical address of &lt;code&gt;0x23e6d6000&lt;/code&gt;. A live tmpfs page containing the same pathname sat at &lt;code&gt;0x13e6d6000&lt;/code&gt;. The difference was exactly &lt;code&gt;0x100000000&lt;/code&gt;: four gibibytes.&lt;/p&gt;
&lt;p&gt;In July I wrote &lt;a href="https://tinycomputers.io/posts/four-partitions-and-a-borrowed-bootloader-netbsd-on-the-milk-v-mars.html"&gt;Four Partitions and a Borrowed Bootloader&lt;/a&gt;, the story of getting NetBSD-current to boot on my Milk-V Mars. That article ended with a working SSH prompt and one unresolved caveat: sustained writes could panic the kernel. I thought the board was running NetBSD with a RISC-V virtual-memory bug waiting to be fixed upstream.&lt;/p&gt;
&lt;p&gt;I was wrong. At least one pair of physical addresses was reaching the same CPU-visible memory. NetBSD could track both pages perfectly and still lose, because the distinction disappeared below the caches. Finding that took a reliable reproducer, several instrumented kernels, a small custom QEMU machine, a serial console, a correction to my own public diagnosis, and two one-line firmware fixes involving two different device trees.&lt;/p&gt;
&lt;h3&gt;Booting was only the first half&lt;/h3&gt;
&lt;p&gt;The first article covers the bring-up in detail, but the shape of it matters here. A Mars SD card needs four partitions. The JH7110 BootROM finds an SPL by a special GPT type GUID. SPL initializes DDR and loads an OpenSBI/U-Boot FIT from a second GUID. U-Boot starts NetBSD's EFI loader from a FAT partition, and that loader reads &lt;code&gt;/netbsd&lt;/code&gt; from an FFS root filesystem.&lt;/p&gt;
&lt;p&gt;NetBSD supplied the last two pieces. I borrowed mainline U-Boot 2025.01 from Debian's VisionFive 2 package for the first two, then scripted the whole image in &lt;a href="https://github.com/ajokela/milkv-netbsd"&gt;&lt;code&gt;milkv-netbsd&lt;/code&gt;&lt;/a&gt;. That got the machine through all four stages, but it initially handed NetBSD a VisionFive 2 device tree. The board's EEPROM is blank, so U-Boot never constructed &lt;code&gt;fdtfile&lt;/code&gt;; its empty default actually deleted the variable. Compiling this into U-Boot selected the right payload device tree:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;CONFIG_DEFAULT_FDT_FILE="starfive/jh7110-milkv-mars.dtb"
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;The Mars device tree fixed the Ethernet PHY configuration. Packet loss went from roughly 80 percent to zero, and the board became a stable SSH target. I called that the one-line ending to the device-tree saga.&lt;/p&gt;
&lt;p&gt;Then I extracted pkgsrc.&lt;/p&gt;
&lt;p&gt;The first failure was an assertion in &lt;code&gt;pmap_segtab.c&lt;/code&gt; from the pagedaemon. Nick Hudson fixed a separate deferred pmap activation bug in NetBSD's RISC-V code, and that assertion disappeared. The machine still corrupted memory. Another run died in the UBC list code. A Rust bootstrap extraction reached the same failure. Compiling Rust entirely in tmpfs eventually produced a fatal load fault with &lt;code&gt;0x808080...&lt;/code&gt; smeared through a pointer.&lt;/p&gt;
&lt;p&gt;Those variants removed several convenient suspects. The failure happened with one CPU online, so it was not an ordinary SMP race. It happened with Ethernet down, so it was not the network controller writing through a bad DMA address. It happened on tmpfs as well as FFS, with plenty of free memory, and it did not happen under &lt;code&gt;qemu -M virt&lt;/code&gt;. Four workers repeatedly extracting and deleting pkgsrc in a large tmpfs turned the mystery into a reproducer that usually failed in about a minute.&lt;/p&gt;
&lt;p&gt;That was enough to debug, though not yet enough to understand.&lt;/p&gt;
&lt;h3&gt;A very convincing wrong answer&lt;/h3&gt;
&lt;p&gt;UBC is NetBSD's unified buffer cache, the layer that connects file data to virtual memory. Early in boot, &lt;code&gt;ubc_init()&lt;/code&gt; allocates arrays used to track its mappings and hash buckets. Those pages remain kernel-owned for the life of the system. In one crash, exactly one 4 KiB page of a UBC array had been overwritten while the pages on either side remained intact. In another, the damaged page was full of data from the archive being extracted.&lt;/p&gt;
&lt;p&gt;The obvious story was that UVM had lost track of a physical page. Perhaps a boot-time reservation overlapped a range later passed to &lt;code&gt;uvm_page_physload()&lt;/code&gt;. Perhaps one physical page had acquired two &lt;code&gt;struct vm_page&lt;/code&gt; descriptors. UBC would still think it owned its permanent allocation while tmpfs received the same page and filled it with file data. Page-aligned damage, two logical owners, one physical page: every observation seemed to fit.&lt;/p&gt;
&lt;p&gt;I sent that diagnosis to NetBSD's &lt;code&gt;port-riscv&lt;/code&gt; list. The page-aligned evidence was real. The conclusion was wrong.&lt;/p&gt;
&lt;p&gt;The first instrument, &lt;code&gt;UBC_PAGE_GUARD&lt;/code&gt;, recorded the physical pages behind those permanent arrays and watched for the allocator to return one again. Its fatal version could call &lt;code&gt;panic()&lt;/code&gt; while allocator locks were held. When the board began wedging silently during autoconfiguration, I blamed the guard for finding the bug too early to print it. A nonfatal version wedged too. So did an untouched kernel. The instrument had become another plausible explanation for a failure it did not cause.&lt;/p&gt;
&lt;p&gt;This was expensive because the original firmware could not reset the Mars reliably. A reboot ended at a PMIC error and every new test needed a physical power cycle. Before spending more of those, I built a faster place to make mistakes.&lt;/p&gt;
&lt;h3&gt;Build a witness before another theory&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;mars-virt&lt;/code&gt; is a small QEMU hybrid: Mars RAM placement, its four hart IDs, the U74 architectural subset, and its 4 MHz timer, combined with virtual I/O. It is deliberately not a JH7110 emulator. It cannot model the board's DDR controller or physical cache behavior, and it never reproduced the corruption. Its job was to boot instrumented NetBSD kernels in minutes and tell me when the instruments lied.&lt;/p&gt;
&lt;p&gt;That happened immediately. The first full PGAUDIT run reported a double free. Following the event through UVM showed that my allocation hook sat after a legitimate failure path: UVM freed a page and returned &lt;code&gt;NULL&lt;/code&gt; before the hook had recorded the allocation. Moving the hook to the point where a page had definitely left the free lists made the event disappear under the same load. The emulator saved a hardware boot and, more usefully, kept a false positive out of the final evidence.&lt;/p&gt;
&lt;p&gt;PGAUDIT grew into a set of independent witnesses:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;a boot-time audit compared every physical segment for overlap;&lt;/li&gt;
&lt;li&gt;a PA-indexed bitmap watched normal and page-list allocations for double allocation, double free, and pages outside the tracked range;&lt;/li&gt;
&lt;li&gt;owner records kept the previous and current allocating program counters;&lt;/li&gt;
&lt;li&gt;UBC checks re-resolved every permanent KVA and compared it with the direct-map view, looking for remapping or a disagreement consistent with a stale translation or cache-coherency problem;&lt;/li&gt;
&lt;li&gt;hooks watched direct copies, page zeroes, page copies, and foreign mappings;&lt;/li&gt;
&lt;li&gt;the SD/MMC path counted final DMA descriptors at or above 4 GiB;&lt;/li&gt;
&lt;li&gt;256 permanently owned pages near the top of RAM carried patterns derived from their physical addresses.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The canaries were intentionally boring. Nothing should write them after initialization. They also widened the search beyond UBC, because a second panic had already destroyed a pool page-header tree rather than a UBC array. Registers at that crash contained fragments of pkgsrc pathnames: &lt;code&gt;eneral/m&lt;/code&gt; and &lt;code&gt;text/doc&lt;/code&gt;. UBC was not uniquely cursed. It was simply a frequent victim near the top of memory.&lt;/p&gt;
&lt;p&gt;On &lt;code&gt;mars-virt&lt;/code&gt;, PGAUDIT booted with four CPUs, recorded 104 UBC pages, and completed repeated extraction cycles with every counter at zero. That proved the diagnostic could survive the workload. It said nothing about the board, which was exactly the boundary I needed it to keep.&lt;/p&gt;
&lt;h3&gt;Every counter stayed zero&lt;/h3&gt;
&lt;p&gt;The hardware result first looked like a disappointment. Across successive runs, the ownership and UBC-mapping checks remained clean. Later kernels added the direct-copy, foreign-mapping, canary, and final MMC-descriptor checks. At the decisive panic, every counter other than the canary check was still zero:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;physseg_overlaps = 0
double_alloc     = 0
double_free      = 0
untracked        = 0
direct_hits      = 0
map_hits         = 0
dma_high         = 0
104 KVAs, 0 remapped, 0 stale
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;One UBC page began, exactly on its boundary, with &lt;code&gt;/DESCR/1.1/Sun May  3 05:30:35&lt;/code&gt;, a CVS &lt;code&gt;Entries&lt;/code&gt; line present in the pkgsrc archive. The pool corruption showed that arbitrary kernel pages could be hit. Because the text appeared only after decompression, a disk read was not spraying compressed input into RAM. An ordinary CPU copy into a legitimate tmpfs page was somehow also changing kernel-owned memory.&lt;/p&gt;
&lt;p&gt;The decisive kernel was PGAUDIT build number ten. Its four-worker run reached 1,722,848 KiB in tmpfs at 60 seconds and faulted in &lt;code&gt;ubc_alloc()&lt;/code&gt;. A hash-bucket head had become the invalid pointer &lt;code&gt;0x100000000&lt;/code&gt;. From DDB, the canary check reported 64 damaged pages out of 256. Canary 25 held the &lt;code&gt;pkgsrc/print/tex-convbkmk-doc&lt;/code&gt; pathname. Its audit state still said allocated, and its original owner still resolved to &lt;code&gt;ubc_init()&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;PGAUDIT still recorded the high page as owned by &lt;code&gt;ubc_init()&lt;/code&gt;, while the lower page had a separate descriptor and an allocation record from &lt;code&gt;uao_get()&lt;/code&gt;, exactly where a live tmpfs page should come from. The evidence now pointed to two separately tracked physical addresses rather than a recorded ownership transition. The lower address was four GiB below the damaged canary.&lt;/p&gt;
&lt;p&gt;That changed the question. I no longer needed to find a missing ownership transition. I needed to learn whether those two addresses were actually different once a memory access left the CPU caches.&lt;/p&gt;
&lt;h3&gt;Two addresses, one page&lt;/h3&gt;
&lt;p&gt;NetBSD's RISC-V direct map gives the kernel a simple virtual address for each physical address. In DDB, &lt;code&gt;pmap_extract()&lt;/code&gt; walked the real page tables and confirmed the mappings:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Direct-map virtual address&lt;/th&gt;
&lt;th style="text-align: right;"&gt;Physical address&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;0xffffffe13e6d6000&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: right;"&gt;&lt;code&gt;0x13e6d6000&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;0xffffffe23e6d6000&lt;/code&gt;&lt;/td&gt;
&lt;td style="text-align: right;"&gt;&lt;code&gt;0x23e6d6000&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The virtual-memory machinery saw two legitimate mappings to two physical addresses. Both views initially contained the same pkgsrc pathname. That alone was suggestive, but caches made it ambiguous. Two independent physical cache lines can temporarily contain the same bytes even if the memory behind them differs. I needed to change one and force both back to backing memory.&lt;/p&gt;
&lt;p&gt;I wrote &lt;code&gt;0x11223344&lt;/code&gt; through the lower direct-map address. The lower view changed; the upper view still showed the old &lt;code&gt;pkgs&lt;/code&gt; bytes:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;low:  11223344 702f6372
high: 73676b70 702f6372
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;That mismatch was useful. It showed that the two addresses had distinct cache-resident lines, so DDB was not truncating an address or displaying one location twice. I then called NetBSD's &lt;code&gt;fu540_ccache_cache_wbinv_range()&lt;/code&gt; for each 64-byte line. The documented U74 Flush64 operation back-probes L1 and writes back and invalidates the relevant L1/L2 line. Assuming the JH7110 cache block implements those semantics, reading both addresses again forced them to refill:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;low:  11223344 702f6372
high: 11223344 702f6372
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;The marker had crossed a boundary that NetBSD, the page tables, and the cache tags all treated as real. The common point lay downstream of L2 under that Flush64 assumption. Under this firmware's 8 GiB configuration, the tested physical addresses four GiB apart reached the same CPU-visible DDR backing.&lt;/p&gt;
&lt;p&gt;This aliasing mechanism explains the whole strange history. UVM was free to allocate the lower and upper pages to unrelated owners because their physical addresses differed. Stores to the tmpfs page could then change the kernel page at the matching offset in the other four-GiB half. Damage began on page boundaries because file writes target pages. It became common only when enough memory was in use to reach the upper addresses. QEMU remained clean because its RAM backend really had separate storage for every advertised address.&lt;/p&gt;
&lt;p&gt;It does &lt;strong&gt;not&lt;/strong&gt; prove that the board physically contains only four GiB. The unit may be a four-GiB SKU advertised as eight, an eight-GiB topology may have been programmed incorrectly, the controller may have a decode fault, or the hardware may be defective. What the experiment establishes is narrower and sufficient: this firmware exposed an eight-GiB range in which at least one tested pair, four GiB apart, shared backing memory. NetBSD could not safely use the upper half.&lt;/p&gt;
&lt;h3&gt;Put up a four-GiB fence&lt;/h3&gt;
&lt;p&gt;Before changing firmware, I tested that conclusion in the kernel. A temporary &lt;code&gt;MEMLIMIT&lt;/code&gt; stopped physical memory at the absolute exclusive address &lt;code&gt;0x140000000&lt;/code&gt;, preserving &lt;code&gt;[0x40000000, 0x140000000)&lt;/code&gt;. The word &lt;em&gt;absolute&lt;/em&gt; matters. Firmware reservations made NetBSD's runtime start &lt;code&gt;0x40060000&lt;/code&gt;; adding four GiB to that value would have admitted 384 KiB of the aliased upper aperture.&lt;/p&gt;
&lt;p&gt;The capped kernel reported 4,075 MB total and ran the same four-worker, 2,500 MiB tmpfs workload for 600 seconds. The uncapped control had failed after 60 seconds under less pressure. During the capped run, tmpfs repeatedly grew and emptied, memory pressure killed and restarted tar children, and all four worker loops were still alive when the script stopped them. Every PGAUDIT counter, all 256 canaries, and all 104 UBC mappings remained clean.&lt;/p&gt;
&lt;p&gt;Ten failure windows were enough to make the address limit a strong containment result. It was still a kernel workaround for a platform description that claimed unsafe memory. The next job was finding who had made that claim.&lt;/p&gt;
&lt;h3&gt;There were two device trees&lt;/h3&gt;
&lt;p&gt;The Mars device tree on the EFI partition describes four GiB and contains no reserved-memory entries. Yet the affected boot advertised an eight-GiB range from &lt;code&gt;0x40000000&lt;/code&gt; to &lt;code&gt;0x240000000&lt;/code&gt;. NetBSD's EFI loader rebuilt &lt;code&gt;/memory&lt;/code&gt; from the EFI memory map supplied by U-Boot, so the static node on disk did not determine the ranges NetBSD ultimately managed. The disk file was telling the truth and still losing the argument.&lt;/p&gt;
&lt;p&gt;The trap was that this boot chain uses device trees at two different times. The payload tree describes the finished board to NetBSD. That is the tree selected by &lt;code&gt;CONFIG_DEFAULT_FDT_FILE&lt;/code&gt;, the first one-line fix, and it repaired Ethernet. Much earlier, SPL needs its own built-in &lt;strong&gt;control device tree&lt;/strong&gt; to initialize DDR before full U-Boot or the operating-system payload exists.&lt;/p&gt;
&lt;p&gt;Mainline U-Boot uses the VisionFive 2 configuration for the Mars. In U-Boot 2024.04, &lt;code&gt;jh7110-starfive-visionfive-2.dtsi&lt;/code&gt; declares a bank at &lt;code&gt;0x40000000&lt;/code&gt; with size cells &lt;code&gt;&amp;lt;0x2 0x0&amp;gt;&lt;/code&gt;: eight GiB. SPL loads that value, then replaces it only if the board EEPROM reports a valid capacity of 2, 4, 8, or 16 GiB. This Mars has a blank EEPROM. No override occurs. The DDR driver selects &lt;code&gt;DDR_SIZE_8G&lt;/code&gt;, and the same size eventually reaches NetBSD.&lt;/p&gt;
&lt;p&gt;The blank EEPROM had now caused two independent failures. In full U-Boot it prevented selection of the Mars payload tree, which broke Ethernet. In SPL it left the VisionFive 2 control tree's eight-GiB default in place, which exposed the alias. Fixing &lt;code&gt;fdtfile&lt;/code&gt; could never change DDR geometry because DDR had already been initialized before that variable mattered.&lt;/p&gt;
&lt;p&gt;Milk-V's own Mars SDK supplied the missing clue. Its no-EEPROM path defaults to four GiB and keeps that value unless it reads a validated capacity. The 4G and 8G controller tables otherwise agreed with mainline. Rather than write a guessed capacity into the blank EEPROM, I changed the control tree's size by one cell:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kr"&gt;reg&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="mh"&gt;0x0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mh"&gt;0x40000000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mh"&gt;0x2&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mh"&gt;0x0&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kr"&gt;reg&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="mh"&gt;0x0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mh"&gt;0x40000000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mh"&gt;0x1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mh"&gt;0x0&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;That line does two things. It selects the four-GiB DDR geometry and tells later firmware to advertise one four-GiB bank. Because both change together, the test deliberately leaves the upper addresses unprobed.&lt;/p&gt;
&lt;h3&gt;Firmware had a second confession&lt;/h3&gt;
&lt;p&gt;There was another result hiding in the boot failures I had blamed on diagnostic kernels. U-Boot 2025.01 with OpenSBI 1.6 failed three of four measured hardware boots. Two kernels wedged silently during early autoconfiguration. One boot never reached NetBSD and instead printed repeated OpenSBI load-access faults from a secondary hart. The same failure points appeared with instrumented and untouched kernels.&lt;/p&gt;
&lt;p&gt;A U-Boot 2024.04/OpenSBI 1.4 pair had been staged for comparison since July. Once installed, every subsequent boot succeeded. Normal &lt;code&gt;/sbin/reboot&lt;/code&gt; began working too, turning a test loop that had required a person at the power cable into an autonomous 32-second reboot. The older firmware did not fix the memory problem by itself: its unmodified control tree still selected eight GiB, and the corruption remained. It separated boot stability from memory geometry, then gave me a stable base for the one-line four-GiB change.&lt;/p&gt;
&lt;p&gt;I rebuilt that pair from pinned source archives, preserving the known configuration byte for byte and changing only the control-tree line. The build verified that the SPL and U-Boot copies of the four-GiB control tree were embedded in their payloads.&lt;/p&gt;
&lt;h3&gt;Flashing the card from the card&lt;/h3&gt;
&lt;p&gt;Installing the corrected firmware did not require moving the microSD card to my laptop. NetBSD was already running from it, so I copied the two payloads over SSH, identified the live &lt;code&gt;spl&lt;/code&gt; and &lt;code&gt;uboot&lt;/code&gt; wedges by GPT label and type GUID, retained the baseline payloads for rollback, and wrote only those wedges. The EFI and FFS partitions were not written.&lt;/p&gt;
&lt;p&gt;Even that produced one last small trap. The SPL was 141,027 bytes. NetBSD's raw wedge accepted the first 275 complete sectors and rejected the final 227-byte fragment. The board was still running and had not rebooted into the incomplete write, so I fixed the flash script to pad only the final sector with &lt;code&gt;bs=512 conv=sync&lt;/code&gt;, rewrote both payloads, and verified hashes over their original lengths. The script now refuses to write unless the live disk mapping, labels, GUIDs, and expected payload hashes all agree.&lt;/p&gt;
&lt;p&gt;The final hardware A/B used the same &lt;strong&gt;uncapped&lt;/strong&gt; PGAUDIT kernel that had failed at 60 seconds under the eight-GiB firmware. With the corrected firmware, U-Boot printed &lt;code&gt;DRAM: 4 GiB&lt;/code&gt;, &lt;code&gt;bdinfo&lt;/code&gt; showed one bank ending at &lt;code&gt;0x13fffffff&lt;/code&gt;, and NetBSD received an end address of &lt;code&gt;0x140000000&lt;/code&gt;. It reported 4,075 MB without any kernel memory limit.&lt;/p&gt;
&lt;p&gt;Then the same stress test ran for 600 seconds. Zero double allocations. Zero double frees. Zero suspicious direct writes or foreign mappings. Zero high DMA descriptors. Zero damaged canaries. All 104 UBC mappings still agreed.&lt;/p&gt;
&lt;p&gt;The image builder has the same attitude. It defaults to the exact 2024.04/OpenSBI 1.4 firmware tested on this board, verifies both four-GiB control trees and their embedded copies, and ignores the old top-level eight-GiB files rather than falling back to them. &lt;code&gt;build-uboot.sh&lt;/code&gt; rebuilds the patched firmware from pinned archives and performs the same checks. A clean end-to-end image build passed without an SD card attached.&lt;/p&gt;
&lt;h3&gt;What “running” means now&lt;/h3&gt;
&lt;p&gt;The corrected firmware succeeded in both validation boots, while the underlying 2024.04/OpenSBI 1.4 pair had already made repeated boots and software resets reliable. NetBSD-current starts all four U74 cores, selects the Mars payload device tree, and receives a safe 4,075 MB physical-memory map. The exact uncapped PGAUDIT kernel that failed under the eight-GiB firmware completed the 600-second extraction test under the corrected firmware. Ethernet is stable, although NetBSD's &lt;code&gt;eqos&lt;/code&gt; transmit path still tops out around 2.45 Mbit/s on this board; receive performance is far better. There is more driver work available, but the reproducer no longer turns pathname text into kernel pointers.&lt;/p&gt;
&lt;div style="width: 100%; text-align: center;"&gt;
&lt;img src="https://tinycomputers.io/images/milkv-mars/netbsd-pgaudit-uname.png" alt="Terminal showing uname -a output from NetBSD 11.99.8 GENERIC64_PGAUDIT number 10 on the Milk-V Mars" loading="lazy" style="max-width: 100%; border-radius: 6px;"&gt;
&lt;/div&gt;

&lt;p&gt;&lt;em&gt;The live Mars after the firmware correction, running the exact uncapped PGAUDIT #10 kernel used in the A/B.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The old &lt;code&gt;netbsd-mars-20260719.img.xz&lt;/code&gt; linked from my July article contains the affected U-Boot 2025.01/OpenSBI 1.6 eight-GiB firmware. &lt;strong&gt;Do not use that image for sustained writes or data you care about.&lt;/strong&gt; Current source builds from the repository use the corrected, hardware-tested firmware. The older artifact documents the original work; it is not a safe installation image.&lt;/p&gt;
&lt;p&gt;I still do not know how much DRAM is fitted to this particular board, or whether different topology programming could make all eight advertised GiB usable. The tested pair aliased under the eight-GiB configuration. Restricting the platform to the first four GiB contained the failure in both a NetBSD A/B and a firmware A/B. That is enough to run the machine safely and too little to advertise an eight-GiB fix.&lt;/p&gt;
&lt;p&gt;My first article ended with one line selecting the right device tree for the operating system. This one ends with one line correcting the private device tree SPL had already used before the operating system existed. The first made the Mars reachable. The second made its memory trustworthy. The lines were tiny. Proving which one told the hardware the wrong story was the project.&lt;/p&gt;</description><category>bsd</category><category>ddb</category><category>ddr</category><category>device tree</category><category>firmware</category><category>jh7110</category><category>kernel debugging</category><category>memory corruption</category><category>milk-v</category><category>milk-v mars</category><category>netbsd</category><category>opensbi</category><category>pmap</category><category>risc v</category><category>riscv64</category><category>serial console</category><category>single board computers</category><category>starfive</category><category>u-boot</category><category>uvm</category><category>virtual memory</category><guid>https://tinycomputers.io/posts/two-addresses-one-page-finding-the-firmware-bug-behind-netbsd-corruption-on-the-milk-v-mars.html</guid><pubDate>Sat, 05 Sep 2026 14:00:00 GMT</pubDate></item><item><title>The Same Bad Luck, Quietly: Why a Fleet of Cheap Boards Feels Flakier Than One Old Xeon</title><link>https://tinycomputers.io/posts/the-same-bad-luck-quietly.html?utm_source=feed&amp;utm_medium=rss&amp;utm_campaign=rss</link><dc:creator>A.C. Jokela</dc:creator><description>&lt;div class="audio-widget"&gt;
&lt;div class="audio-widget-header"&gt;
&lt;span class="audio-widget-icon"&gt;🎧&lt;/span&gt;
&lt;span class="audio-widget-label"&gt;Listen to this article&lt;/span&gt;
&lt;/div&gt;
&lt;audio controls preload="metadata"&gt;
&lt;source src="https://tinycomputers.io/the-same-bad-luck-quietly_tts.mp3" type="audio/mpeg"&gt;
&lt;/source&gt;&lt;/audio&gt;
&lt;div class="audio-widget-footer"&gt;29 min · AI-generated narration&lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;Everything I run lives in one small wall-mounted 19-inch rack in the basement. A Xeon E5-1620 on a Supermicro X9SRL-F board, 128 gigabytes of RAM, does the unglamorous batch work down at the bottom. The fleet lives directly on top of it, and on the forced-air ducting above that: Orange Pi, NanoPi, Raspberry Pi, a Banana Pi or two, a RISC-V board that identifies as a Mars. And here is an observation I can't shake, stated as unscientifically as I experience it: the boards are flaky and the Xeon is not. The boards hang, drop their USB, corrupt a card, come back wrong after a power blip. The Xeon just runs. It has been just running for so long that I've stopped thinking of "running" as something it does, in the way you stop thinking of the furnace as something that works.&lt;/p&gt;
&lt;p&gt;The obvious response is that I'm comparing $80 hobby boards to commercial server equipment, and of course the server wins. True. But "you get what you pay for" is a shrug, not an explanation. The interesting question is what, precisely, the extra money bought, because the one thing it demonstrably didn't buy is speed. &lt;a href="https://tinycomputers.io/posts/freebsd-on-a-2011-macbook-pro.html"&gt;Last month I ran a 2011 MacBook Pro through the same Rust compile benchmark as the SBC fleet&lt;/a&gt;, and once you normalize per core and per gigahertz, a Sandy Bridge core from 2011 and a Cortex-A76 from 2023 do the same work to within a fraction of a percent. Meanwhile &lt;a href="https://tinycomputers.io/posts/friendlyelec-nanopc-t6n-review.html"&gt;the fastest machine on my bench is a $150 FriendlyElec board&lt;/a&gt;. And the Xeon holding up the rack is Sandy Bridge too, a 2012 part wearing a 2018 BIOS, the same silicon generation as that laptop. Whatever makes it dependable, it isn't that it's newer than the boards sitting on it. It is fourteen years old. Performance is not what went missing at the bottom of the market. Something else did.&lt;/p&gt;
&lt;p&gt;Here's the thesis: a spec sheet tells you what a board does. It never tells you how far from the edge it does it. The distance from the edge, which engineers call margin, is where reliability actually lives, and it isn't a component you can point to. It's a budget spent invisibly everywhere: guardband on voltage rails, derating on capacitors, extra dies rejected at the fab, validation hours nobody tweets about, ECC bits doing correction you'll never hear about. Because margin is invisible, it is precisely what cost engineering removes first. Removing it is undetectable at purchase time and for months afterward. The bill comes due later, in someone else's rack. Mine, in this case.&lt;/p&gt;
&lt;h3&gt;Margin Is a Budget, Not a Component&lt;/h3&gt;
&lt;p&gt;Take two boards that post identical benchmark numbers. One runs its DRAM controller with generous timing slack, filters every rail with capacitance the schematic reviewer insisted on, and spent six months in a validation lab getting thermally cycled and brownout-tested. The other runs the same silicon at the same clocks with none of that. No review can tell them apart in week one. Over a year, one of them hangs monthly and the other doesn't, and nobody, including the manufacturer, can tell you exactly why, because the difference was never a feature. It was slack, and slack doesn't have a part number.&lt;/p&gt;
&lt;p&gt;This is why the cheap board's spec sheet looks so good. Everything legible survived the cost-down: the core count, the RAM, the 2.5GbE port. Everything illegible was harvested: the hold-up time in the power supply, the guardband in the voltage tables, the burn-in that would have caught the marginal die. At a $35–150 price point every cent of BOM is fought over, and margin is the one line item you can cut with total deniability. Nobody returns a board because its decoupling network is minimal.&lt;/p&gt;
&lt;p&gt;When you buy server gear, an enormous fraction of the price is tests the machine passed that you will never see. That's the product. It's a terrible product to market ("pays for itself in hangs that don't happen"), which is why nobody markets it and everybody who runs both tiers eventually rediscovers it empirically.&lt;/p&gt;
&lt;h3&gt;Power Is the First Casualty&lt;/h3&gt;
&lt;p&gt;If I had to pick the single largest hole in the SBC reliability budget, it's power, at both ends of the cable.&lt;/p&gt;
&lt;p&gt;At the board end, these machines are built around phone- and tablet-grade PMICs. The X-Powers and Rockchip parts in that rack trace straight back to devices with batteries, which are the world's most forgiving power supplies. At the wall end, they're fed by whatever brick was in the drawer, over connectors chosen for cost. The Raspberry Pi 4 famously shipped with a USB-C detection circuit that caused e-marked cables to identify it as an audio accessory and refuse to power it at all. A small masterpiece of the genre, because it means even doing the &lt;em&gt;right&lt;/em&gt; thing (buying a good cable) could produce a mystery failure.&lt;/p&gt;
&lt;p&gt;The deeper problem is that undervoltage never announces itself as undervoltage. A Pi flags trouble when the rail sags below about 4.63 volts, and a marginal supply will dip past that for a few milliseconds exactly when all the cores wake up and a peripheral draws inrush at once. What you observe is displaced from the cause: USB devices dropping, an Ethernet PHY resetting, a silent hang, an SD card that's suddenly unhappy. Nothing says "power." There's a firmware register that keeps sticky bits recording whether undervoltage has &lt;em&gt;ever&lt;/em&gt; occurred since boot (&lt;code&gt;vcgencmd get_throttled&lt;/code&gt;), and I'd wager most fleets have never had it checked once, which means the most common fault in the tier is also the least diagnosed. The Pi does try to warn you: it draws a small lightning-bolt icon in the corner of the display when the rail sags. On a headless fleet, that's the one instrument the platform has, pointed at a monitor nobody attached.&lt;/p&gt;
&lt;p&gt;Now look at the machine they're sitting on. The Xeon's CPUs sit behind multi-phase VRMs with monitoring on every phase. Its power supply has real power-factor correction and hold-up time: stored energy, measured in milliseconds by spec, to coast through a mains flicker that would drop a wall wart flat. Machines of this class routinely run redundant supplies on conditioned circuits, and the platform logs every excursion where a human can read it later. The boards stacked on top of it experience the same utility power, the same flickers, the same transients. Not similar power: the same power, off the same circuit, from inches away. One machine rides through it and writes a log line. The others reboot and keep no diary.&lt;/p&gt;
&lt;h3&gt;Camera Media, Server Duty&lt;/h3&gt;
&lt;p&gt;The second-largest hole is storage, and it's really a category error we've all agreed to stop noticing. The SD card was designed for cameras: large sequential writes, occasionally, on a device that's off most of the time. We put them under operating systems that write small, constantly, forever (logs, databases, journal commits), and act surprised at the results.&lt;/p&gt;
&lt;p&gt;A consumer SD card has a minimal flash translation layer, minimal wear leveling, and no power-loss protection whatsoever. That last one is the killer. When power drops mid-write, you don't just risk your filesystem; you risk the card's own internal bookkeeping, the FTL's map of which physical blocks hold which logical ones. Corrupt the filesystem and &lt;code&gt;fsck&lt;/code&gt; can help you. Corrupt the map and no tool on your side of the interface can, because the card has forgotten where your data &lt;em&gt;is&lt;/em&gt;. This is how a routine brownout becomes "the card died," and why the failure rate correlates with exactly the boards that also have marginal power. Even the rating system conspires: the A1/A2 marks people shop by certify random-I/O &lt;em&gt;speed&lt;/em&gt;, not endurance or power-fail behavior. Which is to say, neither of the two properties a root filesystem actually needs.&lt;/p&gt;
&lt;p&gt;An enterprise SSD is built on the opposite assumption. There's a bank of capacitors on the PCB whose only job is to flush the DRAM cache when power fails, and the firmware was validated on rigs that yank the plug thousands of times looking for the one sequence that loses data. Above the drive, the server's whole storage stack assumes failure too: journals, checksums, RAID, SMART telemetry. I've been circling this fix for years without quite naming the principle: software RAID5 on a &lt;a href="https://tinycomputers.io/posts/pine64-rockpro64-sata-software-raid5.html"&gt;ROCKPro64 back in 2023&lt;/a&gt;, NVMe on every board that offers a lane today. Getting the root filesystem off SD is the single cheapest reliability upgrade in this hobby, and eMMC or an industrial pSLC card is a respectable middle ground when it isn't an option.&lt;/p&gt;
&lt;h3&gt;Tablet Silicon, Mainframe Silicon&lt;/h3&gt;
&lt;p&gt;Underneath both of those problems is a question of lineage, and this is where the essay earns its philosophy tag.&lt;/p&gt;
&lt;p&gt;The SoCs in that rack descend from tablets and set-top boxes. Allwinner and Rockchip built their businesses shipping silicon into devices that sit in a human's hands or under a human's television, devices whose fault-recovery mechanism is an annoyed person with a power button. That design center explains everything downstream. One DVFS voltage table ships for every die ever fabbed, because per-chip binning costs money and a tablet that crashes occasionally still sells. Firmware is validated to the standard of "the demo image boots." If your particular die happens to be marginal at the top operating point, you will never be told; you'll just own the board that hangs every few weeks, and you'll call it flaky, and the adjective will feel like an explanation.&lt;/p&gt;
&lt;p&gt;Server silicon descends from the opposite tradition. RAS (reliability, availability, serviceability) is literally IBM mainframe vocabulary, and it encodes an inverted assumption: no human is watching, so the machine must notice, correct, log, and contain its own faults. That's machine-check architecture. That's ECC not just on DRAM but on caches and interconnects. That's a BMC, an entire second computer whose only job is to watch the first computer and take notes. The fault-recovery subsystem of a server is &lt;em&gt;the server&lt;/em&gt;. The fault-recovery subsystem of an SBC is you.&lt;/p&gt;
&lt;p&gt;I wrote earlier this year about &lt;a href="https://tinycomputers.io/posts/why-some-chips-last-40-years.html"&gt;why chips like the Z80 survive four decades&lt;/a&gt;, and one of the answers was that they're simple enough to be completely known: every erratum found, documented, and worked around a generation ago. A modern eight-core SoC with an NPU bolted on has something close to mainframe complexity with a tablet's validation budget, which is the least comfortable quadrant of that chart to live in. Complexity you can't afford to verify is just latent failure with good benchmarks.&lt;/p&gt;
&lt;p&gt;There's a Heideggerian footnote here that I can't resist, given &lt;a href="https://tinycomputers.io/categories/heidegger.html"&gt;the running series&lt;/a&gt;. Heidegger's famous observation about tools is that equipment &lt;em&gt;withdraws&lt;/em&gt; when it works. The hammer disappears into the hammering, and only announces itself as an object when it breaks. By that standard the Xeon achieved ideal toolhood years ago; I forget it exists, which is the highest compliment infrastructure can receive. The fleet, meanwhile, keeps stepping forward out of the workflow to be &lt;em&gt;present&lt;/em&gt;: conspicuous, obtrusive, demanding to be understood rather than used. A flaky computer is one that keeps insisting on being a thing.&lt;/p&gt;
&lt;h3&gt;The Xeon Isn't Error-Free. It's Error-Correcting.&lt;/h3&gt;
&lt;p&gt;Here's the part that reframed the whole question for me: the solid machine and the flaky machines are probably having similar amounts of bad luck. They differ in what happens next.&lt;/p&gt;
&lt;p&gt;Google's 2009 fleet study (Schroeder, Pinheiro, and Weber, still the reference on this) found that correctable DRAM errors are not rare events but background weather: on the order of a third of machines and more than 8% of DIMMs took at least one correctable error per year, with affected modules often logging thousands. On a platform with ECC, every one of those events is a corrected word and an incremented counter that nobody reads. On a board with no ECC, no machine-check reporting, and no BMC, the &lt;em&gt;same physical event&lt;/em&gt;, one flipped bit from a marginal cell or a stray particle, is a mystery. If it lands in the wrong place, it's a hang with no witnesses, no log line, no autopsy.&lt;/p&gt;
&lt;p&gt;And this generalizes into what I think is the real answer to the flakiness question. On the fleet, every distinct fault class (a voltage sag, a flipped bit, a driver race, a thermal excursion, a dying card) collapses into one undifferentiated symptom: &lt;em&gt;it got weird&lt;/em&gt;. Without witnesses you can't do differential diagnosis, and without diagnosis you can't accumulate knowledge, so the whole tier gets described with an adjective instead of a distribution. "Flaky" is what fault data looks like when nothing is recording it.&lt;/p&gt;
&lt;p&gt;Then add plain arithmetic. There are nine-ish boards in the rack and one server holding them up. At &lt;em&gt;equal&lt;/em&gt; per-unit failure rates the fleet generates nine times the incidents, and the rates are not equal, for every reason above. Multiply an elevated rate by a fleet-sized N, subtract all telemetry, and the subjective experience is exactly what I have: a big machine that never does anything, and a stack of boards on top of it that's always doing &lt;em&gt;something&lt;/em&gt;. Survivorship of attention finishes the job: the Xeon's corrected errors never interrupt me, so as far as experience is concerned, they never happened.&lt;/p&gt;
&lt;h3&gt;Software Is Margin, Too&lt;/h3&gt;
&lt;p&gt;Everything so far was hardware, but the same asymmetry runs through the software, because software maturity is just margin accumulated in public.&lt;/p&gt;
&lt;p&gt;The Xeon runs a kernel hardened by millions of identical deployments over two decades; every erratum in that core has had a microcode or kernel workaround shipping for ten years. Each SBC, meanwhile, lives on a vendor BSP kernel pinned to some ancient LTS, a hand-maintained device tree, and an Ethernet PHY whose RGMII timing quirk gets fixed only when some hobbyist bisects the kernel on a weekend. The entire linux-sunxi community exists because Allwinner's own code needed a volunteer rescue mission; Armbian is best understood as the distributed QA department these vendors never hired. I have my own receipts scattered across this site: &lt;a href="https://tinycomputers.io/posts/building-a-kernel-and-disk-image-for-the-radxa-cm3.html"&gt;hand-building a kernel and disk image just to make a Radxa CM3 usable&lt;/a&gt;, &lt;a href="https://tinycomputers.io/posts/four-partitions-and-a-borrowed-bootloader-netbsd-on-the-milk-v-mars.html"&gt;borrowing a vendor bootloader to get NetBSD onto the Milk-V Mars&lt;/a&gt;, and &lt;a href="https://tinycomputers.io/posts/horizon-robotics-x3-cm-review.html"&gt;the Horizon X3, a board whose software situation earned the phrase "cautionary tale" in the title&lt;/a&gt;. None of those machines was unreliable silicon, exactly. They were unfinished &lt;em&gt;systems&lt;/em&gt;, shipped at the moment the demo booted, with the last 20% of engineering left as an exercise for the buyer.&lt;/p&gt;
&lt;h3&gt;Buying It Back&lt;/h3&gt;
&lt;p&gt;So the fleet is missing margin at every layer. Here is the redemptive turn, and the reason I don't consider any of this a complaint: most of that margin can be bought back, and the project of buying it back is philosophically respectable. It is, in fact, the founding bet of the modern datacenter. Early Google famously chose cheap, failure-prone commodity hardware and moved reliability up into software, treating machines as cattle rather than pets. Running a stack of $80 boards well is that same bet at 1:1000 scale.&lt;/p&gt;
&lt;p&gt;Concretely, four moves recover most of it. First, take power seriously: a real 5A supply per board instead of drawer archaeology, and actually read &lt;code&gt;get_throttled&lt;/code&gt;. The fleet will confess to brownouts you never noticed. A small UPS in front of the whole rack costs less than one board and deletes the mid-write brownout, the nastiest failure in the tier, at its source. Second, get the OS off raw SD: NVMe or eMMC where possible, and where it isn't, a read-only root with an overlay filesystem, so a power cut has nothing in flight to destroy; &lt;code&gt;raspi-config&lt;/code&gt; will set this up on a Pi, and Armbian can do the same. Third, arm the watchdog. Nearly every SoC in that rack ships a hardware watchdog timer that sits idle by default; one line of systemd configuration (&lt;code&gt;RuntimeWatchdogSec=10&lt;/code&gt;), and a silent hang stops being a Saturday trip down to the basement and becomes a fifteen-second self-reboot with a log entry. Fourth, add witnesses: a metrics exporter and a scrape target turn "flaky" from an adjective back into a distribution: &lt;em&gt;which&lt;/em&gt; board, at &lt;em&gt;what&lt;/em&gt; temperature, correlated with &lt;em&gt;what&lt;/em&gt; workload, how often. Monitoring is retrofitted telemetry; it's the poor man's BMC.&lt;/p&gt;
&lt;p&gt;And then there's the software-redundancy move, which I backed into this summer when &lt;a href="https://tinycomputers.io/posts/nothing-was-using-the-cores-three-idle-arm64-boards-one-ha-k3s-cluster.html"&gt;three idle boards in that rack became a three-node HA k3s cluster&lt;/a&gt;. The reliability effect surprised me more than the utilization effect. A node hang stopped being an outage and became a log line and a rescheduled pod, the exact transformation ECC performs on a bit flip, implemented three layers up. Better: faults finally got &lt;em&gt;names&lt;/em&gt;. The big.LITTLE crash loop that surfaced during that build would, on a lone board, have been one more entry in the ledger of weirdness; inside a cluster with health checks and logs, it was observable long enough to be understood.&lt;/p&gt;
&lt;p&gt;What can't be bought back is worth naming honestly: ECC. With rare industrial exceptions, the memory on these boards is soldered down and the controllers were never taught to correct it. That last piece of margin was removed at the fab, and no amount of software puts it back. You can only surround it (checksum the data, replicate the state, watchdog the hang) and accept that some small residue of mystery is the price of the tier.&lt;/p&gt;
&lt;h3&gt;The Same Bad Luck, Quietly&lt;/h3&gt;
&lt;p&gt;Which brings the philosophical question back around. Server hardware is engineered on the assumption that things go wrong: power sags, bits flip, drives lie, and the machine's job is to notice, correct, and keep a diary. Consumer silicon is engineered on the assumption that things mostly won't, and that a human will be standing nearby when they do. The Xeon at the bottom of the rack isn't luckier than the boards stacked on top of it. It is having the same bad luck, quietly, absorbing the same flickers and flipped bits I never hear about, because someone spent money, decades ago and again at the factory, on making bad luck boring.&lt;/p&gt;
&lt;p&gt;That's the real answer to my own question, and it's also why I've come to see the fleet's flakiness as something closer to candor than defect. The boards show me every fault the big machine hides, and in exchange they've taught me the entire discipline the big machine lets me skip: power budgets, storage physics, watchdogs, the value of a witness. How much of the missing margin can be restored from above is, I've realized, the central question of this whole tier of computing, and probably of this site. The answer so far: most of it. Not all of it. The remainder is either the reason the Xeon stays plugged in, or the tuition for everything the fleet keeps teaching. Some weeks it's both.&lt;/p&gt;</description><category>ecc</category><category>engineering margin</category><category>heidegger</category><category>home lab</category><category>philosophy</category><category>power delivery</category><category>reliability</category><category>sd cards</category><category>single board computers</category><category>watchdog</category><guid>https://tinycomputers.io/posts/the-same-bad-luck-quietly.html</guid><pubDate>Fri, 04 Sep 2026 14:00:00 GMT</pubDate></item><item><title>FreeBSD on a 2011 MacBook Pro: Fifteen Years of Progress, and Per Core It's a Tie</title><link>https://tinycomputers.io/posts/freebsd-on-a-2011-macbook-pro.html?utm_source=feed&amp;utm_medium=rss&amp;utm_campaign=rss</link><dc:creator>A.C. Jokela</dc:creator><description>&lt;div class="audio-widget"&gt;
&lt;div class="audio-widget-header"&gt;
&lt;span class="audio-widget-icon"&gt;🎧&lt;/span&gt;
&lt;span class="audio-widget-label"&gt;Listen to this article&lt;/span&gt;
&lt;/div&gt;
&lt;audio controls preload="metadata"&gt;
&lt;source src="https://tinycomputers.io/freebsd-on-a-2011-macbook-pro_tts.mp3" type="audio/mpeg"&gt;
&lt;/source&gt;&lt;/audio&gt;
&lt;div class="audio-widget-footer"&gt;34 min · AI-generated narration&lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;Every machine I have put through this benchmark has been a single-board computer. Rockchip, Broadcom, Intel's N-series, a RISC-V pioneer that took eleven minutes to do what the others did in one. This one is not an SBC at all. It is a 13-inch MacBook Pro from early 2011, an Apple MacBookPro8,1 with a Sandy Bridge Core i5, running FreeBSD 15.1-RELEASE-p3 instead of the macOS Apple stopped shipping it years ago.&lt;/p&gt;
&lt;p&gt;I did not add it to the fleet to find out whether a 2011 laptop is fast. I added it because it is a control. Every claim about how far single-board computers have come is implicitly a claim about what they came &lt;em&gt;from&lt;/em&gt;, and I had never actually measured the "from." A $60 Raspberry Pi 5 against a machine that cost well north of a thousand dollars new is a clean test of how much of the last fifteen years was real.&lt;/p&gt;
&lt;p&gt;The short version: it lands &lt;strong&gt;sixth of nine&lt;/strong&gt; on my bench, at 131.00 seconds: behind every current ARM board with four or more modern cores, comfortably ahead of the Cortex-A53 boards and the RISC-V entry. That is the boring part. The interesting part is what happens when you normalize that number per core and per gigahertz, at which point a 2011 Intel core and a 2023 ARM core turn out to do &lt;strong&gt;the same amount of work to within 0.3%&lt;/strong&gt;. Fifteen years of progress went almost entirely into core count, power, and specialized instructions, not into making an individual core meaningfully better at compiling Rust.&lt;/p&gt;
&lt;p&gt;Along the way this machine also tried to sell me a mechanical hard drive that reads at 2.86 GB/s, and a CPU benchmark that claimed five million prime-sieve passes per second. Both were lies, and both are instructive.&lt;/p&gt;
&lt;h3&gt;The Hardware: Sandy Bridge in 2026&lt;/h3&gt;
&lt;p&gt;The MacBookPro8,1 is built on an &lt;strong&gt;Intel Core i5-2435M&lt;/strong&gt;: two physical cores, four threads via Hyper-Threading, 2.4 GHz base, 3.0 GHz single-core turbo, 2.8 GHz two-core turbo. A 32 nm Sandy Bridge part with a 35 W TDP.&lt;/p&gt;
&lt;p&gt;That core count is the whole story of where it lands. Every ARM board in this comparison has at least four cores; the RK3588 boards have eight. This machine brings two real cores to a fight against four and eight, and Hyper-Threading only partly closes the gap.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Component&lt;/th&gt;
&lt;th&gt;Specification&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;CPU&lt;/td&gt;
&lt;td&gt;Intel Core i5-2435M, 2C/4T, 2.4 GHz base / 3.0 GHz turbo&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Microarchitecture&lt;/td&gt;
&lt;td&gt;Sandy Bridge, 32 nm, 35 W TDP&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ISA extensions&lt;/td&gt;
&lt;td&gt;SSE4.2, &lt;strong&gt;AVX&lt;/strong&gt;, &lt;strong&gt;AES-NI&lt;/strong&gt;, PCLMULQDQ (no SHA extensions)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;RAM&lt;/td&gt;
&lt;td&gt;2 × 4 GiB DDR3-1333, dual channel (21.3 GB/s theoretical)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Storage&lt;/td&gt;
&lt;td&gt;Seagate ST9500325ASG: 500 GB, 2.5", &lt;strong&gt;5400 RPM mechanical&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GPU&lt;/td&gt;
&lt;td&gt;Intel HD Graphics 3000 (no driver under FreeBSD)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ethernet&lt;/td&gt;
&lt;td&gt;Broadcom BCM57765 Gigabit (present, uncabled)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Wireless&lt;/td&gt;
&lt;td&gt;USB Realtek RTL8188EU 1T1R 802.11n&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OS&lt;/td&gt;
&lt;td&gt;FreeBSD 15.1-RELEASE-p3 amd64, ZFS on root&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Toolchain&lt;/td&gt;
&lt;td&gt;rustc / cargo 1.98.0, &lt;code&gt;x86_64-unknown-freebsd&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Two rows carry most of the weight. &lt;strong&gt;AES-NI and AVX&lt;/strong&gt; are what keep this chip relevant in 2026: Sandy Bridge was the generation that introduced both, and as we will see, that timing decides several benchmarks outright. The &lt;strong&gt;5400 RPM mechanical hard drive&lt;/strong&gt; is what drags it back into the past. Nothing else on my bench has spinning rust in it.&lt;/p&gt;
&lt;h3&gt;The Benchmark, and Why It Has Two Numbers&lt;/h3&gt;
&lt;p&gt;My standard workload is a clean release-mode build of &lt;a href="https://github.com/ajokela/ballistics-engine"&gt;ballistics-engine&lt;/a&gt;, a Rust project of mine. Rust compilation stresses integer throughput, branch prediction, memory bandwidth, and parallel scaling simultaneously, and it is what I actually use these machines for.&lt;/p&gt;
&lt;p&gt;As I wrote in the &lt;a href="https://tinycomputers.io/posts/friendlyelec-nanopc-t6n-review.html"&gt;NanoPC-T6N review&lt;/a&gt;, that benchmark quietly outgrew itself. The October 2025 fleet sweep compiled 43 source files and 16,639 lines. Today's &lt;code&gt;main&lt;/code&gt; is 196 files and 155,867 lines, nine times the code. Any number produced against current &lt;code&gt;HEAD&lt;/code&gt; is meaningless next to an archived 2025 result.&lt;/p&gt;
&lt;p&gt;So, as with the T6N, this run has &lt;strong&gt;two tiers&lt;/strong&gt;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Pinned: commit &lt;code&gt;2821bba&lt;/code&gt;&lt;/strong&gt;, verified on the machine at 43 &lt;code&gt;.rs&lt;/code&gt; files / 16,639 LOC / 144 crates. Byte-for-byte the tree the fleet was measured on. Every fleet comparison below uses this.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;HEAD: commit &lt;code&gt;b0cfcd4&lt;/code&gt;&lt;/strong&gt;, 196 files / 155,867 LOC / 246 crates. Useful as a 2026-scale data point, comparable only to future runs of the same commit.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Each tier got an untimed warm-up build to fetch and compile dependencies, then three timed &lt;code&gt;cargo build --release&lt;/code&gt; runs, each preceded by &lt;code&gt;cargo clean&lt;/code&gt; and a &lt;code&gt;sync&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;A note for anyone repeating this on FreeBSD: the base system ships without &lt;code&gt;git&lt;/code&gt;, &lt;code&gt;sudo&lt;/code&gt;, or &lt;code&gt;bash&lt;/code&gt; (they are all ports, not base), and the default login shell is &lt;code&gt;tcsh&lt;/code&gt;, which cannot parse &lt;code&gt;2&amp;gt;&amp;amp;1&lt;/code&gt;. I fetched both source trees as GitHub codeload tarballs pinned to exact commit hashes rather than cloning, and wrapped every remote command in &lt;code&gt;sh -c&lt;/code&gt;. Neither changes the source tree; both will trip you up if you assume Linux habits transfer.&lt;/p&gt;
&lt;h3&gt;Compilation Results&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Pinned tier (&lt;code&gt;2821bba&lt;/code&gt;, 16,639 LOC), fleet-comparable:&lt;/strong&gt;&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Run&lt;/th&gt;
&lt;th&gt;Time&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;127.78 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;131.33 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;133.87 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Mean&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;131.00 s&lt;/strong&gt; (median 131.33 s, σ 3.06 s)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;HEAD tier (&lt;code&gt;b0cfcd4&lt;/code&gt;, 155,867 LOC):&lt;/strong&gt;&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Run&lt;/th&gt;
&lt;th&gt;Time&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;711.95 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;718.60 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;712.00 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Mean&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;714.18 s&lt;/strong&gt; (median 712.00 s, σ 3.82 s)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The current tree takes &lt;strong&gt;5.45×&lt;/strong&gt; as long for 9.4× the source volume: sublinear, because a growing share of the work is dependency compilation the two trees partly share.&lt;/p&gt;
&lt;h4&gt;Against the Fleet&lt;/h4&gt;
&lt;p&gt;Clean &lt;code&gt;cargo build --release&lt;/code&gt;, pinned tree, mean of three runs:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;#&lt;/th&gt;
&lt;th&gt;System&lt;/th&gt;
&lt;th&gt;SoC&lt;/th&gt;
&lt;th&gt;Cores&lt;/th&gt;
&lt;th&gt;Arch&lt;/th&gt;
&lt;th&gt;Mean&lt;/th&gt;
&lt;th&gt;vs. best&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;&lt;a href="https://tinycomputers.io/posts/friendlyelec-nanopc-t6n-review.html"&gt;NanoPC-T6N&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Rockchip RK3588&lt;/td&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;arm64&lt;/td&gt;
&lt;td&gt;52.55 s&lt;/td&gt;
&lt;td&gt;1.00×&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;&lt;a href="https://tinycomputers.io/posts/rk3588-orange-pi-5-max-review.html"&gt;Orange Pi 5 Max&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Rockchip RK3588&lt;/td&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;arm64&lt;/td&gt;
&lt;td&gt;62.31 s&lt;/td&gt;
&lt;td&gt;1.19×&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;&lt;a href="https://tinycomputers.io/posts/raspberry-pi-compute-module-5-review.html"&gt;Raspberry Pi CM5&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;BCM2712&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;arm64&lt;/td&gt;
&lt;td&gt;71.04 s&lt;/td&gt;
&lt;td&gt;1.35×&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;&lt;a href="https://tinycomputers.io/posts/lattepanda-iota-a-review.html"&gt;LattePanda IOTA&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Intel N150&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;x86_64&lt;/td&gt;
&lt;td&gt;72.21 s&lt;/td&gt;
&lt;td&gt;1.37×&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;Raspberry Pi 5&lt;/td&gt;
&lt;td&gt;BCM2712&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;arm64&lt;/td&gt;
&lt;td&gt;76.65 s&lt;/td&gt;
&lt;td&gt;1.46×&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;6&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;MacBookPro8,1 (FreeBSD)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Core i5-2435M&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;2C/4T&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;x86_64&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;131.00 s&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;2.49×&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;td&gt;&lt;a href="https://tinycomputers.io/posts/banana-pi-cm5-pro-review.html"&gt;Banana Pi CM5-Pro&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;RK3576&lt;/td&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;arm64&lt;/td&gt;
&lt;td&gt;167.15 s&lt;/td&gt;
&lt;td&gt;3.18×&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;&lt;a href="https://tinycomputers.io/posts/horizon-robotics-x3-cm-review.html"&gt;Horizon X3 CM&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Sunrise X3 (A53)&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;arm64&lt;/td&gt;
&lt;td&gt;378.81 s&lt;/td&gt;
&lt;td&gt;7.21×&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;9&lt;/td&gt;
&lt;td&gt;&lt;a href="https://tinycomputers.io/posts/the-orangepi-rv2.html"&gt;Orange Pi RV2&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Ky X1 (RISC-V)&lt;/td&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;riscv64&lt;/td&gt;
&lt;td&gt;650.60 s&lt;/td&gt;
&lt;td&gt;12.38×&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;em&gt;Archived figures are from the October 2025 fleet sweep on rustc 1.90/1.91; the MacBook figure is from August 2026 on rustc 1.98.0 against the same source tree. See the caveats at the end.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Mid-table. It is 1.71× slower than a Raspberry Pi 5, 1.81× slower than a LattePanda IOTA, and 2.49× off the leading NanoPC-T6N, while being 1.28× faster than a Banana Pi CM5-Pro and 4.97× faster than the RISC-V Orange Pi RV2. For scale, the AMD AI Max+ 395 desktop in the same archived sweep did the pinned tree in 13.71 s.&lt;/p&gt;
&lt;h4&gt;The Number That Actually Matters&lt;/h4&gt;
&lt;p&gt;A 2011 laptop losing to a 2023 Raspberry Pi is not a story. Losing by only 1.71× is.&lt;/p&gt;
&lt;p&gt;The gap is almost entirely core count. Rust compilation parallelizes well across crates, and the Pi 5 brings four Cortex-A76 cores where this machine brings two Sandy Bridge cores plus SMT. So normalize it.&lt;/p&gt;
&lt;p&gt;The Pi 5 spends &lt;strong&gt;306.6 core-seconds&lt;/strong&gt; on the build (4 cores × 76.65 s). The MacBook spends &lt;strong&gt;262.0&lt;/strong&gt; (2 cores × 131.00 s), 1.17× &lt;em&gt;fewer&lt;/em&gt; per core. But the i5 is also running at 2.8 GHz against the A76's 2.4 GHz, and once you divide that out the two land at &lt;strong&gt;1.003×. A 0.3% difference.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Per core, per gigahertz, a 2011 Sandy Bridge core and a 2023 Cortex-A76 do the same amount of Rust compilation.&lt;/p&gt;
&lt;p&gt;That needs one honest caveat: count the i5's four SMT threads instead of its two physical cores and the ratio flips to 0.59×, because SMT threads are not cores. The defensible reading is per &lt;em&gt;physical&lt;/em&gt; core, and on that basis fifteen years of core design produced parity, not progress.&lt;/p&gt;
&lt;p&gt;This is the clearest evidence I have for where SBC progress actually came from. It is not that ARM cores became dramatically faster than 2011 x86 cores. It is that you can now buy eight of them, on one die, drawing a tenth of the power, for eighty dollars.&lt;/p&gt;
&lt;p&gt;I want to be careful about the efficiency claim, because &lt;strong&gt;I never measured power.&lt;/strong&gt; The machine stayed on AC and reported a 0 mA discharge rate throughout. On &lt;em&gt;nominal TDP&lt;/em&gt; alone (35 W against the Pi 5's ~12 W and the N150's ~6 W), this laptop does less work for several times the energy. Treat that as an order-of-magnitude statement, not a measurement.&lt;/p&gt;
&lt;h3&gt;Cryptography: A Tale of Two Instruction Sets&lt;/h3&gt;
&lt;p&gt;Here the comparison stops being about core counts and starts being about what silicon designers chose to put in hardware. Single-threaded OpenSSL 3.5.6, 16 KB blocks, against the NanoPC-T6N's Cortex-A76:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Algorithm&lt;/th&gt;
&lt;th&gt;i5-2435M&lt;/th&gt;
&lt;th&gt;RK3588 (A76)&lt;/th&gt;
&lt;th&gt;Ratio&lt;/th&gt;
&lt;th&gt;Winner&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;AES-128-CBC&lt;/td&gt;
&lt;td&gt;575.6 MB/s&lt;/td&gt;
&lt;td&gt;1831.8 MB/s&lt;/td&gt;
&lt;td&gt;3.18×&lt;/td&gt;
&lt;td&gt;Cortex-A76&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AES-128-GCM&lt;/td&gt;
&lt;td&gt;1112.4 MB/s&lt;/td&gt;
&lt;td&gt;2185.7 MB/s&lt;/td&gt;
&lt;td&gt;1.96×&lt;/td&gt;
&lt;td&gt;Cortex-A76&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AES-256-GCM&lt;/td&gt;
&lt;td&gt;988.2 MB/s&lt;/td&gt;
&lt;td&gt;1763.9 MB/s&lt;/td&gt;
&lt;td&gt;1.78×&lt;/td&gt;
&lt;td&gt;Cortex-A76&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;SHA-256&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;251.8 MB/s&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;1429.4 MB/s&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;5.68×&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Cortex-A76&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SHA-512&lt;/td&gt;
&lt;td&gt;361.2 MB/s&lt;/td&gt;
&lt;td&gt;376.1 MB/s&lt;/td&gt;
&lt;td&gt;1.04×&lt;/td&gt;
&lt;td&gt;Cortex-A76&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ChaCha20-Poly1305&lt;/td&gt;
&lt;td&gt;761.9 MB/s&lt;/td&gt;
&lt;td&gt;674.4 MB/s&lt;/td&gt;
&lt;td&gt;1.13×&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Sandy Bridge&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;That pattern is not noise, and it is not "newer is faster."&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;SHA-256 is the blowout, and it is an instruction-set gap rather than a performance gap.&lt;/strong&gt; ARMv8 gained dedicated SHA-256 instructions. Sandy Bridge has none. Intel did not ship SHA extensions until Goldmont and Ice Lake, years later. The A76 does SHA-256 in hardware while the i5 grinds it out in general-purpose integer code. No clock speed closes 5.68×.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;SHA-512 is the control that proves the point.&lt;/strong&gt; Neither chip accelerates SHA-512, so both run software implementations, and they land within 4% of each other. Take away the instruction-set advantage and a 2011 Intel core matches a 2023 ARM core almost exactly. That is the same conclusion the compile normalization reached, arrived at from a completely different direction.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ChaCha20-Poly1305 is the one outright win&lt;/strong&gt;, and it comes from AVX. ChaCha20 was designed to be fast in software on SIMD units, and Sandy Bridge's AVX serves it well enough to beat the A76 by 13%. This is exactly why ChaCha20 exists: it is what you reach for when you cannot count on AES hardware.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;AES sits in between&lt;/strong&gt;, and the i5 does have hardware for it. Disabling AES-NI isolates the contribution:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;AES-128-CBC&lt;/th&gt;
&lt;th&gt;Throughput&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;AES-NI enabled&lt;/td&gt;
&lt;td&gt;575.6 MB/s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AES-NI disabled&lt;/td&gt;
&lt;td&gt;296.9 MB/s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Speedup&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;1.94×&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Under 2× looks disappointing for dedicated hardware until you remember that CBC &lt;em&gt;encryption&lt;/em&gt; is inherently serial: every block depends on the one before it, so the pipelined AES-NI units can never be filled. Parallelizable GCM tells the real story at &lt;strong&gt;1112 MB/s&lt;/strong&gt;, nearly 4× the unaccelerated CBC figure. AES-NI works fine; CBC just cannot use it.&lt;/p&gt;
&lt;p&gt;Asymmetric operations round it out: RSA-2048 at 743.7 signs/s and 24,962 verifies/s; ECDSA P-256 at 22,696 signs/s and 7,426 verifies/s.&lt;/p&gt;
&lt;p&gt;Practically: as a TLS terminator this machine is respectable, roughly a gigabit of AES-GCM on a single core. As anything that hashes heavily (content-addressed storage, a Git server, bulk checksumming), it is badly handicapped against any ARMv8 board.&lt;/p&gt;
&lt;h3&gt;Hyper-Threading Does Nothing Here (And That's Fine)&lt;/h3&gt;
&lt;p&gt;Intra-machine scaling, &lt;code&gt;stress-ng --cpu&lt;/code&gt; with the &lt;code&gt;matrixprod&lt;/code&gt; method:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Threads&lt;/th&gt;
&lt;th&gt;Bogo-ops/s&lt;/th&gt;
&lt;th&gt;Scaling&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;1378.90&lt;/td&gt;
&lt;td&gt;1.00×&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;2077.40&lt;/td&gt;
&lt;td&gt;1.51×&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;2077.78&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;1.51×&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Hyper-Threading contributes &lt;strong&gt;exactly nothing&lt;/strong&gt;: 2077.40 to 2077.78 is noise. That is not a fault. &lt;code&gt;matrixprod&lt;/code&gt; is floating-point and SIMD-bound, and on Sandy Bridge, SMT siblings share the floating-point execution units. Two threads already saturate them.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Do not generalize this to the compile benchmark.&lt;/strong&gt; Rust compilation is mixed integer, branch, and pointer-chasing work with frequent memory stalls, precisely the profile SMT was built to exploit. The compile results &lt;em&gt;do&lt;/em&gt; benefit from four threads. These two measurements answer different questions about the same chip, and conflating them would be an easy way to draw a badly wrong conclusion.&lt;/p&gt;
&lt;p&gt;The 1→2 scaling of 1.51× rather than 2.00× is also explainable: single-threaded work runs at the 3.0 GHz one-core turbo, two-threaded work at the 2.8 GHz two-core ceiling. Correct for that and real two-core scaling is about 1.62×.&lt;/p&gt;
&lt;h3&gt;Storage: The 5400 RPM Anchor&lt;/h3&gt;
&lt;p&gt;The system disk is a &lt;strong&gt;Seagate ST9500325ASG&lt;/strong&gt;: 500 GB, 2.5-inch, spinning at 5400 RPM, confirmed by the drive's own &lt;code&gt;rotationrate&lt;/code&gt; field rather than inferred from the model number.&lt;/p&gt;
&lt;p&gt;Raw sequential read via &lt;code&gt;diskinfo -t&lt;/code&gt;, bypassing the filesystem:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Zone&lt;/th&gt;
&lt;th&gt;Throughput&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Outside tracks&lt;/td&gt;
&lt;td&gt;77.2 MB/s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Middle tracks&lt;/td&gt;
&lt;td&gt;65.7 MB/s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Inside tracks&lt;/td&gt;
&lt;td&gt;40.2 MB/s&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;A textbook ZCAV curve, 1.92× falloff from outer to inner tracks, because the outer edge of the platter passes under the head faster. Seek times are what you would expect and worse: &lt;strong&gt;33.3 ms full stroke&lt;/strong&gt;, 23.8 ms half, 18.5 ms quarter. An NVMe drive services a request roughly a thousand times faster.&lt;/p&gt;
&lt;p&gt;At the filesystem level, on ZFS with compression off: &lt;strong&gt;74.8 MB/s write, 75.0 MB/s read&lt;/strong&gt;, tracking the outer-track raw number closely.&lt;/p&gt;
&lt;p&gt;Getting that read figure honestly took two attempts. The first returned &lt;strong&gt;2.86 GB/s&lt;/strong&gt;, thirty-six times what the drive can physically do. The ZFS ARC was the culprit: the 1 GB test file fit entirely inside a 2040 MB cache, so the read never touched a platter. Setting &lt;code&gt;primarycache=none&lt;/code&gt; &lt;em&gt;after&lt;/em&gt; writing does not fix it, because the data is already cached. Only creating the dataset with &lt;code&gt;compression=off&lt;/code&gt; and &lt;code&gt;primarycache=none&lt;/code&gt; from the outset forces real I/O. I threw the first number away.&lt;/p&gt;
&lt;p&gt;For a compile box the mechanical disk matters far less than it looks. &lt;code&gt;cargo build&lt;/code&gt; is CPU-bound once sources are on disk, the working set fits in ARC, and run-to-run standard deviation was only 3.06 s on a 131 s mean: no I/O stalls. Swapping in an SSD would barely move the compile numbers. Cold boots, big checkouts, and anything touching many small files are a different conversation entirely.&lt;/p&gt;
&lt;h3&gt;Thermals: Riding Tjmax With a Lazy Fan&lt;/h3&gt;
&lt;p&gt;Sustained load, four &lt;code&gt;stress-ng&lt;/code&gt; workers for 120 seconds, sampled every 10 seconds:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Time&lt;/th&gt;
&lt;th&gt;Die temp&lt;/th&gt;
&lt;th&gt;Fan&lt;/th&gt;
&lt;th&gt;Delivered clock&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;10 s&lt;/td&gt;
&lt;td&gt;81 °C&lt;/td&gt;
&lt;td&gt;1996 RPM&lt;/td&gt;
&lt;td&gt;2800 MHz&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;20 s&lt;/td&gt;
&lt;td&gt;92 °C&lt;/td&gt;
&lt;td&gt;2540 RPM&lt;/td&gt;
&lt;td&gt;2800 MHz&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;30 s&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;100 °C&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;3646 RPM&lt;/td&gt;
&lt;td&gt;2800 MHz&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;40 s&lt;/td&gt;
&lt;td&gt;99 °C&lt;/td&gt;
&lt;td&gt;5170 RPM&lt;/td&gt;
&lt;td&gt;2700 MHz&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;50 s&lt;/td&gt;
&lt;td&gt;94 °C&lt;/td&gt;
&lt;td&gt;6200 RPM&lt;/td&gt;
&lt;td&gt;2800 MHz&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;60–100 s&lt;/td&gt;
&lt;td&gt;92–98 °C&lt;/td&gt;
&lt;td&gt;~6200 RPM&lt;/td&gt;
&lt;td&gt;2800 MHz&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;110 s&lt;/td&gt;
&lt;td&gt;100 °C&lt;/td&gt;
&lt;td&gt;6200 RPM&lt;/td&gt;
&lt;td&gt;2800 MHz&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Idle is 45 °C with the fan at its 2000 RPM floor and the CPU parked at 1200 MHz. Thirty seconds into load the die is at &lt;strong&gt;Tjmax, 100 °C&lt;/strong&gt;, because the SMC fan curve is reactive and takes about 50 seconds to reach its 6200 RPM maximum. The fan chases the heat rather than anticipating it.&lt;/p&gt;
&lt;p&gt;And yet the delivered clock &lt;strong&gt;holds 2800 MHz for the entire run&lt;/strong&gt;, with a single 10-second sample at 2700. That 2800 figure is the two-core turbo ceiling straight out of &lt;code&gt;MSR_TURBO_RATIO_LIMIT&lt;/code&gt;: the chip is delivering its rated maximum multi-core turbo while sitting at its thermal limit. Across 221 samples taken during the compile runs the mean delivered clock was &lt;strong&gt;2757 MHz&lt;/strong&gt;, with 86.9% of samples at or above 2800.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;One methodological warning, because it nearly cost me the whole thermal analysis.&lt;/strong&gt; On x86, &lt;code&gt;dev.cpu.N.freq&lt;/code&gt; is useless for this. It reported 2401 MHz for the entire benchmark, because it reflects the &lt;em&gt;requested&lt;/em&gt; P-state, not what the silicon delivers. The real number comes from &lt;code&gt;IA32_PERF_STATUS&lt;/code&gt; (MSR &lt;code&gt;0x198&lt;/code&gt;, bits 15:8), read with &lt;code&gt;cpucontrol&lt;/code&gt;. Early on I took a single such reading, got multiplier 11 (1100 MHz) and briefly concluded the machine was throttling catastrophically. Sustained sampling showed that was an idle-sample artifact: I had caught the core between compile jobs. &lt;strong&gt;One instantaneous MSR read is not a measurement.&lt;/strong&gt; It took 221 of them to get the right answer, which was nearly the opposite of the first one.&lt;/p&gt;
&lt;p&gt;The verdict: this fifteen-year-old cooling system, aged thermal paste and all, is still doing its job. Loudly, with zero margin, at the edge of Tjmax, but doing it. Compile throughput is not meaningfully thermally limited.&lt;/p&gt;
&lt;h3&gt;What Doesn't Work&lt;/h3&gt;
&lt;p&gt;FreeBSD on Apple hardware is functional, not complete.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;No GPU acceleration.&lt;/strong&gt; The Intel HD Graphics 3000 shows up as a PCI device, but no &lt;code&gt;i915&lt;/code&gt;/DRM module loads and no &lt;code&gt;/dev/dri&lt;/code&gt; nodes exist: Sandy Bridge (gen6) support has been dropped from current &lt;code&gt;drm-kmod&lt;/code&gt;. This is a console-and-SSH machine, not a desktop.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The internal WiFi is not in use.&lt;/strong&gt; The Broadcom BCM4331 probes and attaches via &lt;code&gt;bwn_pci0&lt;/code&gt;/&lt;code&gt;bhnd0&lt;/code&gt;, but the active interface is a &lt;strong&gt;USB Realtek RTL8188EU&lt;/strong&gt;: a 1T1R 802.11n 2.4 GHz dongle, about the slowest wireless configuration still sold. Every byte of this testing crossed that link.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Networking is therefore uncharacterized, deliberately.&lt;/strong&gt; The BCM57765 gigabit port is present and well supported but had no cable in it, and the machine was reachable only over that wireless dongle for the entire test window. Benchmarking a NIC with no cable, or reporting throughput across a link that tops out near 150 Mbps of PHY rate, would produce a number describing the dongle rather than the machine. I ran no network benchmark and I am reporting none. Treat this machine's networking as genuinely unknown: there is no reason to expect the BCM57765 to disappoint, but this review does not demonstrate it.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The battery is at 85.7% of design capacity&lt;/strong&gt; (4944 of 5770 mAh after fifteen years), which is frankly remarkable, though it reports "discharging" at 0 mA while on AC, an ACPI quirk of this hardware.&lt;/p&gt;
&lt;h3&gt;Two Results I Threw Out&lt;/h3&gt;
&lt;p&gt;Benchmarking old hardware invites plausible-looking nonsense. Two numbers here went in the bin rather than into the tables.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;sysbench CPU is broken on this FreeBSD build.&lt;/strong&gt; It reported &lt;strong&gt;5,176,529 events/s&lt;/strong&gt; single-threaded with &lt;code&gt;--cpu-max-prime=20000&lt;/code&gt;. The NanoPC-T6N scored 967 on the identical test. A 5000× gap is not a performance difference: computing primes to 20,000 five million times a second would need something like 10¹¹ operations per second from one 2.8 GHz core. sysbench 1.0.20 accepts the flag and dutifully echoes "Prime numbers limit: 20000" back at you, but its event accounting in this build is wrong. Every sysbench CPU number was discarded; the CPU comparison rests on the compile benchmark and OpenSSL instead.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;sysbench memory measures cache, not DRAM.&lt;/strong&gt; It reported 40.4 GB/s read. This machine has 2 × 4 GiB of DDR3-1333 in dual channel, a theoretical ceiling of 21.3 GB/s. Beating physics by 1.9× means the working set never left cache. The T6N run flagged the same failure mode, which suggests it is a property of the benchmark rather than of either machine.&lt;/p&gt;
&lt;p&gt;The general rule, and the reason I keep writing these sections: &lt;strong&gt;a benchmark number that beats the hardware's physical limits is a bug report, not a result.&lt;/strong&gt; Three of the numbers this machine initially handed me (2.86 GB/s from a 5400 RPM disk, 5.2 million prime passes per second, 40 GB/s from DDR3-1333) were all physically impossible, and all three looked perfectly ordinary sitting in a terminal.&lt;/p&gt;
&lt;h3&gt;Who Is This For?&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Reasonable uses.&lt;/strong&gt; As a home build server, a network service host, or a FreeBSD and ZFS learning machine, this is genuinely useful hardware. It compiles a 16,000-line Rust project in about two minutes, terminates roughly a gigabit of AES-GCM on one core, has 8 GB of RAM (more than most boards on my bench), plus a real SATA bus, a real gigabit NIC, a keyboard, and a screen. It also has an uninterruptible power supply bolted to the bottom of it that still holds 86% of its original charge, which no SBC here can say.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Poor uses.&lt;/strong&gt; Anything hash-heavy loses badly to any ARMv8 board. Anything needing a GPU or a desktop is out. Anything power- or space-constrained is better served by a $60 Pi. Anything depending on fast random I/O is throttled by a 5400 RPM disk with 33 ms full-stroke seeks.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The honest framing&lt;/strong&gt; is that this machine's value is that it already exists. Nobody should go buy a 2011 MacBook Pro for this: a Raspberry Pi 5 beats it on speed, power, size, and noise simultaneously, for a fraction of what this cost new. But a laptop otherwise headed for a drawer or a recycler, given a current OS, lands mid-pack in a fleet of 2026 single-board computers. That is a better argument for FreeBSD on old Apple hardware than any benchmark table I could build.&lt;/p&gt;
&lt;h3&gt;Conclusion&lt;/h3&gt;
&lt;p&gt;Fifteen years of progress turn out to be real, but much narrower than the marketing implies. Per core and per gigahertz, this Sandy Bridge chip and a Cortex-A76 compile Rust at the same rate to within 0.3%. The SHA-512 result, where neither side has hardware acceleration and the two land within 4%, says the same thing from a different angle. What changed was not that cores got dramatically better. It was core density, power efficiency, and the arrival of specialized instructions. The 5.68× SHA-256 gap is not Intel being slow; it is Intel not having shipped the instruction yet in 2011.&lt;/p&gt;
&lt;p&gt;The MacBookPro8,1 slots in sixth of nine at 131.00 seconds: behind every current ARM board with four or more modern cores, comfortably ahead of the A53-class boards and the RISC-V entry. Thermally maxed out but not throttled. Storage-limited in ways that barely touch this workload. Network-limited in a way an Ethernet cable would fix.&lt;/p&gt;
&lt;p&gt;It is also, fifteen years on, still doing useful work. That was not the result I expected when I plugged it in.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;&lt;strong&gt;By the numbers:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Rust clean release build, pinned tree (&lt;code&gt;2821bba&lt;/code&gt;, 16,639 LOC): &lt;strong&gt;131.00 s&lt;/strong&gt; mean (σ 3.06 s), 6th of 9 on my bench&lt;/li&gt;
&lt;li&gt;Rust clean release build, current tree (&lt;code&gt;b0cfcd4&lt;/code&gt;, 155,867 LOC, 246 crates): &lt;strong&gt;714.18 s&lt;/strong&gt; mean (σ 3.82 s)&lt;/li&gt;
&lt;li&gt;Per core per GHz vs Cortex-A76: &lt;strong&gt;1.003×&lt;/strong&gt;, a statistical tie&lt;/li&gt;
&lt;li&gt;AES-128-GCM 1112.4 MB/s; AES-256-GCM 988.2 MB/s; ChaCha20-Poly1305 761.9 MB/s; SHA-256 251.8 MB/s&lt;/li&gt;
&lt;li&gt;AES-NI contribution on AES-128-CBC: 575.6 vs 296.9 MB/s (&lt;strong&gt;1.94×&lt;/strong&gt;)&lt;/li&gt;
&lt;li&gt;ECDSA P-256 22,696 sign/s; RSA-2048 743.7 sign/s, 24,962 verify/s&lt;/li&gt;
&lt;li&gt;Storage: 77.2 / 65.7 / 40.2 MB/s outer/middle/inner; 33.3 ms full-stroke seek; 74.8 MB/s ZFS write&lt;/li&gt;
&lt;li&gt;CPU scaling (FP-bound): 1.51× at 2 threads, &lt;strong&gt;1.51× at 4&lt;/strong&gt;: SMT contributes nothing to SIMD work&lt;/li&gt;
&lt;li&gt;Thermals: 45 °C idle, &lt;strong&gt;100 °C&lt;/strong&gt; peak, 2800 MHz two-core turbo sustained throughout&lt;/li&gt;
&lt;li&gt;Discarded as physically impossible: sysbench CPU, sysbench memory, and a first-attempt 2.86 GB/s disk read&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Caveats.&lt;/strong&gt; My run used rustc 1.98.0; the archived fleet used 1.90/1.91 and the T6N used 1.97.1. Commit &lt;code&gt;2821bba&lt;/code&gt; predates the repository having a &lt;code&gt;Cargo.lock&lt;/code&gt;, so dependency versions resolved fresh. &lt;code&gt;coretemp&lt;/code&gt; and &lt;code&gt;asmc&lt;/code&gt; were loaded mid-run, between HEAD runs 1 and 2, and observed temperatures dropped from ~98 °C to ~90 °C across that window, but runs 1, 2, and 3 came in at 711.95, 718.60, and 712.00 s, statistically identical, so the perturbation had no measurable effect. Power was never measured; efficiency statements rest on nominal TDP. Network throughput was never measured. No random-I/O benchmark was run.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;Review Date: August 29, 2026&lt;/p&gt;
&lt;p&gt;Hardware Tested: Apple MacBookPro8,1 (13-inch, early 2011), Intel Core i5-2435M, 8 GB DDR3-1333, 500 GB Seagate ST9500325ASG 5400 RPM HDD&lt;/p&gt;
&lt;p&gt;OS Tested: FreeBSD 15.1-RELEASE-p3 amd64, ZFS on root&lt;/p&gt;
&lt;p&gt;Benchmark Workload: &lt;a href="https://github.com/ajokela/ballistics-engine"&gt;ballistics-engine&lt;/a&gt; clean release builds at commits &lt;code&gt;2821bba&lt;/code&gt; (fleet-comparable) and &lt;code&gt;b0cfcd4&lt;/code&gt; (current), rustc 1.98.0&lt;/p&gt;
&lt;p&gt;Conclusion: A fifteen-year-old laptop that lands mid-pack against 2026 single-board computers, and a useful reminder that most of what we call CPU progress has been core count, power, and specialized instructions rather than raw per-core throughput.&lt;/p&gt;</description><category>aes-ni</category><category>apple</category><category>asmc</category><category>benchmarks</category><category>coretemp</category><category>e-waste</category><category>freebsd</category><category>hardware review</category><category>intel core i5</category><category>macbook pro</category><category>msr</category><category>old hardware</category><category>openssl</category><category>rust compilation</category><category>sandy bridge</category><category>single board computers</category><category>thermals</category><category>x86_64</category><category>zfs</category><guid>https://tinycomputers.io/posts/freebsd-on-a-2011-macbook-pro.html</guid><pubDate>Sat, 29 Aug 2026 21:30:00 GMT</pubDate></item><item><title>The Config Language That Was Already There: A Ballistics REPL Written in Lattice</title><link>https://tinycomputers.io/posts/the-config-language-that-was-already-there.html?utm_source=feed&amp;utm_medium=rss&amp;utm_campaign=rss</link><dc:creator>A.C. Jokela</dc:creator><description>&lt;div class="audio-widget"&gt;
&lt;div class="audio-widget-header"&gt;
&lt;span class="audio-widget-icon"&gt;🎧&lt;/span&gt;
&lt;span class="audio-widget-label"&gt;Listen to this article&lt;/span&gt;
&lt;/div&gt;
&lt;audio controls preload="metadata"&gt;
&lt;source src="https://tinycomputers.io/the-config-language-that-was-already-there_tts.mp3" type="audio/mpeg"&gt;
&lt;/source&gt;&lt;/audio&gt;
&lt;div class="audio-widget-footer"&gt;28 min · AI-generated narration&lt;/div&gt;
&lt;/div&gt;

&lt;h2&gt;The Config Language That Was Already There: A Ballistics REPL Written in Lattice&lt;/h2&gt;
&lt;p&gt;Every calculator that gets used seriously eventually grows a configuration language.&lt;/p&gt;
&lt;p&gt;It starts reasonably. You have a solver with fifteen inputs, and typing fifteen command-line flags every time is miserable, so you accept a config file. YAML, probably. Then someone wants two configs that differ in one field, so you add includes, or merge semantics, or a &lt;code&gt;base:&lt;/code&gt; key. Then someone wants a parameter sweep, so you add a templating layer, or you tell them to write a shell loop that generates YAML. Then the YAML needs comments explaining which units each field is in, because YAML has no units and never will. Eventually the configuration language has variables, and interpolation, and a way to express "the same as above but 200 feet per second faster," and you have accidentally built a bad programming language with no debugger.&lt;/p&gt;
&lt;p&gt;I have written that layer. More than once. This is about the time I refused to.&lt;/p&gt;
&lt;p&gt;The result is a ballistics laboratory — a stateful REPL for exterior ballistics — written entirely in &lt;a href="https://lattice-lang.org/"&gt;Lattice&lt;/a&gt;, the small interpreted language I've been building, driving the &lt;a href="https://tinycomputers.io/posts/open-sourcing-a-high-performance-rust-based-ballistics-engine.html"&gt;Rust ballistics engine&lt;/a&gt; I've also been building. The interesting part isn't that the two projects finally met. It's the specific thing I didn't have to build: there is no configuration format. The config language is Lattice, because the REPL is Lattice, and the experiment you're configuring is an ordinary value in the session.&lt;/p&gt;
&lt;p&gt;You don't need to care about ballistics for the argument to land. Substitute your own domain with a solver at the bottom and a pile of parameters on top.&lt;/p&gt;
&lt;div class="download-widget"&gt;
&lt;div class="download-widget-header"&gt;&lt;span&gt;⬇&lt;/span&gt; Get Lattice&lt;/div&gt;
&lt;p&gt;Lattice is free and open source at &lt;a href="https://lattice-lang.org/"&gt;lattice-lang.org&lt;/a&gt;, and there is almost certainly a prebuilt binary for whatever you are reading this on. The current release ships &lt;strong&gt;22 precompiled binaries across 11 platform targets&lt;/strong&gt; — macOS, Linux, Windows, FreeBSD, OpenBSD and NetBSD, on x86_64 and aarch64, plus Linux on RISC-V — with checksums for all of them.&lt;/p&gt;
&lt;p&gt;Each platform gets two builds: &lt;code&gt;clat&lt;/code&gt;, the full interpreter with the REPL, formatter, debugger and documentation tooling, and &lt;code&gt;clat-run&lt;/code&gt;, a runtime-only binary for executing compiled bytecode (655 KB on arm64 macOS). No runtime dependency to install; the ballistics laboratory in this post lives in the source tree under &lt;code&gt;examples/ballistics_lab/&lt;/code&gt;.&lt;/p&gt;
&lt;/div&gt;

&lt;h3&gt;The Shape of the Problem&lt;/h3&gt;
&lt;p&gt;Exterior ballistics is a good stress test for this idea, because the input surface is genuinely large and genuinely fussy.&lt;/p&gt;
&lt;p&gt;A trajectory depends on the projectile (mass, diameter, length, drag model, ballistic coefficient), the rifle (sight height, twist rate and direction, muzzle height), the atmosphere (altitude, temperature, pressure, humidity, latitude), the wind (speed, direction, and whether you're modeling a vertical component), the shot itself (muzzle velocity, zero distance, maximum range, shooting angle, cant, azimuth), and the solver (method, time step, tolerances). Miss a unit conversion and you get an answer that is confidently, silently wrong.&lt;/p&gt;
&lt;p&gt;Here is the state of a fresh session, printed by the laboratory's &lt;code&gt;:show&lt;/code&gt; command:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="n"&gt;Experiment&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;175&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;gr&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;match&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;yards&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;projectile&lt;/span&gt;&lt;span class="w"&gt;           &lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;175&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;gr&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;match&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;mass&lt;/span&gt;&lt;span class="w"&gt;                 &lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;175.00&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;gr&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;diameter&lt;/span&gt;&lt;span class="w"&gt;             &lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;0.31&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;in&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="w"&gt;               &lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;1.24&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;in&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;drag&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="w"&gt;           &lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;G7&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;ballistic&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;coefficient&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;0.24&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;rifle&lt;/span&gt;&lt;span class="w"&gt;                &lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;24&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;inch&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;match&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;rifle&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;sight&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;height&lt;/span&gt;&lt;span class="w"&gt;         &lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;1.50&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;in&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;twist&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;rate&lt;/span&gt;&lt;span class="w"&gt;           &lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;8.00&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;in&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;twist&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;direction&lt;/span&gt;&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;right&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;altitude&lt;/span&gt;&lt;span class="w"&gt;             &lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;273.40&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;yd&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;temperature&lt;/span&gt;&lt;span class="w"&gt;          &lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;59.00&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;F&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;pressure&lt;/span&gt;&lt;span class="w"&gt;             &lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;29.92&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;inHg&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;humidity&lt;/span&gt;&lt;span class="w"&gt;             &lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;50.00&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;latitude&lt;/span&gt;&lt;span class="w"&gt;             &lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="mf"&gt;45.00&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;deg&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;muzzle&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;velocity&lt;/span&gt;&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;2700.00&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ft&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;maximum&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;range&lt;/span&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;1000.00&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;yd&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;zero&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;distance&lt;/span&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;100.00&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;yd&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;solver&lt;/span&gt;&lt;span class="w"&gt;               &lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;rk45&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;That is a lot of fields, and every one of them is a place where a config format would want a schema, a units convention, and a validation pass. This is exactly the shape of problem that produces a bespoke DSL.&lt;/p&gt;
&lt;h3&gt;What Running It Looks Like&lt;/h3&gt;
&lt;p&gt;The laboratory starts from a source checkout with a launcher that finds the interpreter and the engine:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;./scripts/ballistics-lab.sh
&lt;/pre&gt;&lt;/div&gt;

&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="nv"&gt;ballistics&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nv"&gt;lab&lt;/span&gt;:&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;backend&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;stack&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nv"&gt;vm&lt;/span&gt;,&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;engine&lt;/span&gt;&lt;span class="o"&gt;=/&lt;/span&gt;&lt;span class="nv"&gt;Users&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nv"&gt;alex&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nv"&gt;projects&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nv"&gt;ballistics&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nv"&gt;engine&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nv"&gt;target&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nv"&gt;release&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nv"&gt;ballistics&lt;/span&gt;
&lt;span class="nv"&gt;Ballistics&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;laboratory&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;—&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;Lattice&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;v0&lt;/span&gt;.&lt;span class="mi"&gt;6&lt;/span&gt;.&lt;span class="mi"&gt;4&lt;/span&gt;
&lt;span class="nv"&gt;Engine&lt;/span&gt;:&lt;span class="w"&gt; &lt;/span&gt;...&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nv"&gt;ballistics&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nv"&gt;engine&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nv"&gt;target&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nv"&gt;release&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nv"&gt;ballistics&lt;/span&gt;
&lt;span class="nv"&gt;Type&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;:&lt;span class="nv"&gt;help&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;for&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;commands&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;or&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;enter&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;Lattice&lt;/span&gt;.&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;Ctrl&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nv"&gt;D&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;to&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;exit&lt;/span&gt;.
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;The prompt accepts two kinds of input. Colon commands drive the session, and everything else is Lattice.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;:solve&lt;/code&gt; runs the current experiment through the engine:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;ballistics&amp;gt; :solve
Run: 175 gr match at 1,000 yards
  backend          : process-json-v1
  engine           : 0.30.1
  schema           : 1
  termination      : max_range
  actual range     : 1000.00 yd
  time of flight   : 1.71 s
  terminal velocity: 1145.95 ft/s
  terminal energy  : 510.19 ft-lb
  stability factor : 3.80
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;&lt;code&gt;:at&lt;/code&gt; interrogates a single point on the solved trajectory:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;ballistics&amp;gt; :at 300 yd
Observation
  distance: 300.00 yd
  time    : 0.37 s
  velocity: 2162.46 ft/s
  energy  : 1816.78 ft-lb
  drop    : +18.91 in
  windage : -6.71 in
  Mach    : 1.93
  flags   : none
Signs: drop/windage + above/right, - below/left
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;And &lt;code&gt;:dope&lt;/code&gt; produces the table a shooter actually tapes to a rifle:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;ballistics&amp;gt; :dope 100 600 100 yd
DOPE: 175 gr match at 1,000 yards
Distance (yd) | Drop (in) | Come-up (mil) | Velocity (ft/s) | Energy (ft-lb) | Time (s) | Mach
--------------+-----------+---------------+-----------------+----------------+----------+-----
       100.00 |     +1.50 |         -0.42 |         2513.37 |        2454.23 |     0.12 | 2.25
       200.00 |     +7.01 |         -0.97 |         2334.07 |        2116.56 |     0.24 | 2.09
       300.00 |    +18.91 |         -1.75 |         2162.46 |        1816.78 |     0.37 | 1.93
       400.00 |    +38.26 |         -2.66 |         1998.49 |        1551.71 |     0.52 | 1.79
       500.00 |    +66.33 |         -3.69 |         1841.19 |        1317.05 |     0.67 | 1.65
       600.00 |   +104.69 |         -4.85 |         1689.82 |        1109.39 |     0.84 | 1.51
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;There's a companion table for wind, which is where shooters actually lose their afternoons:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;ballistics&amp;gt; :wind-card 200 600 200 yd
Wind card
Series | Trajectory                  | Wind (mph) | From (deg) | Distance (yd) | Windage (in) | Wind hold (mil)
-------+-----------------------------+------------+------------+---------------+--------------+----------------
  0.00 | 175 gr match at 1,000 yards |      10.00 |      90.00 |        200.00 |        -2.87 |           +0.40
  0.00 | 175 gr match at 1,000 yards |      10.00 |      90.00 |        400.00 |       -12.39 |           +0.86
  0.00 | 175 gr match at 1,000 yards |      10.00 |      90.00 |        600.00 |       -30.23 |           +1.40
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Note the leading &lt;code&gt;Series&lt;/code&gt; column, which is &lt;code&gt;0.00&lt;/code&gt; throughout because there's one trajectory loaded. It's there because these tables are built to hold several trajectories at once and label each row with its source — the tabular output is a &lt;em&gt;view over a collection of runs&lt;/em&gt;, not a formatted dump of the most recent one. That distinction is going to matter in a moment.&lt;/p&gt;
&lt;p&gt;So far this is a competent CLI. Nothing here requires a programming language.&lt;/p&gt;
&lt;h3&gt;The Part That Requires a Programming Language&lt;/h3&gt;
&lt;p&gt;Now change something.&lt;/p&gt;
&lt;p&gt;Not by editing a file and restarting. Not by passing a flag. By typing at the prompt, in the same language the laboratory is written in:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="n"&gt;ballistics&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;let&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;base&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;sessions&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;experiment_of&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;lab&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;ballistics&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;let&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;better&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;projectile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"230 gr high-BC"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;gr&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;230&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;inches&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;0.308&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;0.368&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"G7"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;inches&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;1.55&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;span class="n"&gt;ballistics&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;let&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;alt&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;experiment&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"230 gr high-BC load"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;better&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;base&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;rifle&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;base&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;atmosphere&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;base&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;winds&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;base&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;shot&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;base&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;solver&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;ballistics&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;sessions&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;replace_experiment&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;lab&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;alt&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;ballistics&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;solve&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="n"&gt;Run&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;230&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;gr&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;high&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;BC&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nb"&gt;load&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;of&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;flight&lt;/span&gt;&lt;span class="w"&gt;   &lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;1.44&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;terminal&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;velocity&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;1601.26&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ft&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;terminal&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;energy&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;1309.24&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ft&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;lb&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Same rifle, same atmosphere, same wind, same solver, same 1,000 yards. A heavier bullet with a better drag coefficient arrives &lt;em&gt;sooner&lt;/em&gt; (1.44 s versus 1.71 s), still supersonic (1601 ft/s versus 1146), carrying two and a half times the terminal energy (1309 ft-lb versus 510).&lt;/p&gt;
&lt;p&gt;Look at what that interaction actually required. &lt;code&gt;base.rifle&lt;/code&gt;, &lt;code&gt;base.atmosphere&lt;/code&gt;, &lt;code&gt;base.winds&lt;/code&gt;, &lt;code&gt;base.shot&lt;/code&gt;, &lt;code&gt;base.solver&lt;/code&gt; — five subsystems reused verbatim, by &lt;em&gt;name&lt;/em&gt;, because the experiment is a structured value and not a document. There was no merge semantics to design. No &lt;code&gt;extends:&lt;/code&gt; key. No question about whether a null in the override means "unset this" or "inherit this." I destructured a record and rebuilt it with one field changed, which is a thing programming languages have been good at for fifty years.&lt;/p&gt;
&lt;p&gt;That is the entire argument. The configuration language you were about to write is a worse version of a language you already have.&lt;/p&gt;
&lt;p&gt;Units get the same treatment. &lt;code&gt;gr(230)&lt;/code&gt;, &lt;code&gt;inches(0.308)&lt;/code&gt;, &lt;code&gt;fps(2700)&lt;/code&gt;, &lt;code&gt;yards(1000)&lt;/code&gt; aren't string tags to be parsed and validated — they're constructors producing distinct quantity values with SI internals and a preferred display unit. A YAML field called &lt;code&gt;mass: 230&lt;/code&gt; has to be documented as grains and validated at load time. &lt;code&gt;gr(230)&lt;/code&gt; carries that with it, and the failure mode for passing a length where a mass belongs is an evaluation error, not a plausible-looking wrong trajectory.&lt;/p&gt;
&lt;h3&gt;"You Didn't Avoid Writing a Config Language, You Wrote a Whole Language"&lt;/h3&gt;
&lt;p&gt;This is the obvious objection and it deserves a straight answer rather than a clever one.&lt;/p&gt;
&lt;p&gt;If the choice were &lt;em&gt;write a YAML schema&lt;/em&gt; versus &lt;em&gt;write a programming language&lt;/em&gt;, the YAML schema wins by a mile and it isn't close. Nobody should build a language to avoid building a config format. That trade is absurd.&lt;/p&gt;
&lt;p&gt;But that wasn't the choice. Lattice already existed. It was not designed for ballistics, has no ballistics features, and would exist unchanged if I'd never written the laboratory. The marginal cost of using it here was zero, and the honest framing is not "I chose Lattice over Python" — it's "I had a language sitting there, and using it was cheaper than inventing a format." If you don't already have one, the answer is almost certainly Lua or Python, and the argument in this post applies to &lt;em&gt;those&lt;/em&gt; just as well. The claim is about embedding a real language versus growing a fake one, not about which real language.&lt;/p&gt;
&lt;p&gt;That said, two things about Lattice specifically turned out to fit better than I expected, and they're worth naming because they're the kind of thing you'd want from any candidate.&lt;/p&gt;
&lt;p&gt;The first is the phase system. Lattice's central idea is that values start &lt;em&gt;fluid&lt;/em&gt; and can be &lt;em&gt;frozen&lt;/em&gt; into immutable &lt;em&gt;crystal&lt;/em&gt; — &lt;a href="https://tinycomputers.io/posts/introducing-lattice-a-crystallization-based-programming-language.html"&gt;it's what the language is about&lt;/a&gt;, and I've written before about &lt;a href="https://tinycomputers.io/posts/crystal-by-reference-making-freeze-mean-it-then-making-it-fast.html"&gt;making that promise actually hold&lt;/a&gt;. An experiment is precisely the kind of value that wants this: you assemble it, you hand it to a solver, and it must not change underneath the solver or between the run and the report that describes the run. In the domain layer that's a declaration, not a discipline:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="k"&gt;export&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;struct&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Projectile&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fix&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nb nb-Type"&gt;String&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="n"&gt;mass&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fix&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;any&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="n"&gt;diameter&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fix&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;any&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fix&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;any&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="n"&gt;drag_model&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fix&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nb nb-Type"&gt;String&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="n"&gt;ballistic_coefficient&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fix&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Number&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Every field is &lt;code&gt;fix&lt;/code&gt; — immutable per-field, checked by the language. There are 192 such declarations across the laboratory's domain modules. In a language without that, the equivalent is a frozen dataclass, or a convention, or a code review comment; here it's a property of the type. A config format gets you immutability for free only because it's inert — it can't express computation at all. This gets you both.&lt;/p&gt;
&lt;p&gt;The second is embedding cost. The laboratory ships with a runtime-only binary, &lt;code&gt;clat-run&lt;/code&gt;, that is &lt;strong&gt;655 KB&lt;/strong&gt; on arm64 macOS — the full interpreter with tooling is 1.2 MB. Embedding CPython means shipping CPython; embedding Lua is genuinely small too, which is exactly why Lua keeps winning this category. The point isn't that Lattice is uniquely small, it's that "how much do I have to ship" is a real selection criterion for this kind of tool, and it's one a config format wins by default until you notice you've reimplemented variables.&lt;/p&gt;
&lt;p&gt;So: not a triumph of language design over YAML. A case of the cheapest available option happening to be a real language, and the domain happening to want immutability badly enough that the language's central feature earned its keep.&lt;/p&gt;
&lt;h3&gt;The Boundary I Did Keep&lt;/h3&gt;
&lt;p&gt;There is exactly one place the laboratory refuses to be clever, and it's the interesting design decision in the project.&lt;/p&gt;
&lt;p&gt;The physics does not run in Lattice. It runs in the Rust engine, in a separate process, over a versioned JSON protocol. The laboratory's README is blunt about this: it &lt;em&gt;"does not add a ballistics intrinsic, native extension, or C ABI dependency to the language runtime."&lt;/em&gt; The backend reports itself in every run — &lt;code&gt;backend: process-json-v1&lt;/code&gt;, &lt;code&gt;engine: 0.30.1&lt;/code&gt;, &lt;code&gt;schema: 1&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The obvious alternative was to bind the engine natively. I have the design document for it: a Rust extension at &lt;code&gt;extensions/ballistics/&lt;/code&gt; that statically links the crate and binds its Rust API. It's a real design, and it rejects the naive version for a good reason — the engine's C FFI takes a 26-field flat input struct, and mirroring that by hand through a generic FFI layer means keeping two definitions in sync forever, with a segfault waiting at the end of any drift. The document has been sitting at "Proposed. Architecture decided; pre-implementation" for a while now.&lt;/p&gt;
&lt;p&gt;The process backend shipped instead, and the longer it runs the more I think the boring choice was right. A separate process gives you a version number you can print, a schema you can check, a crash that doesn't take the REPL with it, and an upgrade path where the engine and the language move independently. It also gives you an honest security boundary: the laboratory doesn't start the configured executable until you type &lt;code&gt;:solve&lt;/code&gt;, and the launcher probes candidate engines with a non-solving capability check first.&lt;/p&gt;
&lt;p&gt;The cost is process spawn per solve and JSON on the wire. For an interactive laboratory where a human types between solves, that cost is invisible. If I were solving in a tight loop, I'd be having a different conversation — and that's precisely when the extension design comes off the shelf.&lt;/p&gt;
&lt;p&gt;There's a general principle hiding here. "Bind it natively" and "shell out to it" are usually presented as a performance question. They're mostly a &lt;em&gt;coupling&lt;/em&gt; question, and the coupling bill arrives later than the performance bill does.&lt;/p&gt;
&lt;h3&gt;What Honesty Looks Like in the Output&lt;/h3&gt;
&lt;p&gt;The other thing that falls out of a real language: the tool can afford to tell you what it assumed.&lt;/p&gt;
&lt;p&gt;Every solve reports its defaults explicitly, with JSON paths into the request:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;Assumptions
  &lt;span class="k"&gt;-&lt;/span&gt; default_applied: Aim azimuth defaulted to 0 rad. [$.shot.aim_azimuth_rad]
  &lt;span class="k"&gt;-&lt;/span&gt; default_applied: Shot azimuth defaulted to 0 rad (north). [$.shot.shot_azimuth_rad]
  &lt;span class="k"&gt;-&lt;/span&gt; default_applied: Shooting angle defaulted to 0 rad. [$.shot.shooting_angle_rad]
  &lt;span class="k"&gt;-&lt;/span&gt; default_applied: Cant angle defaulted to 0 rad. [$.shot.cant_angle_rad]
  &lt;span class="k"&gt;-&lt;/span&gt; default_applied: Target height defaulted to 0 m above the local ground datum. [$.shot.target_height_m]
  &lt;span class="k"&gt;-&lt;/span&gt; default_applied: Solver time step defaulted to 0.001 s. [$.solver.time_step_s]
  &lt;span class="k"&gt;-&lt;/span&gt; default_applied: Magnus effect defaulted to disabled. [$.effects.magnus]
  &lt;span class="k"&gt;-&lt;/span&gt; default_applied: Enhanced spin drift defaulted to disabled. [$.effects.enhanced_spin_drift]
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;This is the sort of thing a config file makes &lt;em&gt;harder&lt;/em&gt;, not easier. In a YAML world, an unspecified field is silently the default, and the only way to know what the default was is to read the source. Here, "I didn't specify a cant angle" and "the solver assumed zero cant" are two different facts and both are visible. Note the last two lines especially: Magnus effect and enhanced spin drift are &lt;em&gt;off&lt;/em&gt;, and the tool says so rather than letting you assume a more sophisticated model than you got.&lt;/p&gt;
&lt;p&gt;Runs also carry a &lt;code&gt;verified: no&lt;/code&gt; flag, distinguishing "the solver produced numbers" from "the numbers were checked against a reference." A calculator that can't express that distinction encourages you to forget it exists.&lt;/p&gt;
&lt;h3&gt;Where It Actually Bit Me&lt;/h3&gt;
&lt;p&gt;I want to be honest about the failure mode of this approach, because I hit it while writing this post.&lt;/p&gt;
&lt;p&gt;I ran the laboratory to capture the transcripts above, and &lt;code&gt;:solve&lt;/code&gt; failed:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="n"&gt;Error&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;process_error&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;undefined&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;variable&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;'exec_argv'&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;&lt;code&gt;exec_argv&lt;/code&gt; is the builtin that spawns the engine. My first read was that I'd shipped a real bug — that the process backend needed a function the bytecode VMs didn't implement, and the laboratory had only ever been tested on the tree-walking interpreter. That's a plausible bug, and it's the kind of bug that a two-implementation language invites.&lt;/p&gt;
&lt;p&gt;It wasn't that. The launcher had resolved &lt;code&gt;clat&lt;/code&gt; from my &lt;code&gt;PATH&lt;/code&gt; and found an old v0.3.28 build sitting in Homebrew, from long before the VMs got that builtin. My local checkout's binary had been deleted by a sanitizer build earlier in the day, so the fallback kicked in. The banner had been telling me the whole time — &lt;code&gt;Ballistics laboratory — Lattice v0.3.28&lt;/code&gt; — and I hadn't read it.&lt;/p&gt;
&lt;p&gt;Two lessons, both cheap in hindsight. First: print the version of every component, at startup, always. This tool does, which is the only reason the diagnosis took minutes instead of an evening. Second, and more pointed: a launcher that searches &lt;code&gt;PATH&lt;/code&gt; for its own interpreter will eventually find the wrong one. Deterministic discovery order is documented in the README precisely because this is a known hazard, and it still got me, because I was the one who broke the invariant it depends on.&lt;/p&gt;
&lt;p&gt;The nice part is that the failure was &lt;em&gt;loud and local&lt;/em&gt;. The engine ran in another process; the missing builtin failed at the boundary with a specific name in the message. Had I bound the engine natively into the runtime, the equivalent mistake — a stale binary with an ABI that no longer matches — is not an error message. It's a crash, or worse, wrong numbers.&lt;/p&gt;
&lt;h3&gt;What This Buys, Concretely&lt;/h3&gt;
&lt;p&gt;Strip away the ballistics and the claim is small and testable: &lt;strong&gt;if your tool already embeds a scripting language, you should not also invent a configuration language.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;What the laboratory gets for free, by that one decision:&lt;/p&gt;
&lt;p&gt;Variables and reuse, because it's a language. Parameter sweeps are &lt;code&gt;for&lt;/code&gt; loops, not a templating layer. A sweep over three ballistic coefficients isn't three config files and a shell script that concatenates three output files — it's a loop:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;ballistics&amp;gt;&lt;span class="w"&gt; &lt;/span&gt;let&lt;span class="w"&gt; &lt;/span&gt;base&lt;span class="w"&gt; &lt;/span&gt;=&lt;span class="w"&gt; &lt;/span&gt;sessions.experiment_of(lab)
ballistics&amp;gt;&lt;span class="w"&gt; &lt;/span&gt;let&lt;span class="w"&gt; &lt;/span&gt;b&lt;span class="w"&gt; &lt;/span&gt;=&lt;span class="w"&gt; &lt;/span&gt;sessions.backend_of(lab)
ballistics&amp;gt;&lt;span class="w"&gt; &lt;/span&gt;for&lt;span class="w"&gt; &lt;/span&gt;bc&lt;span class="w"&gt; &lt;/span&gt;in&lt;span class="w"&gt; &lt;/span&gt;[0.24,&lt;span class="w"&gt; &lt;/span&gt;0.29,&lt;span class="w"&gt; &lt;/span&gt;0.34]&lt;span class="w"&gt; &lt;/span&gt;{
&lt;span class="w"&gt;              &lt;/span&gt;let&lt;span class="w"&gt; &lt;/span&gt;p&lt;span class="w"&gt; &lt;/span&gt;=&lt;span class="w"&gt; &lt;/span&gt;projectile("bc&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="cp"&gt;${&lt;/span&gt;&lt;span class="n"&gt;bc&lt;/span&gt;&lt;span class="cp"&gt;}&lt;/span&gt;",&lt;span class="w"&gt; &lt;/span&gt;gr(175),&lt;span class="w"&gt; &lt;/span&gt;inches(0.308),&lt;span class="w"&gt; &lt;/span&gt;bc,&lt;span class="w"&gt; &lt;/span&gt;"G7",&lt;span class="w"&gt; &lt;/span&gt;inches(1.24))
&lt;span class="w"&gt;              &lt;/span&gt;let&lt;span class="w"&gt; &lt;/span&gt;e&lt;span class="w"&gt; &lt;/span&gt;=&lt;span class="w"&gt; &lt;/span&gt;experiment("bc&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="cp"&gt;${&lt;/span&gt;&lt;span class="n"&gt;bc&lt;/span&gt;&lt;span class="cp"&gt;}&lt;/span&gt;",&lt;span class="w"&gt; &lt;/span&gt;p,&lt;span class="w"&gt; &lt;/span&gt;base.rifle,&lt;span class="w"&gt; &lt;/span&gt;base.atmosphere,&lt;span class="w"&gt; &lt;/span&gt;base.winds,&lt;span class="w"&gt; &lt;/span&gt;base.shot,&lt;span class="w"&gt; &lt;/span&gt;base.solver)
&lt;span class="w"&gt;              &lt;/span&gt;let&lt;span class="w"&gt; &lt;/span&gt;r&lt;span class="w"&gt; &lt;/span&gt;=&lt;span class="w"&gt; &lt;/span&gt;backends.solve_with(b,&lt;span class="w"&gt; &lt;/span&gt;e)
&lt;span class="w"&gt;              &lt;/span&gt;print("&lt;span class="cp"&gt;${&lt;/span&gt;&lt;span class="n"&gt;bc&lt;/span&gt;&lt;span class="cp"&gt;}&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;-&amp;gt;&lt;span class="w"&gt; &lt;/span&gt;ok=&lt;span class="cp"&gt;${&lt;/span&gt;&lt;span class="n"&gt;backends&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;solve_succeeded&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="cp"&gt;}&lt;/span&gt;")
&lt;span class="w"&gt;            &lt;/span&gt;}
0.24&lt;span class="w"&gt; &lt;/span&gt;-&amp;gt;&lt;span class="w"&gt; &lt;/span&gt;ok=true
0.29&lt;span class="w"&gt; &lt;/span&gt;-&amp;gt;&lt;span class="w"&gt; &lt;/span&gt;ok=true
0.34&lt;span class="w"&gt; &lt;/span&gt;-&amp;gt;&lt;span class="w"&gt; &lt;/span&gt;ok=true
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Three experiments derived from one base value, three solves, three results — as values in hand, which the analysis module can then interrogate. Worth being precise about the boundary: &lt;code&gt;solve_with&lt;/code&gt; hands results back to &lt;em&gt;you&lt;/em&gt;. It doesn't file them into the session's run history, which is what the colon commands manage; &lt;code&gt;:solve&lt;/code&gt; and a programmatic solve are two different doors, and only the first one updates &lt;code&gt;:compare&lt;/code&gt;'s notion of "previous run." That's a seam, and an honest one to point at.&lt;/p&gt;
&lt;p&gt;Comparison between the session's own runs is a session feature rather than a diffing tool over output files, because both runs are values the session is holding. Solve the 175 grain load, swap in the 230, solve again, and &lt;code&gt;:compare&lt;/code&gt; interleaves them with per-row deltas:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="n"&gt;ballistics&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;compare&lt;/span&gt;
&lt;span class="n"&gt;Trajectory&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;comparison&lt;/span&gt;
&lt;span class="n"&gt;Series&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Trajectory&lt;/span&gt;&lt;span class="w"&gt;                  &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Distance&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;yd&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Velocity&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ft&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Energy&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ft&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;lb&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Delta&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;velocity&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ft&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Delta&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;energy&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ft&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;lb&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="o"&gt;-------+-----------------------------+---------------+-----------------+----------------+-----------------------+---------------------&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="mf"&gt;0.00&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;175&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;gr&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;match&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;yards&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt;         &lt;/span&gt;&lt;span class="mf"&gt;20.00&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt;         &lt;/span&gt;&lt;span class="mf"&gt;2662.10&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="mf"&gt;2753.29&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt;                 &lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="mf"&gt;0.00&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt;               &lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="mf"&gt;0.00&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="mf"&gt;1.00&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;230&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;gr&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;high&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;BC&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nb"&gt;load&lt;/span&gt;&lt;span class="w"&gt;         &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt;         &lt;/span&gt;&lt;span class="mf"&gt;20.00&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt;         &lt;/span&gt;&lt;span class="mf"&gt;2674.94&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="mf"&gt;3653.61&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt;                &lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="mf"&gt;12.84&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt;             &lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="mf"&gt;900.32&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="mf"&gt;0.00&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;175&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;gr&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;match&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;yards&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt;         &lt;/span&gt;&lt;span class="mf"&gt;40.00&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt;         &lt;/span&gt;&lt;span class="mf"&gt;2624.49&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="mf"&gt;2676.05&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt;                 &lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="mf"&gt;0.00&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt;               &lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="mf"&gt;0.00&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="mf"&gt;1.00&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;230&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;gr&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;high&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;BC&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nb"&gt;load&lt;/span&gt;&lt;span class="w"&gt;         &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt;         &lt;/span&gt;&lt;span class="mf"&gt;40.00&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt;         &lt;/span&gt;&lt;span class="mf"&gt;2650.01&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="mf"&gt;3585.82&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt;                &lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="mf"&gt;25.52&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt;             &lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="mf"&gt;909.77&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;(Abridged — the real table runs every ten yards to the full range and carries drop, windage, Mach and time columns too. Series &lt;code&gt;0.00&lt;/code&gt; is the baseline; deltas are each series minus it.)&lt;/p&gt;
&lt;p&gt;Persistence is &lt;code&gt;:save&lt;/code&gt; and &lt;code&gt;:load&lt;/code&gt; over a JSON artifact, so the &lt;em&gt;serialized&lt;/em&gt; form exists — but it's an artifact of a session, not the authoring interface. Nobody hand-writes it:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="n"&gt;ballistics&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;save&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"/tmp/rt2.json"&lt;/span&gt;
&lt;span class="n"&gt;Saved&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;experiment&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;to&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;tmp&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;rt2&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;json&lt;/span&gt;
&lt;span class="n"&gt;ballistics&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;sessions&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;replace_experiment&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;lab&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;experiment&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"DECOY load"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;decoy&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;...&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;span class="n"&gt;ballistics&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;show&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;active&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;experiment&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;DECOY&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nb"&gt;load&lt;/span&gt;
&lt;span class="n"&gt;ballistics&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nb"&gt;load&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"/tmp/rt2.json"&lt;/span&gt;
&lt;span class="n"&gt;ballistics&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;show&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;active&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;experiment&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;230&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;gr&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;high&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;BC&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nb"&gt;load&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;One detail worth knowing if you use this: &lt;code&gt;:reset&lt;/code&gt; clears &lt;em&gt;run state&lt;/em&gt;, not the experiment. After a reset the loaded experiment is still sitting there; what's gone is the solved-run history that &lt;code&gt;:compare&lt;/code&gt; reads. It's the right split — you rarely want to retype an experiment just because you want to discard its runs — but the command name doesn't tell you that, and I only established it by resetting and then checking what survived.&lt;/p&gt;
&lt;p&gt;And the failure modes get better. A typo in a config file is a schema violation at load time, at best. A typo at this prompt is an evaluation error with a line, immediately, in a session that stays alive so you can retype the line. Parse, evaluation, command, and engine failures are all reported without ending the session — which sounds like a small quality-of-life detail until you're forty lines into building an experiment.&lt;/p&gt;
&lt;p&gt;The honest limitations, in the same spirit: the v1 REPL uses a portable &lt;code&gt;input()&lt;/code&gt; loop, so there's no line editing, no history, no completion. It isn't available in WASM builds, because terminal input and process execution aren't. Those are real gaps, and they're the price of the portable path.&lt;/p&gt;
&lt;h3&gt;The Thing I Keep Relearning&lt;/h3&gt;
&lt;p&gt;I've built a fair number of tools that grew a configuration format, and the format was never the interesting part of any of them. It was always overhead — a parser, a schema, a validation layer, a units convention, a documentation page, and a slow drift toward Turing completeness that nobody planned and everybody regretted.&lt;/p&gt;
&lt;p&gt;The ballistics laboratory has none of that, and it isn't because I was clever. It's because the language was already sitting there. The REPL is Lattice, so the experiment is a Lattice value, so configuring the experiment is writing Lattice, so there was never a moment where inventing a config format seemed necessary.&lt;/p&gt;
&lt;p&gt;If your project has an embedded language and a config format, it's worth asking what the config format is actually buying you. Sometimes the answer is a real one — a stable serialization boundary, a format non-programmers can edit, a thing you can diff in review. But often the answer is that the config format came first, the scripting language came later, and nobody went back to ask whether both were still needed.&lt;/p&gt;
&lt;p&gt;The laboratory ships in the Lattice repository under &lt;code&gt;examples/ballistics_lab/&lt;/code&gt;, as of v0.6.4. It's an example in the literal sense: not a product, but a demonstration that a serious domain tool can be built in the language without escaping to C — which was the actual thing I wanted to find out.&lt;/p&gt;
&lt;p&gt;

&lt;/p&gt;&lt;div class="bi-app-promo" style="margin: 2em 0; padding: 1.25em 1.5em; background: var(--color-bg-secondary, rgba(127, 127, 127, 0.08)); border: 1px solid var(--color-border-primary, rgba(127, 127, 127, 0.35)); border-left: 4px solid var(--color-accent, #4FC3A1); border-radius: 6px;"&gt;
  &lt;div class="row"&gt;
    &lt;div class="col-sm-9"&gt;
      &lt;h5 style="margin-top: 0;"&gt;Ballistics Insight&lt;/h5&gt;
      &lt;p&gt;The open-source ballistics engine from these posts, on your phone: drop and wind holds for your own load and the day's conditions, with your saved loads and shooting logs. Calculations run on the device, so they work offline. It's free to install on iPhone, iPad and Android, and Pro is a one-time purchase.&lt;/p&gt;
      &lt;p style="margin-bottom: 0;"&gt;
        &lt;a style="display: inline-block; margin: 0 0.5em 0.5em 0; line-height: 0; vertical-align: middle;" href="https://go.tinymachines.io/ballisticsinsightappstore-tc-lattice" data-umami-event="app-click" data-umami-event-store="apple" data-umami-event-placement="tc-post" data-umami-event-post="lattice"&gt;&lt;img src="https://tinycomputers.io/ballistics-insight/app-store-badge.svg" alt="Download on the App Store" width="138" height="40" style="height: 40px; width: auto;"&gt;&lt;/a&gt;
        &lt;a style="display: inline-block; margin: 0 0.5em 0.5em 0; line-height: 0; vertical-align: middle;" href="https://go.tinymachines.io/ballisticsinsightplay-tc-lattice" data-umami-event="app-click" data-umami-event-store="play" data-umami-event-placement="tc-post" data-umami-event-post="lattice"&gt;&lt;img src="https://tinycomputers.io/ballistics-insight/google-play-badge.svg" alt="Get it on Google Play" width="138" height="40" style="height: 40px; width: auto;"&gt;&lt;/a&gt;
      &lt;/p&gt;
      &lt;p style="margin: 0.25em 0 0 0;"&gt;&lt;a href="https://tinycomputers.io/pages/ballistics.html"&gt;All ballistics posts, in order →&lt;/a&gt;&lt;/p&gt;
    &lt;/div&gt;
    &lt;div class="col-sm-3 hidden-xs text-center"&gt;
      &lt;img src="https://tinycomputers.io/ballistics-insight/app-qr.svg" alt="QR code that opens Ballistics Insight in your phone's app store" width="112" height="112" style="background: #fff; padding: 6px; border-radius: 4px;"&gt;
      &lt;div&gt;&lt;small style="color: var(--color-text-muted, inherit);"&gt;Scan with your phone&lt;/small&gt;&lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;</description><category>ballistics</category><category>domain-specific languages</category><category>external ballistics</category><category>language design</category><category>lattice</category><category>process isolation</category><category>programming languages</category><category>repl</category><category>software architecture</category><category>tooling</category><guid>https://tinycomputers.io/posts/the-config-language-that-was-already-there.html</guid><pubDate>Sun, 02 Aug 2026 17:00:00 GMT</pubDate></item><item><title>The Bullet Doesn't Go Where You Point It</title><link>https://tinycomputers.io/posts/the-bullet-doesnt-go-where-you-point-it.html?utm_source=feed&amp;utm_medium=rss&amp;utm_campaign=rss</link><dc:creator>A.C. Jokela</dc:creator><description>&lt;div class="audio-widget"&gt;
&lt;div class="audio-widget-header"&gt;
&lt;span class="audio-widget-icon"&gt;🎧&lt;/span&gt;
&lt;span class="audio-widget-label"&gt;Listen to this article&lt;/span&gt;
&lt;/div&gt;
&lt;audio controls preload="metadata"&gt;
&lt;source src="https://tinycomputers.io/the-bullet-doesnt-go-where-you-point-it_tts.mp3" type="audio/mpeg"&gt;
&lt;/source&gt;&lt;/audio&gt;
&lt;div class="audio-widget-footer"&gt;15 min · AI-generated narration&lt;/div&gt;
&lt;/div&gt;

&lt;h3&gt;The bugs were never in the physics&lt;/h3&gt;
&lt;p&gt;Here is the thing I did not expect when I started, and which I suspect generalizes far past ballistics: in something like ninety thousand lines of Rust, almost none of the bugs worth remembering have been physics bugs. The equations are in textbooks. They have been in textbooks for decades, they were checked by people better at this than me, and when I have implemented one incorrectly the error was usually so large that it announced itself immediately.&lt;/p&gt;
&lt;p&gt;The bugs are in the &lt;em&gt;conventions&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;Consider a wind direction. A number of degrees — obviously. Except: is that the direction the wind is blowing &lt;em&gt;toward&lt;/em&gt;, or the direction it is coming &lt;em&gt;from&lt;/em&gt;? Meteorology says from. Is zero degrees a headwind, a tailwind, or due north? Is it measured relative to the direction you are shooting, or is it a compass bearing that has to be resolved against your shot azimuth before it means anything? Every one of those is a defensible choice, several of them are in active use by real tools, and each pairing produces a number that looks completely reasonable and is wrong by up to a hundred percent of the wind effect. The engine's answer is wind-&lt;em&gt;from&lt;/em&gt;, zero degrees is a headwind — and that sentence is now welded into the help text, the API docs, and a shared constant, because the one time the convention drifted between two subcommands, both of them looked right in isolation.&lt;/p&gt;
&lt;p&gt;Units are the same disease. Inches or millimeters for the height of the scope above the bore. Feet per second or meters per second. Grains — a unit of mass equal to one seven-thousandth of a pound, used for bullets and gunpowder and essentially nothing else on Earth. Minutes of angle or milliradians for the correction you dial into your scope, where a minute of angle is &lt;em&gt;approximately&lt;/em&gt; an inch at a hundred yards, and the approximation has cost people their afternoons. None of this is intellectually difficult. All of it is a place where a plausible number comes out and nobody catches it, which is precisely the definition of the expensive kind of bug.&lt;/p&gt;
&lt;h3&gt;Testing physics you cannot check by hand&lt;/h3&gt;
&lt;p&gt;Which raises the real problem: how do you test this? For a normal library you assert that the function returns the right answer. Here, nobody knows the right answer. The whole point of the engine is to compute a number I cannot compute another way — and if I could hand-verify the output, I would not have needed to write it.&lt;/p&gt;
&lt;p&gt;The usual answer is a pile of regression tests, and there is one: roughly fourteen hundred of them. But a regression test only tells you that today's answer matches the answer you wrote down on the day you wrote the test, which may have been wrong. What I have found much more valuable is a set of ten fuzzing harnesses that do not look for crashes so much as for &lt;em&gt;lies&lt;/em&gt; — properties that must hold for any input at all, checked against millions of inputs nobody thought to write down.&lt;/p&gt;
&lt;p&gt;Some of them have an actual oracle. Turn the drag off — set the ballistic coefficient absurdly high so air resistance becomes negligible — and a projectile is just a parabola, with a closed-form solution any physics undergraduate can produce: the drop at distance &lt;em&gt;x&lt;/em&gt; is exactly ½g(x/v)². So one harness generates arbitrary velocities, runs the full production solver, and demands that its answer match the exact analytic parabola. If the integrator, the step size, or the coordinate handling is subtly wrong, no amount of physics-modeling opinion can hide it, because for that one degenerate case the truth is known.&lt;/p&gt;
&lt;p&gt;Others check symmetry. Switch off spin drift, Magnus, and Coriolis so that the only thing pushing the bullet sideways is wind, then mirror the wind: the drift must mirror too, exactly. Any asymmetry left over is a bug, because there is nothing left in the model that could physically prefer one side. Others check monotonicity — a claim like "at a fixed distance, a bullet with a higher ballistic coefficient must not drop &lt;em&gt;more&lt;/em&gt;." No exact answer required; only a direction of change, which is often the strongest statement you can actually make about a system this tangled.&lt;/p&gt;
&lt;p&gt;And my favorite links the &lt;em&gt;previous released version of the engine&lt;/em&gt; into the same binary as the current one and runs both. Not to demand identical output — the numbers are supposed to change when the physics improves — but to compare their qualitative responses, so that if a refactor quietly inverts how drop responds to a change in ballistic coefficient, the difference surfaces against the version that shipped rather than against my expectations. Which, being the person who wrote the refactor, are the least trustworthy oracle in the building. This trick has one delightful practical wrinkle: linking two versions of the same Rust crate into one executable works fine right up until both of them export identical &lt;code&gt;#[no_mangle]&lt;/code&gt; C symbols for the FFI layer and the linker gives up. The fix is a feature flag that turns the C ABI off on one of the two edges — a small ugly accommodation for a technique that has more than paid for it.&lt;/p&gt;
&lt;h3&gt;Thirteen platforms, because I am like this&lt;/h3&gt;
&lt;p&gt;One more testing note disguised as a shipping note. Each release goes out as native binaries for thirteen platforms — Linux on x86-64, Arm64, RISC-V and 64-bit MIPS; macOS on Intel and Apple Silicon; Windows; and FreeBSD, OpenBSD and NetBSD each on both x86-64 and Arm64 — built by &lt;a href="https://tinycomputers.io/posts/multi-operating-system-and-multi-architecture-build-orchestration-system.html"&gt;a small fleet of single-board computers&lt;/a&gt; that boots a real BSD guest for the length of one compile and then puts it away again. There is no business case for most of that; there is not, so far as I know, a single OpenBSD/Arm64 user waiting on a ballistics calculator.&lt;/p&gt;
&lt;p&gt;But it earns its place in this particular story, because portability is a bug detector. An engine that produces the same numbers on big-endian 64-bit MIPS as it does on Apple Silicon is an engine carrying fewer accidental assumptions about how its floats are laid out and how its integers are ordered. Thirteen platforms is thirteen independent opportunities to be told I assumed something I had not noticed assuming.&lt;/p&gt;
&lt;h3&gt;Solving it backwards&lt;/h3&gt;
&lt;p&gt;Everything so far is the &lt;em&gt;forward&lt;/em&gt; problem: here is the load, tell me where it hits. That is the well-posed direction, and honestly, it is a solved problem — there are good calculators, mine included, and they mostly agree.&lt;/p&gt;
&lt;p&gt;It is also not the question anybody actually has. Nobody at a loading bench wonders where their known load will land. They wonder the other way around: &lt;em&gt;I want it to land here — what gets me there?&lt;/em&gt; Which powder, and how many grains of it, produces the velocity I want? What barrel twist rate will stabilize this bullet? How long should I seat this cartridge? What is this bullet's ballistic coefficient really, derived from its measured dimensions, rather than the optimistic number on the box?&lt;/p&gt;
&lt;p&gt;Those are inverse problems, and inverse problems are where it stops being a matter of running the textbook forward. They generally have no closed form. You solve them by searching — running the forward model over and over inside a root-find or an optimizer, hunting for the input that produces the output that was asked for — and the search is only as trustworthy as the model inside its loop, which is the entire ballgame. A backward solver built on a mediocre forward model does not fail loudly. It produces a confident, specific, plausible number that is wrong, which is worse than useless in a domain where people act on the answer.&lt;/p&gt;
&lt;p&gt;So that is where the real work went: the drag model those searches lean on is calibrated against Doppler radar measurements of how actual bullets actually decelerate — including through the transonic region, where the classical scale-a-reference-curve assumption is at its weakest — rather than assuming every projectile behaves like a reference shape from a century ago.&lt;/p&gt;
&lt;h3&gt;The split, stated plainly&lt;/h3&gt;
&lt;p&gt;I would rather just tell you the arrangement than have you discover it.&lt;/p&gt;
&lt;p&gt;The engine is free and open: the library, the CLI, the WebAssembly build, the Python and Ruby bindings, the whole forward solver, the fuzzing harnesses, all of it. Compute trajectories, run dispersions, true your velocity against real measured drops, build hold tables, ship it inside something of your own. No account, no key, no telemetry. That is &lt;a href="https://ballistics.rs/"&gt;ballistics.rs&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The four inverse solvers are the one piece behind a subscription, at &lt;a href="https://ballisticsinsight.com/"&gt;Ballistics Insight&lt;/a&gt;. They run as a service — in a browser, or from the same CLI once you have logged in:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;ballistics login
ballistics recommend-powder --cartridge "308 Winchester" \
    --bullet-weight 175 --desired-velocity 2600
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;They are the paid piece because they are the part with real ongoing cost behind them — the measured drag data the searches depend on, and the compute to run them — and because a project like this is more likely to still exist in five years if some part of it pays for itself. If you shoot, they may be worth it to you. If you are here for the numerical methods and the fuzzing and the pile of BSD binaries, that is all free and I am glad you came.&lt;/p&gt;
&lt;p&gt;One honest note if you do use the powder solver: what it returns is a &lt;em&gt;starting&lt;/em&gt; point, not a recipe. It is where to begin working a load up, carefully, against published load data, over a chronograph, in the slow and boring and safe way. The physics is good. The physics is not your reloading manual and will not pretend to be.&lt;/p&gt;
&lt;p&gt;The bullet still does not go where you point it. But it goes somewhere entirely predictable, and I find that a much more interesting fact than it first appears.&lt;/p&gt;
&lt;p&gt;

&lt;/p&gt;&lt;div class="bi-app-promo" style="margin: 2em 0; padding: 1.25em 1.5em; background: var(--color-bg-secondary, rgba(127, 127, 127, 0.08)); border: 1px solid var(--color-border-primary, rgba(127, 127, 127, 0.35)); border-left: 4px solid var(--color-accent, #4FC3A1); border-radius: 6px;"&gt;
  &lt;div class="row"&gt;
    &lt;div class="col-sm-9"&gt;
      &lt;h5 style="margin-top: 0;"&gt;Ballistics Insight&lt;/h5&gt;
      &lt;p&gt;The open-source ballistics engine from these posts, on your phone: drop and wind holds for your own load and the day's conditions, with your saved loads and shooting logs. Calculations run on the device, so they work offline. It's free to install on iPhone, iPad and Android, and Pro is a one-time purchase.&lt;/p&gt;
      &lt;p style="margin-bottom: 0;"&gt;
        &lt;a style="display: inline-block; margin: 0 0.5em 0.5em 0; line-height: 0; vertical-align: middle;" href="https://go.tinymachines.io/ballisticsinsightappstore-tc-aim" data-umami-event="app-click" data-umami-event-store="apple" data-umami-event-placement="tc-post" data-umami-event-post="aim"&gt;&lt;img src="https://tinycomputers.io/ballistics-insight/app-store-badge.svg" alt="Download on the App Store" width="138" height="40" style="height: 40px; width: auto;"&gt;&lt;/a&gt;
        &lt;a style="display: inline-block; margin: 0 0.5em 0.5em 0; line-height: 0; vertical-align: middle;" href="https://go.tinymachines.io/ballisticsinsightplay-tc-aim" data-umami-event="app-click" data-umami-event-store="play" data-umami-event-placement="tc-post" data-umami-event-post="aim"&gt;&lt;img src="https://tinycomputers.io/ballistics-insight/google-play-badge.svg" alt="Get it on Google Play" width="138" height="40" style="height: 40px; width: auto;"&gt;&lt;/a&gt;
      &lt;/p&gt;
      &lt;p style="margin: 0.25em 0 0 0;"&gt;&lt;a href="https://tinycomputers.io/pages/ballistics.html"&gt;All ballistics posts, in order →&lt;/a&gt;&lt;/p&gt;
    &lt;/div&gt;
    &lt;div class="col-sm-3 hidden-xs text-center"&gt;
      &lt;img src="https://tinycomputers.io/ballistics-insight/app-qr.svg" alt="QR code that opens Ballistics Insight in your phone's app store" width="112" height="112" style="background: #fff; padding: 6px; border-radius: 4px;"&gt;
      &lt;div&gt;&lt;small style="color: var(--color-text-muted, inherit);"&gt;Scan with your phone&lt;/small&gt;&lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;</description><category>ballistics</category><category>cli</category><category>cross-compilation</category><category>external ballistics</category><category>fuzzing</category><category>numerical methods</category><category>ode solver</category><category>physics</category><category>property testing</category><category>rust</category><category>wasm</category><guid>https://tinycomputers.io/posts/the-bullet-doesnt-go-where-you-point-it.html</guid><pubDate>Sat, 01 Aug 2026 17:00:00 GMT</pubDate></item><item><title>FriendlyElec NanoPC-T6N Review: The Fastest Board on My Bench, and the Benchmark That Outgrew Itself</title><link>https://tinycomputers.io/posts/friendlyelec-nanopc-t6n-review.html?utm_source=feed&amp;utm_medium=rss&amp;utm_campaign=rss</link><dc:creator>A.C. Jokela</dc:creator><description>&lt;div class="audio-widget"&gt;
&lt;div class="audio-widget-header"&gt;
&lt;span class="audio-widget-icon"&gt;🎧&lt;/span&gt;
&lt;span class="audio-widget-label"&gt;Listen to this article&lt;/span&gt;
&lt;/div&gt;
&lt;audio controls preload="metadata"&gt;
&lt;source src="https://tinycomputers.io/friendlyelec-nanopc-t6n-review_tts.mp3" type="audio/mpeg"&gt;
&lt;/source&gt;&lt;/audio&gt;
&lt;div class="audio-widget-footer"&gt;53 min · AI-generated narration&lt;/div&gt;
&lt;/div&gt;

&lt;style&gt;
table, th, td {
  border: 1px solid #aaa;
  border-collapse: collapse;
  padding: 5px;
}
&lt;/style&gt;

&lt;p&gt;I reviewed the &lt;a href="https://tinycomputers.io/posts/friendlyelec-nanopc-t6-review.html"&gt;NanoPC-T6&lt;/a&gt; back in March 2025, but that piece was a specification comparison - a paper exercise against the Raspberry Pi 5 and the Radxa X4. This time I have the hardware on my bench, in the form of FriendlyELEC's &lt;strong&gt;NanoPC-T6N&lt;/strong&gt;, and I ran it through the same treatment every other board here gets: a from-clean Rust compile, three times, plus crypto, memory, storage, network, and thermal characterization.&lt;/p&gt;
&lt;p&gt;The short version is that the T6N is the fastest ARM single-board computer I have benchmarked. It posted a &lt;strong&gt;52.55-second&lt;/strong&gt; mean clean release build, edging out the &lt;a href="https://tinycomputers.io/posts/rk3588-orange-pi-5-max-review.html"&gt;Orange Pi 5 Max&lt;/a&gt; - the previous ARM leader, and a board built on the same RK3588 silicon. It pushes over two gigabytes per second of AES-128-GCM. Under 120 seconds of eight-core stress it peaked at 56.4 °C and never dropped a single clock bin. For a board that has been shipping in one revision or another since 2023, the RK3588 is aging with remarkable grace.&lt;/p&gt;
&lt;p&gt;But the more interesting thing I found had nothing to do with the board, and I want to lead with it because it changes how you should read every number below.&lt;/p&gt;
&lt;h3&gt;The Benchmark That Outgrew Itself&lt;/h3&gt;
&lt;p&gt;My standard SBC test is a clean &lt;code&gt;cargo build --release&lt;/code&gt; of a &lt;a href="https://github.com/ajokela/ballistics-engine"&gt;ballistics simulation engine&lt;/a&gt; I maintain. Three runs, &lt;code&gt;cargo clean&lt;/code&gt; between each, averaged. It is a good test because it is real work: it hammers the CPU, the memory subsystem, the storage, and the compiler all at once, and it is the kind of thing I actually do on these machines.&lt;/p&gt;
&lt;p&gt;The problem is that the benchmark is a &lt;em&gt;live project&lt;/em&gt;, and live projects grow.&lt;/p&gt;
&lt;p&gt;When I ran the October 2025 fleet sweep that produced the comparison table I have been citing ever since - Orange Pi 5 Max at 62.31 s, Raspberry Pi CM5 at 71.04 s, Raspberry Pi 5 at 76.65 s - the engine was at commit &lt;code&gt;2821bba&lt;/code&gt;: &lt;strong&gt;43 Rust source files, 16,639 lines of code, 13 direct dependencies.&lt;/strong&gt; As of today, &lt;code&gt;HEAD&lt;/code&gt; is &lt;code&gt;edd333d&lt;/code&gt;: &lt;strong&gt;158 source files, 117,002 lines, 281 crates in the resolved dependency graph.&lt;/strong&gt; Seven times the code.&lt;/p&gt;
&lt;p&gt;So when the T6N's first timed run came back at 353 seconds, I did not have a slow board. I had an invalid comparison. Against the current tree the T6N looks like it belongs down near the Cortex-A53 machines; against the tree every archived number was measured on, it is at the top of the table. Same board, same afternoon, same toolchain — a 6.66x difference that says nothing whatsoever about the hardware.&lt;/p&gt;
&lt;p&gt;The fix was to check out &lt;code&gt;2821bba&lt;/code&gt; on the T6N and run the benchmark against the exact tree the fleet was measured on. Everything I present as a fleet comparison below uses that pinned tree. I am also reporting the current-tree number, because it is a genuinely useful data point about what a 2026-sized Rust project costs on this class of hardware — it is just not a number you can put in the same column as a 2025 result.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Two caveats I cannot engineer away.&lt;/strong&gt; First, my run used rustc 1.97.1; the archived fleet runs used 1.90.0 and 1.91.0. Second, that commit predates the repository having a &lt;code&gt;Cargo.lock&lt;/code&gt;, so dependency versions resolve fresh at build time and my build pulled newer crates than the October build did. Same source tree, different compiler, drifting dependencies. I would have preferred to re-run a reference board alongside the T6N under identical conditions, and I tried — but every candidate in my fleet was pinned under fuzzing jobs at load averages of 5 to 38, and a contaminated reference number is worse than an honest caveat. &lt;strong&gt;Treat the ~19% margin over the Orange Pi 5 Max as directional, not decisive.&lt;/strong&gt; The safe claim is that the T6N is at the front of the pack, not that it has a measurable lead over its RK3588 sibling.&lt;/p&gt;
&lt;h3&gt;Hardware Architecture: The RK3588, Four Years On&lt;/h3&gt;
&lt;p&gt;The T6N is built on Rockchip's &lt;a href="https://www.rock-chips.com/a/en/products/RK35_Series/2022/0926/1660.html"&gt;RK3588&lt;/a&gt; - the device tree reports &lt;code&gt;friendlyelec,nanopc-t6n&lt;/code&gt; / &lt;code&gt;rockchip,rk3588&lt;/code&gt;, so this is the full RK3588, not the reduced-I/O RK3588S. It is an 8 nm big.LITTLE part that has become the default answer for "I want a fast ARM SBC," and it powers a large fraction of the boards on my shelf.&lt;/p&gt;
&lt;p&gt;What &lt;code&gt;lscpu&lt;/code&gt; reports on my unit is more specific than the marketing:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Cluster&lt;/th&gt;
&lt;th&gt;Cores&lt;/th&gt;
&lt;th&gt;Frequency range&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Little&lt;/td&gt;
&lt;td&gt;4x Cortex-A55 (r2p0)&lt;/td&gt;
&lt;td&gt;408 - 1800 MHz&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Big, cluster 0 (cpu4-5)&lt;/td&gt;
&lt;td&gt;2x Cortex-A76 (r4p0)&lt;/td&gt;
&lt;td&gt;408 - &lt;strong&gt;2304 MHz&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Big, cluster 1 (cpu6-7)&lt;/td&gt;
&lt;td&gt;2x Cortex-A76 (r4p0)&lt;/td&gt;
&lt;td&gt;408 - &lt;strong&gt;2352 MHz&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The RK3588 is usually advertised at "up to 2.4 GHz." The operating point tables in this image top out at 2304 MHz on one big cluster and 2352 MHz on the other — a real asymmetry, visible in &lt;code&gt;scaling_available_frequencies&lt;/code&gt;, and the sort of thing you only see when you go looking. It is not a defect; RK3588 splits its four A76s into two dual-core clusters with independent DVFS, and per-cluster binning is normal. It does mean the headline clock is a rounding-up.&lt;/p&gt;
&lt;p&gt;Cache is generous: 384 KiB L1d and 384 KiB L1i across eight instances, 2.5 MiB of L2, and 3 MiB of shared L3. The full ARMv8 crypto feature set is present — &lt;code&gt;aes&lt;/code&gt;, &lt;code&gt;pmull&lt;/code&gt;, &lt;code&gt;sha1&lt;/code&gt;, &lt;code&gt;sha2&lt;/code&gt;, &lt;code&gt;crc32&lt;/code&gt;, plus &lt;code&gt;asimddp&lt;/code&gt; (dot product) and &lt;code&gt;fphp&lt;/code&gt;/&lt;code&gt;asimdhp&lt;/code&gt; (half-precision) — and as the crypto section shows, those instructions are doing real work.&lt;/p&gt;
&lt;p&gt;My unit carries &lt;strong&gt;16 GB of LPDDR4X&lt;/strong&gt; (15 GiB usable after the kernel and GPU carve-outs) with no swap configured, and a &lt;strong&gt;64 GB eMMC module&lt;/strong&gt;. Alongside the CPU sit the parts that make an RK3588 more than a CPU:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A &lt;strong&gt;Mali-G610&lt;/strong&gt; GPU (&lt;code&gt;mali fb000000.gpu&lt;/code&gt;, kernel DDK &lt;code&gt;g29p0-00eac0&lt;/code&gt;), idling at 300 MHz against a 1000 MHz ceiling.&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;6 TOPS NPU&lt;/strong&gt; across three cores (&lt;code&gt;fdab0000.npu&lt;/code&gt;), with its devfreq pinned at 1000 MHz.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Two RKVENC encoder cores&lt;/strong&gt; plus the Rockchip MPP video stack.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Three 2D acceleration engines&lt;/strong&gt; — dual RGA3 (&lt;code&gt;hw_version 3.0.76831&lt;/code&gt;) and one RGA2 (&lt;code&gt;3.2.63318&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;hardware crypto engine&lt;/strong&gt; exposed through the &lt;code&gt;rk_crypto&lt;/code&gt; and &lt;code&gt;cryptodev&lt;/code&gt; kernel modules.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A note on the model name: I could not find authoritative public documentation for the "T6N" suffix specifically. FriendlyELEC's public pages cover the NanoPC-T6, the T6 LTS, and the newer T6 Plus (which moves to LPDDR5). Both &lt;code&gt;/proc/device-tree/compatible&lt;/code&gt; and &lt;code&gt;/etc/friendlyelec-release&lt;/code&gt; on my board say &lt;code&gt;NanoPC-T6N&lt;/code&gt; unambiguously, and everything I measured is consistent with the T6 family's RK3588 platform. Where I cite a port or interface I did not personally exercise, I flag it as a vendor specification for the T6 family rather than something I verified.&lt;/p&gt;
&lt;h3&gt;The Board As Configured&lt;/h3&gt;
&lt;p&gt;Physically the T6 family is a 110 x 80 mm eight-layer board — noticeably larger than a Raspberry Pi's 85 x 56 mm footprint, and denser with I/O. The headline feature, and the reason to pick a T6 over an Orange Pi 5 Max, is &lt;strong&gt;dual 2.5-gigabit Ethernet&lt;/strong&gt;. My unit has two Realtek RTL8125 controllers, each sitting behind its own PCIe bridge:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;-[0002:20]---00.0-[21]----00.0  Realtek RTL8125 2.5GbE Controller
-[0004:40]---00.0-[41]----00.0  Realtek RTL8125 2.5GbE Controller
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Both negotiate PCIe Gen 2 x1 links, which is the correct provisioning: 5 GT/s x1 is about 500 MB/s of usable bandwidth, comfortably above the 312 MB/s a saturated 2.5GbE link needs. The device tree exposes five PCIe controllers in total. Two carry the NICs. &lt;code&gt;pcie@fe150000&lt;/code&gt; — the PCIe 3.0 controller that feeds the M.2 M-key slot — spent boot cycling through &lt;code&gt;LTSSM&lt;/code&gt; states and eventually logged &lt;code&gt;PCIe Link Fail&lt;/code&gt;, which is exactly what an empty slot looks like. &lt;strong&gt;My unit has no NVMe installed&lt;/strong&gt;, so I could not measure the board's fastest storage path, and I have not verified the M-key slot electrically.&lt;/p&gt;
&lt;p&gt;The board came to me headless, reached over an attached JetKVM (visible in &lt;code&gt;lsusb&lt;/code&gt; as a USB HID gadget), so the display side — two HDMI 2.1 outputs, the HDMI &lt;em&gt;input&lt;/em&gt; that is the T6's genuinely unusual party trick, the dual MIPI-DSI and dual MIPI-CSI connectors — is vendor specification I did not exercise. &lt;code&gt;/dev/dri/card0&lt;/code&gt; is present and bound to the display subsystem, so the plumbing is there.&lt;/p&gt;
&lt;h4&gt;Storage: The Part That Bothered Me&lt;/h4&gt;
&lt;p&gt;Here is the configuration detail with the biggest practical consequence. The kernel command line reads &lt;code&gt;storagemedia=sd&lt;/code&gt;, &lt;code&gt;root=/dev/mmcblk0p8&lt;/code&gt;. Checking the block devices:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Device&lt;/th&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;Size&lt;/th&gt;
&lt;th&gt;Role&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;mmcblk0&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;SD&lt;/td&gt;
&lt;td&gt;SanDisk &lt;code&gt;SN64G&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;59.5 GB&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Boots and runs the system&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;mmcblk2&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;MMC&lt;/td&gt;
&lt;td&gt;&lt;code&gt;A3A561&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;57.6 GB&lt;/td&gt;
&lt;td&gt;Onboard eMMC — populated, fully partitioned, unused&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;The board is running from a microSD card while a perfectly good 64 GB eMMC module sits idle underneath it.&lt;/strong&gt; The root filesystem is an overlay (&lt;code&gt;lowerdir=/root&lt;/code&gt;, &lt;code&gt;upperdir=/data/root&lt;/code&gt;) on the SD card's partitions — FriendlyELEC's standard layout, just pointed at the wrong medium.&lt;/p&gt;
&lt;p&gt;I measured what that costs, read-only on both devices so nothing was written to the eMMC:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Measurement&lt;/th&gt;
&lt;th&gt;microSD (&lt;code&gt;mmcblk0&lt;/code&gt;)&lt;/th&gt;
&lt;th&gt;eMMC (&lt;code&gt;mmcblk2&lt;/code&gt;)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Buffered disk read (&lt;code&gt;hdparm -t&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;64.85 MB/s&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;302.05 MB/s&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cached read (&lt;code&gt;hdparm -T&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;4,446 MB/s&lt;/td&gt;
&lt;td&gt;6,878 MB/s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Filesystem write, 1 GB &lt;code&gt;dd conv=fdatasync&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;54.6 MB/s&lt;/td&gt;
&lt;td&gt;not tested (would require writing)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Filesystem read, 1 GB after cache drop&lt;/td&gt;
&lt;td&gt;67.9 MB/s&lt;/td&gt;
&lt;td&gt;not tested&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;The eMMC reads 4.66x faster than the card the system is booted from.&lt;/strong&gt; The microSD is turning in respectable UHS-I numbers — 65 MB/s buffered read is about what SDR104 gives you — but it is the slowest component in an otherwise quick machine.&lt;/p&gt;
&lt;p&gt;How much is it actually costing? Less than you would guess for the compile benchmark, and that is worth being precise about. Rust compilation is overwhelmingly CPU-bound once the dependency sources are on disk; the T6N still posted the fastest ARM time on my bench &lt;em&gt;from a microSD&lt;/em&gt;. But the run-to-run standard deviation on the pinned tree was 2.27 s against a 52.55 s mean (4.3%), noticeably looser than the 1.4% I saw on the 350-second HEAD run, and the first run of each series was consistently the slowest — the signature of cold cache being refilled over a slow device. For workloads that are actually I/O-bound — a NAS, a container host, a database, anything doing bulk writes — the gap would be the whole story.&lt;/p&gt;
&lt;p&gt;If you buy one of these, install to the eMMC, or better, populate the M.2 slot. I did not reflash my unit because the eMMC's partition table suggests something is installed there that is not mine to overwrite.&lt;/p&gt;
&lt;h3&gt;Software: FriendlyELEC's Debian 13 BSP&lt;/h3&gt;
&lt;p&gt;The board runs &lt;strong&gt;Debian GNU/Linux 13.3 (trixie)&lt;/strong&gt; on kernel &lt;strong&gt;6.1.141&lt;/strong&gt;, built &lt;code&gt;Sat Jul 18 2026&lt;/code&gt;. That combination deserves unpacking, because it is the standard Rockchip vendor-BSP bargain.&lt;/p&gt;
&lt;p&gt;Trixie is genuinely current — a 2025 Debian stable with a modern userland, OpenSSL 3.5.6, and a package archive that has everything you would want. &lt;code&gt;apt install build-essential git curl pkg-config libssl-dev&lt;/code&gt; worked without a hitch, and &lt;code&gt;rustup&lt;/code&gt; installed rustc 1.97.1 with no drama. From userspace this feels like any other Debian machine.&lt;/p&gt;
&lt;p&gt;The kernel does not. 6.1 is the Rockchip vendor tree, not mainline, and &lt;code&gt;/etc/friendlyelec-release&lt;/code&gt; reports &lt;code&gt;LINUXFAMILY=nanopi6&lt;/code&gt;, &lt;code&gt;BRANCH=dev&lt;/code&gt;. The board firmware — &lt;code&gt;ddr-v1.17&lt;/code&gt;, &lt;code&gt;bl31-v1.56&lt;/code&gt;, &lt;code&gt;bl32-v1.21&lt;/code&gt;, U-Boot dated &lt;code&gt;07/10/2026&lt;/code&gt; — is recent, and a kernel built eleven days before I tested it says FriendlyELEC is actively maintaining this image. That is better vendor hygiene than most. But it is still a 6.1 vendor kernel, which means the NPU, the video codecs, and the GPU all depend on out-of-tree drivers and Rockchip's userspace libraries. Mainline RK3588 support has come a long way, and if you want it you can run Armbian or Debian with a mainline kernel — you will simply give up the accelerators.&lt;/p&gt;
&lt;p&gt;The one thing that surprised me was the default CPU frequency governor: &lt;strong&gt;&lt;code&gt;conservative&lt;/code&gt;&lt;/strong&gt;. Not &lt;code&gt;schedutil&lt;/code&gt;, not &lt;code&gt;ondemand&lt;/code&gt;, not &lt;code&gt;performance&lt;/code&gt; — &lt;code&gt;conservative&lt;/code&gt;, which is the most cautious ramp-up policy in the kernel and an unusual default for a board sold on its performance. All six governors are available.&lt;/p&gt;
&lt;p&gt;I assumed this was costing measurable throughput, so I tested it: three pinned-tree builds under &lt;code&gt;conservative&lt;/code&gt;, three under &lt;code&gt;performance&lt;/code&gt;, back to back on an otherwise idle board.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Governor&lt;/th&gt;
&lt;th&gt;Run 1&lt;/th&gt;
&lt;th&gt;Run 2&lt;/th&gt;
&lt;th&gt;Run 3&lt;/th&gt;
&lt;th&gt;Mean&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;conservative&lt;/code&gt; (shipped default)&lt;/td&gt;
&lt;td&gt;55.00 s&lt;/td&gt;
&lt;td&gt;51.28 s&lt;/td&gt;
&lt;td&gt;54.18 s&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;53.49 s&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;performance&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;54.59 s&lt;/td&gt;
&lt;td&gt;54.83 s&lt;/td&gt;
&lt;td&gt;52.44 s&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;53.95 s&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;No difference — 0.9% in favor of the shipped default, comfortably inside the noise.&lt;/strong&gt; I was wrong about this one, and the reason is straightforward: a sustained compile keeps every core busy, so even a conservative governor ramps to maximum within the first second and stays there. I confirmed the big cores sat at 2304 MHz throughout the &lt;code&gt;performance&lt;/code&gt; runs and throughout sustained stress testing.&lt;/p&gt;
&lt;p&gt;Where &lt;code&gt;conservative&lt;/code&gt; could still bite you is bursty, latency-sensitive, interactive work — a desktop session, a request-response server with idle gaps — where the ramp-up delay lands inside the thing you care about. I did not measure that, so I will not claim it. For sustained compute, leave the default alone. (I restored the board to &lt;code&gt;conservative&lt;/code&gt; after testing.)&lt;/p&gt;
&lt;h3&gt;Compile Performance&lt;/h3&gt;
&lt;p&gt;Three clean release builds, &lt;code&gt;cargo clean&lt;/code&gt; between each, on an otherwise idle board.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Pinned tree (&lt;code&gt;2821bba&lt;/code&gt; — 43 files, 16,639 LOC), the fleet-comparable workload:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Run 1: 55.17 s&lt;/li&gt;
&lt;li&gt;Run 2: 51.42 s&lt;/li&gt;
&lt;li&gt;Run 3: 51.07 s&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Mean: 52.55 s&lt;/strong&gt; (median 51.42 s, σ 2.27 s)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Current tree (&lt;code&gt;edd333d&lt;/code&gt; — 158 files, 117,002 LOC, 281 crates):&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Run 1: 353.36 s&lt;/li&gt;
&lt;li&gt;Run 2: 352.23 s&lt;/li&gt;
&lt;li&gt;Run 3: 344.19 s&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Mean: 349.93 s&lt;/strong&gt; (median 352.23 s, σ 5.00 s)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img alt="NanoPC-T6N Rust compilation performance" src="https://tinycomputers.io/images/nanopc-t6n-compile-comparison.png"&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Left: the fleet on the pinned Sept-2025 tree. Right: the same board and toolchain against both sizes of the same project — 6.66x the build time for 7.03x the code.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Against the archived fleet, on the tree they were all measured against:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;System&lt;/th&gt;
&lt;th&gt;SoC / CPU&lt;/th&gt;
&lt;th&gt;Cores&lt;/th&gt;
&lt;th&gt;Mean&lt;/th&gt;
&lt;th&gt;vs. T6N&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;NanoPC-T6N&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;RK3588 — 4x A76 + 4x A55&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;8&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;52.55 s&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;1.00x (baseline)&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Orange Pi 5 Max&lt;/td&gt;
&lt;td&gt;RK3588 — 4x A76 + 4x A55&lt;/td&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;62.31 s&lt;/td&gt;
&lt;td&gt;1.19x slower&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Raspberry Pi CM5&lt;/td&gt;
&lt;td&gt;BCM2712 — 4x A76&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;71.04 s&lt;/td&gt;
&lt;td&gt;1.35x slower&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;LattePanda IOTA&lt;/td&gt;
&lt;td&gt;Intel N150&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;72.21 s&lt;/td&gt;
&lt;td&gt;1.37x slower&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Raspberry Pi 5&lt;/td&gt;
&lt;td&gt;BCM2712 — 4x A76&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;76.65 s&lt;/td&gt;
&lt;td&gt;1.46x slower&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Banana Pi CM5-Pro&lt;/td&gt;
&lt;td&gt;RK3576 — 4x A72 + 4x A53&lt;/td&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;167.15 s&lt;/td&gt;
&lt;td&gt;3.18x slower&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Horizon X3 CM&lt;/td&gt;
&lt;td&gt;4x Cortex-A53&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;378.81 s&lt;/td&gt;
&lt;td&gt;7.21x slower&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Banana Pi R2 Pro&lt;/td&gt;
&lt;td&gt;RK3568 — 4x A55&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;418.18 s&lt;/td&gt;
&lt;td&gt;7.96x slower&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Orange Pi RV2&lt;/td&gt;
&lt;td&gt;Ky X1 — RISC-V&lt;/td&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;650.60 s&lt;/td&gt;
&lt;td&gt;12.38x slower&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Milk-V Mars&lt;/td&gt;
&lt;td&gt;JH7110 — RISC-V, 4x U74&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;936.18 s&lt;/td&gt;
&lt;td&gt;17.82x slower&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;em&gt;Archived figures are from the October 2025 fleet sweep on rustc 1.90/1.91; the T6N figure is from July 2026 on rustc 1.97.1 against the same source tree. See the caveats above — the T6N's position at the top is solid, its exact margin is not.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The honest reading: &lt;strong&gt;the T6N belongs in the top tier, alongside the Orange Pi 5 Max and ahead of the four-core A76 machines.&lt;/strong&gt; It should be ahead of the Orange Pi 5 Max on clocks alone — 2304/2352 MHz against the 5 Max's 2256 MHz is a 2-4% edge — and it had 16 GB of RAM and an idle system working for it. Whether the remaining margin is real silicon or compiler version, I cannot say from this data.&lt;/p&gt;
&lt;p&gt;The 350-second figure on the current tree is the one to internalize if you are choosing hardware for real 2026 development work. A 117,000-line Rust project with 281 crates takes about six minutes to build from clean on the best ARM SBC I have. That is a coffee break, not a lunch break, and it is genuinely usable — but it is a different world from the sub-90-second numbers that made the 2025 table look so friendly.&lt;/p&gt;
&lt;h3&gt;CPU: Sysbench and Core Scaling&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;sysbench cpu --cpu-max-prime=20000&lt;/code&gt;, 15-second runs:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Threads&lt;/th&gt;
&lt;th&gt;Events/sec&lt;/th&gt;
&lt;th&gt;Scaling vs. 1 thread&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;967.41&lt;/td&gt;
&lt;td&gt;1.00x&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4 (big cluster width)&lt;/td&gt;
&lt;td&gt;3,861.78&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;3.99x&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;8 (all cores)&lt;/td&gt;
&lt;td&gt;5,324.94&lt;/td&gt;
&lt;td&gt;5.50x&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The four-thread result is the interesting one: &lt;strong&gt;3.99x scaling on four threads is essentially perfect&lt;/strong&gt;, which tells you the two big clusters are genuinely independent and the memory subsystem is not contending under parallel load. That is a well-built SoC.&lt;/p&gt;
&lt;p&gt;Going from four threads to eight adds only &lt;strong&gt;37.9%&lt;/strong&gt;, not the 100% a naive core count would suggest. This is exactly what big.LITTLE is supposed to look like: the four A55s are efficiency cores, not performance cores, and on a compute-bound integer workload each contributes roughly a third of what an A76 does. It is not a disappointment — it is the design. Anyone sizing a workload should think of the RK3588 as "four fast cores plus useful background capacity," not "eight cores."&lt;/p&gt;
&lt;p&gt;For comparison against the numbers in my &lt;a href="https://tinycomputers.io/posts/rk3588-orange-pi-5-max-review.html"&gt;Orange Pi 5 Max review&lt;/a&gt;: that piece reported 13,688 events/sec, but at sysbench's default &lt;code&gt;--cpu-max-prime=10000&lt;/code&gt;. Doubling the prime limit roughly quarters the event rate, so the two figures are not comparable. Mine are all at 20000.&lt;/p&gt;
&lt;h3&gt;Cryptography&lt;/h3&gt;
&lt;p&gt;For a board with two 2.5-gigabit interfaces, crypto throughput determines whether it can serve as a VPN endpoint, a TLS terminator, or an encrypted NAS at line rate. OpenSSL 3.5.6, single thread, 16 KB blocks:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Algorithm&lt;/th&gt;
&lt;th&gt;Throughput&lt;/th&gt;
&lt;th&gt;Hardware accelerated?&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;AES-128-GCM&lt;/td&gt;
&lt;td&gt;2,185.7 MB/s (~17.5 Gb/s)&lt;/td&gt;
&lt;td&gt;Yes (ARMv8 AES + PMULL)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AES-128-CBC&lt;/td&gt;
&lt;td&gt;1,831.8 MB/s (~14.7 Gb/s)&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AES-256-GCM&lt;/td&gt;
&lt;td&gt;1,763.9 MB/s (~14.1 Gb/s)&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SHA-256&lt;/td&gt;
&lt;td&gt;1,429.4 MB/s (~11.4 Gb/s)&lt;/td&gt;
&lt;td&gt;Yes (ARMv8 SHA2)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ChaCha20-Poly1305&lt;/td&gt;
&lt;td&gt;674.4 MB/s (~5.4 Gb/s)&lt;/td&gt;
&lt;td&gt;No (software, NEON)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SHA-512&lt;/td&gt;
&lt;td&gt;376.1 MB/s (~3.0 Gb/s)&lt;/td&gt;
&lt;td&gt;No (no SHA-512 extension)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;RSA-2048&lt;/td&gt;
&lt;td&gt;269.6 sign/s, 9,828 verify/s&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ECDSA P-256&lt;/td&gt;
&lt;td&gt;16,917 sign/s, 5,072 verify/s&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;A single A76 core encrypts AES-128-GCM at 2.19 GB/s.&lt;/strong&gt; Saturating one 2.5-gigabit port with authenticated encryption needs 312.5 MB/s; saturating both needs 625 MB/s. One core, with seven others idle, produces &lt;strong&gt;3.5x&lt;/strong&gt; what both ports combined can consume. Whatever else you throw at this board, crypto will not be the bottleneck.&lt;/p&gt;
&lt;p&gt;The ChaCha20-Poly1305 line is worth dwelling on because it directly determines WireGuard performance — WireGuard uses ChaCha20-Poly1305 exclusively and there is no hardware acceleration for it on ARMv8. At 674 MB/s (~5.4 Gb/s) it runs 2.6x slower than AES-256-GCM. That is a much narrower gap than the 4x+ I measured on the Cortex-A73 in the &lt;a href="https://tinycomputers.io/posts/banana-pi-bpi-r4-pro-review.html"&gt;Banana Pi BPI-R4 Pro&lt;/a&gt; — the A76's wider execution resources close a lot of it in software. At 5.4 Gb/s, &lt;strong&gt;a single core covers one 2.5GbE port more than twice over&lt;/strong&gt;, and just clears the 5 Gb/s both ports can carry together — with seven more cores available if you need headroom. Unlike on the R4 Pro, WireGuard is a non-issue on this board.&lt;/p&gt;
&lt;p&gt;ECDSA P-256 at 16,917 signatures/sec is far more TLS handshake capacity than this board will ever need. RSA-2048 signing at 269.6/sec is the weak spot in the table, but it is only a constraint for a busy public-facing web frontend using RSA certificates — use ECDSA and it evaporates.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;rk_crypto&lt;/code&gt; and &lt;code&gt;cryptodev&lt;/code&gt; are both loaded, meaning Rockchip's dedicated crypto engine is available in addition to the ARMv8 instructions. Every figure above is from the CPU instructions via OpenSSL's default provider; I did not route OpenSSL through the hardware engine, so the dedicated accelerator's throughput remains unmeasured.&lt;/p&gt;
&lt;h3&gt;Memory Bandwidth&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;sysbench memory&lt;/code&gt; with 1 MB blocks across 8 threads reported 58,114 MiB/s read and 55,902 MiB/s write.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Do not believe those numbers as DRAM bandwidth.&lt;/strong&gt; A 64-bit LPDDR4X interface has a theoretical ceiling in the low tens of GB/s, and 58 GB/s exceeds what this memory controller can physically deliver. &lt;code&gt;sysbench memory&lt;/code&gt; is well known to measure something closer to cache throughput and compiler-optimized memory operations than actual main-memory bandwidth. I am reporting the figures because they are what the standard tool produced and because they are a valid relative data point against other boards measured the same way — but I am not going to dress them up as a DRAM measurement, and neither should anyone else.&lt;/p&gt;
&lt;p&gt;What I can say with confidence is the practical part: 16 GB is a lot of RAM for an SBC, the board never touched swap (there is none configured), and nothing I ran came close to memory pressure. The near-perfect four-thread sysbench CPU scaling is indirect evidence that the memory subsystem keeps up with the big cluster under load.&lt;/p&gt;
&lt;h3&gt;Network&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;iperf3&lt;/code&gt; with four parallel streams between the T6N and another host on the same LAN segment:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Direction&lt;/th&gt;
&lt;th&gt;Throughput&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Board receives&lt;/td&gt;
&lt;td&gt;944 Mb/s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Board transmits&lt;/td&gt;
&lt;td&gt;936 Mb/s&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;Both directions hit gigabit line rate&lt;/strong&gt; — 944 Mb/s with zero retransmissions on the receive path is about as clean as TCP over a 1 Gb link gets. The transmit path matched it at 936 Mb/s but logged 3,850 retransmissions across the four streams; I would not read much into that, since the peer on the other end was carrying a load average around 38 at the time.&lt;/p&gt;
&lt;p&gt;The caveat is that this measures my wiring, not the board. &lt;code&gt;eth1&lt;/code&gt; negotiated at &lt;strong&gt;1000 Mb/s&lt;/strong&gt;, not 2.5 Gb/s, because the switch it is plugged into is a gigabit switch. &lt;code&gt;eth0&lt;/code&gt; had no link. The RTL8125 controllers are 2.5GbE parts on adequately-provisioned PCIe Gen 2 x1 links, so the silicon is there — I simply do not have the infrastructure to prove it, and I am not going to claim a 2.5-gigabit result I did not measure.&lt;/p&gt;
&lt;p&gt;One driver quirk worth flagging for anyone debugging: the &lt;code&gt;r8125&lt;/code&gt; driver (version &lt;code&gt;9.016.01-NAPI-g61ed2fd&lt;/code&gt;) misreports its capabilities to &lt;code&gt;ethtool&lt;/code&gt;, advertising &lt;code&gt;Supported link modes: 10baseT/Half 10baseT/Full&lt;/code&gt; — obviously wrong for a 2.5GbE controller. The link negotiates correctly regardless; it is cosmetic, but it will confuse you if you are chasing a link-speed problem through &lt;code&gt;ethtool&lt;/code&gt; output.&lt;/p&gt;
&lt;h3&gt;Thermals: The Best Result on the Board&lt;/h3&gt;
&lt;p&gt;I ran &lt;code&gt;stress-ng --cpu 8&lt;/code&gt; for 120 seconds, sampling every 10 seconds.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Elapsed&lt;/th&gt;
&lt;th&gt;SoC&lt;/th&gt;
&lt;th&gt;Big core 0&lt;/th&gt;
&lt;th&gt;Big core 1&lt;/th&gt;
&lt;th&gt;Big cluster clock&lt;/th&gt;
&lt;th&gt;Little cluster clock&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Idle&lt;/td&gt;
&lt;td&gt;47.2 °C&lt;/td&gt;
&lt;td&gt;48.1 °C&lt;/td&gt;
&lt;td&gt;48.1 °C&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10 s&lt;/td&gt;
&lt;td&gt;54.5 °C&lt;/td&gt;
&lt;td&gt;55.5 °C&lt;/td&gt;
&lt;td&gt;55.5 °C&lt;/td&gt;
&lt;td&gt;2304 MHz&lt;/td&gt;
&lt;td&gt;1800 MHz&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;40 s&lt;/td&gt;
&lt;td&gt;55.5 °C&lt;/td&gt;
&lt;td&gt;56.4 °C&lt;/td&gt;
&lt;td&gt;56.4 °C&lt;/td&gt;
&lt;td&gt;2304 MHz&lt;/td&gt;
&lt;td&gt;1800 MHz&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;70 s&lt;/td&gt;
&lt;td&gt;55.5 °C&lt;/td&gt;
&lt;td&gt;56.4 °C&lt;/td&gt;
&lt;td&gt;57.3 °C&lt;/td&gt;
&lt;td&gt;2304 MHz&lt;/td&gt;
&lt;td&gt;1800 MHz&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;110 s&lt;/td&gt;
&lt;td&gt;56.4 °C&lt;/td&gt;
&lt;td&gt;57.3 °C&lt;/td&gt;
&lt;td&gt;57.3 °C&lt;/td&gt;
&lt;td&gt;2304 MHz&lt;/td&gt;
&lt;td&gt;1800 MHz&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;+30 s cooldown&lt;/td&gt;
&lt;td&gt;46.2 °C&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;408 MHz&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;Peak SoC temperature of 56.4 °C after two minutes of full eight-core load, with zero throttling.&lt;/strong&gt; The big cores held 2304 MHz and the little cores held 1800 MHz for the entire run — not one clock bin dropped. The board shed the heat and returned to 46.2 °C within 30 seconds of the load ending. &lt;code&gt;stress-ng&lt;/code&gt; recorded 149,890 bogo-ops at 1,248 bogo-ops/sec.&lt;/p&gt;
&lt;p&gt;For context, RK3588 boards have a reputation for needing serious cooling, and thermal throttling under sustained load is a common complaint across the family. My unit shows none of it. A ~9 °C rise from idle to sustained full load means substantial headroom — the thermal solution on this board is doing its job with room to spare. If you are planning a sustained-compute deployment, this is the number that should reassure you.&lt;/p&gt;
&lt;h3&gt;Accelerators: What Is There, and What I Verified&lt;/h3&gt;
&lt;p&gt;I want to be careful here, because it is easy to inventory silicon and imply you benchmarked it.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What I verified is present and driver-bound:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The &lt;strong&gt;NPU&lt;/strong&gt; is live. &lt;code&gt;rknpu&lt;/code&gt; driver &lt;strong&gt;v0.9.8&lt;/strong&gt; is loaded, the devfreq node &lt;code&gt;fdab0000.npu&lt;/code&gt; is pinned at 1000 MHz, and it is exposed as a DRM device — &lt;code&gt;/dev/dri/card1&lt;/code&gt; and &lt;code&gt;/dev/dri/renderD129&lt;/code&gt;, symlinked from &lt;code&gt;platform-fdab0000.npu-card&lt;/code&gt;. Note it is &lt;em&gt;not&lt;/em&gt; at &lt;code&gt;/dev/rknpu&lt;/code&gt;; if you are following an older tutorial expecting that path, this is why it seems missing.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;/usr/lib/librknnrt.so&lt;/code&gt; ships in the image&lt;/strong&gt; (7.2 MB, dated January 2026). FriendlyELEC including the RKNN runtime out of the box is a genuinely nice touch — on several other Rockchip boards I have had to source it myself. The Python &lt;code&gt;rknnlite&lt;/code&gt; bindings are &lt;em&gt;not&lt;/em&gt; installed; you will need to add those.&lt;/li&gt;
&lt;li&gt;The &lt;strong&gt;Mali-G610&lt;/strong&gt; is bound (&lt;code&gt;mali fb000000.gpu&lt;/code&gt;, DDK &lt;code&gt;g29p0-00eac0&lt;/code&gt;) with devfreq from 300 MHz to 1000 MHz.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Video encode/decode&lt;/strong&gt; is available through Rockchip's MPP stack — &lt;code&gt;/dev/mpp_service&lt;/code&gt; and &lt;code&gt;librockchip_mpp.so&lt;/code&gt; are present, and two RKVENC cores probed cleanly. Note there is &lt;strong&gt;no &lt;code&gt;/dev/video*&lt;/code&gt;&lt;/strong&gt;: this is not a V4L2 M2M interface, so anything expecting mainline-style hardware codecs will need the Rockchip libraries instead. That is a meaningful integration cost if your pipeline assumes V4L2.&lt;/li&gt;
&lt;li&gt;All three &lt;strong&gt;RGA 2D engines&lt;/strong&gt; probed successfully.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;What I did not measure: NPU inference throughput.&lt;/strong&gt; Running a meaningful RKLLM or RKNN benchmark requires converting models on an x86 host and building out the toolkit, which was outside the scope of this session. The T6N carries the same 6 TOPS NPU, the same three-core architecture, and the same driver generation as the Orange Pi 5 Max, so my existing &lt;a href="https://tinycomputers.io/posts/rockchip-rk3588-npu-benchmarks.html"&gt;RK3588 NPU benchmarks&lt;/a&gt; — TinyLlama 1.1B at 10-15 tokens/sec, ResNet18 at 244 FPS and 4.09 ms latency — should transfer closely. I am pointing at those rather than inventing numbers for this board.&lt;/p&gt;
&lt;p&gt;Also unmeasured, for the record: NVMe performance (empty M.2 slot), 2.5-gigabit throughput (gigabit switch), GPU graphics performance (no &lt;code&gt;glmark2&lt;/code&gt;/&lt;code&gt;vulkaninfo&lt;/code&gt; installed, headless unit), HDMI input and output, and the MIPI DSI/CSI connectors.&lt;/p&gt;
&lt;h3&gt;Comparative Context&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Against the &lt;a href="https://tinycomputers.io/posts/rk3588-orange-pi-5-max-review.html"&gt;Orange Pi 5 Max&lt;/a&gt;&lt;/strong&gt; — the closest comparison, same SoC, same 16 GB. These boards are performance twins; treat my 19% margin as unproven. The real difference is I/O. The T6N has &lt;strong&gt;two 2.5GbE ports&lt;/strong&gt; to the 5 Max's one, an HDMI &lt;em&gt;input&lt;/em&gt;, and a larger 110 x 80 mm board with denser connectors. The 5 Max is a more conventional desktop-shaped SBC. If you want a router, firewall, NAS head, or anything that needs two fast network interfaces, the T6N is the obvious pick. If you want a small ARM desktop, the 5 Max is cheaper and gives up nothing important.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Against the Raspberry Pi 5 and &lt;a href="https://tinycomputers.io/posts/raspberry-pi-compute-module-5-review.html"&gt;CM5&lt;/a&gt;&lt;/strong&gt; — the T6N is roughly 1.35-1.46x faster on the compile benchmark, has twice the maximum RAM, adds a 6 TOPS NPU the Pi entirely lacks, and brings dual 2.5GbE against the Pi's single gigabit port. The Pi's counterargument is the one it always makes and always wins: ecosystem. Raspberry Pi OS is polished, mainline kernel support is a given, documentation is excellent, and the community is orders of magnitude larger. If you value never fighting your kernel over raw throughput, that trade is still worth making. If you have run vendor BSPs before and know what you are signing up for, the T6N is more machine.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Against the &lt;a href="https://tinycomputers.io/posts/banana-pi-cm5-pro-review.html"&gt;Banana Pi CM5-Pro&lt;/a&gt; (RK3576)&lt;/strong&gt; — 3.18x faster on the compile benchmark. The RK3576's A72/A53 pairing is a genuine generation behind the RK3588's A76/A55. The CM5-Pro's case is the CM4-compatible compute-module form factor and a lower price; on performance there is no contest.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Against the &lt;a href="https://tinycomputers.io/posts/banana-pi-bpi-r4-pro-review.html"&gt;Banana Pi BPI-R4 Pro&lt;/a&gt;&lt;/strong&gt; — an instructive contrast, because both boards want to be network appliances from opposite directions. The R4 Pro is a router that computes adequately: 10-gigabit MACs, a hardware packet-processing engine, a switch, WiFi 7, OpenWRT, and a modest quad A73. The T6N is a computer that networks well: far more CPU, an NPU, a GPU, a full Debian userland, and two 2.5GbE ports with no hardware offload engine behind them. For line-rate routing at 10G, the R4 Pro wins on silicon designed for the job. For a firewall or gateway that also runs containers, does inference, or serves files, the T6N is the better foundation.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Against x86&lt;/strong&gt; — the &lt;a href="https://tinycomputers.io/posts/lattepanda-iota-a-review.html"&gt;LattePanda IOTA&lt;/a&gt;'s Intel N150 came in at 72.21 s, about 1.37x behind. The T6N wins on compile throughput, RAM ceiling, NPU, and networking. x86 wins on software compatibility, mainline everything, and never having to think about device trees. And for a genuine sense of scale: the AMD AI Max+ 395 desktop in the same archived sweep did the pinned tree in 13.71 s, about 3.8x faster than the best ARM SBC on my bench. These boards are remarkable for their size and power envelope, not in absolute terms.&lt;/p&gt;
&lt;h3&gt;Use Cases and Recommendations&lt;/h3&gt;
&lt;h4&gt;Choose the NanoPC-T6N if you:&lt;/h4&gt;
&lt;p&gt;&lt;strong&gt;Need two fast network interfaces on a capable compute platform.&lt;/strong&gt; This is the core case. Dual 2.5GbE with a CPU that can encrypt at 2.19 GB/s and eight cores to spare makes an excellent firewall, gateway, VPN concentrator, or NAS head — one that also runs Docker, serves web applications, and does inference without breaking a sweat.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Want the fastest ARM SBC compile times available.&lt;/strong&gt; On the pinned benchmark it is at the front of the field. For a headless ARM build box, CI runner, or development machine, this is the top of my bench.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Are doing edge AI with the Rockchip stack.&lt;/strong&gt; 6 TOPS, three NPU cores, and &lt;code&gt;librknnrt.so&lt;/code&gt; shipped in the image. If you have already invested in RKNN or RKLLM tooling, this is a well-provisioned host for it.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Need sustained load in a constrained thermal environment.&lt;/strong&gt; 56.4 °C peak with zero throttling under full eight-core load is the best sustained-load result I have measured on an RK3588 board. Enclosed or fanless deployments are realistic.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Want 16 GB of RAM on an ARM SBC.&lt;/strong&gt; Still uncommon, and it makes containers, large builds, and in-memory workloads comfortable.&lt;/p&gt;
&lt;h4&gt;Choose something else if you:&lt;/h4&gt;
&lt;p&gt;&lt;strong&gt;Want mainline kernel support and a hands-off experience.&lt;/strong&gt; This is a 6.1 vendor BSP. The accelerators are out-of-tree, video is Rockchip MPP rather than V4L2, and you are dependent on FriendlyELEC's image cadence for the full feature set. A Raspberry Pi 5 will never make you think about any of this.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Are buying primarily for a desktop.&lt;/strong&gt; The T6N is a headless-shaped board with router-grade I/O. An Orange Pi 5 Max costs less and does the desktop job as well. And I did not test the display path at all.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Need line-rate 10-gigabit routing.&lt;/strong&gt; No hardware packet-processing engine, no switch, no SFP+ cages. The BPI-R4 Pro is built for that; the T6N is not.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Are cost-sensitive.&lt;/strong&gt; The T6 family is priced above a Raspberry Pi, and the dual 2.5GbE, HDMI input, and dual M.2 slots are what you are paying for. If you will not use them, you are buying capability you do not need. (I do not have verified current pricing for the T6N specifically, so shop it before you commit.)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Want a beginner's first SBC.&lt;/strong&gt; Vendor images, overlay root filesystems, out-of-tree NPU drivers, and a &lt;code&gt;conservative&lt;/code&gt; governor default are all things that reward knowing what you are doing.&lt;/p&gt;
&lt;h3&gt;Build Quality and Physical Characteristics&lt;/h3&gt;
&lt;p&gt;The T6 family is a 110 x 80 mm board (eight-layer, per FriendlyELEC's specifications for the line), and the density shows — two Ethernet jacks, two M.2 slots, HDMI in and out, MIPI connectors, and header banks in a footprint only moderately larger than a Raspberry Pi. My unit arrived cleanly manufactured with no defects, has been stable through every benchmark I threw at it, and the thermal numbers indicate a competent cooling solution. Over several hours of sustained testing I saw no instability, no unexpected resets, and no kernel errors beyond the expected empty-M.2-slot PCIe link failures at boot.&lt;/p&gt;
&lt;h3&gt;Conclusion: The RK3588 Is Aging Well&lt;/h3&gt;
&lt;p&gt;The NanoPC-T6N is the best-performing ARM single-board computer on my bench, and the margins that matter are not the compile times — those put it in a statistical tie with the Orange Pi 5 Max, and I have been careful to say so. What separates it is the I/O: two 2.5-gigabit ports on properly-provisioned PCIe lanes, backed by a CPU that can encrypt at over two gigabytes per second and eight cores that never throttled once in my testing. That combination makes it something more interesting than a fast SBC. It makes it a credible small network appliance that happens to have a 6 TOPS NPU and 16 GB of RAM attached.&lt;/p&gt;
&lt;p&gt;The RK3588 has been shipping since 2022, and in 2026 it remains competitive against everything I can put next to it. That says something about how good the part was and something less flattering about the pace of ARM SBC silicon since.&lt;/p&gt;
&lt;p&gt;My complaints are configuration and ecosystem, not hardware. The unit came booting from a microSD card while a 64 GB eMMC module — 4.66x faster on reads — sat unused beneath it, which is a five-minute fix that ships wrong. The 6.1 vendor kernel means the accelerators live outside mainline and video runs through Rockchip's MPP stack rather than V4L2. The &lt;code&gt;r8125&lt;/code&gt; driver lies to &lt;code&gt;ethtool&lt;/code&gt;. None of these are dealbreakers; all of them are the texture of living with a Rockchip vendor BSP, and they are the same texture you will find on every board in this family.&lt;/p&gt;
&lt;p&gt;The thing I will carry forward from this review, though, is not about the T6N at all. It is that my benchmark grew seven times larger while I was busy citing its old numbers, and I nearly published a result showing an excellent board as a mediocre one. &lt;strong&gt;A benchmark that tracks a live project stops being a benchmark the moment the project changes.&lt;/strong&gt; From here on, the fleet comparison runs against a pinned tree, and I will be re-running the fleet on the current one to build a table that means something in 2026.&lt;/p&gt;
&lt;h3&gt;Specifications Summary&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Processor (measured):&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Rockchip RK3588 (&lt;code&gt;rockchip,rk3588&lt;/code&gt;), 8 nm, aarch64&lt;/li&gt;
&lt;li&gt;4x Cortex-A76 (r4p0): cpu4-5 up to 2304 MHz, cpu6-7 up to 2352 MHz&lt;/li&gt;
&lt;li&gt;4x Cortex-A55 (r2p0): up to 1800 MHz&lt;/li&gt;
&lt;li&gt;L1 384 KiB d + 384 KiB i (8 instances), L2 2.5 MiB, L3 3 MiB shared&lt;/li&gt;
&lt;li&gt;ARMv8 crypto: &lt;code&gt;aes&lt;/code&gt;, &lt;code&gt;pmull&lt;/code&gt;, &lt;code&gt;sha1&lt;/code&gt;, &lt;code&gt;sha2&lt;/code&gt;, &lt;code&gt;crc32&lt;/code&gt;; also &lt;code&gt;asimddp&lt;/code&gt;, &lt;code&gt;fphp&lt;/code&gt;, &lt;code&gt;asimdhp&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Memory &amp;amp; Storage (as tested):&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;16 GB LPDDR4X (15 GiB usable), no swap&lt;/li&gt;
&lt;li&gt;64 GB microSD (SanDisk &lt;code&gt;SN64G&lt;/code&gt;) — the boot and root device on my unit&lt;/li&gt;
&lt;li&gt;64 GB onboard eMMC (&lt;code&gt;A3A561&lt;/code&gt;) — present, partitioned, unused for boot&lt;/li&gt;
&lt;li&gt;M.2 M-key slot (&lt;code&gt;pcie@fe150000&lt;/code&gt;, PCIe 3.0) — empty on my unit, untested&lt;/li&gt;
&lt;li&gt;Root on overlayfs (&lt;code&gt;lowerdir=/root&lt;/code&gt;, &lt;code&gt;upperdir=/data/root&lt;/code&gt;)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Networking (measured):&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;2x Realtek RTL8125 2.5GbE, each on its own PCIe Gen 2 x1 link&lt;/li&gt;
&lt;li&gt;Driver &lt;code&gt;r8125&lt;/code&gt; 9.016.01-NAPI-g61ed2fd (misreports link modes to &lt;code&gt;ethtool&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;eth1&lt;/code&gt; negotiated 1000 Mb/s on my gigabit switch; 2.5G capability untested&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Accelerators (present, inference throughput untested):&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;NPU: 6 TOPS, 3 cores, &lt;code&gt;rknpu&lt;/code&gt; v0.9.8, devfreq 1000 MHz, DRM node &lt;code&gt;/dev/dri/card1&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;librknnrt.so&lt;/code&gt; 7.2 MB shipped in image; &lt;code&gt;rknnlite&lt;/code&gt; Python bindings not installed&lt;/li&gt;
&lt;li&gt;GPU: Mali-G610, DDK &lt;code&gt;g29p0-00eac0&lt;/code&gt;, 300-1000 MHz&lt;/li&gt;
&lt;li&gt;Video: 2x RKVENC cores, &lt;code&gt;/dev/mpp_service&lt;/code&gt;, &lt;code&gt;librockchip_mpp.so&lt;/code&gt; (no V4L2 &lt;code&gt;/dev/video*&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;2D: 2x RGA3 (&lt;code&gt;3.0.76831&lt;/code&gt;) + 1x RGA2 (&lt;code&gt;3.2.63318&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Crypto: &lt;code&gt;rk_crypto&lt;/code&gt; + &lt;code&gt;cryptodev&lt;/code&gt; modules loaded (dedicated engine untested)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Software (as shipped):&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Debian GNU/Linux 13.3 (trixie), kernel 6.1.141 built 2026-07-18 (FriendlyELEC BSP, &lt;code&gt;LINUXFAMILY=nanopi6&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Firmware: &lt;code&gt;ddr-v1.17&lt;/code&gt;, &lt;code&gt;bl31-v1.56&lt;/code&gt;, &lt;code&gt;bl32-v1.21&lt;/code&gt;, U-Boot &lt;code&gt;07/10/2026&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;OpenSSL 3.5.6; default CPU governor &lt;code&gt;conservative&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Toolchain installed for testing: rustc/cargo 1.97.1&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Benchmark Results:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Rust clean release build, pinned tree (&lt;code&gt;2821bba&lt;/code&gt;, 16,639 LOC): &lt;strong&gt;52.55 s&lt;/strong&gt; mean (σ 2.27 s) — fastest ARM board on my bench&lt;/li&gt;
&lt;li&gt;Rust clean release build, current tree (&lt;code&gt;edd333d&lt;/code&gt;, 117,002 LOC, 281 crates): &lt;strong&gt;349.93 s&lt;/strong&gt; mean (σ 5.00 s)&lt;/li&gt;
&lt;li&gt;Governor &lt;code&gt;conservative&lt;/code&gt; vs &lt;code&gt;performance&lt;/code&gt;: 53.49 s vs 53.95 s — no meaningful difference&lt;/li&gt;
&lt;li&gt;sysbench CPU (&lt;code&gt;--cpu-max-prime=20000&lt;/code&gt;): 967 / 3,862 / 5,325 events per sec at 1 / 4 / 8 threads (3.99x scaling on the big cluster)&lt;/li&gt;
&lt;li&gt;AES-128-GCM 2,185.7 MB/s; AES-256-GCM 1,763.9 MB/s; SHA-256 1,429.4 MB/s; ChaCha20-Poly1305 674.4 MB/s&lt;/li&gt;
&lt;li&gt;ECDSA P-256 16,917 sign/s; RSA-2048 269.6 sign/s, 9,828 verify/s&lt;/li&gt;
&lt;li&gt;Storage read: microSD 64.85 MB/s vs onboard eMMC 302.05 MB/s (4.66x)&lt;/li&gt;
&lt;li&gt;iperf3: 944 Mb/s receive, 936 Mb/s transmit (gigabit-limited wiring)&lt;/li&gt;
&lt;li&gt;Thermals: 47.2 °C idle, 56.4 °C peak under 120 s of eight-core load, zero throttling&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Recommendation:&lt;/strong&gt; The strongest general-purpose ARM SBC I have benchmarked, and an unusually good foundation for a compute-capable network appliance. Install it to eMMC or NVMe, and know you are buying into a Rockchip vendor BSP.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;Review Date: July 29, 2026&lt;/p&gt;
&lt;p&gt;Hardware Tested: FriendlyElec NanoPC-T6N (Rockchip RK3588) with 16 GB LPDDR4X, 64 GB eMMC, booted from 64 GB microSD, dual RTL8125 2.5GbE&lt;/p&gt;
&lt;p&gt;OS Tested: Debian GNU/Linux 13.3 (trixie), kernel 6.1.141 (FriendlyELEC BSP, built 2026-07-18)&lt;/p&gt;
&lt;p&gt;Benchmark Workload: &lt;a href="https://github.com/ajokela/ballistics-engine"&gt;ballistics-engine&lt;/a&gt; clean release builds at commits &lt;code&gt;2821bba&lt;/code&gt; (fleet-comparable) and &lt;code&gt;edd333d&lt;/code&gt; (current), rustc 1.97.1&lt;/p&gt;
&lt;p&gt;Conclusion: The RK3588 remains competitive four years on, and the T6N is its best expression on my bench — fast, cool, and unusually well-connected, held back only by a vendor BSP and a boot medium that should have been the eMMC.&lt;/p&gt;</description><category>2.5 gigabit ethernet</category><category>benchmarks</category><category>cortex-a55</category><category>cortex-a76</category><category>cpufreq governor</category><category>debian trixie</category><category>emmc</category><category>friendlyelec</category><category>hardware review</category><category>mali-g610</category><category>microsd</category><category>nanopc t6</category><category>nanopc t6n</category><category>openssl</category><category>rknpu</category><category>rockchip rk3588</category><category>rust compilation</category><category>single board computers</category><category>thermals</category><guid>https://tinycomputers.io/posts/friendlyelec-nanopc-t6n-review.html</guid><pubDate>Wed, 29 Jul 2026 14:15:00 GMT</pubDate></item><item><title>Four Partitions and a Borrowed Bootloader: NetBSD on the Milk-V Mars</title><link>https://tinycomputers.io/posts/four-partitions-and-a-borrowed-bootloader-netbsd-on-the-milk-v-mars.html?utm_source=feed&amp;utm_medium=rss&amp;utm_campaign=rss</link><dc:creator>A.C. Jokela</dc:creator><description>&lt;div class="audio-widget"&gt;
&lt;div class="audio-widget-header"&gt;
&lt;span class="audio-widget-icon"&gt;🎧&lt;/span&gt;
&lt;span class="audio-widget-label"&gt;Listen to this article&lt;/span&gt;
&lt;/div&gt;
&lt;audio controls preload="metadata"&gt;
&lt;source src="https://tinycomputers.io/four-partitions-and-a-borrowed-bootloader-netbsd-on-the-milk-v-mars_tts.mp3" type="audio/mpeg"&gt;
&lt;/source&gt;&lt;/audio&gt;
&lt;div class="audio-widget-footer"&gt;15 min · AI-generated narration&lt;/div&gt;
&lt;/div&gt;

&lt;h2&gt;Four Partitions and a Borrowed Bootloader: NetBSD on the Milk-V Mars&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Update (September 2026):&lt;/strong&gt; The memory corruption described at the end of this article came from an unsafe 8 GiB firmware map, not the NetBSD page allocator. The downloadable July image contains that firmware and should not be used for sustained writes or data you care about. &lt;a href="https://tinycomputers.io/posts/two-addresses-one-page-finding-the-firmware-bug-behind-netbsd-corruption-on-the-milk-v-mars.html"&gt;Two Addresses, One Page&lt;/a&gt; follows the investigation through the physical-address alias proof and the corrected, hardware-tested 4 GiB firmware.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;As I write this, there is a Milk-V Mars on my network running NetBSD-current with a 28 GB root filesystem, gigabit Ethernet passing a ping flood at 0.0% loss, and an SSH prompt that answers like any other machine on the shelf. As far as I can tell it's the only documented NetBSD Mars in existence. The &lt;a href="https://wiki.netbsd.org/ports/riscv/"&gt;NetBSD wiki lists the hardware as supported&lt;/a&gt;, but publishes no image and no instructions, and neither does anyone else. Closing the gap between "supported" and "boots" took a weekend, three wrong theories, one self-inflicted filesystem corruption, and a serial console I put off hooking up for far too long. This is the whole story, and it ends with a one-line fix.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://tinycomputers.io/images/milkv-mars/IMG_4592.jpeg" alt="Milk-V Mars retail box: The Pioneer Footprint in the RISCV Odyssey" loading="lazy" style="float: right; max-width: 42%; margin: 0 0 20px 25px; border-radius: 4px;"&gt;&lt;/p&gt;
&lt;h3&gt;How a JH7110 finds an operating system&lt;/h3&gt;
&lt;p&gt;The JH7110's boot chain has four links. The &lt;strong&gt;BootROM&lt;/strong&gt; in silicon reads the GPT from sector 1 of the card and hunts for a partition by &lt;em&gt;type GUID&lt;/em&gt; (&lt;code&gt;2E54B353-…&lt;/code&gt;) which holds the &lt;strong&gt;SPL&lt;/strong&gt;. The SPL brings up DDR and loads a FIT image (OpenSBI + &lt;strong&gt;U-Boot&lt;/strong&gt;) from a second type GUID, &lt;code&gt;BC13C2FF-…&lt;/code&gt;. U-Boot finds an OS somehow (hold that thought) and NetBSD's &lt;code&gt;bootriscv64.efi&lt;/code&gt; pulls the kernel off an FFS partition. Four partitions:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;#&lt;/th&gt;
&lt;th&gt;Contents&lt;/th&gt;
&lt;th&gt;Found by&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;SPL&lt;/td&gt;
&lt;td&gt;BootROM, via type GUID&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;OpenSBI + U-Boot FIT&lt;/td&gt;
&lt;td&gt;SPL, via type GUID&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;EFI System Partition&lt;/td&gt;
&lt;td&gt;U-Boot&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;NetBSD FFS root&lt;/td&gt;
&lt;td&gt;the ESP's bootloader&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Partitions 3 and 4 come wholesale from NetBSD's daily riscv64 image (&lt;code&gt;nycdn.netbsd.org&lt;/code&gt;; JH7110 support lives only in -current). Assembly is &lt;code&gt;sgdisk&lt;/code&gt;, &lt;code&gt;mtools&lt;/code&gt;, and &lt;code&gt;dd&lt;/code&gt; on a Mac: two minutes, scripted end-to-end in &lt;a href="https://github.com/ajokela/milkv-netbsd"&gt;my repo's&lt;/a&gt; &lt;code&gt;build-image.sh&lt;/code&gt;. The build phase's happiest find: NetBSD's image ships &lt;code&gt;jh7110-milkv-mars.dtb&lt;/code&gt;, a device tree for this exact board, matched to its own drivers. Remember that file; it matters later.&lt;/p&gt;
&lt;p&gt;Partitions 1 and 2 are the borrowed bootloader, and they're where everything went sideways.&lt;/p&gt;
&lt;div style="width: 100%; text-align: center;"&gt;
&lt;img src="https://tinycomputers.io/images/milkv-mars/IMG_4593.jpeg" alt="Milk-V Mars V1.21 board, top view: StarFive JH7110, 40-pin header, and the two-position boot DIP switch next to the USB3 stack" loading="lazy" style="max-width: 85%; border-radius: 4px;"&gt;
&lt;/div&gt;

&lt;p&gt;&lt;em&gt;The board itself: Mars V1.21, StarFive JH7110 in the middle, the 40-pin header along the top edge (serial console on pins 6, 8, and 10), and the tiny two-position boot DIP switch tucked against the USB3 stack.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;MilkV's own practice pointed at a workaround: their Debian card's &lt;code&gt;uEnv.txt&lt;/code&gt; contains, verbatim, &lt;code&gt;# Fix missing bootcmd&lt;/code&gt;. The vendor patches its own firmware's environment at every boot. Following suit, my card grew a &lt;code&gt;uEnv.txt&lt;/code&gt; hijacking their &lt;code&gt;fdt_loaddtb&lt;/code&gt; hook into an EFI boot. QEMU validated it against the vendor's exact command sequence. The board &lt;em&gt;still&lt;/em&gt; didn't boot. With no console, I turned the card into its own flight recorder: U-Boot has &lt;code&gt;fatwrite&lt;/code&gt;, so the hook gained breadcrumb files written to the FAT partition at each stage. Boot, pull the card, read it back. Verdict, across multiple boots: &lt;strong&gt;zero breadcrumbs&lt;/strong&gt;. The firmware on this board never even imported the file its own design patches with. At that point it made more sense to stop accommodating the vendor firmware entirely.&lt;/p&gt;
&lt;h3&gt;The transplant, and the board that "died"&lt;/h3&gt;
&lt;p&gt;If the vendor bootloader won't speak any language my card can write, replace the bootloader: Debian's &lt;code&gt;u-boot-starfive&lt;/code&gt; package carries &lt;strong&gt;mainline 2025.01&lt;/strong&gt; for the VisionFive 2, the exact version the &lt;a href="https://docs.u-boot.org/en/latest/board/starfive/milk-v_mars.html"&gt;U-Boot docs&lt;/a&gt; bless for this family, and the vendor's own Mars firmware is literally a VF2 build with the filename changed. SPL into partition 1, FIT into partition 2.&lt;/p&gt;
&lt;p&gt;And the board booted. DHCP lease with NetBSD's fingerprints (a locally-administered MAC and a &lt;code&gt;dhcpcd&lt;/code&gt; DUID); port 22 open. Then, minutes later: gone. Every boot: appear, vanish. I had three theories (kernel panic, power sag, bad -current daily) and a day of DHCP-lease forensics that couldn't pick between them.&lt;/p&gt;
&lt;p&gt;The serial console — a USB-UART hanging off a Raspberry Pi across the room, driven over SSH, after its own detour through baud-rate resets, a missing &lt;code&gt;clocal&lt;/code&gt; that made writes block forever, and five stacked &lt;code&gt;stty&lt;/code&gt; processes wedging the tty — settled it in ten minutes:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="n"&gt;NetBSD&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;riscv&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;riscv64&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;constty&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;login&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;A login prompt. On the board I'd declared dead. All three theories wrong at once: &lt;strong&gt;the board was never dying.&lt;/strong&gt; What died was its network. The OS sat there healthy, unreachable, while I issued death certificates on the testimony of a router. The kernel had already named the killer at boot:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;[ 1.000000] mcommphy0: autoconfiguration error: unknown drive strength (3 uA at 1800 mV)
[ 1.000000] eqos1: reset timeout!
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;A PHY misconfigured by unrecognized device-tree values, and &lt;code&gt;eqos1&lt;/code&gt;, a &lt;em&gt;second&lt;/em&gt; Ethernet controller on a board that has one port. The VisionFive 2 has two. &lt;strong&gt;The kernel was running the VF2 device tree.&lt;/strong&gt; Mainline U-Boot had silently fallen back to its built-in FDT, and NetBSD, handed a description of the wrong board, drove the PHY into dropping four of every five frames, with the survivors crossing in a perfectly healthy 0.4 ms. At the U-Boot prompt:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="nv"&gt;StarFive&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;#&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;printenv&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;fdtfile&lt;/span&gt;
##&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;Error&lt;/span&gt;:&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"fdtfile"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;not&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;defined&lt;/span&gt;
&lt;span class="nv"&gt;StarFive&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;#&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;setenv&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;fdtfile&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;starfive&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nv"&gt;jh7110&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nv"&gt;milkv&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nv"&gt;mars&lt;/span&gt;.&lt;span class="nv"&gt;dtb&lt;/span&gt;
&lt;span class="nv"&gt;StarFive&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;#&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;bootflow&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;scan&lt;/span&gt;
...
&lt;span class="nv"&gt;riscv64&lt;/span&gt;#&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;ping&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nv"&gt;c&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nv"&gt;i&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;.&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;.&lt;span class="mi"&gt;1&lt;/span&gt;.&lt;span class="mi"&gt;1&lt;/span&gt;.&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;tail&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;
&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;packets&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;transmitted&lt;/span&gt;,&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;packets&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;received&lt;/span&gt;,&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;.&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;packet&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;loss&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Zero percent packet loss. One environment variable had been the entire problem. &lt;code&gt;env save&lt;/code&gt; wrote it to SPI flash, and every boot since has been autonomous and clean.&lt;/p&gt;
&lt;h3&gt;One empty string&lt;/h3&gt;
&lt;p&gt;Why was &lt;code&gt;fdtfile&lt;/code&gt; never set? This is my favorite finding of the project. The VF2 board code composes it from the board's ID EEPROM, and the Mars's EEPROM is blank. The env template ends with &lt;code&gt;"fdtfile=" CONFIG_DEFAULT_FDT_FILE&lt;/code&gt;, and the defconfig doesn't set &lt;code&gt;CONFIG_DEFAULT_FDT_FILE&lt;/code&gt;, so the template renders as &lt;code&gt;fdtfile=&lt;/code&gt;. &lt;strong&gt;U-Boot's env import treats an empty value as "delete the variable."&lt;/strong&gt; There is no dedicated Mars defconfig upstream; Mars support &lt;em&gt;is&lt;/em&gt; VF2-plus-EEPROM. Blank EEPROM, empty default, deleted variable, wrong device tree, 80% packet loss. The fix, compiled into the custom U-Boot that now ships in my repo (cross-built by &lt;code&gt;build-uboot.sh&lt;/code&gt; on a Raspberry Pi):&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;CONFIG_DEFAULT_FDT_FILE="starfive/jh7110-milkv-mars.dtb"
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;One line — though, as is usually the way with these things, finding the line was the weekend's work.&lt;/p&gt;
&lt;h3&gt;The superblock that fought back&lt;/h3&gt;
&lt;p&gt;Two more fights before the finish line, both instructive. First, the kernel panicked on one heavily-loaded boot: a genuine NetBSD-current riscv bug, caught with a full backtrace over serial (&lt;code&gt;pmap_segtab.c:948&lt;/code&gt;, assertion failed in the pagedaemon; report drafted for port-riscv). It retroactively explains the earlier "deaths" too: panic, then a reboot attempt that hangs, because (the second fight) the VF2-flavored firmware can't drive the Mars's PMIC. &lt;code&gt;pmic_ops: cannot read pmic power register&lt;/code&gt;, and every software reboot on this board is actually a power cycle. Permanent caveat until someone builds Mars-aware firmware.&lt;/p&gt;
&lt;p&gt;And then the filesystem resize humbled me. NetBSD's images grow their root on first boot and then run &lt;code&gt;resize_root_postcmd="/sbin/reboot -n"&lt;/code&gt;: reboot &lt;em&gt;without syncing&lt;/em&gt;. That looked like a bug to me on a board where reboot hangs, so I emptied it. Days later I learned what it's for: after resizing a mounted-read-only root, the kernel still holds the &lt;em&gt;old&lt;/em&gt; superblock in memory, and any later sync writes stale metadata over the resized filesystem. Mine did exactly that (&lt;code&gt;BAD SUPER BLOCK: VALUES IN SUPER BLOCK DISAGREE WITH THOSE IN FIRST ALTERNATE&lt;/code&gt;), and fsck, offered two truths, chose the stale one and un-resized the disk. The recovery (from the boot-failure shell, root mounted read-only): &lt;code&gt;fsck_ffs -f -y&lt;/code&gt;, &lt;code&gt;resize_ffs -y&lt;/code&gt;, verify, then exit via &lt;code&gt;reboot -n&lt;/code&gt;, the exact no-sync reboot I'd deleted, so the fix reaches disk unclobbered. The next power cycle mounted 28 GB clean. &lt;strong&gt;Weird-looking safeties are load-bearing.&lt;/strong&gt; Understand why a thing exists before you remove it, especially when it's one flag on a reboot command.&lt;/p&gt;
&lt;h3&gt;Where it stands&lt;/h3&gt;
&lt;p&gt;The scoreboard, finally all green where it counts: &lt;strong&gt;Boot chain:&lt;/strong&gt; mainline U-Boot, EFI, Mars DTB from compiled-in default, fully autonomous. &lt;strong&gt;Ethernet:&lt;/strong&gt; 0.0% loss, stable pinned MAC. &lt;strong&gt;Storage:&lt;/strong&gt; 28 GB grown FFS, clean. &lt;strong&gt;Access:&lt;/strong&gt; SSH from anywhere on my LAN, serial console rig for the deep end. &lt;strong&gt;Known caveats:&lt;/strong&gt; power-cycle instead of reboot (PMIC), and a recurring kernel panic in the UVM layer under sustained heavy write load (two distinct backtraces captured over serial, pagedaemon/pmap and buffer-cache list corruption, pointing at a common riscv MD bug; upstream report in progress). Day-to-day use is stable; sustained bulk writes (extracting the 150,000-file pkgsrc tree, for instance) trigger it reliably.&lt;/p&gt;
&lt;div style="width: 100%; text-align: center;"&gt;
&lt;img src="https://tinycomputers.io/images/milkv-mars/signal-2026-07-19-19-17-46-100.jpg" alt="Terminal screenshot: ssh root@10.1.1.17, neofetch reporting NetBSD 11.99.7 riscv, CPU milkv,mars (4), 48 minutes uptime" loading="lazy" style="max-width: 90%; border-radius: 4px;"&gt;
&lt;/div&gt;

&lt;p&gt;&lt;em&gt;Proof of life, over SSH: NetBSD 11.99.7, CPU reported as &lt;code&gt;milkv,mars&lt;/code&gt;, 48 minutes of uptime, and neofetch installed from the riscv64 binary package repository.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Everything is scripted and reproducible in the repo, &lt;strong&gt;&lt;a href="https://github.com/ajokela/milkv-netbsd"&gt;github.com/ajokela/milkv-netbsd&lt;/a&gt;&lt;/strong&gt;; see the README for build instructions, the DIP-switch table, and known issues. &lt;code&gt;build-image.sh&lt;/code&gt; builds the image (NetBSD daily + custom U-Boot + FAT16 ESP + your SSH key, two minutes on a Mac), &lt;code&gt;build-uboot.sh&lt;/code&gt; reproduces the one-line-patched firmware on any Debian box, and &lt;code&gt;customize-image.sh&lt;/code&gt; boots the image in QEMU and bakes in distribution defaults. The next step is the thing this niche deserves and doesn't have: a flashable image. Default credentials &lt;code&gt;root&lt;/code&gt;/&lt;code&gt;netbsd&lt;/code&gt; with a motd that yells at you to change them, in the grand SBC tradition; unique host keys and entropy generated on each board's own first boot; a persistent MAC minted on first touch. Historical artifact: &lt;strong&gt;&lt;a href="https://cdn.tinycomputers.io/milkv-mars/netbsd-mars-20260719.img.xz"&gt;netbsd-mars-20260719.img.xz&lt;/a&gt;&lt;/strong&gt; (234 MB, &lt;a href="https://cdn.tinycomputers.io/milkv-mars/netbsd-mars-20260719.img.xz.sha512"&gt;SHA512&lt;/a&gt;). This image contains the affected 8 GiB firmware. &lt;strong&gt;Do not use it for sustained writes or data you care about; build a current image from the repository instead.&lt;/strong&gt;&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;------------------------------------------&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;            &lt;/span&gt;&lt;span class="n"&gt;kern_vtopdiff&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mh"&gt;0xffffffbf03400000&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;             &lt;/span&gt;&lt;span class="n"&gt;memory_start&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="mi"&gt;40060000&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;               &lt;/span&gt;&lt;span class="n"&gt;memory_end&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="w"&gt;       &lt;/span&gt;&lt;span class="mi"&gt;240000000&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;              &lt;/span&gt;&lt;span class="n"&gt;memory_size&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="w"&gt;       &lt;/span&gt;&lt;span class="mf"&gt;1f&lt;/span&gt;&lt;span class="n"&gt;ffa0000&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;           &lt;/span&gt;&lt;span class="n"&gt;kernstart_phys&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;fcc00000&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;             &lt;/span&gt;&lt;span class="n"&gt;kernend_phys&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;fd800000&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;               &lt;/span&gt;&lt;span class="n"&gt;msgbufaddr&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mh"&gt;0xffffffe23fff0000&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="n"&gt;VM_MIN_KERNEL_ADDRESS&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mh"&gt;0xffffffc000000000&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;           &lt;/span&gt;&lt;span class="n"&gt;kernstart_mega&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mh"&gt;0xffffffc000000000&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;                &lt;/span&gt;&lt;span class="n"&gt;kernstart&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mh"&gt;0xffffffc000000000&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;                  &lt;/span&gt;&lt;span class="n"&gt;kernend&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mh"&gt;0xffffffc000c00000&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;             &lt;/span&gt;&lt;span class="n"&gt;kernend_mega&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mh"&gt;0xffffffc000c00000&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="n"&gt;VM_MAX_KERNEL_ADDRESS&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mh"&gt;0xffffffd000000000&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;         &lt;/span&gt;&lt;span class="n"&gt;pmap_direct_base&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mh"&gt;0xffffffe000000000&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;------------------------------------------&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;adding&lt;/span&gt;&lt;span class="w"&gt;       &lt;/span&gt;&lt;span class="mh"&gt;0x40060000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="w"&gt;       &lt;/span&gt;&lt;span class="mh"&gt;0xfcc00000&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;to&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;freelist&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;adding&lt;/span&gt;&lt;span class="w"&gt;       &lt;/span&gt;&lt;span class="mh"&gt;0xfd800000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="w"&gt;       &lt;/span&gt;&lt;span class="mh"&gt;0xfda00000&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;to&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;freelist&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;adding&lt;/span&gt;&lt;span class="w"&gt;       &lt;/span&gt;&lt;span class="mh"&gt;0xfda0a000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="w"&gt;       &lt;/span&gt;&lt;span class="mh"&gt;0xfe6e8000&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;to&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;freelist&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;adding&lt;/span&gt;&lt;span class="w"&gt;       &lt;/span&gt;&lt;span class="mh"&gt;0xfe6f5000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="w"&gt;       &lt;/span&gt;&lt;span class="mh"&gt;0xfe6f9000&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;to&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;freelist&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;adding&lt;/span&gt;&lt;span class="w"&gt;       &lt;/span&gt;&lt;span class="mh"&gt;0xfe6fa000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="w"&gt;       &lt;/span&gt;&lt;span class="mh"&gt;0xfe6fb000&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;to&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;freelist&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;adding&lt;/span&gt;&lt;span class="w"&gt;       &lt;/span&gt;&lt;span class="mh"&gt;0xfe6fd000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="w"&gt;       &lt;/span&gt;&lt;span class="mh"&gt;0xfe700000&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;to&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;freelist&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;adding&lt;/span&gt;&lt;span class="w"&gt;       &lt;/span&gt;&lt;span class="mh"&gt;0xfe725000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="w"&gt;       &lt;/span&gt;&lt;span class="mh"&gt;0xff762000&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;to&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;freelist&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;adding&lt;/span&gt;&lt;span class="w"&gt;       &lt;/span&gt;&lt;span class="mh"&gt;0xff763000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="w"&gt;       &lt;/span&gt;&lt;span class="mh"&gt;0xfff4a000&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;to&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;freelist&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;adding&lt;/span&gt;&lt;span class="w"&gt;       &lt;/span&gt;&lt;span class="mh"&gt;0xfff4c000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="mh"&gt;0x23fff0000&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;to&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;freelist&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;common&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;cpusets&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;bs_pde&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mh"&gt;0xffffffc000a0b000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ASID&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;max&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;kcpusets&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;nkmempages&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;limits&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ffffffc004000000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ffffffd000000000&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;kva&lt;/span&gt;&lt;span class="w"&gt;   &lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ffffffc004000000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ffffffc2b9000000&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;mpstart&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Copyright&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1996&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1997&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1998&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1999&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2001&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2002&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2003&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mi"&gt;2004&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2005&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2006&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2007&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2008&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2009&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2010&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2011&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2012&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2013&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mi"&gt;2014&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2015&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2016&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2017&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2018&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2019&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2020&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2021&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2022&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2023&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mi"&gt;2024&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2025&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2026&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="n"&gt;The&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;NetBSD&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Foundation&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Inc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;All&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;rights&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;reserved&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Copyright&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1982&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1986&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1989&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1991&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1993&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="n"&gt;The&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Regents&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;of&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;the&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;University&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;of&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;California&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;All&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;rights&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;reserved&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;

&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;NetBSD&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;11.99.7&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;GENERIC64&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;#&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Sat&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Jul&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;18&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;15&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;41&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;53&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;UTC&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2026&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="n"&gt;mkrepro&lt;/span&gt;&lt;span class="p"&gt;@&lt;/span&gt;&lt;span class="n"&gt;mkrepro&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;NetBSD&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;org&lt;/span&gt;&lt;span class="o"&gt;:/&lt;/span&gt;&lt;span class="n"&gt;usr&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;src&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;arch&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;riscv&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;compile&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;GENERIC64&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;total&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;memory&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;8179&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;MB&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;avail&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;memory&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;7910&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;MB&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;entropy&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ready&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;timecounter&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Timecounters&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;tick&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;every&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;10.000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;msec&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;WARNING&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;module&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Built&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="k"&gt;in&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;module&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;`&lt;/span&gt;&lt;span class="n"&gt;iic&lt;/span&gt;&lt;span class="err"&gt;'&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;can&lt;/span&gt;&lt;span class="err"&gt;'&lt;/span&gt;&lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;find&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;built&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="k"&gt;in&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;dependency&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;`&lt;/span&gt;&lt;span class="n"&gt;i2c_bitbang&lt;/span&gt;&lt;span class="err"&gt;'&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;WARNING&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;module&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Built&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="k"&gt;in&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;module&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;`&lt;/span&gt;&lt;span class="n"&gt;iic&lt;/span&gt;&lt;span class="err"&gt;'&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;prerequisite&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;`&lt;/span&gt;&lt;span class="n"&gt;i2c_bitbang&lt;/span&gt;&lt;span class="err"&gt;'&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;failed&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;mainbus0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;root&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;mainbus0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Milk&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;V&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Mars&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus0&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;cpus0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus0&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus2&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus0&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;cpu0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;cpus0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;SiFive&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;7&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;Series&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Processor&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;E7&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;S7&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;U7&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;series&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;imp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;4210427&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;cpu0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;vendor&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mh"&gt;0x489&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;arch&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;8000000000000007&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;imp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;4210427&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;cpu1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;cpus0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;SiFive&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;7&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;Series&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Processor&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;E7&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;S7&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;U7&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;series&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;imp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;4210427&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;cpu1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;vendor&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mh"&gt;0x489&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;arch&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;8000000000000007&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;imp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;4210427&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;cpu2&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;cpus0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;SiFive&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;7&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;Series&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Processor&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;E7&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;S7&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;U7&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;series&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;imp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;4210427&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;cpu2&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;vendor&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mh"&gt;0x489&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;arch&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;8000000000000007&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;imp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;4210427&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;cpu3&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;cpus0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;SiFive&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;7&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;Series&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Processor&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;E7&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;S7&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;U7&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;series&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;imp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;4210427&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;cpu3&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;vendor&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mh"&gt;0x489&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;arch&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;8000000000000007&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;imp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;4210427&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;intc0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;cpu0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;local&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;interrupt&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;controller&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;intc1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;cpu1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;local&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;interrupt&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;controller&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;intc2&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;cpu2&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;local&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;interrupt&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;controller&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;intc3&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;cpu3&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;local&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;interrupt&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;controller&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fclock0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;49152000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Hz&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fixed&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;clock&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tdm_ext&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fclock1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;12288000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Hz&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fixed&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;clock&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;mclk_ext&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fclock2&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;12288000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Hz&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fixed&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;clock&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i2srx_bclk_ext&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fclock3&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;192000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Hz&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fixed&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;clock&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i2srx_lrck_ext&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;syscon0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;System&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Controller&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Registers&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;jh7110syscon0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;JH7110&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;STG&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;system&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;controller&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fclock4&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;24000000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Hz&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fixed&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;clock&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;osc&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fclock5&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;12288000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Hz&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fixed&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;clock&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i2stx_bclk_ext&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fclock6&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;192000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Hz&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fixed&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;clock&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i2stx_lrck_ext&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fclock7&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;50000000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Hz&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fixed&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;clock&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;gmac1_rmii_refin&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fclock8&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;125000000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Hz&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fixed&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;clock&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;gmac1_rgmii_rxin&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;syscon1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;System&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Controller&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Registers&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fclock9&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;50000000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Hz&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fixed&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;clock&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;gmac0_rmii_refin&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fclock10&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;125000000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Hz&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fixed&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;clock&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;gmac0_rgmii_rxin&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fclock11&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;32768&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Hz&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fixed&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;clock&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rtc_osc&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fclock12&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;74250000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Hz&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fixed&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;clock&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;dvp_clk&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fclock13&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;297000000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Hz&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fixed&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;clock&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;hdmitx0_pixelclk&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;jh7110clkc0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;JH7110&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;System&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Clock&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;and&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Reset&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Generator&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;plic0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus1&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;plic0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;inactive&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;HART&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;for&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;PLIC&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;for&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;plic0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;interrupt&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;cpu0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;hart&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;Machine&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;external&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;#&lt;/span&gt;&lt;span class="mi"&gt;11&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;handler&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;installed&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;plic0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;interrupt&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;cpu0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;hart&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;Supervisor&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;external&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;#&lt;/span&gt;&lt;span class="mi"&gt;9&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;handler&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;installed&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;plic0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;hart&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;plic0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;interrupt&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;cpu1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;hart&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;Machine&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;external&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;#&lt;/span&gt;&lt;span class="mi"&gt;11&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;handler&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;installed&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;plic0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;interrupt&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;cpu1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;hart&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;Supervisor&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;external&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;#&lt;/span&gt;&lt;span class="mi"&gt;9&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;handler&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;installed&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;plic0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;hart&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;plic0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;interrupt&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;cpu2&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;hart&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;Machine&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;external&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;#&lt;/span&gt;&lt;span class="mi"&gt;11&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;handler&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;installed&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;plic0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;interrupt&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;cpu2&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;hart&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;Supervisor&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;external&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;#&lt;/span&gt;&lt;span class="mi"&gt;9&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;handler&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;installed&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;plic0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;hart&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;6&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;plic0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;interrupt&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;cpu3&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;hart&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;Machine&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;external&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;#&lt;/span&gt;&lt;span class="mi"&gt;11&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;handler&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;installed&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;plic0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;interrupt&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;cpu3&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;hart&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;Supervisor&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;external&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;#&lt;/span&gt;&lt;span class="mi"&gt;9&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;handler&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;installed&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;plic0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;hart&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;8&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;plic0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;attaching&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;RISC&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;V&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;PLIC&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;136&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;IRQs&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;jh7110pinctrl0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Pin&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Controller&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;jh7110clkc1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;JH7110&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;System&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;Top&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;Group&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Clock&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;and&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Reset&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Generator&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;jh7110clkc2&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;JH7110&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Always&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;On&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Clock&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;and&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Reset&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Generator&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;jh7110pinctrl1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Pin&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Controller&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;jh7110clkc3&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;JH7110&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Video&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Output&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Clock&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;and&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Reset&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Generator&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;jh7110pciephy0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;JH7110&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;PCIe&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;PHY&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;jh7110pciephy1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;JH7110&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;PCIe&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;PHY&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ccache0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;L2&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;cache&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;controller&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2048&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;KiB&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mi"&gt;64&lt;/span&gt;&lt;span class="n"&gt;B&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;16&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;way&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2048&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;set&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ccache0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;No&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;of&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;banks&lt;/span&gt;&lt;span class="w"&gt;             &lt;/span&gt;&lt;span class="mi"&gt;8&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ccache0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;No&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;of&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ways&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;per&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;bank&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="mi"&gt;16&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ccache0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Sets&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;per&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;bank&lt;/span&gt;&lt;span class="w"&gt;          &lt;/span&gt;&lt;span class="mi"&gt;256&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ccache0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Bytes&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;per&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;cache&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;block&lt;/span&gt;&lt;span class="w"&gt;   &lt;/span&gt;&lt;span class="mi"&gt;64&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ccache0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Largest&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;way&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;enabled&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mi"&gt;15&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;opp&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;table&lt;/span&gt;&lt;span class="mi"&gt;-0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;not&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;configured&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;dwiic0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;I2C&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;controller&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;dwiic0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;interrupting&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;on&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;plic0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;irq&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;50&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;iic0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;dwiic0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;I2C&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;bus&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;pmic&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;powers&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;axp15060&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;iic0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;addr&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mh"&gt;0x36&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;not&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;configured&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;jh71x0temp0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;JH71x0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;temperature&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;sensor&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;soc&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;dma&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;controller&lt;/span&gt;&lt;span class="mi"&gt;@16050000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;not&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;configured&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;soc&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;phy&lt;/span&gt;&lt;span class="mi"&gt;@10200000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;not&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;configured&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;soc&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;syscon&lt;/span&gt;&lt;span class="mi"&gt;@13030000&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;clock&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;controller&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;syscon0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;not&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;configured&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;soc&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;dma&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;controller&lt;/span&gt;&lt;span class="mi"&gt;@16008000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;not&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;configured&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;eqos0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;DesignWare&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;EQOS&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ver&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mh"&gt;0x52&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mh"&gt;0x41&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;eqos0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;hw&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;features&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="n"&gt;a2173f7&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;09845904&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mo"&gt;01000000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mo"&gt;00000000&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;eqos0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Ethernet&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;address&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;f2&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="mo"&gt;00&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;33&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;82&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="n"&gt;be&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;mcommphy0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;eqos0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;phy&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Motorcomm&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;YT8531&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;GbE&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;PHY&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;mcommphy0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;motorcomm&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;tx&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;clk&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;adj&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;enabled&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;is&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nb"&gt;true&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;mcommphy0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;motorcomm&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;tx&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;clk&lt;/span&gt;&lt;span class="mi"&gt;-100&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;inverted&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;is&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nb"&gt;true&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;mcommphy0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;motorcomm&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;tx&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;clk&lt;/span&gt;&lt;span class="mi"&gt;-1000&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;inverted&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;is&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nb"&gt;true&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;mcommphy0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;rx&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;clk&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;drv&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;microamp&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;is&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;3970&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;mcommphy0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;motorcomm&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;rx&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;drv&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;microamp&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;is&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2910&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;mcommphy0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;rx&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;internal&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;delay&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;ps&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;is&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1500&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;mcommphy0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;tx&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;internal&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;delay&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;ps&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;is&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1500&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;mcommphy0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="n"&gt;baseT&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="n"&gt;baseT&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;FDX&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="n"&gt;baseTX&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="n"&gt;baseTX&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;FDX&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="n"&gt;baseT&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;FDX&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;auto&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;eqos0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;interrupting&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;on&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;plic0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;irq&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;7&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;soc&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;clock&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;controller&lt;/span&gt;&lt;span class="mi"&gt;@19810000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;not&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;configured&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;soc&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;phy&lt;/span&gt;&lt;span class="mi"&gt;@19820000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;not&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;configured&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;soc&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;power&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;controller&lt;/span&gt;&lt;span class="mi"&gt;@17030000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;not&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;configured&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;jh7110pcie0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;PCIe&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;jh7110pcie0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;interrupting&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;on&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;plic0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;irq&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;56&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;jh7110pcie0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;MMIO&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;32&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;bit&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;non&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;prefetchable&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mh"&gt;0x0000000030000000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mh"&gt;0x0000000008000000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;@&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mh"&gt;0x0000000030000000&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;jh7110pcie0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;MMIO&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;64&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;bit&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;prefetchable&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mh"&gt;0x0000000900000000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mh"&gt;0x0000000040000000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;@&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mh"&gt;0x0000000900000000&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;pci0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;jh7110pcie0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;bus&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;pci0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;memory&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;space&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;enabled&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;rd&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;rd&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;mult&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;wr&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;inv&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ok&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ppb0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;pci0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;dev&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;function&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;vendor&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1556&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1111&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rev&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mh"&gt;0x02&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ppb0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;PCI&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Express&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;capability&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;version&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;Root&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Port&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;of&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;PCI&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;E&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Root&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Complex&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;x1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;@&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;5.0&lt;/span&gt;&lt;span class="n"&gt;GT&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;pci1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ppb0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;bus&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;pci1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;memory&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;space&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;enabled&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;rd&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;wr&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;inv&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ok&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;xhci0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;pci1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;dev&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;function&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;vendor&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1106&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;3483&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rev&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mh"&gt;0x01&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;xhci0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;64&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;bit&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;DMA&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;xhci0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;interrupting&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;plic0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;irq&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;56&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;xhci0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;xHCI&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;version&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;1.0&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;usb0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;xhci0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;USB&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;revision&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;3.0&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;usb1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;xhci0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;USB&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;revision&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;2.0&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;jh7110pcie1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;PCIe&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;jh7110pcie1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;autoconfiguration&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;link&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;not&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;up&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;sound&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;not&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;configured&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;soc&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;pwmdac&lt;/span&gt;&lt;span class="mi"&gt;@100&lt;/span&gt;&lt;span class="n"&gt;b0000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;not&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;configured&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;audio&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;codec&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;not&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;configured&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;soc&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;timer&lt;/span&gt;&lt;span class="mi"&gt;@2000000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;not&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;configured&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;com0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;DesignWare&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;APB&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;UART&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;no&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fifo&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;com0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;console&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;com0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;interrupting&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;on&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;plic0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;irq&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;32&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;dwiic1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;I2C&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;controller&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;dwiic1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;interrupting&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;on&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;plic0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;irq&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;35&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;iic1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;dwiic1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;I2C&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;bus&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;dwiic2&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;I2C&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;controller&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;dwiic2&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;interrupting&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;on&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;plic0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;irq&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;37&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;iic2&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;dwiic2&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;I2C&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;bus&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;soc&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;spi&lt;/span&gt;&lt;span class="mi"&gt;@10060000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;not&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;configured&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;jh71x0usb0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;USB&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;dwiic3&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;I2C&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;controller&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;dwiic3&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;interrupting&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;on&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;plic0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;irq&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;51&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;iic3&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;dwiic3&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;I2C&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;bus&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;soc&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;pwm&lt;/span&gt;&lt;span class="mi"&gt;@120&lt;/span&gt;&lt;span class="n"&gt;d0000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;not&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;configured&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;soc&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;spi&lt;/span&gt;&lt;span class="mi"&gt;@13010000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;not&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;configured&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;soc&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;crypto&lt;/span&gt;&lt;span class="mi"&gt;@16000000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;not&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;configured&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;jh7110trng0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;JH7110&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;TRNG&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;jh7110trng0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Features&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mh"&gt;0xd&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;mode&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;reset&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;state&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mh"&gt;0x1&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;mission&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;mode&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;ring&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;oscillator&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mh"&gt;0x1&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;present&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;max&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;rand&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mh"&gt;0x1&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;256&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;bit&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;jh7110trng0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Build&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mh"&gt;0x3d&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="k"&gt;auto&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;reseed&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;loopback&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mh"&gt;0x1&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;present&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;mode&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;after&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;reset&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mh"&gt;0x1&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;mission&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;mode&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;PRNG&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;after&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;reset&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mh"&gt;0x1&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;present&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;max&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;PRNG&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mh"&gt;0x1&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;256&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;bit&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;jh7110trng0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;interrupting&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;on&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;plic0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;irq&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;30&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;dwcmmc0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;DesignWare&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;SD&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;MMC&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;dwcmmc0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;interrupting&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;on&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;plic0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;irq&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;74&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;dwcmmc1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;DesignWare&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;SD&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;MMC&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;dwcmmc1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;interrupting&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;on&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;plic0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;irq&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;75&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;gpio&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;restart&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;not&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;configured&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;soc&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;watchdog&lt;/span&gt;&lt;span class="mi"&gt;@13070000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;not&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;configured&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;xhci1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;simplebus1autoconfiguration&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;cannot&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;switch&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;'&lt;/span&gt;&lt;span class="n"&gt;otg&lt;/span&gt;&lt;span class="err"&gt;'&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;mode&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;to&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;host&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;timecounter&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Timecounter&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;"riscv"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;frequency&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;4000000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Hz&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;quality&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.000003&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;timecounter&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Timecounter&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;"clockinterrupt"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;frequency&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Hz&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;quality&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.799984&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;cpu_boot_secondary_processors&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;starting&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;secondary&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;processors&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.799984&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;cpu_boot_secondary_processors&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;secondary&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;processors&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;hatched&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;running&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.815242&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;uhub0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;usb0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;NetBSD&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mh"&gt;0x0000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;xHCI&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;root&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;hub&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mh"&gt;0x0000&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;class&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;9&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;rev&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;3.00&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mf"&gt;1.00&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;addr&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.819981&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;uhub0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ports&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;with&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;removable&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nb"&gt;self&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;powered&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.819981&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;uhub1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;usb1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;NetBSD&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mh"&gt;0x0000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;xHCI&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;root&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;hub&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mh"&gt;0x0000&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;class&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;9&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;rev&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;2.00&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mf"&gt;1.00&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;addr&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.829977&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;uhub1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;port&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;with&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;removable&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nb"&gt;self&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;powered&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.829977&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;sdmmc0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;dwcmmc0&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.829977&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;sdmmc1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;dwcmmc1&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.849982&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;IPsec&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Initialized&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Security&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Association&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Processing&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.959977&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;sdmmc1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;SD&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;card&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;bit&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;C10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;U1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;V10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;A1&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.959977&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ld1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;sdmmc1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="mh"&gt;0x27&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="mh"&gt;0x5048&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="n"&gt;SD32G&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="mh"&gt;0x60&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="mh"&gt;0x00000307&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="mh"&gt;0x156&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.969977&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ld1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;29508&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;MB&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;7494&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;cyl&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;128&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;head&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;63&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;sec&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;512&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;bytes&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;sect&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;60432384&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;sectors&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.979977&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ld1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;GPT&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;GUID&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;e27a702f&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;df79&lt;/span&gt;&lt;span class="mi"&gt;-4&lt;/span&gt;&lt;span class="n"&gt;d5a&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;be5f&lt;/span&gt;&lt;span class="mi"&gt;-1&lt;/span&gt;&lt;span class="n"&gt;cda14fa33e4&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.979977&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;dk0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ld1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;"spl"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;4096&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;blocks&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2048&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;type&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;unknown&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.989977&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;dk1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ld1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;"uboot"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;8192&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;blocks&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;8192&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;type&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;unknown&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.999977&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;dk2&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ld1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;"EFI"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;163840&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;blocks&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;16384&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;type&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;msdos&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;1.999977&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;dk3&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ld1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;"netbsd-root"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;60252127&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;blocks&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;180224&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;type&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ffs&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;2.009977&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ld1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;bit&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;High&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;Speed&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;SDR25&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;50.000&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;MHz&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;2.269976&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;uhub2&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;uhub1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;port&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;vendor&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2109&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mh"&gt;0x2109&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;USB2&lt;/span&gt;&lt;span class="mf"&gt;.0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Hub&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mh"&gt;0x3431&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;class&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;9&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;rev&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;2.10&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mf"&gt;4.20&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;addr&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;2.279977&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;uhub2&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;single&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;transaction&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;translator&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;2.289976&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;uhub2&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ports&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;with&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;removable&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nb"&gt;self&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;powered&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;2.629983&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;swwdog0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;software&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;watchdog&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;initialized&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;2.629983&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;WARNING&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;errors&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;while&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;detecting&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;hardware&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;check&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;system&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;log&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;2.641566&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;boot&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;device&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;dk3&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;2.641566&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;root&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;on&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;dk3&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;2.659978&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;root&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;file&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;system&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;type&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ffs&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;2.669979&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;kern&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;module&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="o"&gt;=/&lt;/span&gt;&lt;span class="n"&gt;stand&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;riscv&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mf"&gt;11.99.7&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;modules&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;2.669979&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;WARNING&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;no&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;TOD&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;clock&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;present&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;2.681527&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;WARNING&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;using&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;filesystem&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;time&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="mf"&gt;2.685595&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;WARNING&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;CHECK&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;AND&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;RESET&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;THE&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;DATE&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;</description><category>bootloader</category><category>bsd</category><category>debugging</category><category>device tree</category><category>efi</category><category>gpt</category><category>jh7110</category><category>macos</category><category>milk-v</category><category>milk-v mars</category><category>mtools</category><category>netbsd</category><category>opensbi</category><category>qemu</category><category>risc v</category><category>riscv64</category><category>serial console</category><category>sgdisk</category><category>single board computers</category><category>starfive</category><category>u-boot</category><guid>https://tinycomputers.io/posts/four-partitions-and-a-borrowed-bootloader-netbsd-on-the-milk-v-mars.html</guid><pubDate>Sun, 19 Jul 2026 21:30:00 GMT</pubDate></item><item><title>Banana Pi BPI-R4 Pro Review: A 10-Gigabit Router Board I Put to Work as a Bastion</title><link>https://tinycomputers.io/posts/banana-pi-bpi-r4-pro-review.html?utm_source=feed&amp;utm_medium=rss&amp;utm_campaign=rss</link><dc:creator>A.C. Jokela</dc:creator><description>&lt;div class="audio-widget"&gt;
&lt;div class="audio-widget-header"&gt;
&lt;span class="audio-widget-icon"&gt;🎧&lt;/span&gt;
&lt;span class="audio-widget-label"&gt;Listen to this article&lt;/span&gt;
&lt;/div&gt;
&lt;audio controls preload="metadata"&gt;
&lt;source src="https://tinycomputers.io/banana-pi-bpi-r4-pro-review_tts.mp3" type="audio/mpeg"&gt;
&lt;/source&gt;&lt;/audio&gt;
&lt;div class="audio-widget-footer"&gt;40 min · AI-generated narration&lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;Most of the single-board computers I review here are compute boards: you install Debian or Ubuntu, you build software on them, you measure how fast they crunch. The &lt;a href="https://go.tinymachines.io/M5C3Pp"&gt;Banana Pi BPI-R4 Pro&lt;/a&gt; is a different animal entirely. It is a &lt;em&gt;router&lt;/em&gt; - a networking board built around MediaTek's MT7988A (Filogic 880) SoC, shipping with OpenWRT rather than a general-purpose Linux distribution, and designed from the silicon up to move packets rather than compile code. Reviewing it by the same yardstick I use for a Raspberry Pi 5 would be like reviewing a delivery truck by its quarter-mile time. So I did something a little different: I deployed the R4 Pro as a real piece of infrastructure - an internet-facing SSH bastion and TLS reverse proxy sitting in front of a small fleet of machines - and then benchmarked the things a router actually has to be good at.&lt;/p&gt;
&lt;p&gt;The short version: the BPI-R4 Pro is an impressively capable networking platform with genuine 10-gigabit ambitions and a crypto engine strong enough to terminate encrypted tunnels at line rate. Its quad Cortex-A73 CPU is modest by 2026 compute-board standards, but that CPU is not the point. The board's constraints - OpenWRT instead of Debian, a tiny writable overlay, a stock kernel with some conspicuous gaps - are exactly the constraints of the router-appliance world it comes from. Here is where it shines, where it frustrated me, and who should actually buy one.&lt;/p&gt;
&lt;h3&gt;Hardware Architecture: The MediaTek MT7988A (Filogic 880)&lt;/h3&gt;
&lt;p&gt;At the heart of the R4 Pro is the &lt;a href="https://www.mediatek.com/products/broadband-wifi/mediatek-filogic-880"&gt;MediaTek MT7988A&lt;/a&gt;, marketed as the Filogic 880. Where a typical SBC SoC is a Rockchip or Broadcom part with a strong CPU cluster and networking bolted on, the MT7988A inverts that priority: it is a networking processor first, with a competent application CPU attached.&lt;/p&gt;
&lt;p&gt;The CPU cluster is four ARM Cortex-A73 cores running at 1.8 GHz. Reading &lt;code&gt;/proc/cpuinfo&lt;/code&gt; confirms CPU part &lt;code&gt;0xd09&lt;/code&gt; (Cortex-A73) with the full ARMv8 crypto feature set: &lt;code&gt;aes&lt;/code&gt;, &lt;code&gt;pmull&lt;/code&gt;, &lt;code&gt;sha1&lt;/code&gt;, &lt;code&gt;sha2&lt;/code&gt;, and &lt;code&gt;crc32&lt;/code&gt;. That crypto flag list matters enormously for a router, and I will return to it.&lt;/p&gt;
&lt;p&gt;The Cortex-A73, released by ARM in 2016, is architecturally interesting for a networking chip. It sits between the Cortex-A72 (2015, found in the &lt;a href="https://go.tinymachines.io/GNVHU7"&gt;Banana Pi CM5-Pro&lt;/a&gt;) and the Cortex-A76 (2018, found in the &lt;a href="https://go.tinymachines.io/YF2NyG"&gt;Raspberry Pi 5&lt;/a&gt; and &lt;a href="https://go.tinymachines.io/X54TSY"&gt;Orange Pi 5 Max&lt;/a&gt;). The A73 was ARM's efficiency-focused big core - narrower than the A72 in some respects but with better power characteristics and, in practice, comparable or slightly better per-clock throughput. Four of them at 1.8 GHz is a sensible choice for a router: enough headroom to run a full firewall, a reverse proxy, and userspace daemons, without the thermal and power budget of a compute-grade cluster.&lt;/p&gt;
&lt;p&gt;What surrounds that CPU is where the money went:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Dual 10 Gigabit Ethernet MACs.&lt;/strong&gt; Two of the board's interfaces (&lt;code&gt;eth0&lt;/code&gt; and &lt;code&gt;eth2&lt;/code&gt;) report a link capability of 10000 Mbps.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A hardware packet-processing engine (PPE)&lt;/strong&gt; for NAT/flow offload, so routed traffic need not touch the CPU on the fast path.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;An inline crypto engine&lt;/strong&gt; exposed through the ARMv8 AES/SHA instructions, which the kernel and OpenSSL use transparently.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;An external MaxLinear switch&lt;/strong&gt; (the &lt;code&gt;mxl_lan&lt;/code&gt;* DSA ports in Linux), which is how the "Pro" and "8X" board variants fan out their many gigabit and multi-gigabit ports.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A WiFi 7 radio&lt;/strong&gt; (the "BE14" in the stock image name, driven by MediaTek's &lt;code&gt;mt76&lt;/code&gt; stack).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;My unit is the BPI-R4-PRO-8X, the higher-tier variant, with 8 GB of RAM - &lt;code&gt;MemTotal&lt;/code&gt; reports 8,136,024 kB, roughly 7.76 GiB usable. For a router that is a genuinely generous memory allotment; most consumer routers ship with a fraction of it, and it means the R4 Pro can hold large connection-tracking tables, run containers, or cache aggressively without breaking a sweat.&lt;/p&gt;
&lt;p&gt;&lt;img alt="Banana Pi BPI-R4-PRO-8X board" src="https://tinycomputers.io/images/r4pro/IMG_4589.jpeg"&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;The Banana Pi BPI-R4-PRO-8X - the MediaTek MT7988A router board reviewed here, with dual 10-gigabit MACs, a MaxLinear switch, and WiFi 7, running OpenWRT&lt;/em&gt;&lt;/p&gt;
&lt;h3&gt;The Board Itself: Ports, Storage, and the Console&lt;/h3&gt;
&lt;p&gt;Physically, the R4 Pro follows the BPI-R4 family form factor: a router-style board rather than a credit-card SBC, with a bank of Ethernet jacks, SFP+ cages for the 10-gigabit optics, an M.2 slot, USB, and the usual pin headers. The "8X" designation refers to its port fan-out via the MaxLinear switch. In Linux I see &lt;code&gt;eth0&lt;/code&gt; and &lt;code&gt;eth2&lt;/code&gt; as 10G-capable MACs, &lt;code&gt;eth1&lt;/code&gt; as a 1G interface, and a family of &lt;code&gt;mxl_lan0&lt;/code&gt; through &lt;code&gt;mxl_lan5&lt;/code&gt; DSA switch ports hanging off &lt;code&gt;eth2&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Storage is the first place the router DNA shows. The board boots from onboard flash - a squashfs &lt;code&gt;/rom&lt;/code&gt; (100 MB, read-only) overlaid with a UBI/NAND overlay for persistent writes. That overlay is &lt;em&gt;small&lt;/em&gt;: 48.5 MB total, of which only around 42 MB was free on my unit. There is eMMC on board as well (I booted from it during setup earlier in the board's life), but the running configuration lives on a constrained flash budget by design. Offsetting this, OpenWRT mounts a 3.9 GB &lt;code&gt;tmpfs&lt;/code&gt; at &lt;code&gt;/tmp&lt;/code&gt;, RAM-backed and fast, which is where any scratch work belongs.&lt;/p&gt;
&lt;p&gt;This is not a criticism so much as a category marker. Routers do not have roomy filesystems; they have just enough flash to hold firmware and config, plus RAM for working state. If you come to the R4 Pro expecting to &lt;code&gt;apt install&lt;/code&gt; a development toolchain and a few hundred megabytes of dependencies, you will run out of overlay in about four packages. Plan accordingly.&lt;/p&gt;
&lt;p&gt;The console deserves a note for anyone deploying one headless. The board exposes a USB-C serial console (an HT42B534-based UART bridge), so a single USB-C cable gets you a boot log and a login shell at 115200 baud without needing a separate TTL adapter. It is a small quality-of-life win that matters the first time a firewall rule locks you out over the network.&lt;/p&gt;
&lt;h3&gt;Software: OpenWRT, Not Debian&lt;/h3&gt;
&lt;p&gt;The single most important fact about the R4 Pro - the fact that colors every other observation in this review - is that it runs &lt;strong&gt;OpenWRT&lt;/strong&gt;, not a general-purpose Linux distribution. My unit shipped the &lt;code&gt;BPI-R4Pro-8X-BE14-MT76-OpenWRT24.10&lt;/code&gt; image, kernel 6.6.93.&lt;/p&gt;
&lt;p&gt;For anyone who has only used SBCs as tiny Linux PCs, OpenWRT is a different world with its own idioms:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;opkg&lt;/code&gt;&lt;strong&gt;, not&lt;/strong&gt; &lt;code&gt;apt&lt;/code&gt;&lt;strong&gt;.&lt;/strong&gt; Packages come from OpenWRT feeds. The catalog is large - &lt;code&gt;opkg list&lt;/code&gt; returned 9,695 packages on my unit - but it is a router-firmware catalog, so you find &lt;code&gt;iperf3&lt;/code&gt;, &lt;code&gt;coremark&lt;/code&gt;, &lt;code&gt;stress-ng&lt;/code&gt;, &lt;code&gt;nginx&lt;/code&gt;, and &lt;code&gt;wireguard-tools&lt;/code&gt;, not &lt;code&gt;build-essential&lt;/code&gt; and &lt;code&gt;python3-dev&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;UCI configuration.&lt;/strong&gt; Networking, firewall, DHCP, and services are configured through OpenWRT's Unified Configuration Interface (&lt;code&gt;/etc/config/&lt;/code&gt;*) and the &lt;code&gt;uci&lt;/code&gt; command, not by hand-editing &lt;code&gt;/etc/network/interfaces&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;fw4&lt;/code&gt;&lt;strong&gt;/nftables firewall.&lt;/strong&gt; Modern OpenWRT builds the firewall on nftables via the &lt;code&gt;fw4&lt;/code&gt; layer, organized into zones (LAN, WAN) with per-zone input/forward/output policies.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;DSA switch model.&lt;/strong&gt; The MaxLinear switch ports appear as individual &lt;code&gt;mxl_lanN&lt;/code&gt; netdevs bridged together, the modern Distributed Switch Architecture model, rather than the old &lt;code&gt;swconfig&lt;/code&gt; VLAN approach.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;ash&lt;/code&gt;&lt;strong&gt;, not&lt;/strong&gt; &lt;code&gt;bash&lt;/code&gt;&lt;strong&gt;.&lt;/strong&gt; The shell is BusyBox &lt;code&gt;ash&lt;/code&gt;; the userland is BusyBox. Little things bite you - &lt;code&gt;nproc&lt;/code&gt; does not exist, &lt;code&gt;dd&lt;/code&gt; rejects &lt;code&gt;conv=fdatasync&lt;/code&gt; - until you internalize that you are on an embedded system.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;None of this is bad. It is, in fact, exactly what you want if your goal is a router: OpenWRT is battle-tested router firmware with a coherent configuration model, atomic sysupgrades, and a security posture built for internet-facing deployment. But it does mean the R4 Pro is not a drop-in for someone who wanted "a fast little Linux box." It wants to be a network appliance, and it is happiest when you let it.&lt;/p&gt;
&lt;h3&gt;Performance: How Do You Benchmark a Router?&lt;/h3&gt;
&lt;p&gt;My standard SBC benchmark is a from-clean Rust compilation of a moderately large &lt;a href="https://github.com/ajokela/ballistics-engine"&gt;ballistics-simulation engine&lt;/a&gt;, run three times and averaged. It is a great CPU-and-I/O stress test for a compute board. It is also completely inapplicable here: the R4 Pro has no Rust toolchain, no C compiler in the base image, and a 42 MB writable overlay that could not hold the dependency tree, let alone the build artifacts. Installing a cross-toolchain onto router flash to run a compile benchmark would be measuring the wrong thing anyway.&lt;/p&gt;
&lt;p&gt;So I measured what actually determines whether this board is good at its job: raw CPU throughput in a portable benchmark, cryptographic performance (the workload of a bastion, a VPN endpoint, or a TLS proxy), network throughput, and thermals under load. Every number below was measured on the board as configured, running its shipping OpenWRT image.&lt;/p&gt;
&lt;h4&gt;CPU: CoreMark&lt;/h4&gt;
&lt;p&gt;&lt;a href="https://github.com/eembc/coremark"&gt;CoreMark&lt;/a&gt; is the portable, compiler-neutral-ish CPU benchmark that actually runs on embedded systems. Installed straight from the OpenWRT feed (built with GCC 13.3, &lt;code&gt;-O3 -flto&lt;/code&gt;), the R4 Pro turned in:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;CoreMark run&lt;/th&gt;
&lt;th&gt;Iterations/sec&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Single thread&lt;/td&gt;
&lt;td&gt;9,533&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Four threads (aggregate)&lt;/td&gt;
&lt;td&gt;37,952&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Two things stand out. First, multi-core scaling is essentially perfect - 37,952 is 99.5% of 4x the single-thread figure, which tells you the four A73 cores are genuinely independent and the memory subsystem is not choking under parallel load. Second, the per-clock efficiency is good: 9,533 CoreMark at 1.8 GHz works out to about &lt;strong&gt;5.3 CoreMark/MHz&lt;/strong&gt;, a strong showing for a Cortex-A73 and comfortably ahead of the A53-class cores that populate cheaper networking boards.&lt;/p&gt;
&lt;p&gt;How does that translate against the compute boards I have benchmarked? Honestly - and this is the important framing - the R4 Pro would land near the back of that pack for a heavy parallel workload. My compile-benchmark table runs from the Orange Pi 5 Max (RK3588, eight A76/A55 cores, 62 seconds) down through the Banana Pi CM5-Pro (eight A72/A53 cores, 167 seconds) to the Horizon X3 CM (four A53 at 1.5 GHz, 379 seconds). Four A73 cores at 1.8 GHz sit architecturally between the A72 and A76 on a per-core basis, but with only four cores and a lower clock, the R4 Pro's aggregate compute is modest - comfortably ahead of the A53 boards, well behind the eight-core A76 machines. That is completely fine. A router does not compile Linux kernels for a living; it forwards packets and terminates crypto, and it has plenty of CPU for both.&lt;/p&gt;
&lt;h4&gt;Cryptography: The Metric That Actually Matters&lt;/h4&gt;
&lt;p&gt;For a board destined to be a bastion, a VPN concentrator, or a TLS reverse proxy, cryptographic throughput is the benchmark that decides whether it can do its job at line rate. I ran &lt;code&gt;openssl speed&lt;/code&gt; (OpenSSL 3.0.21 from the feed) across the ciphers a real deployment uses. Figures below are for 16 KB blocks, the regime that matters for bulk transfer:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Algorithm&lt;/th&gt;
&lt;th&gt;Throughput&lt;/th&gt;
&lt;th&gt;Hardware accelerated?&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;AES-128-CBC&lt;/td&gt;
&lt;td&gt;1,432 MB/s (~11.5 Gb/s)&lt;/td&gt;
&lt;td&gt;Yes (ARMv8 AES)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AES-128-GCM&lt;/td&gt;
&lt;td&gt;1,190 MB/s (~9.5 Gb/s)&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AES-256-GCM&lt;/td&gt;
&lt;td&gt;1,023 MB/s (~8.2 Gb/s)&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SHA-256&lt;/td&gt;
&lt;td&gt;917 MB/s (~7.3 Gb/s)&lt;/td&gt;
&lt;td&gt;Yes (ARMv8 SHA2)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ChaCha20-Poly1305&lt;/td&gt;
&lt;td&gt;310 MB/s (~2.5 Gb/s)&lt;/td&gt;
&lt;td&gt;No (software)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;RSA-2048 sign / verify&lt;/td&gt;
&lt;td&gt;195 / 7,395 ops/s&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ECDSA P-256 sign / verify&lt;/td&gt;
&lt;td&gt;8,774 / 3,206 ops/s&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The headline: &lt;strong&gt;the R4 Pro can encrypt AES-256-GCM at over a gigabyte per second&lt;/strong&gt;, which is more than 8 Gb/s of authenticated encryption. That is enough to terminate a fully saturated 10-gigabit TLS or IPsec/AES tunnel on the CPU, before you even reach for the SoC's dedicated crypto offload. The ARMv8 AES and SHA-2 instructions are doing exactly what they were added to the architecture to do.&lt;/p&gt;
&lt;p&gt;The most instructive line in that table is ChaCha20-Poly1305. At 310 MB/s it is more than &lt;em&gt;four times slower&lt;/em&gt; than AES-256-GCM - not because ChaCha is a bad cipher, but because the A73 has no hardware acceleration for it, so it runs in software while AES rides dedicated instructions. This has a concrete deployment consequence: &lt;strong&gt;WireGuard uses ChaCha20-Poly1305 exclusively.&lt;/strong&gt; So on this board, a WireGuard tunnel tops out around 2.5 Gb/s of crypto, while an AES-GCM-based tunnel (IPsec, OpenVPN in AES mode, or TLS) can push three to four times that. For most home and small-office links - where the WAN is a gigabit or two - 2.5 Gb/s of WireGuard is still far more than the pipe, so it is academic. But if you were dreaming of the R4 Pro saturating a 10G link over WireGuard specifically, temper that expectation; point it at AES instead, or lean on hardware offload.&lt;/p&gt;
&lt;p&gt;The asymmetric numbers (RSA and ECDSA) govern TLS handshake rate and SSH key exchange. 8,774 ECDSA P-256 signatures per second is plenty for a bastion fronting a fleet - you are gated by human login rate, not the CPU. RSA-2048 signing at 195/s is unremarkable but, again, not a bottleneck for anything short of a busy public web frontend.&lt;/p&gt;
&lt;h4&gt;Network Throughput&lt;/h4&gt;
&lt;p&gt;I measured real network throughput with &lt;code&gt;iperf3&lt;/code&gt; between the R4 Pro and another fleet host on the same LAN segment. An important caveat up front: while the board's &lt;code&gt;eth0&lt;/code&gt; and &lt;code&gt;eth2&lt;/code&gt; MACs are 10-gigabit capable, my deployment wiring negotiated both the LAN and WAN bridges at 1 Gb/s - the R4 Pro was standing in for an older gigabit box, on gigabit infrastructure. So these numbers reflect gigabit wiring, not the board's 10G ceiling.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Direction&lt;/th&gt;
&lt;th&gt;Throughput&lt;/th&gt;
&lt;th&gt;Retransmits&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Download (board receives)&lt;/td&gt;
&lt;td&gt;933 Mb/s&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Upload (board transmits)&lt;/td&gt;
&lt;td&gt;720 Mb/s&lt;/td&gt;
&lt;td&gt;3,372&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The receive path hits gigabit line rate cleanly - 933 Mb/s with zero retransmissions is about as good as TCP over a 1 Gb link gets. The transmit path came in lower at 720 Mb/s with a burst of retransmissions on a single stream, which is the kind of thing that usually improves with parallel streams or a little TCP tuning, and which I would not read too much into on a router whose fast path is hardware-offloaded routing rather than host-terminated TCP. The meaningful takeaway is that the R4 Pro handles gigabit host traffic without breaking stride, and its silicon is built to go far beyond that once you feed it 10-gigabit optics and peers - the ports and PPE offload are there; my wiring simply was not.&lt;/p&gt;
&lt;h4&gt;Thermals&lt;/h4&gt;
&lt;p&gt;Routers are frequently fanless, sealed, and left running for years, so sustained thermal behavior is a real concern. Here the R4 Pro was almost boring, in the best way. Idle SoC temperature read 48.9 C. After hammering all four cores flat-out through the CoreMark and OpenSSL runs, it reached 50.3 C - a 1.4-degree rise under full load. That is the signature of a chip with power headroom to spare and a competent thermal solution; there is no throttling drama here, and a passively cooled deployment is entirely realistic.&lt;/p&gt;
&lt;h4&gt;A Note on Memory and Storage Benchmarks&lt;/h4&gt;
&lt;p&gt;I tried to characterize memory and flash bandwidth with &lt;code&gt;dd&lt;/code&gt;, but BusyBox's &lt;code&gt;dd&lt;/code&gt; lacks the flags (&lt;code&gt;conv=fdatasync&lt;/code&gt;) my normal harness relies on, and the persistent storage is NAND-with-overlay rather than a benchmarkable block device. The practical picture is straightforward: 8 GB of LPDDR4 is ample working memory for a router, &lt;code&gt;/tmp&lt;/code&gt; is RAM-fast, and the flash is small-but-adequate firmware storage rather than a performance surface. If you need real bulk storage, that is what the M.2 slot is for.&lt;/p&gt;
&lt;h3&gt;The Bastion Build: What I Actually Did With It&lt;/h3&gt;
&lt;p&gt;Benchmarks characterize a board; deployment reveals it. I put the R4 Pro into production as the replacement for an aging Linux box that had been serving two roles: an internet-facing SSH bastion and a TLS reverse proxy for a handful of internal services.&lt;/p&gt;
&lt;p&gt;The topology is a classic small-infrastructure setup. The board carries two addresses at once: a WAN address (192.168.3.21) on the &lt;code&gt;br-wan&lt;/code&gt; bridge facing the fiber modem, and a LAN address (10.1.1.13) on &lt;code&gt;br-lan&lt;/code&gt; facing the internal network. The fiber modem port-forwards inbound SSH from its public IP to the R4 Pro's WAN address, and forwards ports 80 and 443 there as well. From the board, two very different things happen to those flows:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Port 22&lt;/strong&gt; is the bastion login. It terminates on the board's own OpenSSH daemon - there is no proxy in front of it. This is the front door to the whole fleet.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Ports 80 and 443&lt;/strong&gt; hit nginx running on the board, which reverse-proxies each virtual host to the correct backend on the 10.1.1.0/24 network - a web app on one machine, an LLM inference endpoint (a token-gated proxy in front of Ollama) on another.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Standing this up on OpenWRT was instructive about the board's strengths and its one real weakness.&lt;/p&gt;
&lt;p&gt;On the strengths side, the security posture came together cleanly. I hardened SSH to OpenSSH only, disabling the default &lt;code&gt;dropbear&lt;/code&gt; daemon, enforcing key-only authentication, and setting &lt;code&gt;root&lt;/code&gt; to &lt;code&gt;prohibit-password&lt;/code&gt;. The &lt;code&gt;fw4&lt;/code&gt;/nftables WAN zone got an input policy of DROP with explicit allows only for 22, 80, and 443. nginx installed straight from the feed and proxied TLS to internal backends without fuss. The 8 GB of RAM meant I never thought about memory, and the crypto numbers above meant TLS termination was never going to be a bottleneck. As a hardened, internet-facing appliance, the R4 Pro is squarely in its element - this is the job the hardware and firmware were built for.&lt;/p&gt;
&lt;p&gt;The one genuine frustration was WireGuard. I wanted to migrate an existing WireGuard hub onto the board, and hit a wall: the stock 6.6.93 kernel in the shipping image did not include WireGuard support, and the &lt;code&gt;kmod-wireguard&lt;/code&gt; package from the feed was built against a different kernel revision and refused to load. This is a recurring hazard with vendor OpenWRT images - the kernel is pinned, the module ABI is strict, and out-of-tree kmods have to match exactly. It is fixable (a matching image build, or a sysupgrade to a community build with WireGuard baked in), but it is the sort of speed bump that reminds you that you are on a vendor router image, not a rolling general-purpose distro. Given the ChaCha20 software-crypto ceiling I measured, WireGuard was never going to be this board's showcase feature anyway - but the inability to even load the module out of the box is worth knowing before you plan around it.&lt;/p&gt;
&lt;p&gt;Everything else I asked of it, the R4 Pro did without complaint, and it has been a quietly reliable piece of infrastructure since.&lt;/p&gt;
&lt;h3&gt;Comparative Context&lt;/h3&gt;
&lt;p&gt;The R4 Pro does not slot neatly into my usual comparison table, because nothing else I have reviewed is a router. The closest relative in my fleet is the &lt;a href="https://go.tinymachines.io/ycubp7"&gt;Banana Pi R2 Pro&lt;/a&gt; (Rockchip RK3568), a previous-generation dual-gigabit router board - but the R4 Pro is a generation and a tier above it in every networking dimension: quad A73 instead of quad A55, 10-gigabit MACs instead of gigabit, WiFi 7 instead of WiFi 5, and hardware offload built for far higher throughput.&lt;/p&gt;
&lt;p&gt;Against the compute SBCs, the comparison is really about &lt;em&gt;category&lt;/em&gt;, not winner-and-loser. A Raspberry Pi 5 or an Orange Pi 5 Max will compile code two to six times faster than the R4 Pro's CPU could, and they cost less. But neither has 10-gigabit MACs, a hardware packet-processing engine, a bank of switch ports, SFP+ cages, or router firmware. You would spend more time and money bolting networking onto a Pi 5 than you would save on the sticker price, and you would still not have a hardware fast path. Conversely, if your workload is desktop use, AI inference, or software builds, the R4 Pro is the wrong tool and its A73 cluster will feel slow. These boards are not substitutes; they are answers to different questions.&lt;/p&gt;
&lt;p&gt;On price, the R4 Pro commands a substantial premium over general-purpose SBCs, and over the base BPI-R4 as well - street pricing varies by region and configuration but lands well north of a typical Raspberry Pi, reflecting the 10-gigabit silicon, the switch, and the WiFi 7 radio rather than the CPU. If you need what it offers, it is reasonable value for a 10G-capable OpenWRT platform with this much RAM. If you do not, none of that premium is buying you anything.&lt;/p&gt;
&lt;h3&gt;Use Cases and Recommendations&lt;/h3&gt;
&lt;h4&gt;Choose the BPI-R4 Pro if you:&lt;/h4&gt;
&lt;p&gt;&lt;strong&gt;Are building a serious home or small-office router or firewall.&lt;/strong&gt; This is the core use case and the board excels at it: OpenWRT, hardware NAT offload, 10-gigabit uplinks, a switch, generous RAM, and a CPU with power to spare for firewall and userspace services. It is a genuine alternative to a commercial 10G router or a x86 firewall appliance, at lower power.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Want a hardened, internet-facing bastion or reverse proxy.&lt;/strong&gt; I proved this one in production. Key-only SSH, an nftables WAN zone, nginx TLS termination, and over a gigabyte-per-second of hardware AES make it an excellent front door - and it sips power doing it.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Need 10-gigabit networking on an ARM/OpenWRT platform.&lt;/strong&gt; The MT7988A's dual 10G MACs plus SFP+ cages put line-rate 10G within reach, with the PPE keeping routed traffic off the CPU. Few boards in this class and price bracket offer that.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Value RAM headroom on a router.&lt;/strong&gt; 8 GB is a lot for a networking box. Large connection tables, containerized services (Docker/Podman on OpenWRT), or aggressive caching all become practical.&lt;/p&gt;
&lt;h4&gt;Choose something else if you:&lt;/h4&gt;
&lt;p&gt;&lt;strong&gt;Want a general-purpose Linux computer.&lt;/strong&gt; The R4 Pro runs OpenWRT with a tiny writable overlay and BusyBox userland. It is a router, not a workstation. A Raspberry Pi 5, Orange Pi 5 Max, or the Banana Pi CM5-Pro will be far happier and far faster at desktop, development, and compute tasks.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Are prioritizing raw CPU throughput or AI inference.&lt;/strong&gt; Four A73 cores at 1.8 GHz are modest, and there is no NPU. The compute-focused boards in my reviews leave it well behind on those axes.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Specifically need line-rate WireGuard.&lt;/strong&gt; The A73's lack of ChaCha20 hardware acceleration caps WireGuard crypto around 2.5 Gb/s, and the stock image did not ship a loadable WireGuard module. Both are surmountable, but if a 10G WireGuard hub is your exact goal, do your homework first - or plan to use an AES-based tunnel.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Want a plug-and-play, beginner-friendly experience.&lt;/strong&gt; OpenWRT, UCI, DSA, and vendor image quirks reward network-literate users. If you have never configured a firewall zone, the learning curve is real.&lt;/p&gt;
&lt;h3&gt;Build Quality and Physical Characteristics&lt;/h3&gt;
&lt;p&gt;The R4 Pro is a well-built router-class board with the port density and connector variety its role demands. The SFP+ cages, M.2 slot, multiple Ethernet jacks, and header banks are laid out sensibly, and the onboard USB-C serial console is a thoughtful touch for a device that will inevitably lock you out over the network at least once. My unit arrived cleanly manufactured with no obvious defects, and as the thermal numbers show, it runs cool enough for fanless or lightly-cooled enclosures. As always with a board that carries 10-gigabit PHYs and a switch, plan for some airflow if you enclose it under sustained heavy load - but my measurements suggest thermal headroom is not a concern at typical router duty cycles.&lt;/p&gt;
&lt;h3&gt;Conclusion: The Right Tool, Precisely Aimed&lt;/h3&gt;
&lt;p&gt;The Banana Pi BPI-R4 Pro is not trying to be a fast little Linux PC, and judging it as one would miss the point entirely. It is a purpose-built 10-gigabit router platform, and by that measure it is very good. The MT7988A pairs a modest-but-efficient quad Cortex-A73 with the networking silicon that matters - dual 10G MACs, hardware NAT offload, a switch, and a crypto engine that pushes AES-256-GCM past a gigabyte per second. It runs real router firmware, it carries a generous 8 GB of RAM, it stays cool under full load, and - as I proved by putting it into production - it makes an excellent hardened bastion and TLS reverse proxy.&lt;/p&gt;
&lt;p&gt;Its limitations are the honest limitations of its category. The CPU is slow for compute work; OpenWRT and a tiny overlay make it a poor general-purpose machine; ChaCha20 runs in software, so WireGuard specifically will not saturate 10G; and vendor-image kernel pinning bit me when I tried to add an out-of-tree module. None of these are surprises once you accept what the board is: a network appliance, not a computer you happen to network with.&lt;/p&gt;
&lt;p&gt;If you are building a router, a firewall, a 10-gigabit homelab core, or an internet-facing bastion, the BPI-R4 Pro deserves a hard look - it delivers networking capability and cryptographic throughput that are genuinely hard to find at its price and power envelope on an ARM/OpenWRT platform. If you want to compile code, run models, or use a desktop, buy a compute board instead. The R4 Pro knows exactly what it is, and so should you before you buy one.&lt;/p&gt;
&lt;h3&gt;Specifications Summary&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Processor:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;MediaTek MT7988A (Filogic 880)&lt;/li&gt;
&lt;li&gt;4x ARM Cortex-A73 @ 1.8 GHz&lt;/li&gt;
&lt;li&gt;ARMv8 crypto extensions: AES, PMULL, SHA-1, SHA-2, CRC32&lt;/li&gt;
&lt;li&gt;Hardware packet-processing engine (NAT/flow offload)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Memory &amp;amp; Storage:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;8 GB RAM (~7.76 GiB usable) - BPI-R4-PRO-8X unit&lt;/li&gt;
&lt;li&gt;Onboard NAND (squashfs + UBI overlay) + eMMC&lt;/li&gt;
&lt;li&gt;M.2 slot for expansion storage&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Networking:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;2x 10 Gigabit Ethernet MACs (SFP+), 1x Gigabit Ethernet&lt;/li&gt;
&lt;li&gt;External MaxLinear switch (DSA), multiple gigabit/multi-gig ports&lt;/li&gt;
&lt;li&gt;WiFi 7 (BE14, MediaTek mt76)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Software:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;OpenWRT 24.10, Linux kernel 6.6.93 (aarch64)&lt;/li&gt;
&lt;li&gt;opkg feeds (9,695 packages), UCI config, fw4/nftables, BusyBox userland&lt;/li&gt;
&lt;li&gt;USB-C serial console (115200 baud)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Benchmark Performance (as-shipped OpenWRT image):&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;CoreMark: 9,533 single-thread / 37,952 four-thread (5.3 CoreMark/MHz, ~99% scaling)&lt;/li&gt;
&lt;li&gt;AES-256-GCM: 1,023 MB/s; AES-128-CBC: 1,432 MB/s; SHA-256: 917 MB/s (all HW-accelerated)&lt;/li&gt;
&lt;li&gt;ChaCha20-Poly1305: 310 MB/s (software)&lt;/li&gt;
&lt;li&gt;RSA-2048: 195 sign/s, 7,395 verify/s; ECDSA P-256: 8,774 sign/s&lt;/li&gt;
&lt;li&gt;iperf3 (gigabit wiring): 933 Mb/s RX, 720 Mb/s TX&lt;/li&gt;
&lt;li&gt;Thermal: 48.9 C idle, 50.3 C under full four-core load&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Recommendation:&lt;/strong&gt; An excellent 10-gigabit OpenWRT router and hardened-bastion platform; not recommended as a general-purpose or compute SBC.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;Review Date: July 16, 2026&lt;/p&gt;
&lt;p&gt;Hardware Tested: Banana Pi BPI-R4-PRO-8X (MediaTek MT7988A) with 8 GB RAM, deployed as SSH bastion + nginx reverse proxy&lt;/p&gt;
&lt;p&gt;OS Tested: OpenWRT 24.10 (BPI-R4Pro-8X-BE14-MT76 image), Linux kernel 6.6.93&lt;/p&gt;
&lt;p&gt;Conclusion: A purpose-built 10-gigabit router board that excels at networking and cryptographic workloads and makes a superb hardened bastion - reviewed, and recommended, as the network appliance it is rather than the compute SBC it is not.&lt;/p&gt;</description><category>10 gigabit ethernet</category><category>armv8 crypto extensions</category><category>banana pi</category><category>bastion host</category><category>benchmarks</category><category>bpi-r4 pro</category><category>coremark</category><category>cortex-a73</category><category>crypto acceleration</category><category>filogic 880</category><category>hardware review</category><category>mediatek mt7988a</category><category>nftables</category><category>openwrt</category><category>reverse proxy</category><category>router</category><category>single board computers</category><category>wireguard</category><guid>https://tinycomputers.io/posts/banana-pi-bpi-r4-pro-review.html</guid><pubDate>Fri, 17 Jul 2026 00:46:59 GMT</pubDate></item><item><title>Nothing Was Using the Cores: Three Idle Arm64 Boards, One HA k3s Cluster, and a BSD Build Farm</title><link>https://tinycomputers.io/posts/nothing-was-using-the-cores-three-idle-arm64-boards-one-ha-k3s-cluster.html?utm_source=feed&amp;utm_medium=rss&amp;utm_campaign=rss</link><dc:creator>A.C. Jokela</dc:creator><description>&lt;div class="audio-widget"&gt;
&lt;div class="audio-widget-header"&gt;
&lt;span class="audio-widget-icon"&gt;🎧&lt;/span&gt;
&lt;span class="audio-widget-label"&gt;Listen to this article&lt;/span&gt;
&lt;/div&gt;
&lt;audio controls preload="metadata"&gt;
&lt;source src="https://tinycomputers.io/nothing-was-using-the-cores-three-idle-arm64-boards-one-ha-k3s-cluster_tts.mp3" type="audio/mpeg"&gt;
&lt;/source&gt;&lt;/audio&gt;
&lt;div class="audio-widget-footer"&gt;34 min · AI-generated narration&lt;/div&gt;
&lt;/div&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Update (August 2026):&lt;/strong&gt; This cluster has since grown from three nodes to eight, and it is no longer all Arm — two x86-64 boxes have joined the quorum's company, along with the NanoPC-T6N I reviewed a few weeks later. One of the two projects those BSD builds exist for — the ballistics engine — now has &lt;a href="https://tinycomputers.io/posts/the-bullet-doesnt-go-where-you-point-it.html"&gt;a post of its own&lt;/a&gt;: what it actually computes, how you test physics when there is no oracle to check it against, and why it ships to thirteen platforms.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The plan, at first, was to buy my way there. I wanted a three-node cluster, and the tidy way to get one is three identical machines — so I priced out two more &lt;strong&gt;Orange Pi 5 Max&lt;/strong&gt; boards to stand beside the one I already had: same chip, same memory, same clean symmetry. Then I looked at the total.&lt;/p&gt;
&lt;p&gt;We are, as I write this, deep in a memory and storage shortage, and the prices show it. DRAM and NAND have both climbed to where two more maxed-out single-board computers — sixteen gigabytes of LPDDR and a fast terabyte of NVMe apiece — added up to real money, for hardware that would spend most of its life, like everything else on that shelf, doing nothing. Buying idle capacity to set it next to idle capacity is a special kind of foolish, and I could feel that before I could quite justify it.&lt;/p&gt;
&lt;p&gt;So before spending anything, I did the cheaper thing first — the thing I should have done to begin with. I took stock of what I already owned.&lt;/p&gt;
&lt;p&gt;I had three small computers on a shelf, and on any given afternoon they were doing almost nothing.&lt;/p&gt;
&lt;p&gt;That is not a complaint about the hardware. The hardware is lovely. There was an &lt;a href="https://go.tinymachines.io/v5Pz2T"&gt;&lt;strong&gt;Orange Pi 5 Max&lt;/strong&gt;&lt;/a&gt; — an RK3588 board, eight cores split four-and-four between big Cortex-A76s and little A55s, sixteen gigabytes of RAM, a neural processing unit, and a one-terabyte NVMe drive bolted underneath. Next to it, a &lt;a href="https://go.tinymachines.io/vEcnMm"&gt;&lt;strong&gt;Raspberry Pi 5&lt;/strong&gt;&lt;/a&gt;, four cores and eight gigabytes and its own terabyte of WD_BLACK NVMe, quietly serving a web page. And a &lt;a href="https://go.tinymachines.io/GFvQE5"&gt;&lt;strong&gt;Compute Module 5&lt;/strong&gt;&lt;/a&gt; on a carrier, four cores, another sixteen gigabytes, two terabytes of NVMe — the fastest storage of the three and the least to do.&lt;/p&gt;
&lt;p&gt;Add it up and it's sixteen cores, forty gigabytes of memory, four terabytes of solid-state storage. And the honest utilization graph, most of the time, was a flat line near the floor. The Orange Pi woke up when I asked it to run a local language model on its NPU. The Pi answered HTTP. The CM5 held its breath. Three machines, each doing one modest thing, each idle in the gaps — which is to say, idle almost always.&lt;/p&gt;
&lt;p&gt;I have written before on this blog about hauling systems software onto hardware it was never supposed to run on, and there's a particular feeling that precedes those projects: a gap that's &lt;em&gt;infuriating&lt;/em&gt; rather than merely inconvenient, a mismatch between what a machine plainly could do and what it was actually doing. This was that feeling, pointed inward at my own shelf. The boards were not underpowered. They were under-&lt;em&gt;asked&lt;/em&gt;. And three of anything, on a network together, with fast local disks and nothing to prove — that is not three appliances. That is a cluster that hasn't been told yet.&lt;/p&gt;
&lt;p&gt;So I told it.&lt;/p&gt;
&lt;h3&gt;Three boxes, one quorum&lt;/h3&gt;
&lt;p&gt;The goal was a real high-availability Kubernetes cluster, not a toy. For three small Arm boards that means &lt;strong&gt;k3s&lt;/strong&gt; — Rancher's single-binary Kubernetes, which folds the API server, scheduler, controller manager, a container runtime, and networking into one process that starts in seconds and sips memory. On a fleet of SBCs it is the difference between "Kubernetes runs here" and "Kubernetes runs here and also leaves you room to run anything else."&lt;/p&gt;
&lt;p&gt;High availability, specifically, is the reason there are three boards in this story and not two. Kubernetes keeps its entire state in etcd, and etcd is a consensus system: it stays available only as long as a strict majority of its members can see each other. With two nodes, a majority is two — lose either and the cluster's brain goes read-only. With &lt;strong&gt;three&lt;/strong&gt;, a majority is two out of three, and you can lose any single node — reboot it, unplug it, drop its switch port — and the cluster keeps making decisions. Three is the smallest number where "highly available" stops being marketing. k3s can run etcd embedded across the server nodes, so all three boards became servers, all three became voting members of the quorum, and all three stayed schedulable for real work. No dedicated control plane sitting idle; the control plane &lt;em&gt;is&lt;/em&gt; the workers.&lt;/p&gt;
&lt;p&gt;Getting there was mostly smooth, with one wrinkle that everyone who has tried this on Raspberry Pi hardware eventually meets. Kubernetes needs the kernel's &lt;strong&gt;memory cgroup controller&lt;/strong&gt; to enforce per-container memory limits, and the Raspberry Pi OS kernel ships with it switched off by default — a small performance optimization for people who aren't running containers, and a hard wall for people who are. The kubelet simply refuses to start. The fix is one line appended to &lt;code&gt;/boot/firmware/cmdline.txt&lt;/code&gt; — &lt;code&gt;cgroup_enable=memory cgroup_memory=1&lt;/code&gt; — and a reboot, which I automated across the Pis with Ansible so the change was recorded rather than remembered. The Orange Pi's Armbian kernel already had the controller enabled, so it needed nothing. That asymmetry — same architecture, same job, different kernel defaults — is the texture of a homelab built from whatever excellent boards happened to be on sale.&lt;/p&gt;
&lt;p&gt;I pointed k3s's data directory at the NVMe on each node instead of the default location on the boot media. etcd is unusually sensitive to storage latency — it fsyncs every write it commits — and the difference between a consensus log on an SD card and one on an NVMe drive is the difference between a cluster that feels sluggish and one that feels like a server. It also spares the SD and eMMC cards the write amplification that eventually kills them. Fast local disk is the one thing all three boards had in surplus, and the control plane was the workload most grateful to use it.&lt;/p&gt;
&lt;p&gt;A short while later, &lt;code&gt;kubectl get nodes&lt;/code&gt; returned three lines, all &lt;strong&gt;Ready&lt;/strong&gt;, all &lt;code&gt;control-plane,etcd&lt;/code&gt;, and the flat utilization line finally had somewhere to go. But an empty cluster is just a more elaborate way of being idle. The point was never Kubernetes. The point was the thing the Orange Pi had quietly been doing all along, badly.&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;NAME&lt;span class="w"&gt;              &lt;/span&gt;STATUS&lt;span class="w"&gt;   &lt;/span&gt;ROLES&lt;span class="w"&gt;                &lt;/span&gt;AGE&lt;span class="w"&gt;   &lt;/span&gt;VERSION
orangepi5-max&lt;span class="w"&gt;     &lt;/span&gt;Ready&lt;span class="w"&gt;    &lt;/span&gt;control-plane,etcd&lt;span class="w"&gt;   &lt;/span&gt;25h&lt;span class="w"&gt;   &lt;/span&gt;v1.36.2+k3s1
raspberrypi-cm5&lt;span class="w"&gt;   &lt;/span&gt;Ready&lt;span class="w"&gt;    &lt;/span&gt;control-plane,etcd&lt;span class="w"&gt;   &lt;/span&gt;25h&lt;span class="w"&gt;   &lt;/span&gt;v1.36.2+k3s1
rpi5&lt;span class="w"&gt;              &lt;/span&gt;Ready&lt;span class="w"&gt;    &lt;/span&gt;control-plane,etcd&lt;span class="w"&gt;   &lt;/span&gt;25h&lt;span class="w"&gt;   &lt;/span&gt;v1.36.2+k3s1
&lt;/pre&gt;&lt;/div&gt;

&lt;h3&gt;The build servers that never slept&lt;/h3&gt;
&lt;p&gt;Here is what had actually been running on that Orange Pi, underneath the occasional language model: &lt;strong&gt;three virtual machines, on all the time, existing only to compile software.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I maintain two projects that care a great deal about running natively on the BSDs. It is not because there is a huge BSD following for these projects. In fact, there are probably no dedicated BSD users.  I do, however, have a soft spot for the BSDs.  For nearly two decades, &lt;a href="https://www.freebsd.org/"&gt;FreeBSD&lt;/a&gt; was my server operating system of choice. When I was into vintage hardware, like Sun Microsystems workstations from the 1990s, or the MicroVAX II I once owned, NetBSD was my preferred operating system. &lt;/p&gt;
&lt;p&gt;One of the projects is a small programming language and its compiler, written in C, that I like to ship as real binaries for FreeBSD, &lt;a href="https://www.openbsd.org/"&gt;OpenBSD&lt;/a&gt;, and &lt;a href="https://www.netbsd.org/"&gt;NetBSD&lt;/a&gt; rather than telling people to build it themselves. The other is a ballistics engine written in Rust with the same ambition. Cross-compiling to the BSDs from Linux is possible in theory and miserable in practice — you need each target's system libraries, its linker quirks, its idea of where things live — so the honest way to get a native FreeBSD Arm64 binary is to build it &lt;em&gt;on&lt;/em&gt; FreeBSD Arm64. The three VMs were exactly that: a FreeBSD guest, an OpenBSD guest, and a NetBSD guest, each an &lt;code&gt;aarch64&lt;/code&gt; machine running under QEMU with KVM acceleration, each holding a full toolchain, each reachable over SSH so a build script could push source in and pull a binary out.&lt;/p&gt;
&lt;p&gt;They worked. And they were awake twenty-four hours a day to be useful for the few minutes a week I actually cut a release. Three virtual machines, two gigabytes of RAM apiece, pinned CPU, humming along through the night so that occasionally a compiler could run. It's the same waste as the idle cluster, just wearing a more respectable coat: capacity committed to a workload that is almost never present.&lt;/p&gt;
&lt;p&gt;Once there was a cluster underneath them, the reshape was obvious. A build is a &lt;em&gt;job&lt;/em&gt; — it starts, it runs, it produces an artifact, it ends. That is precisely the shape Kubernetes was built around. The always-on VMs wanted to become on-demand Jobs: nothing running when there's nothing to build, and when a build is needed, a pod springs up, does the work on real cores, and disappears.&lt;/p&gt;
&lt;p&gt;The catch is the part that makes this a story instead of a paragraph. A Kubernetes Job runs a &lt;em&gt;Linux container&lt;/em&gt; — a process sharing the host's Linux kernel. You cannot boot a FreeBSD kernel, or an OpenBSD one, or a NetBSD one, inside an ordinary container; there is no BSD kernel there to boot. The real BSD environment lives in those VM disk images, and the only honest way to build on a BSD is to run the BSD. So the design that survived contact with reality was &lt;strong&gt;a VM inside the Job&lt;/strong&gt;: a privileged pod that mounts the host's &lt;code&gt;/dev/kvm&lt;/code&gt;, boots the golden BSD image with QEMU at native speed, waits for the guest's SSH to come up, runs the project's own build script over that SSH connection exactly as before, copies the finished binary out to a persistent volume, and powers the guest down. The VM didn't go away. It stopped being a thing that's always on and became a thing that exists for the length of one build.&lt;/p&gt;
&lt;h3&gt;The pile of small, specific lies&lt;/h3&gt;
&lt;p&gt;The plan was clean. The path from plan to working was paved with the kind of bugs that only appear when real hardware stops being polite, and I want to walk through them, because each one is a small lesson and together they are the whole texture of the job.&lt;/p&gt;
&lt;p&gt;The first was the most alarming and the most educational. I booted the FreeBSD image inside a pod, and QEMU came up spinning at four hundred percent CPU while the guest's console filled with &lt;strong&gt;synchronous exception&lt;/strong&gt; panics — the Arm equivalent of a program tripping over an instruction the processor won't execute. The image booted fine on the host directly. It crashed reliably inside the pod. The difference was the RK3588's defining feature and, here, its trap: it is a &lt;strong&gt;big.LITTLE&lt;/strong&gt; chip, four fast A76 cores and four efficient A55 cores, and they do not implement exactly the same instructions. QEMU was passing the host CPU straight through to the guest, and the Linux scheduler, seeing an unpinned QEMU thread, was free to migrate the virtual CPU from a big core to a little core mid-execution. The guest would start an instruction the A76 supports, get moved to an A55 that doesn't, and fall over. The host's own VM launch scripts had known this all along — they pinned QEMU with &lt;code&gt;taskset -c 4-7&lt;/code&gt;, confining it to the four A76 cores — and my pod hadn't. One &lt;code&gt;taskset&lt;/code&gt; and the synchronous exceptions vanished. The cluster's cleverest hardware feature was, for this workload, a thing to carefully switch off.&lt;/p&gt;
&lt;p&gt;The second bug was a quiet philosophical one. My plan referred throughout to the BSD disk images as "golden images" — static, pristine templates you overlay a scratch copy on top of and never mutate. When I went to make that scratch overlay, QEMU refused: the image was locked, held open read-write by another process. The other process was the always-on VM. &lt;strong&gt;The "golden image" was the live disk of the running build server&lt;/strong&gt; — not a template at all, but the working drive of a machine that was, at that moment, mid-thought. Overlaying a copy-on-write layer on a disk that's being written underneath you is not a snapshot; it's a data-corruption generator. And when I did force a copy, it failed its filesystem check on boot, because the source had been running for thirteen days without a clean shutdown and its dirty bit had never been cleared. The fix was to do the boring, correct thing I'd been skipping: cleanly shut each VM down, take a genuine point-in-time snapshot of the now-consistent disk into a real golden image, and restart the VM. The builds overlay &lt;em&gt;those&lt;/em&gt; — static, clean, never open by anything else. It cost a couple of minutes of downtime per guest and bought a foundation that isn't quietly rotting.&lt;/p&gt;
&lt;p&gt;Then the small, specific lies of virtual hardware. The first pod boot that got past the CPU pinning died instantly with QEMU complaining it couldn't find &lt;code&gt;efi-virtio.rom&lt;/code&gt; — a network-card boot ROM that isn't packaged in a slim container image. The host scripts, again, already knew: they set &lt;code&gt;romfile=&lt;/code&gt; empty on the virtual NIC, disabling the ROM the build doesn't need. Add that, and the guest booted further — and then OpenBSD, specifically, hung partway through, wedged on device probing. FreeBSD had sailed through the same configuration. The difference was &lt;code&gt;vectors=0&lt;/code&gt;, another flag the host scripts carried and mine didn't, which disables MSI-X interrupts on the virtual devices; OpenBSD's virtio drivers, under emulation, needed the older interrupt style to come up at all. FreeBSD tolerated the modern path. OpenBSD did not. The host's launch scripts, it turned out, were a compressed archive of exactly these lessons, learned once and encoded as flags I had to re-learn by leaving them out.&lt;/p&gt;
&lt;p&gt;The BSDs then taught me about their own disks. My build script staged source into the guest's home directory and immediately hit &lt;strong&gt;"No space left on device."&lt;/strong&gt; OpenBSD, by long tradition, slices its disk into many small partitions, and its root filesystem — where a naive home directory lives — was four hundred megabytes and already full. NetBSD does the same, with a root barely over a gigabyte. FreeBSD hands you one big root and doesn't care. So the builder learned to build where the space actually is: on OpenBSD, in &lt;code&gt;/usr/obj&lt;/code&gt;, the partition the system reserves for build output; on NetBSD, in &lt;code&gt;/usr/pkg&lt;/code&gt;, its roomy second disk. Rust made this worse before it made it better, because Cargo unpacks its entire crate registry into a cache under the home directory, and on NetBSD that cache alone overflowed the tiny root the instant a real dependency graph arrived. Pointing &lt;code&gt;CARGO_HOME&lt;/code&gt; at the big partition too, per guest, finally let a Rust project build on a NetBSD machine whose root filesystem couldn't have held its own dependencies.&lt;/p&gt;
&lt;p&gt;The last of them wasn't a build bug at all; it was a networking cleanup that turned into an accidental repair. NetBSD's VM, unlike its siblings, had been bridged directly onto my LAN, while FreeBSD and OpenBSD used QEMU's simpler user-mode networking. I wanted them consistent, so I converted NetBSD to user-mode too — and in restarting it discovered that the bridged setup would have failed on its very next boot regardless, because a QEMU package update had silently stripped the &lt;code&gt;CAP_NET_ADMIN&lt;/code&gt; capability off the bridge helper, the small privileged binary that lets an unprivileged VM attach to a bridge. The VM had been running for so long it hadn't been restarted since the update landed. The cleanup I wanted to do had been sitting on top of a latent failure I didn't know about, and converting away from bridging both simplified the design and defused a bomb.&lt;/p&gt;
&lt;p&gt;None of these were deep. Every one was a mundane mistake or a mundane environmental fact, wearing for an afternoon the costume of something profound. That is the entire pattern of this kind of work, and I've made peace with it: the exotic theory that flatters your understanding almost always sits on top of a boring cause that flatters nothing. &lt;code&gt;taskset&lt;/code&gt;. &lt;code&gt;romfile=&lt;/code&gt;. A partition that's full. A capability an update took away.&lt;/p&gt;
&lt;p&gt;When it was done, the payoff was concrete. A single command — &lt;code&gt;make bsd-build PROJECT=lattice OS=freebsd&lt;/code&gt; — now fetches the latest source straight from GitHub, boots the golden FreeBSD image in a pod on the Orange Pi, compiles the project inside it, and drops a genuine &lt;code&gt;aarch64&lt;/code&gt; FreeBSD executable back onto my workstation, stripped and ready. The same command builds for OpenBSD and NetBSD, for both projects, and a release variant does all of it and publishes. Six native BSD binaries, produced by boards that used to keep three virtual machines awake all night to do the same thing on demand for no one.&lt;/p&gt;
&lt;h3&gt;Naming the tenants&lt;/h3&gt;
&lt;p&gt;With the builds turned into jobs, the always-on VMs had no reason to exist. I stopped and disabled them — reversibly; the golden images remain, and a &lt;code&gt;systemctl&lt;/code&gt; away is the old world back — and the Orange Pi handed back roughly six gigabytes of RAM and its four A76 cores. Which returns us, neatly, to the theme this whole exercise keeps circling: reclaimed idle capacity is only worth reclaiming if you then &lt;em&gt;ask&lt;/em&gt; something of it.&lt;/p&gt;
&lt;p&gt;So here is the honest census of what actually runs on the cluster now — the jobs, named plainly.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;On-demand BSD binary builds&lt;/strong&gt; are the anchor tenant, the workload the whole thing was justified by: FreeBSD, OpenBSD, and NetBSD Arm64 binaries for the language compiler and the ballistics engine, each build a pod that boots a real BSD, compiles, and exits. Zero footprint between releases; real cores during them.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;A full observability stack&lt;/strong&gt; is the second tenant, and it exists partly because a cluster you can't see is a cluster you can't trust. It's the standard Prometheus-and-Grafana pairing, deployed the k3s-native way, with node exporters on every board reporting not just CPU and memory and disk but the thing that actually matters on fanless Arm boards crammed with NVMe: &lt;strong&gt;temperature&lt;/strong&gt;. SBCs throttle when they cook, and a build farm that silently halves its own clock speed under thermal load is a build farm that lies to you about why it's slow. Grafana lives at a name on my LAN — &lt;code&gt;grafana.localnet&lt;/code&gt;, resolved by an Unbound server on a little FreeBSD box that also runs my DNS — behind an ingress controller carefully arranged not to collide with the web page one of the Pis was already serving on port eighty. The stack pins its stateful pieces to the CM5, the node with the two-terabyte drive and the least else to do. The board that was holding its breath now holds the metrics.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Continuous fuzzing of the compiler&lt;/strong&gt; is the newest tenant, and the one that most makes me glad the cores were sitting there. The language project ships nine &lt;a href="https://llvm.org/docs/LibFuzzer.html"&gt;libFuzzer&lt;/a&gt; harnesses — for the compiler front-end, three different bytecode VMs, the lexer, the formatter, and the JSON, TOML, and YAML parsers — and a fuzzer is the most gluttonous, most embarrassingly-parallel workload I own. It will eat every idle cycle you're willing to feed it and ask for more, forever, and every cycle it eats is a cycle spent trying to crash your code before a user does. On a cluster whose defining problem was too many idle cores, that is a nearly perfect fit. Each target gets its own continuous pod, spread across the three boards, building itself from the latest source and grinding against a corpus that persists and compounds on the NVMe — the first of the nine are coming online as I write this. And the results go somewhere I'll actually see them: when a fuzzer finds a crash, a small watcher reproduces it, fingerprints it so the same bug doesn't file itself twice, and opens a &lt;strong&gt;Jira ticket&lt;/strong&gt; — the real bug tracker the project already uses — with the sanitizer backtrace and a base64 reproducer attached, tagged to the right component. Live throughput and coverage stream into the same Grafana the rest of the cluster reports to; a nightly job renders coverage as HTML behind that same ingress. Idle cores in; deduplicated, actionable bug reports out.&lt;/p&gt;
&lt;p&gt;And underneath all of it, still, the Orange Pi's NPU runs a local language model when I ask it to — the original tenant, never evicted, just no longer the only one. Kubernetes shares the boards with it rather than owning them outright, which is exactly the relationship a homelab wants: the cluster is a tenant of the hardware, not its landlord.&lt;/p&gt;
&lt;h3&gt;The capacity was always there&lt;/h3&gt;
&lt;p&gt;There's a version of this post that's a shopping list — buy these boards, run these commands, get a cluster. I don't think that's the true version. The commands were the easy part; they always are. The hard part was the pile of small specific lies the hardware tells when you finally push it, and the honest bookkeeping of what's really running versus what's merely installed.&lt;/p&gt;
&lt;p&gt;But the part I keep turning over isn't technical at all. It's that none of this required new hardware. Every core, every gigabyte, every terabyte of fast disk in this cluster was already sitting on my shelf, already powered, already mostly doing nothing. The Orange Pi was awake all night to compile software a few minutes a week. The CM5 was holding its breath. The utilization graph was a flat line near the floor, and I'd looked at it a hundred times without seeing it as a to-do item.&lt;/p&gt;
&lt;p&gt;What changed wasn't the machines. It was the question I asked them. Three boards that each did one small thing became a single system that builds native binaries for three operating systems, watches its own temperature, and fuzzes a compiler around the clock — and the only thing I added was the willingness to treat idle capacity as a debt worth collecting.&lt;/p&gt;
&lt;p&gt;The cluster was already there. It just hadn't been told yet.&lt;/p&gt;</description><category>aarch64</category><category>arm64</category><category>bsd</category><category>ci</category><category>cross-compilation</category><category>etcd</category><category>freebsd</category><category>fuzzing</category><category>grafana</category><category>ha</category><category>homelab</category><category>infrastructure</category><category>k3s</category><category>kubernetes</category><category>kvm</category><category>netbsd</category><category>npu</category><category>openbsd</category><category>orange pi</category><category>prometheus</category><category>qemu</category><category>raspberry pi</category><category>rk3588</category><guid>https://tinycomputers.io/posts/nothing-was-using-the-cores-three-idle-arm64-boards-one-ha-k3s-cluster.html</guid><pubDate>Sun, 05 Jul 2026 01:30:00 GMT</pubDate></item><item><title>The Driver Nobody Wrote: OpenBSD's ena(4) Works Now — and Can't Go Upstream</title><link>https://tinycomputers.io/posts/the-driver-nobody-wrote-openbsd-ena4-works-and-cant-go-upstream.html?utm_source=feed&amp;utm_medium=rss&amp;utm_campaign=rss</link><dc:creator>A.C. Jokela</dc:creator><description>&lt;div class="audio-widget"&gt;
&lt;div class="audio-widget-header"&gt;
&lt;span class="audio-widget-icon"&gt;🎧&lt;/span&gt;
&lt;span class="audio-widget-label"&gt;Listen to this article&lt;/span&gt;
&lt;/div&gt;
&lt;audio controls preload="metadata"&gt;
&lt;source src="https://tinycomputers.io/the-driver-nobody-wrote-openbsd-ena4-works-and-cant-go-upstream_tts.mp3" type="audio/mpeg"&gt;
&lt;/source&gt;&lt;/audio&gt;
&lt;div class="audio-widget-footer"&gt;33 min · AI-generated narration&lt;/div&gt;
&lt;/div&gt;

&lt;h2&gt;The Driver Nobody Wrote: OpenBSD's ena(4) Works Now — and Can't Go Upstream&lt;/h2&gt;
&lt;p&gt;A week ago I ended &lt;a href="https://tinycomputers.io/posts/the-doorbell-that-killed-the-device-an-ena-driver-for-openbsd-on-graviton.html"&gt;a post about writing OpenBSD's missing &lt;code&gt;ena(4)&lt;/code&gt; driver&lt;/a&gt; with a confession disguised as a list.&lt;/p&gt;
&lt;p&gt;The driver worked, I said, in the one sense that genuinely mattered — the ENA device protocol functioned, implemented from scratch, on real Graviton hardware, proven by the most boring fix in the file. And it did not work in nearly every other sense. So I wrote each of those senses down, because the exciting half of "it works" is forever trying to eat the honest half, and I wanted the honest half on the record. No userland DHCP — I'd driven the round-trip from a kernel thread, not from &lt;code&gt;ifconfig&lt;/code&gt;. No disk install — I was booting the install ramdisk out of RAM. Scaffolding everywhere — polling threads, a packet injector, a keep-alive timer I'd built for a problem that turned out not to exist. One DHCP exchange, which is not throughput, not stability, not the dozen edge cases a NIC driver owes the world. Not reviewed. Not submitted. Would not survive &lt;code&gt;tech@&lt;/code&gt;, nor should it.&lt;/p&gt;
&lt;p&gt;This is the post where I cross them off. Every one.&lt;/p&gt;
&lt;p&gt;And then I walk straight into the single wall that crossing them off can't move — a wall that has nothing to do with the code, and everything to do with who, or what, wrote it.&lt;/p&gt;
&lt;h3&gt;The list, crossed off&lt;/h3&gt;
&lt;p&gt;Start with the headline item, the one that would let me retire the ridiculous machine from &lt;a href="https://tinycomputers.io/posts/the-os-that-couldnt-see-the-network-native-openbsd-arm64-on-aws-graviton.html"&gt;the first post in this series&lt;/a&gt; — the bare-metal Graviton running OpenBSD as a QEMU guest behind a virtio shim, because OpenBSD couldn't see the real network card. The milestone was a normal OpenBSD instance: a real disk install, booting multiuser, with the ENA adapter as its &lt;em&gt;only&lt;/em&gt; network interface, that I could SSH into over that interface like any other server.&lt;/p&gt;
&lt;p&gt;That works now. There is an OpenBSD/arm64 instance on a Graviton2 that boots off an EBS volume, brings up &lt;code&gt;ena0&lt;/code&gt; from a DHCP lease, starts &lt;code&gt;sshd&lt;/code&gt;, and accepts my key over the wire. No shim. No emulation. No QEMU host underneath it pretending to be hardware. The kernel talks to Amazon's network card directly, because it finally has a driver that knows how.&lt;/p&gt;
&lt;p&gt;Getting there cost me one more bug of exactly the kind the last post was about — and I want to tell it quickly, because it rhymes.&lt;/p&gt;
&lt;p&gt;Once the driver could do RAM-disk DHCP, the disk install should have been a formality: partition the EBS volume, extract the sets, write a bootloader, reboot into a real system. It installed fine. It booted fine. And then, the instant it tried to send a packet from the installed system rather than the ramdisk, the device went into &lt;code&gt;FATAL_ERROR&lt;/code&gt; and took the interface down with it — reliably, every boot, a few hundred microseconds into the first real transmit.&lt;/p&gt;
&lt;p&gt;I had, by this point, learned the lesson the doorbell taught me, and I tried very hard to apply it: &lt;em&gt;look for the boring cause first&lt;/em&gt;. But the boring causes all checked out. The transmit ring was set up correctly. The descriptors were well-formed. The doorbell — the memory-mapped register write that tells the device "I've queued work for you," the same doorbell that named the last post — was firing at the right offset with the right value. I spent a day convinced it was a memory-barrier problem, the kind of thing that only shows up on real ARM with real out-of-order completion and never in emulation, because on the QEMU path the same code had been flawless.&lt;/p&gt;
&lt;p&gt;It was not a barrier. It was that I was submitting transmit descriptors to the device's submission queue &lt;em&gt;in a batch built for the low-latency LLQ path&lt;/em&gt; — the "low-latency queue" mode where you push packet headers directly into device memory — and the Graviton2 instance I was installing onto doesn't use LLQ. It uses the older host-memory path, where the device reads descriptors back out of host RAM, one at a time, and expects them submitted one at a time, each with its own doorbell, in a way the batched path violated. The device wasn't crashing on a subtle race. It was crashing because I was speaking the wrong dialect of its own protocol and it had no polite way to say so.&lt;/p&gt;
&lt;p&gt;The fix was to submit host-path descriptors per-descriptor, the way the device's own reference code does, the way the documentation says in a sentence I had read and not absorbed. One commit. The &lt;code&gt;FATAL&lt;/code&gt; vanished. The installed system transmitted, and kept transmitting, and I SSH'd into a native OpenBSD/arm64 box on AWS for the first time.&lt;/p&gt;
&lt;p&gt;That is the entire pattern of this project in one paragraph: an exotic theory that flatters your understanding, sitting on top of a mundane mistake that flatters nothing. I had a second helping of it on the disk side too — the NVMe driver OpenBSD uses for the EBS volume itself wouldn't create its I/O queues until I clamped a maximum-queue-size field the AWS device reports in a way the stock driver didn't expect. Another one-line fix for a thing that looked, for an afternoon, like it might be deep.&lt;/p&gt;
&lt;p&gt;So: disk install, done. SSH-in over &lt;code&gt;ena0&lt;/code&gt;, done. The QEMU shim from the first post is, as of this writing, retired — I can build native OpenBSD/arm64 binaries on a real OpenBSD/arm64 instance now, the way the platform's own users would, on a cloud the platform supposedly cannot run on.&lt;/p&gt;
&lt;p&gt;The scaffolding is gone too. The polling threads, the packet injector, the diagnostic &lt;code&gt;printf&lt;/code&gt;s, the keep-alive timer for the imaginary problem — all stripped out, the real fixes separated from the detritus, the tree readable. It is not the same artifact I described last time as "full of scaffolding, none of it belonging in code anyone else should read." It's a driver now, not a demo with a driver inside it.&lt;/p&gt;
&lt;h3&gt;Faster than it had any right to be&lt;/h3&gt;
&lt;p&gt;The last post's most embarrassing admission was the testing: &lt;em&gt;one DHCP round-trip is not throughput.&lt;/em&gt; So I went and got throughput, and then I went and got more of it than I expected.&lt;/p&gt;
&lt;p&gt;The first honest number was 684 megabits per second — a single queue, a single CPU, real TCP over the real device, measured rather than imagined. That was already a strange feeling, watching a number that meant the data path was not just &lt;em&gt;functional&lt;/em&gt; but &lt;em&gt;fast enough to be useful&lt;/em&gt;, on a driver I'd been afraid to claim could pass a single packet a week earlier.&lt;/p&gt;
&lt;p&gt;Then I built the parts a real NIC driver actually needs, the ones I'd listed as missing. Checksum offload, so the device computes and verifies IPv4/TCP/UDP checksums instead of the CPU — gated on the device advertising the feature, because not every ENA generation does. MTU control and jumbo frames. A watchdog that notices when the device has wedged and tears the data path down and brings it back up without a reboot. And then the big one: multiple queues.&lt;/p&gt;
&lt;p&gt;A modern NIC isn't one ring of packets; it's many, one per CPU, so that traffic for different flows lands on different cores and the whole machine scales instead of bottlenecking on a single interrupt. Wiring that up on OpenBSD/arm64 meant allocating per-queue interrupts through the ARM interrupt controller, pinning each queue to its own CPU, and — the part that took longest to get right — receive-side scaling, RSS, where the device itself hashes each incoming packet by its flow and steers it to the correct queue so that packet order within a flow is preserved while load spreads across cores.&lt;/p&gt;
&lt;p&gt;RSS is configured by handing the device a hash key and an indirection table: a little array that maps hash buckets to queues. I filled mine with what I was sure were the right queue identifiers, tested it, and got &lt;em&gt;intermittent&lt;/em&gt; connectivity — about nine successful connections out of fifteen, which is the worst possible result, because it means you're close enough to be wrong in a way that looks almost right. The indirection table, it turned out, doesn't want the queue's completion-ring index, which is what I'd put there. It wants the queue's &lt;em&gt;submission&lt;/em&gt;-ring index, a different number that happens to coincide on some devices and not others. Half my hash buckets were steering to a queue that wasn't listening. One field, the wrong index, surfacing only as a statistical haze of dropped connections. I changed it; twenty connections out of twenty succeeded, and the traffic spread cleanly across both cores.&lt;/p&gt;
&lt;p&gt;On a two-vCPU &lt;code&gt;t4g.medium&lt;/code&gt; — a deliberately small instance, because the point was to prove the mechanism, not to win a benchmark — the driver now moves &lt;strong&gt;3.16 gigabits per second&lt;/strong&gt;, balanced across both CPUs, with RSS steering flows to cores and each core fielding its own interrupts. That's not a line-rate claim on a big instance; it's a small machine using both of the hands it has. But it's a multi-queue, RSS-steered, checksum-offloaded network driver doing the actual job, and five weeks ago the honest claim was "one DHCP packet, from a kernel thread."&lt;/p&gt;
&lt;p&gt;There was one more thing I wanted, less a feature than a verdict. I'd written and tested everything against OpenBSD 7.9, the release. But OpenBSD's real life happens on &lt;em&gt;-current&lt;/em&gt;, the rolling development branch, and a driver that only works against one frozen release is a museum piece. So I built the whole thing against -current — and it compiled and ran with &lt;strong&gt;zero source changes&lt;/strong&gt;, full feature parity, multi-queue and RSS and all. The interfaces I was building against had held. That mattered more to me than the throughput number, because it meant the driver was written against OpenBSD as it actually is, not against a single snapshot I'd reverse-engineered my way into.&lt;/p&gt;
&lt;p&gt;By every measure I'd set for myself in that closing list, the driver was done. Which is precisely when I learned where it could not go.&lt;/p&gt;
&lt;h3&gt;The wall that isn't technical&lt;/h3&gt;
&lt;p&gt;Here is the thing I believed, quietly, the entire time I was writing this driver: that if I made it good enough — really good, idiomatic OpenBSD, clean &lt;code&gt;bus_dma&lt;/code&gt; and honest locking and no vendor-HAL slop, the kind of code that earns its place — there was a path, however narrow, to it going &lt;em&gt;upstream&lt;/em&gt;. To &lt;code&gt;ena(4)&lt;/code&gt; becoming part of OpenBSD, so that the next person who tries to boot OpenBSD on Graviton doesn't have to write what I wrote. That was never the &lt;em&gt;reason&lt;/em&gt; I did it — I did it because the gap was infuriating and the problem was beautiful — but it was the daydream underneath, the one that makes you clean up the scaffolding instead of leaving it.&lt;/p&gt;
&lt;p&gt;The daydream is dead, and it died for a reason I didn't see coming and can't really argue with.&lt;/p&gt;
&lt;p&gt;OpenBSD doesn't accept AI-generated code — not out of taste, but because code a model wrote has no human author, and with no author there's nothing to hold the copyright and nothing to license under the BSD/ISC terms the tree is built from. A provenance gate, not a quality one. Being good was never the question.&lt;/p&gt;
&lt;p&gt;And this driver is AI-assisted in a way I want to be precise about, because it isn't how my &lt;em&gt;other&lt;/em&gt; AI-assisted projects work. When I built &lt;a href="https://tinycomputers.io/posts/a-stack-based-bytecode-vm-for-lattice.html"&gt;Lattice&lt;/a&gt;, my programming language, or the ballistics engine that kicked off this whole Graviton saga, I was in the loop the entire time. The ideas were mine; I held the design in my head and used the model the way you use a sharp colleague — to think &lt;em&gt;through&lt;/em&gt;, to draft against, to argue with. Authorship was never in question, because I was the one making the decisions.&lt;/p&gt;
&lt;p&gt;The ena driver was not that. It was hands-off in a way I'd never tried: I pointed an agent at the problem, told it to run in a loop and build an ENA driver for OpenBSD, and let it go. &lt;em&gt;It&lt;/em&gt; decided what the driver needed. &lt;em&gt;It&lt;/em&gt; decided how to structure the attach path, the queues, the locking. &lt;em&gt;It&lt;/em&gt; decided when to read Linux's driver for intent, when FreeBSD's, when NetBSD's, when Amazon's &lt;code&gt;ena-com&lt;/code&gt;. I set the direction and the hard constraint — port from BSD-licensed sources, never copy the GPL Linux code — then read what came back and steered when it drifted. But I did not hold this driver in my head the way I held Lattice. For long stretches I was the reviewer of something being authored where I couldn't watch, by something making the decisions a driver's author makes.&lt;/p&gt;
&lt;p&gt;And I should be blunter than I was last time. In the Doorbell post I wrote that &lt;em&gt;I&lt;/em&gt; built the keep-alive timer and &lt;em&gt;I&lt;/em&gt; implemented the host-attributes handshake — &lt;em&gt;clean, correct code&lt;/em&gt;, I called it. The honest version is that an agent wrote both while I read along. I let the "I" stand because the project and the loop were mine, and they still are — but the decisions a driver's author makes were the agent's, and I'd rather say that plainly here than let the earlier "I" keep implying otherwise.&lt;/p&gt;
&lt;p&gt;Which is why, &lt;em&gt;here&lt;/em&gt;, the policy stops being abstract. With Lattice I can sign my name to every architectural choice and mean it. With this, the honest answer to "who decided that?" is, often, &lt;em&gt;the agent did.&lt;/em&gt; Machine-authored, human-directed — and &lt;em&gt;directed&lt;/em&gt; is not the same word as &lt;em&gt;wrote.&lt;/em&gt; I don't think OpenBSD is wrong to refuse it. I think it might be the cleanest example I have of exactly the thing they're refusing.&lt;/p&gt;
&lt;p&gt;So &lt;code&gt;ena(4)&lt;/code&gt; stays mine. An independent driver, openly AI-assisted, for people who want native OpenBSD on Graviton badly enough to point their kernel config at a tree that isn't the official one. The work-in-progress repo, now considerably less work-in-progress, is at &lt;a href="https://github.com/ajokela/openbsd-ena"&gt;github.com/ajokela/openbsd-ena&lt;/a&gt; — open for reading, open for building, open for forking, and closed, by its own nature, to the one destination I'd quietly been building it toward.&lt;/p&gt;
&lt;p&gt;There's a strange grief in that I didn't anticipate. Not for the work — the work is done and it runs. For the &lt;em&gt;commons&lt;/em&gt;. The natural arc of a thing like this is that you give it away into the shared pool so the next person inherits it, and the reward for doing it well is that it stops being yours and becomes everyone's. This one can't take that arc. It's good enough to belong to everyone and it will belong to no one, because the question "who wrote this?" no longer has an answer the commons can accept. The driver works. The driver has no author. Both of those are true, and the second one is the price of the first.&lt;/p&gt;
&lt;h3&gt;The gap I couldn't close&lt;/h3&gt;
&lt;p&gt;If I'm going to be honest about the wall, I have to be honest about the one place the &lt;em&gt;engineering&lt;/em&gt; didn't close either.&lt;/p&gt;
&lt;p&gt;Everything above is true on Graviton2 — the &lt;code&gt;t4g&lt;/code&gt; family, AWS's first ARM generation, the host-memory data path. On Graviton3 — the &lt;code&gt;c7g&lt;/code&gt; family, which uses the low-latency LLQ path and a newer revision of the virtual ENA device — the driver attaches, configures, brings up its admin queue, reads every device attribute, and then fails at the very first step of creating an I/O queue. The device rejects the &lt;code&gt;CREATE_CQ&lt;/code&gt; command — the request to make a completion ring — with an unhelpful status code, before a single packet has had the chance to flow.&lt;/p&gt;
&lt;p&gt;I spent a genuinely unreasonable amount of effort on this. I did the thing systematic debugging tells you to do when a system has multiple components and you can't see inside one of them: I went and instrumented the component that works. I booted Amazon's own Linux on a &lt;code&gt;c7g&lt;/code&gt; instance and traced its stock, vendor-blessed ENA driver with bpftrace — every admin command it sends, in order, with its exact arguments, from attach to first packet — so I'd have a known-good transcript to diff mine against.&lt;/p&gt;
&lt;p&gt;The transcript refuted, one by one, every theory I had. The bytes of my &lt;code&gt;CREATE_CQ&lt;/code&gt; command are identical to Linux's. The interrupt vector layout is identical — same number of MSI-X vectors, same assignment. The completion-descriptor size is identical. The order I create things in doesn't matter — I tried Linux's order exactly and the &lt;em&gt;first&lt;/em&gt; queue still fails, whichever kind it is, which means it's not an ordering bug but a missing prerequisite the device wants before it will make any queue at all. I thought I'd found it in the host-info block, the little structure where the driver tells the device about itself — Linux fills in capability flags I was leaving zero — so I filled them in. No change. I thought it was the RSS hash configuration Linux sets up before its queues; I read the device's own feature bitmap and found that this device, like the Graviton2 one, doesn't even &lt;em&gt;allow&lt;/em&gt; the host to set the hash function. Refuted by the device itself.&lt;/p&gt;
&lt;p&gt;Nine times I baked a kernel and booted it on real &lt;code&gt;c7g&lt;/code&gt; hardware to test a hypothesis, and nine times the device said no in the same flat way, and I never found the prerequisite it's waiting for. I have it narrowed to a short list of things Linux does before its first queue that I don't — a couple of feature &lt;em&gt;reads&lt;/em&gt; I skip, a second host-info push after negotiation — but "narrowed to a short list, each refuted or untested" is not "solved," and I'm not going to dress it up as solved. The driver runs beautifully on the previous ARM generation and stops at the threshold of the current one, and I wrote down exactly where the threshold is so that whoever picks this up next — me, on a better day, or someone who forks the tree — starts from a map instead of a mystery.&lt;/p&gt;
&lt;p&gt;That's the honest shape of it. A driver that's finished on the hardware it's finished on, and has a precisely-documented hole on the hardware it isn't.&lt;/p&gt;
&lt;h3&gt;The only OpenBSD in the cloud&lt;/h3&gt;
&lt;p&gt;I'll end where the practical and the strange meet.&lt;/p&gt;
&lt;p&gt;At some point, late, I got curious about what I'd actually built relative to what already existed — whether I'd spent two months reinventing something I could have launched in one click. So I searched. Every public Amazon Machine Image, across multiple regions, with "OpenBSD" anywhere in the name or description.&lt;/p&gt;
&lt;p&gt;There are none. Not one. Zero community images, zero in the AWS Marketplace, in every region I checked. The entire BSD presence in Amazon's marketplace is FreeBSD — dozens of official, well-maintained, &lt;em&gt;free&lt;/em&gt; images published by the FreeBSD Foundation, every release and architecture, ARM and x86, the way a first-class cloud citizen looks. OpenBSD isn't a paid option anyone's gouging for. It isn't an option at all. The only way to run OpenBSD on EC2 today is to build the image yourself, which is to say: to first solve the exact problem these three posts have been about.&lt;/p&gt;
&lt;p&gt;So I finished the job. I took the driver, baked it into a real OpenBSD/arm64 image, and made the image &lt;em&gt;self-configuring&lt;/em&gt; the way every cloud image is expected to be — it pulls your SSH key, its hostname, and an optional first-boot setup script from the instance metadata service, creates an unprivileged login user, regenerates its own host keys so every instance has a unique identity. OpenBSD doesn't ship the Linux cloud-init and never will; the community answer is a slim shell agent written years ago by an OpenBSD developer, and I wired it in. Launch the image with your own key pair, and you SSH in as a normal user thirty seconds later. It is, as far as I can tell, the only launch-and-go OpenBSD/arm64 image on AWS, because it's the only OpenBSD/arm64 image on AWS.&lt;/p&gt;
&lt;p&gt;Which leaves me holding a small, sharp irony. The most finished thing I've built in a while — a driver, a tuned data path, a clean image, a working cloud-init story, the genuinely-only-one-of-its-kind artifact — is the one that can't go where work like this is supposed to go. I could publish it as a public image tomorrow and be the sole OpenBSD on the entire platform. And I'd be publishing it the way I have to publish all of it: off to the side, in my own tree, under my own name, with a note that says &lt;em&gt;an AI helped write this and so it can never be yours, only borrowed.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The first post in this series put a translator between two systems that disagreed, so each could be right without meeting. The second taught one system to speak the other's language directly, register by register, and found the bug that mattered was the most boring one in the file. This one finishes that language — makes it fluent, fast, multi-queue, native, bootable, launchable — and discovers that fluency was never the thing standing between the work and its home. The doorbell rings. The device lives. The network is seen, on a cloud that couldn't see it a season ago.&lt;/p&gt;
&lt;p&gt;And the driver that makes it so has no author, and no home, and runs perfectly anyway.&lt;/p&gt;</description><category>aarch64</category><category>ai</category><category>arm64</category><category>aws</category><category>bsd</category><category>bus_dma</category><category>cloud-init</category><category>copyright</category><category>device drivers</category><category>ec2</category><category>ena</category><category>graviton</category><category>infrastructure</category><category>kernel</category><category>licensing</category><category>msi-x</category><category>multiprocessing</category><category>multiqueue</category><category>networking</category><category>openbsd</category><category>rss</category><guid>https://tinycomputers.io/posts/the-driver-nobody-wrote-openbsd-ena4-works-and-cant-go-upstream.html</guid><pubDate>Fri, 26 Jun 2026 23:30:00 GMT</pubDate></item><item><title>The Doorbell That Killed the Device: Writing OpenBSD's Missing ena(4) Driver</title><link>https://tinycomputers.io/posts/the-doorbell-that-killed-the-device-an-ena-driver-for-openbsd-on-graviton.html?utm_source=feed&amp;utm_medium=rss&amp;utm_campaign=rss</link><dc:creator>A.C. Jokela</dc:creator><description>&lt;div class="audio-widget"&gt;
&lt;div class="audio-widget-header"&gt;
&lt;span class="audio-widget-icon"&gt;🎧&lt;/span&gt;
&lt;span class="audio-widget-label"&gt;Listen to this article&lt;/span&gt;
&lt;/div&gt;
&lt;audio controls preload="metadata"&gt;
&lt;source src="https://tinycomputers.io/the-doorbell-that-killed-the-device-an-ena-driver-for-openbsd-on-graviton_tts.mp3" type="audio/mpeg"&gt;
&lt;/source&gt;&lt;/audio&gt;
&lt;div class="audio-widget-footer"&gt;33 min · AI-generated narration&lt;/div&gt;
&lt;/div&gt;

&lt;h2&gt;The Doorbell That Killed the Device: Writing OpenBSD's Missing ena(4) Driver&lt;/h2&gt;
&lt;p&gt;Earlier last week, I wrote about a problem with a clean, almost funny shape: OpenBSD's arm64 kernel has no driver for the network card AWS puts in every EC2 instance, so an OpenBSD/arm64 instance boots into a billable void it can never reach. The fix in that post was to stop asking — to run OpenBSD as a KVM guest inside QEMU on a bare-metal Graviton host, hand it virtio devices it already understands, and let a Linux host own the real Amazon adapter. Put a translator on the seam, and two systems that disagree about what a network card is can both be right.&lt;/p&gt;
&lt;p&gt;That solved the build-server problem. It did not solve the itch.&lt;/p&gt;
&lt;p&gt;Because the actual missing piece is small and specific and writable: the driver. Amazon's adapter is called the Elastic Network Adapter — &lt;code&gt;ena&lt;/code&gt; — and it's a documented device with a permissively licensed reference implementation. FreeBSD has an &lt;code&gt;ena&lt;/code&gt; driver. NetBSD has one. The protocol is published. OpenBSD just doesn't have the code, because effectively nobody runs OpenBSD as a first-class EC2 guest and so nobody wrote it. "Nobody wrote it" is not the same as "can't be written." So I decided to write it.&lt;/p&gt;
&lt;p&gt;This is the story of that — and, more than the previous post, it's a story about a specific kind of failure. The driver attached on the first serious try. Then the device started killing itself, silently, a few microseconds after every bring-up, and I spent the better part of two days proposing increasingly clever reasons why. The real reason turned out to be embarrassingly dull. And because I want this to be useful and not just triumphant, the last third of the post is about the word "working": what I can actually claim, and the uncomfortable distance between that and "done."&lt;/p&gt;
&lt;h3&gt;What an ENA driver has to do&lt;/h3&gt;
&lt;p&gt;A modern NIC isn't a thing you poke registers at to send a packet. It's a small message-passing computer that shares host memory with you: rings of descriptors in DMA memory, doorbell registers to announce new work, an interrupt path for completions. ENA has three kinds of queue, and all three matter to this story.&lt;/p&gt;
&lt;p&gt;The admin queue is how the host configures the device — a submission ring and a completion ring in shared memory. Write a command (read attributes, set a feature, create an IO queue), ring the admin doorbell, wait for a completion. OpenBSD's driver polls for that completion rather than taking an interrupt, which keeps bring-up simple.&lt;/p&gt;
&lt;p&gt;The AENQ — Asynchronous Event Notification Queue — is the device's back-channel: it announces link up/down and, critically, posts a keep-alive event about once a second. The keep-alive is a heartbeat; the host is expected to drain these and, by draining them, prove it's still paying attention.&lt;/p&gt;
&lt;p&gt;The IO queues are the actual network — a submission ring you fill with buffers, a completion ring the device writes back. You create them with admin commands (&lt;code&gt;CREATE_CQ&lt;/code&gt;, then &lt;code&gt;CREATE_SQ&lt;/code&gt;), and once they exist and the link is up, you can move traffic.&lt;/p&gt;
&lt;p&gt;Get all three right, in the right order, and the card works. Get the order subtly wrong and — as I'd learn — the card decides you're not a real driver and quietly bricks itself.&lt;/p&gt;
&lt;p&gt;The reference is Amazon's &lt;code&gt;ena-com&lt;/code&gt;, a hardware-abstraction layer shared across the Linux and FreeBSD drivers. Its BSD-licensed parts — &lt;code&gt;ena-com&lt;/code&gt; itself and FreeBSD's driver on top — are fair to read and port; the Linux driver is GPL, kept strictly read-only, a thing to consult for intent and never to copy. Writing the OpenBSD version means rewriting all of it in OpenBSD's idiom anyway — &lt;code&gt;bus_dma(9)&lt;/code&gt; for the rings, &lt;code&gt;pci(9)&lt;/code&gt; for attachment, &lt;code&gt;ifnet&lt;/code&gt;/&lt;code&gt;ifq&lt;/code&gt; for the stack. The protocol is the spec; the code is yours.&lt;/p&gt;
&lt;h3&gt;Phase zero: it attaches&lt;/h3&gt;
&lt;p&gt;The first milestone was just attachment, and it went well enough that I'd half-convinced myself the hard work was behind me. The driver resets the device, sets up the admin submission and completion rings, and issues commands. &lt;code&gt;GET_FEATURE(DEVICE_ATTRIBUTES)&lt;/code&gt; comes back with the real MAC and maximum MTU — proof the admin queue works end to end, DMA is coherent, the device is listening. The console prints the line I'd been chasing: &lt;code&gt;ena0 ... ENA ver 0.10 ... address 12:xx:xx:xx:xx:xx&lt;/code&gt;, on a real Graviton instance. The card was talking.&lt;/p&gt;
&lt;p&gt;And then, every single time, a few seconds later, it stopped talking. The first attempt to create an IO queue — &lt;code&gt;CREATE_CQ&lt;/code&gt;, the command that begins turning a configured device into a working network interface — would sit there and time out. No completion. No error. The admin queue that had just answered four commands flawlessly had gone silent.&lt;/p&gt;
&lt;p&gt;When I finally added code to read the device's status register at each step, the shape of it came into focus and got worse. &lt;code&gt;DEV_STS&lt;/code&gt; reads &lt;code&gt;0x1&lt;/code&gt; — ready — through reset, through the admin handshake, through reading device attributes. Then, somewhere shortly after, it reads &lt;code&gt;0x21&lt;/code&gt;. Bit five is set. &lt;code&gt;FATAL_ERROR&lt;/code&gt;. The device had, of its own accord, entered a fault state and was now refusing all further work. That's why &lt;code&gt;CREATE_CQ&lt;/code&gt; vanished: you can't drive a device that's already decided it's dead.&lt;/p&gt;
&lt;p&gt;A healthy card, healthy through every step I could see, that turns to stone the moment I look away. That's the wall.&lt;/p&gt;
&lt;h3&gt;Five wrong theories&lt;/h3&gt;
&lt;p&gt;Here is the part I'm telling on myself, because it's the honest center of the whole thing.&lt;/p&gt;
&lt;p&gt;When you don't know why a device faults, the device gives you almost nothing — a single bit that says "something is wrong" and not a syllable about what. So you reason from the reference code: what does the working driver do that mine doesn't? And the trouble with that question, on hardware this unfamiliar, is that it has too many plausible answers. Every difference between my driver and &lt;code&gt;ena-com&lt;/code&gt; looks like it could be the one that matters.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Theory one: the keep-alive watchdog.&lt;/strong&gt; The device sends heartbeats; the host must drain them; if the host stops, surely the device fences off the unresponsive driver and faults. My driver had no periodic task draining the AENQ — it relied on a single interrupt that, I could see, fired exactly once and went quiet. This was a beautiful theory. It explained the timing. It matched a real mechanism FreeBSD implements. I built a proper one-second timer to drain the queue, mirroring FreeBSD's &lt;code&gt;ena_timer_service&lt;/code&gt;, complete with a mutex to keep the timer and the interrupt from racing on a multi-core guest. It was clean, correct code. It fixed nothing. The device faulted on exactly the same schedule, and the diagnostic I'd added showed the AENQ had processed zero events — there was nothing to drain. I had carefully solved a problem that wasn't happening.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Theory two: the MMIO response region.&lt;/strong&gt; ENA has a "readless" register mode backed by a small DMA region; maybe the device faulted without it. I added it. It didn't help — and worse, I'd added it before I started reading the status register, so for an embarrassingly long time I was carrying an unvalidated change that could have been the cause itself. (It wasn't.)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Theory three: host attributes.&lt;/strong&gt; Both reference drivers register a 4 KB "host info" page right after admin init — &lt;code&gt;SET_FEATURE(HOST_ATTR_CONFIG)&lt;/code&gt;, a "yes, a real driver lives here" handshake. My driver skipped it. This had to be what the device validated before deciding I was legitimate. I implemented it properly. The status register read &lt;code&gt;0x1&lt;/code&gt; right after it succeeded — and faulted anyway, at the same point as always.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Theory four: a stale completion.&lt;/strong&gt; Maybe the admin queue was reading the wrong completion slot, so the feature data showing the device supporting zero AENQ event groups — a suspicious value — was garbage from an uninitialized ring. I instrumented the completion path down to the command IDs and phase bits. It was reading the right slot. The suspicious value was real.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Theory five: interrupt ordering.&lt;/strong&gt; I'd unmasked the device's interrupt after a particular doorbell write; the reference does it before. I swapped the order. The device faulted one line later than before, which felt like progress and was not.&lt;/p&gt;
&lt;p&gt;Somewhere in the middle I did what I increasingly do with a problem that has too many branches: I handed it to a fleet of AI agents, one per hypothesis, reading the reference trees in parallel, and had them synthesize a ranked root cause. The synthesis came back confident, specific, and wrong. What saved it was the same harness's adversarial step — three more agents told to refute the conclusion, and all three did, pointing out the timing didn't fit and the real anomaly was being hand-waved. The machine talked itself out of its own clever answer. That's the part worth remembering: not "the AI solved it," but "the AI proposed something plausible and the only thing that caught it was forcing a second pass that tried to tear it down."&lt;/p&gt;
&lt;p&gt;What none of the five theories were was boring enough.&lt;/p&gt;
&lt;h3&gt;The doorbell&lt;/h3&gt;
&lt;p&gt;I gave up on theories and did the dumb, mechanical thing I should have done first. I made the driver poll the status register in a tight loop after every single register write in the bring-up, printing the exact moment the fault bit flipped. Not "is it healthy at the end" — which write kills it.&lt;/p&gt;
&lt;p&gt;The answer came back in one line, and it was not ambiguous. Healthy after writing the queue's base address. Healthy after writing its size. Healthy after the feature commands. Then:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="n"&gt;STS&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;FATAL&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mh"&gt;0x21&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;post&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;AENQ_HEAD_DB&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;iter&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;The fault appears about 150 microseconds after one specific write: the AENQ head doorbell — the register that tells the device "I've made the event ring's slots available; the queue is live." Not the interrupt unmask, which I'd swapped order on. Not any feature command. The doorbell that activates the event queue. Ring it, and the device dies.&lt;/p&gt;
&lt;p&gt;The doorbell value was correct — I'd checked it against the reference a dozen times. The ring's address was correct. Its size was correct. So why would activating a correctly-configured queue kill a healthy device?&lt;/p&gt;
&lt;p&gt;Because the queue wasn't really configured. It only looked like it was.&lt;/p&gt;
&lt;h3&gt;The most boring possible cause&lt;/h3&gt;
&lt;p&gt;I lined my driver's bring-up sequence up against &lt;code&gt;ena-com&lt;/code&gt;'s, write for write, and the difference was finally visible because I now knew exactly which write to care about.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;ena-com&lt;/code&gt; registers the AENQ — writes its base address and size registers — inside &lt;code&gt;ena_com_admin_init&lt;/code&gt;, in the same breath as the admin submission and completion queues, before the device is ever told initialization is finished. All three rings get registered together, as one atomic-feeling handshake, while the device is still in its "setting up" phase.&lt;/p&gt;
&lt;p&gt;My driver registered the admin queues during admin init, exactly like the reference. But it registered the AENQ much later, in a separate function that ran after host attributes, after reading device attributes, after feature negotiation — long after the admin handshake had closed and the device considered itself up and running.&lt;/p&gt;
&lt;p&gt;And here's the thing: writing those AENQ registers late worked, in the sense that the device accepted the writes and stayed healthy. The register values landed. The status bit stayed green. Everything looked fine. The device had quietly noted the address and size of a ring it had never actually wired into its event subsystem, because that wiring only happens during the init handshake I'd already finished. The AENQ was a ghost: registered on paper, uninitialized in the device's mind.&lt;/p&gt;
&lt;p&gt;Then I rang the doorbell. "The event queue is live; start using it." The device went to use a subsystem that was never set up, and faulted. A hundred and fifty microseconds later, the bit flipped.&lt;/p&gt;
&lt;p&gt;The fix is four lines moved earlier. I pulled the AENQ registration out of its late function and into admin init, immediately after the admin queues, exactly where &lt;code&gt;ena-com&lt;/code&gt; does it. The later function kept only the parts that genuinely belong late — subscribing to event groups, and the final doorbell-and-unmask that says "go."&lt;/p&gt;
&lt;p&gt;I rebuilt, booted, and watched the status register stay &lt;code&gt;0x1&lt;/code&gt; straight through the doorbell. &lt;code&gt;CREATE_CQ&lt;/code&gt; succeeded. &lt;code&gt;CREATE_SQ&lt;/code&gt; succeeded. The link came up. The driver enqueued a hand-built DHCP DISCOVER, the device transmitted it, and a 590-byte IPv4 packet — the DHCP OFFER, a real reply from AWS's network — came back up the receive ring. Transmit and receive, on real silicon, for the first time.&lt;/p&gt;
&lt;p&gt;There was one more gift in the logs, the kind that tells you a fix is right and not just lucky. Remember theory four — the device reporting zero supported AENQ event groups, the value I'd half-dismissed as a possible misread? With the AENQ now registered during init, that same query on the same hardware came back reporting all the groups supported. The zero had never been a VF limitation or a misread. It was the device telling me, in the one channel it had, that its event subsystem wasn't initialized — because I hadn't initialized it yet. One root cause had been wearing five costumes. The watchdog that had nothing to drain, the missing handshake, the suspicious zero, the doorbell fault — all of it was the single fact that I'd set up a queue in the wrong order, refracted through a device that can only ever tell you "something is wrong."&lt;/p&gt;
&lt;p&gt;This is the same lesson the last post ended on, and I clearly didn't learn it hard enough the first time. Out here, far off the beaten path, every failure presents as exotic, because the strange explanation announces itself and the boring one doesn't. An out-of-disk error wears the costume of a dependency that won't compile. A queue initialized in the wrong order wears the costume of a keep-alive watchdog, a missing security handshake, and a device that lies about its capabilities. The further out you are, the more deliberately you have to rule out the dull thing first — and "I did the steps in the wrong order" is about as dull as it gets.&lt;/p&gt;
&lt;h3&gt;The loop that made it bearable&lt;/h3&gt;
&lt;p&gt;I have to mention the iteration speed, because for most of this saga it was the actual bottleneck, and fixing it is what turned a slog into something tractable.&lt;/p&gt;
&lt;p&gt;The previous post's build server bakes a disk image, snapshots it, registers an AMI, boots a real EC2 instance, and reads the serial console — about eighteen minutes a turn. That's fine for building a binary. It is agony for debugging a driver, where you want to change one line and see what the hardware does. Eighteen minutes times the number of wrong theories above is a number I'd rather not compute.&lt;/p&gt;
&lt;p&gt;So I built a faster loop, and it leans on the same bare-metal host the build server already needs. That &lt;code&gt;a1.metal&lt;/code&gt; host has a real ARM SMMU — the IOMMU that makes device passthrough safe — and Linux's VFIO framework can hand a physical PCI device straight to a QEMU guest. So I attached a second network interface to the metal instance, bound it to &lt;code&gt;vfio-pci&lt;/code&gt; on the Linux host (leaving the primary NIC alone, so I didn't saw off the SSH branch I was sitting on), and passed it through to the OpenBSD guest. Now the OpenBSD VM sees a real ENA device — actual Amazon silicon, vendor &lt;code&gt;1d0f&lt;/code&gt;, product &lt;code&gt;ec20&lt;/code&gt; — on its virtual PCI bus, and my driver attaches to that. No AMI bake. Build the kernel, reboot the guest, watch &lt;code&gt;ena0&lt;/code&gt; come up against real hardware. Two minutes a turn instead of eighteen.&lt;/p&gt;
&lt;p&gt;There was one gotcha worth writing down, because the error is opaque: VFIO refused with &lt;code&gt;failed to set iommu for container: Operation not permitted&lt;/code&gt;. ARM's SMMU here can't remap interrupts, so the kernel blocks passthrough by default — fixed with the module parameter &lt;code&gt;allow_unsafe_interrupts=1&lt;/code&gt;, entirely fine for a trusted device on a machine I own by the hour.&lt;/p&gt;
&lt;p&gt;That loop is also the honest reason the fix arrived when it did. The "poll after every write" instrumentation only became practical once I could run it and read it in two minutes. The clever theories flourished in the eighteen-minute dark; the boring method won the moment I could see in real time.&lt;/p&gt;
&lt;h3&gt;What "working" means&lt;/h3&gt;
&lt;p&gt;Here is where I have to be careful, because "I wrote a working ENA driver for OpenBSD" is a sentence that can mean five very different things, and only one of them is true today.&lt;/p&gt;
&lt;p&gt;What is true: on a real EC2 Graviton2 instance, an OpenBSD/arm64 kernel with my driver attaches to the real ENA adapter, completes the full bring-up — admin queue, host attributes, device attributes, AENQ, IO queue creation — brings the link up, transmits a packet the device really puts on the wire, and receives the reply. The send and receive paths through the driver are the real ones: the transmit path is the same &lt;code&gt;ifq&lt;/code&gt; enqueue the network stack uses, and the receive path is the same completion handler that would feed packets up to IP. A DHCP DISCOVER went out and an OFFER came back. The device protocol — the genuinely hard, genuinely undocumented-in-OpenBSD-idiom part — works, and it works on the production hardware, not just the passthrough rig.&lt;/p&gt;
&lt;div style="text-align: center; margin: 30px 0;"&gt;
&lt;img src="https://tinycomputers.io/images/ena_4_first_boot_success.png" alt="OpenBSD/arm64 console output on a Graviton2 EC2 instance showing the ena(4) driver successfully attaching to the real ENA adapter, completing device bring-up, and exchanging a DHCP DISCOVER and OFFER over the wire" style="max-width: 100%; border: 1px solid #ddd; border-radius: 8px;"&gt;
&lt;p style="color: #666; font-size: 12px; margin-top: 10px;"&gt;First boot. OpenBSD/arm64 on a real Graviton2 EC2 instance, ena(4) attached, link up, DHCP round-trip completed against the real device.&lt;/p&gt;
&lt;/div&gt;

&lt;p&gt;What is not yet true, and I want to be exact about each one:&lt;/p&gt;
&lt;p&gt;I drove that DHCP exchange from a kernel thread, not from userland. The test harness builds a DISCOVER packet in the kernel, hands it to the transmit ring, and watches the rings directly, because the minimal RAM-disk environment I'm booting doesn't have room for a real &lt;code&gt;dhclient&lt;/code&gt;. The packets and the ring mechanics are real; the thing wrapping them is a debug scaffold, not &lt;code&gt;ifconfig ena0 up; dhclient ena0; ping&lt;/code&gt;. I have not yet typed those three commands at a shell and watched them work. That's the next milestone, and until I've done it I won't claim the interface works "from userland," only that the driver's data paths do.&lt;/p&gt;
&lt;p&gt;I am booting the OpenBSD install ramdisk, &lt;code&gt;bsd.rd&lt;/code&gt;, which runs entirely from RAM. I have not done a full disk install and booted a persistent OpenBSD that comes up multiuser with &lt;code&gt;ena0&lt;/code&gt; as its only network interface and lets me SSH in over it. That — a normal OpenBSD instance you log into over the network it sees natively — is the milestone that would let me retire the QEMU-shim build server from the last post. I'm not there. I've proven the hard part is possible; I haven't assembled it into a system you'd actually run.&lt;/p&gt;
&lt;p&gt;The driver is full of scaffolding. The status-register polling, the packet-injection thread, a dozen diagnostic &lt;code&gt;printf&lt;/code&gt;s, the keep-alive timer I built for a problem that didn't exist — all still in the tree, behind a debug flag. None of it belongs in code anyone else should read. Before this is a contribution rather than a demo, that all comes out, the real fixes get separated from the detritus, and the whole thing gets the kind of review OpenBSD's tree rightly demands. It has had none of that. No OpenBSD developer has looked at a line of it. It is not submitted, not reviewed, and would not survive &lt;code&gt;tech@&lt;/code&gt; in its current state, nor should it. The work-in-progress tree, scaffolding and all, lives at &lt;a href="https://go.tinymachines.io/hbaP3u"&gt;github.com/ajokela/openbsd-ena&lt;/a&gt; — open for reading, not for trusting.&lt;/p&gt;
&lt;p&gt;And the testing is thin. One DHCP round-trip is not throughput, not stability under load, not days of uptime, not the dozen edge cases — checksum offload, multi-queue, MTU changes, link flaps — a NIC driver has to handle before anyone trusts it. I've shown the path is real. I have not shown it's robust.&lt;/p&gt;
&lt;p&gt;So: working in the sense that the central, doubted, genuinely difficult thing — does the device protocol function, correctly implemented from scratch, on real hardware — is now answered yes. Not working in the sense of something you'd deploy, or even the sense of something you'd &lt;code&gt;ifconfig&lt;/code&gt; by hand yet. Both halves of that sentence are true and I don't want the exciting half to eat the honest one.&lt;/p&gt;
&lt;h3&gt;What it was about, again&lt;/h3&gt;
&lt;p&gt;The last post put a translator between two systems that disagreed, so each could be right without meeting. This one is the opposite move: no shim, just teaching one system to speak the other's language directly — a driver doing the actual work of turning OpenBSD's idea of a network interface into ENA's, register by register and ring by ring.&lt;/p&gt;
&lt;p&gt;But the deeper rhyme isn't the architecture, it's the failure. Both times the headline problem had a one-sentence answer — "run it as a guest," "register the queue during init" — and both times that sentence was the easy part, with the real work in a gap where everything looked exotic and the truth was mundane. And both times the trap was the same: a plausible, faintly flattering, wrong explanation is far more available than the boring one underneath it — especially with a tireless machine happy to generate plausible explanations on demand. The machine is genuinely useful; it read three reference drivers in parallel and caught its own bad guess on the second pass. But it has no instinct for "you probably just did the steps out of order," because it has never spent an afternoon being humiliated by exactly that.&lt;/p&gt;
&lt;p&gt;What I have now is a driver that makes OpenBSD see the network on a cloud that, a month ago, OpenBSD couldn't see at all. It is not done. It is, for the first time, possible — proven on the hardware, by the most boring fix in the file. The doorbell rings, and the device lives.&lt;/p&gt;</description><category>aarch64</category><category>arm64</category><category>aws</category><category>bsd</category><category>device driver</category><category>dma</category><category>ec2</category><category>ena</category><category>ena-com</category><category>graviton</category><category>iommu</category><category>kernel</category><category>msi-x</category><category>networking</category><category>nic</category><category>openbsd</category><category>pci</category><category>smmu</category><category>vfio</category><guid>https://tinycomputers.io/posts/the-doorbell-that-killed-the-device-an-ena-driver-for-openbsd-on-graviton.html</guid><pubDate>Mon, 22 Jun 2026 01:30:00 GMT</pubDate></item><item><title>The OS That Couldn't See the Network: Native OpenBSD/arm64 Builds on AWS Graviton Metal</title><link>https://tinycomputers.io/posts/the-os-that-couldnt-see-the-network-native-openbsd-arm64-on-aws-graviton.html?utm_source=feed&amp;utm_medium=rss&amp;utm_campaign=rss</link><dc:creator>A.C. Jokela</dc:creator><description>&lt;div class="audio-widget"&gt;
&lt;div class="audio-widget-header"&gt;
&lt;span class="audio-widget-icon"&gt;🎧&lt;/span&gt;
&lt;span class="audio-widget-label"&gt;Listen to this article&lt;/span&gt;
&lt;/div&gt;
&lt;audio controls preload="metadata"&gt;
&lt;source src="https://tinycomputers.io/the-os-that-couldnt-see-the-network-native-openbsd-arm64-on-aws-graviton_tts.mp3" type="audio/mpeg"&gt;
&lt;/source&gt;&lt;/audio&gt;
&lt;div class="audio-widget-footer"&gt;32 min · AI-generated narration&lt;/div&gt;
&lt;/div&gt;

&lt;h2&gt;The OS That Couldn't See the Network: Native OpenBSD/arm64 Builds on AWS Graviton Metal&lt;/h2&gt;
&lt;p&gt;I have a Rust project — a ballistics engine — that ships binaries for an embarrassing number of platforms. Linux on x86 and ARM, Windows, FreeBSD, NetBSD, and, because someone always asks and because I like the discipline of it, OpenBSD. Most of those targets are easy: a build matrix, a cross-compiler, a Docker image with the right musl toolchain, and the artifacts fall out the other end. The BSDs are where the matrix stops being polite.&lt;/p&gt;
&lt;p&gt;For FreeBSD and NetBSD on arm64 I already had a clean answer: spin up a real Graviton instance, build natively, collect the binary, terminate the instance. A build costs a few cents and finishes in minutes, because the hardware is real ARM and there's no emulation tax. I'd written a little orchestrator for exactly this — launch, build, tear down — and it worked beautifully for two of the three BSDs.&lt;/p&gt;
&lt;p&gt;OpenBSD was the one that wouldn't fall in line. And the reason is so clean, so completely a consequence of what OpenBSD &lt;em&gt;is&lt;/em&gt;, that it took me a while to stop treating it as a bug to be worked around and start treating it as a fact to be designed around.&lt;/p&gt;
&lt;p&gt;This is the story of building native OpenBSD/arm64 binaries on a cloud that OpenBSD, in the most literal sense, cannot see.&lt;/p&gt;
&lt;h3&gt;Why native, and why that's suddenly hard&lt;/h3&gt;
&lt;p&gt;The honest first question is whether native builds matter at all. Couldn't I cross-compile OpenBSD/arm64 binaries from Linux and skip the whole circus?&lt;/p&gt;
&lt;p&gt;For a trivial program, maybe. For anything real, no. Cross-compiling to OpenBSD means reproducing its libc, its linker behavior, its system call conventions, and its packaging quirks in a toolchain that lives somewhere else — and then trusting that the binary you produced behaves the way a binary built &lt;em&gt;on&lt;/em&gt; OpenBSD would. The entire value of shipping an OpenBSD artifact is the claim "this was built and linked on the platform it runs on." A cross-compiled binary that mostly works is worse than no binary at all, because it fails in ways your users discover and you can't reproduce.&lt;/p&gt;
&lt;p&gt;So: native. Build it on OpenBSD/arm64, on real ARM silicon, the way the platform's own users would.&lt;/p&gt;
&lt;p&gt;The old way to get there was emulation — QEMU on an x86 host, software-emulating an ARM CPU. It works, and it's miserably slow: with no hardware virtualization to lean on, every guest instruction gets translated, and a four-minute build stretches to twenty-five. I did not want to go back.&lt;/p&gt;
&lt;p&gt;The new way was supposed to be the Graviton instance: real ARM cores, native speed, terminate when done. It works for FreeBSD. It works for NetBSD. And then you try it with OpenBSD and walk straight into the wall.&lt;/p&gt;
&lt;h3&gt;The wall: OpenBSD has no driver for AWS's network card&lt;/h3&gt;
&lt;p&gt;Here is the entire problem, and it is almost funny once you see it.&lt;/p&gt;
&lt;p&gt;Modern EC2 instances present their network to the guest through the &lt;strong&gt;Elastic Network Adapter&lt;/strong&gt; — &lt;code&gt;ena&lt;/code&gt;, a custom Amazon device with a custom driver. Every cloud-friendly OS ships that driver: Linux has it, FreeBSD has it, NetBSD's community AMIs have it. It is the thing that lets an instance have a network at all.&lt;/p&gt;
&lt;p&gt;OpenBSD's arm64 kernel does not have an &lt;code&gt;ena&lt;/code&gt; driver.&lt;/p&gt;
&lt;p&gt;This isn't an oversight, and it isn't a slight. OpenBSD is a small, fiercely curated tree. Drivers get in because someone runs the hardware, writes clean code, and maintains it — and effectively nobody runs OpenBSD as a first-class EC2 guest, so the driver for Amazon's proprietary NIC simply isn't there. The project doesn't chase cloud hardware the way a commercial OS does, and that restraint is a feature, not a failing. But it has a consequence: an OpenBSD/arm64 instance on EC2 boots, comes up, and finds &lt;strong&gt;no network interface it understands.&lt;/strong&gt; The NIC is right there on the PCI bus, and the kernel has nothing to bind to it.&lt;/p&gt;
&lt;p&gt;An EC2 instance you cannot reach over the network is not an instance. It's a billable void. There's no SSH, no console you can usefully drive, no way to hand it a build and get a binary back. The OS runs perfectly; it just can't talk to the one piece of hardware that makes a cloud instance a thing you can use.&lt;/p&gt;
&lt;p&gt;I sat with that for a bit. You can't add the driver from outside. You can't give OpenBSD a NIC it understands by configuring the instance differently, because AWS only offers &lt;code&gt;ena&lt;/code&gt;. The platform and the OS disagree about reality at the level of the network card, and neither one is going to move.&lt;/p&gt;
&lt;p&gt;So I stopped trying to make them agree.&lt;/p&gt;
&lt;h3&gt;Stop asking OpenBSD to talk to AWS&lt;/h3&gt;
&lt;p&gt;The move, once it arrived, was obvious in the way these things always are in retrospect: &lt;strong&gt;don't let OpenBSD touch the cloud's hardware at all.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Put a Linux host on the metal. Linux has the &lt;code&gt;ena&lt;/code&gt; driver; it brings the network up without complaint. Then run OpenBSD as a &lt;strong&gt;virtual machine inside that Linux host&lt;/strong&gt;, under QEMU with KVM acceleration — and hand the guest the kind of hardware OpenBSD &lt;em&gt;does&lt;/em&gt; understand: virtio. OpenBSD has had solid virtio drivers for years. It sees a &lt;code&gt;virtio&lt;/code&gt; network card and a &lt;code&gt;virtio&lt;/code&gt; disk and is perfectly happy, never knowing or caring that the physical NIC underneath is an Amazon device it couldn't have spoken to directly.&lt;/p&gt;
&lt;p&gt;The Linux host owns the &lt;code&gt;ena&lt;/code&gt; and the public IP. The OpenBSD guest lives behind it on a private virtual network, reachable through a port forward. The two layers each get hardware they recognize, and the impedance mismatch — the missing driver — simply stops mattering, because the only thing that ever talks to the &lt;code&gt;ena&lt;/code&gt; is Linux.&lt;/p&gt;
&lt;p&gt;It's the same shape as a hundred other infrastructure problems: when two layers can't agree, you don't force them, you put a translator between them. Here the translator is an entire hypervisor, and the thing being translated is the basic question of what a network card is.&lt;/p&gt;
&lt;p&gt;This also quietly solves the speed problem that made x86 emulation unbearable. Because the host is itself ARM, KVM can run the ARM guest at near-native speed — no instruction translation, just virtualization. OpenBSD/arm64 on an ARM host under KVM boots in seconds and builds at real-hardware pace. The thing that was slow about the old emulation approach was never "virtualization"; it was &lt;em&gt;cross-architecture&lt;/em&gt; emulation. Match the architectures and the tax disappears.&lt;/p&gt;
&lt;h3&gt;Why it has to be bare metal&lt;/h3&gt;
&lt;p&gt;There's a catch, and it's the reason this costs more than a few cents.&lt;/p&gt;
&lt;p&gt;KVM needs hardware virtualization extensions, and on AWS those are only exposed to the guest OS on &lt;strong&gt;bare-metal instances&lt;/strong&gt;. On an ordinary virtualized Graviton instance, the Nitro hypervisor already owns the CPU's virtualization layer; your kernel can't open &lt;code&gt;/dev/kvm&lt;/code&gt; because something else is already standing where KVM would stand. Try to accelerate QEMU on a normal instance and it silently falls back to the slow software path — right back to the emulation tax I was trying to escape.&lt;/p&gt;
&lt;p&gt;So the host has to be &lt;code&gt;.metal&lt;/code&gt;. The cheapest bare-metal Graviton AWS sells is &lt;code&gt;a1.metal&lt;/code&gt; — first-generation Graviton, sixteen Cortex-A72 cores, and, crucially, a real &lt;code&gt;/dev/kvm&lt;/code&gt; exposed to the host kernel. It's about forty-one cents an hour on demand. That's more than the few-cents-per-build the native FreeBSD path costs, but a build spins the instance up, runs, and terminates in fifteen or twenty minutes, so a release still costs well under a dollar.&lt;/p&gt;
&lt;p&gt;I picked Ubuntu for the Linux host — its QEMU and UEFI firmware packages are exactly what the recipe wants — pointed it at the right ARM AMI, and gave it a roomy root volume. The host comes up, &lt;code&gt;apt&lt;/code&gt; installs QEMU and the AAVMF UEFI firmware, and now I have an ARM machine with KVM, ready to boot an OpenBSD guest. That part was easy.&lt;/p&gt;
&lt;p&gt;The part that ate an afternoon was getting OpenBSD to actually &lt;em&gt;attach its own disks.&lt;/em&gt;&lt;/p&gt;
&lt;h3&gt;Two device-tree gotchas that ate an afternoon&lt;/h3&gt;
&lt;p&gt;QEMU's generic ARM machine type, &lt;code&gt;virt&lt;/code&gt;, gives you a clean, modern, device-tree-described board. You hand it virtio devices and it wires them up. I did the obvious thing — a virtio block device for the installer image, a virtio block device for the target disk, a virtio network device — booted, and watched the OpenBSD installer come up, reach the disk-selection step, and announce:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;Available disks are: none.
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;No disks. Also, quietly, no network interface. Both virtio devices were &lt;em&gt;there&lt;/em&gt; — UEFI had even booted the installer kernel off one of them — and yet the running OpenBSD kernel saw neither.&lt;/p&gt;
&lt;p&gt;The cause is a transport mismatch that's easy to miss. On the &lt;code&gt;virt&lt;/code&gt; machine, &lt;code&gt;virtio-blk-device&lt;/code&gt; and &lt;code&gt;virtio-net-device&lt;/code&gt; use the &lt;strong&gt;virtio-MMIO&lt;/strong&gt; transport — devices described in the device tree, sitting at fixed memory addresses. UEFI can boot from those. OpenBSD's arm64 kernel, it turns out, does not attach them. What it &lt;em&gt;does&lt;/em&gt; attach is &lt;strong&gt;virtio-PCI&lt;/strong&gt; — the same virtio devices presented as PCI devices on the PCIe controller the kernel already probes. Swap &lt;code&gt;virtio-blk-device&lt;/code&gt; for &lt;code&gt;virtio-blk-pci&lt;/code&gt; and &lt;code&gt;virtio-net-device&lt;/code&gt; for &lt;code&gt;virtio-net-pci&lt;/code&gt;, and suddenly the disks appear as &lt;code&gt;sd0&lt;/code&gt; and &lt;code&gt;sd1&lt;/code&gt; and the NIC as &lt;code&gt;vio0&lt;/code&gt;. One word per device, and the installer can see the world.&lt;/p&gt;
&lt;p&gt;That fixed the disks. The very next boot hung.&lt;/p&gt;
&lt;p&gt;Not crashed — &lt;em&gt;hung.&lt;/em&gt; The kernel probed all the devices, printed them, and then stopped cold, right before mounting its root filesystem. The host's load average sat at zero: the guest CPU wasn't spinning, it was blocked, waiting for something that was never going to come. The something was an interrupt.&lt;/p&gt;
&lt;p&gt;virtio-PCI devices default to MSI-X — message-signaled interrupts, delivered on ARM through the GIC's Interrupt Translation Service. On this first-generation Graviton host, under KVM, that MSI path doesn't deliver. The guest arms its interrupts, waits for the first one, and waits forever. The fix is to tell QEMU to give each virtio device zero MSI-X vectors, forcing it back to plain old pin-based (INTx) interrupts, which ride the GIC's distributor directly and work fine:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;-device virtio-blk-pci,drive=hd0,bootindex=1,vectors=0
-device virtio-net-pci,netdev=net0,vectors=0
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;With &lt;code&gt;vectors=0&lt;/code&gt; on every virtio device, the device line in the boot log changes from &lt;code&gt;msix&lt;/code&gt; to a plain &lt;code&gt;irq&lt;/code&gt;, the kernel gets its interrupt, mounts root, and reaches the installer prompt. Two one-line changes — the PCI transport and the disabled MSI-X — separated by an afternoon of staring at a boot that stopped in exactly the same place every time.&lt;/p&gt;
&lt;p&gt;Neither of these is in the friendly "run OpenBSD under QEMU" recipes you'll find, because those recipes assume a host where MSI-X works and where someone already knew to use the PCI transport. The combination of &lt;em&gt;this&lt;/em&gt; OS on &lt;em&gt;this&lt;/em&gt; generation of silicon under &lt;em&gt;this&lt;/em&gt; hypervisor is niche enough that you find the edges yourself.&lt;/p&gt;
&lt;h3&gt;Installing an OS through a serial straw&lt;/h3&gt;
&lt;p&gt;The &lt;code&gt;virt&lt;/code&gt; machine has no graphics — no VGA, no framebuffer worth the name. OpenBSD's installer comes up on the serial console, which QEMU helpfully wires to standard out. That's fine for a human at a keyboard. It's less fine when you're trying to make the whole thing repeatable, because the OpenBSD installer is a long, interactive conversation: hostname, network, disk, sets, passwords, two dozen prompts.&lt;/p&gt;
&lt;p&gt;OpenBSD has an answer for this — &lt;code&gt;autoinstall&lt;/code&gt;, where a response file answers every prompt and the install runs unattended. I tried it first, serving the response file over HTTP from the Linux host. It failed in an instructive way: QEMU's built-in user-mode network doesn't advertise an autoinstall server in its DHCP lease, and when the installer falls back to asking &lt;em&gt;where&lt;/em&gt; the response file is, it tries to fetch it before the guest's network is actually up. The fetch fails, autoinstall aborts, and you're dropped to a shell. The unattended path assumes a network environment QEMU's toy DHCP doesn't provide.&lt;/p&gt;
&lt;p&gt;So the install came down to driving the interactive program by hand — except I didn't drive it. I let Claude drive, programmatically: QEMU running inside a &lt;code&gt;tmux&lt;/code&gt; session, the agent feeding the serial console one answer at a time and reading the screen back between each step. It's a strange way to install an operating system — an AI typing into a virtual serial port through a terminal multiplexer over SSH — and it fumbled in telling ways. It stuffed answers ahead of the prompts and desynced, at one point confidently typing &lt;code&gt;vio0&lt;/code&gt; into the &lt;em&gt;DNS domain name&lt;/em&gt; field because it had guessed the question order and the installer disagreed; a mismatched password pair followed, and I watched it back out and resynchronize. Once it was reading each prompt instead of predicting it, the rest was deterministic, and it pulled the install sets straight off the installer image so the guest never needed working DNS at all. Whole-disk GPT, auto layout, sets from the local media, and a few minutes later: &lt;code&gt;CONGRATULATIONS! Your OpenBSD install has been successfully completed!&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Drop the installer image, reboot from the disk alone, and the installed system comes up on its own — generates its host keys, starts &lt;code&gt;sshd&lt;/code&gt;, reaches a login prompt. &lt;code&gt;uname&lt;/code&gt; confirms it: OpenBSD 7.9, arm64, on a "QEMU KVM Virtual Machine." A real, persistent OpenBSD/arm64 system, running on a cloud that can't host it directly.&lt;/p&gt;
&lt;h3&gt;Making it ephemeral: the golden image and the one-button build&lt;/h3&gt;
&lt;p&gt;A hand-installed VM is a proof of concept, not a build server. The point was always to make this &lt;em&gt;disappear into a command&lt;/em&gt; — spin the whole stack up, build, collect the artifact, spin it down, and pay pennies.&lt;/p&gt;
&lt;p&gt;So I did the slow part exactly once. I took that freshly installed guest, added the toolchain a build needs — git, the Rust compiler — and a build key whose public half lives in the image's &lt;code&gt;authorized_keys&lt;/code&gt;. Then I shut it down cleanly and compressed the disk: a 20 GB virtual volume holding maybe two gigs of real data squeezed down to an 832 MB qcow2. That &lt;strong&gt;golden image&lt;/strong&gt; went into S3, in the same region as the metal hosts, so pulling it back down is fast and free.&lt;/p&gt;
&lt;p&gt;Around it I wrote an orchestrator — the OpenBSD sibling of the FreeBSD/NetBSD tool I already had. One command does the whole dance: launch an &lt;code&gt;a1.metal&lt;/code&gt;, wait for it, install QEMU, pull the golden image from S3 through a presigned URL (so the host needs no AWS credentials of its own), boot the OpenBSD guest with the exact virtio-PCI-and-&lt;code&gt;vectors=0&lt;/code&gt; incantation the afternoon taught me, and wait for the guest's SSH to answer. The guest is reachable only through a port forward on the host, so the orchestrator jumps through the host to reach it — the build key never leaves my laptop, and no extra port is ever opened to the world. Then it pipes the build into the guest, runs it natively, copies the binary back out, checksums it, and — in a &lt;code&gt;finally&lt;/code&gt; block, so it happens whether the build succeeds, fails, or throws — &lt;strong&gt;terminates the metal host.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Spin up, build, collect, spin down. The instance exists for the length of one build and then it's gone, and the bill is loose change.&lt;/p&gt;
&lt;h3&gt;The last wall: the build that wouldn't build&lt;/h3&gt;
&lt;p&gt;I ran the orchestrator end to end, and it was beautiful right up until the part that mattered. It launched the host, pulled the image, booted OpenBSD, SSH'd in, started the build — and the build died compiling a TLS library, deep in my engine's dependency tree.&lt;/p&gt;
&lt;p&gt;I knew exactly what it was. Or I thought I did. My ballistics engine has an optional "online" feature, on by default, that pulls in an HTTP client and with it a whole TLS stack — &lt;code&gt;rustls&lt;/code&gt;, the &lt;code&gt;ring&lt;/code&gt; crypto backend, the works. Of course &lt;em&gt;that&lt;/em&gt; was the thing that wouldn't build on an OS this far off the beaten path. I turned the feature off, the build went green, and I jotted down a tidy little lesson about exotic platforms and the liabilities of convenient defaults.&lt;/p&gt;
&lt;p&gt;The lesson was wrong, and I found out a few hours later. The release binary that already ships for this exact platform has that entire TLS stack compiled into it — &lt;code&gt;rustls&lt;/code&gt; builds on OpenBSD/arm64 perfectly well. So that was never the wall. The real wall was disk. OpenBSD's installer auto-layout splits the disk into a fistful of small partitions, and the build was running in &lt;code&gt;/tmp&lt;/code&gt; — about a gigabyte. A Rust release &lt;code&gt;target/&lt;/code&gt; directory does not fit in a gigabyte, and &lt;code&gt;rustls&lt;/code&gt; happens to be a large crate, so the partition filled mid-compile and the compiler fell over with an error that &lt;em&gt;looked&lt;/em&gt; like a code problem. Turning off the feature "fixed" it only because a leaner build squeaked under the limit. The actual fix was one line — build in &lt;code&gt;/usr/obj&lt;/code&gt;, the roomy partition OpenBSD hands you for exactly this — and with room to work, the full build, TLS and all, finishes fine.&lt;/p&gt;
&lt;p&gt;Here's the part that stings, and the reason I'm telling it on myself. I am not new to this. I've dabbled in the BSDs for a long time — FreeBSD was my daily driver in the early 2000s — and I know OpenBSD well enough that its installer holds no surprises; it has barely changed in twenty years. "OpenBSD carves the disk into small partitions and you do your building in &lt;code&gt;/usr/obj&lt;/code&gt;" is not arcana to me, it's reflex. A version of me at the keyboard would have read &lt;em&gt;compiler died, OpenBSD, &lt;code&gt;/tmp&lt;/code&gt;&lt;/em&gt; and smelled &lt;strong&gt;out of disk&lt;/strong&gt; before finishing the line. But I wasn't at the keyboard — I'd handed it to the same agent that, a few screens earlier, had typed &lt;code&gt;vio0&lt;/code&gt; into the DNS field. An agent has read about OpenBSD without ever once running out of disk on it, so it had no instinct for the boring failure. It reached instead for the exotic one sitting right there in the dependency graph — the explanation that was plausible, pre-loaded, and a little flattering, because if the crypto stack won't compile you're wrestling something genuinely hard, rather than something you'd have caught in 2003.&lt;/p&gt;
&lt;p&gt;And that is the trap worth naming, sharper than "niche platforms are hard." On an unfamiliar system every failure &lt;em&gt;presents&lt;/em&gt; as exotic; the strange explanation announces itself and the mundane one doesn't. &lt;strong&gt;The further off the beaten path you are, the more deliberately you have to rule out the boring thing first — because out here everything wears the platform's costume, and an out-of-disk error in a one-gigabyte &lt;code&gt;/tmp&lt;/code&gt; looks exactly like a dependency that can't be built, right up until someone who's been burned before tells you it's just disk.&lt;/strong&gt;&lt;/p&gt;
&lt;h3&gt;What it actually was about&lt;/h3&gt;
&lt;p&gt;Step back and the whole project rhymes with a pattern I keep meeting. The headline problem — "build OpenBSD/arm64 binaries on AWS" — has a one-sentence answer once you have it: run OpenBSD as a KVM guest on a bare-metal Graviton host. That sentence is the &lt;em&gt;easy&lt;/em&gt; part. Everything real lived in the gap between two systems that were each, on their own terms, completely correct.&lt;/p&gt;
&lt;p&gt;OpenBSD is correct to omit a driver for hardware almost none of its users run; its restraint is exactly why it's OpenBSD. AWS is correct to present its network through a custom adapter built for the scale it operates at. Neither is wrong. They simply grew up with no expectation of meeting, and the moment you ask them to share a machine, every quiet assumption each one made surfaces at once — the missing driver, the MMIO-versus-PCI transport, the MSI-X interrupts that don't land on first-gen silicon, the DHCP lease that doesn't carry what the installer hoped, the cramped &lt;code&gt;/tmp&lt;/code&gt; masquerading as a dependency that wouldn't compile.&lt;/p&gt;
&lt;p&gt;The hypervisor in the middle isn't really there to virtualize a CPU. It's there to be the place where two designs that disagree about what hardware &lt;em&gt;is&lt;/em&gt; can both be right at the same time. OpenBSD gets virtio and is happy. AWS gets &lt;code&gt;ena&lt;/code&gt; and is happy. The seam between them holds because something whose entire job is to translate sits exactly on it.&lt;/p&gt;
&lt;p&gt;And the build server that came out the other end is genuinely good: a single command that conjures an ARM machine, runs a native OpenBSD build at full speed, and dissolves the machine when it's done, for the price of a vending-machine snack. The operating system that couldn't see the network now turns out release binaries on the very cloud it can't directly run on — because at no point does anyone ask it to see the network. That was never going to work. The trick was to stop asking.&lt;/p&gt;</description><category>aarch64</category><category>arm64</category><category>aws</category><category>bare metal</category><category>bsd</category><category>build server</category><category>ci</category><category>cross-compilation</category><category>ec2</category><category>graviton</category><category>infrastructure</category><category>kvm</category><category>openbsd</category><category>qemu</category><category>rust</category><category>uefi</category><category>virtio</category><category>virtualization</category><guid>https://tinycomputers.io/posts/the-os-that-couldnt-see-the-network-native-openbsd-arm64-on-aws-graviton.html</guid><pubDate>Thu, 18 Jun 2026 19:45:00 GMT</pubDate></item><item><title>The Tunnel Was the Easy Part: Site-to-Site WireGuard Between My House and a VPC</title><link>https://tinycomputers.io/posts/the-tunnel-was-the-easy-part-site-to-site-wireguard-home-to-vpc.html?utm_source=feed&amp;utm_medium=rss&amp;utm_campaign=rss</link><dc:creator>A.C. Jokela</dc:creator><description>&lt;div class="audio-widget"&gt;
&lt;div class="audio-widget-header"&gt;
&lt;span class="audio-widget-icon"&gt;🎧&lt;/span&gt;
&lt;span class="audio-widget-label"&gt;Listen to this article&lt;/span&gt;
&lt;/div&gt;
&lt;audio controls preload="metadata"&gt;
&lt;source src="https://tinycomputers.io/the-tunnel-was-the-easy-part-site-to-site-wireguard-home-to-vpc_tts.mp3" type="audio/mpeg"&gt;
&lt;/source&gt;&lt;/audio&gt;
&lt;div class="audio-widget-footer"&gt;26 min · AI-generated narration&lt;/div&gt;
&lt;/div&gt;

&lt;h2&gt;The Tunnel Was the Easy Part: Site-to-Site WireGuard Between My House and a VPC&lt;/h2&gt;
&lt;p&gt;For about three years, a PostgreSQL database that runs dozens of projects — portfolio data, home-automation history, a dozen scraped feeds — had its port 5432 listening on the public internet. Not wide open: it sat behind a long password and TLS, the rest of the host was hardened, and nothing had ever gone wrong. But "open to the internet behind a password" is the kind of sentence that sounds fine right up until it doesn't, and I'd been meaning to fix it for months.&lt;/p&gt;
&lt;p&gt;The fix I wanted wasn't a bastion host, and it wasn't a clutch of &lt;code&gt;/32&lt;/code&gt; firewall exceptions I'd have to update every time my home IP changed. I wanted the database to simply &lt;em&gt;not be reachable&lt;/em&gt; from the public internet — and to reach it anyway, from my house, as if the AWS VPC it lives in were just another room in the building.&lt;/p&gt;
&lt;p&gt;That's a site-to-site VPN. And the moment you say "VPN" in 2026 you mean &lt;a href="https://www.wireguard.com/"&gt;WireGuard&lt;/a&gt;, because the alternatives — IPsec, OpenVPN — are heavier, slower, and far more painful to reason about. WireGuard is a few thousand lines of kernel code, a dozen lines of config per side, and a security model you can hold in your head: every peer is a public key, and a packet is either from a key you trust or it's dropped.&lt;/p&gt;
&lt;p&gt;So I expected the WireGuard part to be the work. It wasn't. The WireGuard part took about fifteen minutes and came up on the first handshake. The other day and a half went to an IP-address collision I'd created years earlier, a load-balancing router that kept quietly breaking the tunnel's return path, and the slow realization that &lt;strong&gt;a VPN doesn't connect two networks so much as force you to confront every assumption each of them made while pretending the other didn't exist.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;As an aside, my last dabbling with VPNs and such was during my FreeBSD phase in the early 2000s.  To be more precise, February of 2005.  I had an article published in &lt;a href="https://web.archive.org/web/20050718081300/http://ezine.daemonnews.org/200502/ipsec.html"&gt;Daemon News&lt;/a&gt; on using Racoon and X.509 certificates for IPSEC.&lt;/p&gt;
&lt;p&gt;This is the story of the parts that weren't WireGuard.&lt;/p&gt;
&lt;h3&gt;The shape of the thing&lt;/h3&gt;
&lt;p&gt;Two networks. At home, a flat &lt;code&gt;10.1.1.0/24&lt;/code&gt; LAN behind a MikroTik router — laptops, a large handful of Linux hosts, a few BSD hosts, the usual home-lab sprawl. In the cloud, an AWS VPC on &lt;code&gt;10.0.0.0/16&lt;/code&gt; with the database sitting on a private address, &lt;code&gt;10.0.0.76&lt;/code&gt;, that I'd very much like to be the &lt;em&gt;only&lt;/em&gt; way to reach it.&lt;/p&gt;
&lt;p&gt;The naive instinct is to put WireGuard directly on the database host. Don't. The endpoint that terminates a site-to-site tunnel becomes a router — it forwards packets for an entire subnet, runs &lt;code&gt;ip_forward&lt;/code&gt;, owns firewall and NAT rules — and you do not want that responsibility tangled up with your most important stateful service. Give it its own box.&lt;/p&gt;
&lt;p&gt;So the tunnel terminates on a dedicated &lt;strong&gt;gateway instance&lt;/strong&gt;: a &lt;code&gt;t4g.nano&lt;/code&gt; (the smallest Graviton box AWS sells, a few dollars a month, comfortably inside the free tier) with an Elastic IP so the home side always has a fixed address to dial, and — critically — with its EC2 &lt;strong&gt;source/destination check disabled&lt;/strong&gt;, because by default AWS drops any packet whose source or destination isn't the instance itself. A router's entire job is to handle packets addressed to &lt;em&gt;other&lt;/em&gt; machines; leave that check on and the gateway silently swallows everything it's supposed to forward.&lt;/p&gt;
&lt;p&gt;The home end of the tunnel lives on one of my always-on Linux boxes. It dials out — the house is behind NAT and a dynamic-ish IP, so it can't be dialed &lt;em&gt;into&lt;/em&gt; — and the AWS gateway, with its stable Elastic IP, waits to be reached.&lt;/p&gt;
&lt;p&gt;Between them I gave the tunnel its own little address space, a &lt;code&gt;/30&lt;/code&gt; carved out of a range that exists nowhere else in either network: &lt;code&gt;10.99.99.0/30&lt;/code&gt;. The gateway is &lt;code&gt;10.99.99.1&lt;/code&gt;, the house is &lt;code&gt;10.99.99.2&lt;/code&gt;. That deliberate, unused &lt;code&gt;/30&lt;/code&gt; turns out to matter enormously, for reasons that won't be obvious until the routing breaks. Hold onto it.&lt;/p&gt;
&lt;h3&gt;WireGuard, the easy twenty percent&lt;/h3&gt;
&lt;p&gt;Here is essentially the entire VPN. On the AWS gateway:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="k"&gt;[Interface]&lt;/span&gt;
&lt;span class="na"&gt;Address&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;10.99.99.1/30&lt;/span&gt;
&lt;span class="na"&gt;ListenPort&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;51820&lt;/span&gt;
&lt;span class="na"&gt;PrivateKey&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;lt;gateway private key&amp;gt;&lt;/span&gt;
&lt;span class="na"&gt;PostUp&lt;/span&gt;&lt;span class="w"&gt;   &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;iptables -A FORWARD -i wg0 -j ACCEPT&lt;/span&gt;&lt;span class="c1"&gt;; iptables -A FORWARD -o wg0 -j ACCEPT&lt;/span&gt;
&lt;span class="na"&gt;PostDown&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;iptables -D FORWARD -i wg0 -j ACCEPT&lt;/span&gt;&lt;span class="c1"&gt;; iptables -D FORWARD -o wg0 -j ACCEPT&lt;/span&gt;

&lt;span class="k"&gt;[Peer]&lt;/span&gt;
&lt;span class="c1"&gt;# the house&lt;/span&gt;
&lt;span class="na"&gt;PublicKey&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;lt;home public key&amp;gt;&lt;/span&gt;
&lt;span class="na"&gt;AllowedIPs&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;10.99.99.2/32&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;And on the home box:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="k"&gt;[Interface]&lt;/span&gt;
&lt;span class="na"&gt;Address&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;10.99.99.2/30&lt;/span&gt;
&lt;span class="na"&gt;PrivateKey&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;lt;home private key&amp;gt;&lt;/span&gt;
&lt;span class="na"&gt;PostUp&lt;/span&gt;&lt;span class="w"&gt;   &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;iptables -t nat -A POSTROUTING -o wg0 -j MASQUERADE&lt;/span&gt;
&lt;span class="na"&gt;PostDown&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;iptables -t nat -D POSTROUTING -o wg0 -j MASQUERADE&lt;/span&gt;

&lt;span class="k"&gt;[Peer]&lt;/span&gt;
&lt;span class="c1"&gt;# the AWS gateway&lt;/span&gt;
&lt;span class="na"&gt;PublicKey&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;lt;gateway public key&amp;gt;&lt;/span&gt;
&lt;span class="na"&gt;Endpoint&lt;/span&gt;&lt;span class="w"&gt;   &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;203.0.113.10:51820&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="c1"&gt;# the gateway's Elastic IP&lt;/span&gt;
&lt;span class="na"&gt;AllowedIPs&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;10.0.0.0/16, 10.99.99.1/32&lt;/span&gt;
&lt;span class="na"&gt;PersistentKeepalive&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;25&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;&lt;code&gt;wg-quick up wg0&lt;/code&gt; on each end — or &lt;code&gt;systemctl enable --now wg-quick@wg0&lt;/code&gt; to make it survive reboots — and within a second or two &lt;code&gt;wg show&lt;/code&gt; reports a handshake. Ping &lt;code&gt;10.99.99.1&lt;/code&gt; from the house; it answers. The cryptographic part, the part everyone is nervous about, is done.&lt;/p&gt;
&lt;p&gt;Two fields carry almost all the meaning. &lt;strong&gt;&lt;code&gt;AllowedIPs&lt;/code&gt; is doing double duty&lt;/strong&gt; — it's both an access-control list (packets arriving from this peer are only accepted if their source falls inside it) and a routing table (packets you send to those destinations get encrypted and shipped to this peer). On the home side I list &lt;code&gt;10.0.0.0/16&lt;/code&gt; because that's the VPC I want to reach; that single line installs a route sending all VPC-bound traffic into the tunnel. &lt;strong&gt;&lt;code&gt;PersistentKeepalive = 25&lt;/code&gt;&lt;/strong&gt; is on the home side only, and it's there because the house initiates from behind NAT: without a packet every 25 seconds, the NAT mapping that lets return traffic find its way home expires, and the tunnel goes deaf until the next outbound packet wakes it. The side with the stable public address doesn't need it; the side hiding behind NAT does.&lt;/p&gt;
&lt;p&gt;That's the whole VPN. If your two networks were sensibly addressed and your path were clean, you would be done, and this would be a very short post.&lt;/p&gt;
&lt;h3&gt;The first wall: you can't route to your own house&lt;/h3&gt;
&lt;p&gt;The tunnel was up, but a tunnel is just a wire. For a machine &lt;em&gt;inside&lt;/em&gt; the VPC to send a reply back to my house, the VPC has to know that house-bound packets go to the gateway instance. That's a route-table entry: destination &lt;code&gt;10.1.1.0/24&lt;/code&gt; (my home LAN), target the gateway's network interface. I added it.&lt;/p&gt;
&lt;p&gt;AWS rejected it:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;Route destination doesn't match any subnet CIDR blocks
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;It took me an embarrassing minute to understand, and then a much longer one to forgive my past self. Years ago, for reasons that made sense at the time and that I have completely forgotten, I had given this VPC a &lt;em&gt;secondary&lt;/em&gt; CIDR block of &lt;code&gt;10.1.0.0/16&lt;/code&gt;. My home LAN, &lt;code&gt;10.1.1.0/24&lt;/code&gt;, lives entirely inside that &lt;code&gt;/16&lt;/code&gt;. As far as the VPC is concerned, &lt;code&gt;10.1.1.0/24&lt;/code&gt; is &lt;strong&gt;local&lt;/strong&gt; — it's part of the VPC's own address space — and AWS will not let you install a route that's more specific than a local one. You cannot route to a place the network already believes it &lt;em&gt;is&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;This is the oldest mistake in site-to-site networking and I'd walked straight into it: &lt;strong&gt;the two address spaces overlapped.&lt;/strong&gt; RFC 1918 hands you &lt;code&gt;10.0.0.0/8&lt;/code&gt; — sixteen million addresses — and the one discipline that makes joining networks painless is to carve home and cloud out of ranges that can never collide. I hadn't. And re-addressing a production VPC, or renumbering my entire house, to fix a self-inflicted overlap was not a Tuesday-afternoon project.&lt;/p&gt;
&lt;p&gt;So I didn't fix the overlap. I routed &lt;em&gt;around&lt;/em&gt; it — and this is where that deliberate, unused &lt;code&gt;/30&lt;/code&gt; earns its place.&lt;/p&gt;
&lt;h3&gt;One address to stand for a whole house&lt;/h3&gt;
&lt;p&gt;Look again at the home config: &lt;code&gt;PostUp = iptables -t nat -A POSTROUTING -o wg0 -j MASQUERADE&lt;/code&gt;. That one line is doing the heavy lifting. It tells the home box to &lt;strong&gt;source-NAT every packet leaving the tunnel&lt;/strong&gt; so it appears to originate from the tunnel interface's own address, &lt;code&gt;10.99.99.2&lt;/code&gt;. From the VPC's point of view, my entire house — every laptop, every Linux box, the whole &lt;code&gt;10.1.1.0/24&lt;/code&gt; — collapses into a single client at &lt;code&gt;10.99.99.2&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;And &lt;code&gt;10.99.99.0/30&lt;/code&gt; lives &lt;em&gt;outside&lt;/em&gt; every CIDR the VPC claims. So the route AWS refused to accept for &lt;code&gt;10.1.1.0/24&lt;/code&gt; is perfectly legal for &lt;code&gt;10.99.99.0/30&lt;/code&gt;: destination &lt;code&gt;10.99.99.0/30&lt;/code&gt;, target the gateway interface. Accepted instantly. The VPC never has to route to the contested &lt;code&gt;10.1.1.0/24&lt;/code&gt; at all, because it never &lt;em&gt;sees&lt;/em&gt; &lt;code&gt;10.1.1.0/24&lt;/code&gt; — every reply goes to &lt;code&gt;10.99.99.2&lt;/code&gt;, an address it's allowed to know about, and the gateway tunnels it home.&lt;/p&gt;
&lt;p&gt;The cost of this trick is honesty about its asymmetry. &lt;strong&gt;Masquerade collapses a network into a point, and points don't have interior structure.&lt;/strong&gt; Traffic the &lt;em&gt;house&lt;/em&gt; initiates to the cloud works beautifully; the VPC sees one client and answers it. Traffic the &lt;em&gt;cloud&lt;/em&gt; initiates toward an individual home machine has nowhere to land — to AWS, &lt;code&gt;10.99.99.2&lt;/code&gt; is the whole house, with no way to address the laptop behind it. For my purpose — reaching cloud services from home — that's exactly the direction I needed, and the asymmetry is free. If you need the VPC to open connections &lt;em&gt;into&lt;/em&gt; specific home hosts, you're back to real routes and real subnets, which means back to not overlapping your address spaces in the first place. Pick your ranges so that future-you never has to make this choice.&lt;/p&gt;
&lt;h3&gt;The second wall: a router doing exactly what I told it&lt;/h3&gt;
&lt;p&gt;With routing sorted, the tunnel worked — and then, intermittently, didn't. The handshake was solid. Small things — a ping, a quick &lt;code&gt;psql&lt;/code&gt; connection — went through. But sessions would stall, and throughput was a coin flip. The classic shape of a working control path and a broken data path, which usually screams MTU (more on that later). It wasn't MTU. It was my own router being obedient.&lt;/p&gt;
&lt;p&gt;My house has two internet connections, load-balanced on the MikroTik with per-connection-classifier (PCC) mangle rules — the standard dual-WAN recipe that pins each new connection to one uplink or the other so a single flow doesn't get split across two public IPs. Which is the entire problem. WireGuard is one long-lived UDP flow to a fixed &lt;code&gt;Endpoint&lt;/code&gt;. The PCC rules looked at the tunnel's packets, classified them like any other connection, and cheerfully load-balanced them — sending some out WAN 1 and some out WAN 2. But the gateway had completed its handshake with whichever public IP came first, and a reply arriving from the &lt;em&gt;other&lt;/em&gt; WAN's address didn't match the cryptographic session. WireGuard, correctly, dropped it.&lt;/p&gt;
&lt;p&gt;The fix is a single exemption at the top of the mangle chain: traffic to or from the WireGuard endpoint is &lt;strong&gt;accepted before the PCC rules ever see it&lt;/strong&gt;, pinning the entire tunnel to one WAN. In MikroTik terms, a mangle rule matching the WireGuard port and destination with an &lt;code&gt;action=accept&lt;/code&gt; ahead of the connection-marking rules. The moment that landed, the flakiness vanished.&lt;/p&gt;
&lt;p&gt;The lesson generalizes past MikroTik: &lt;strong&gt;a VPN tunnel over a multi-WAN uplink must be pinned to one path.&lt;/strong&gt; And the deeper lesson is the one I keep relearning — this bug didn't come from the new thing. The router was doing precisely what I had configured it to do, years ago, for a completely unrelated reason. The tunnel just walked into a decision that had been sitting there, correct and forgotten, waiting for a single long-lived UDP flow to make it wrong.&lt;/p&gt;
&lt;h3&gt;Making it useful: split-horizon DNS&lt;/h3&gt;
&lt;p&gt;A tunnel that routes private addresses is only half a win. My home cron jobs and scripts didn't connect to &lt;code&gt;10.0.0.76&lt;/code&gt;; they connected to a hostname, and that hostname resolved — on the public internet, as it must — to the database's &lt;em&gt;public&lt;/em&gt; address. Routing it privately is pointless if the name still points at the front door.&lt;/p&gt;
&lt;p&gt;The answer is split-horizon DNS: the same name resolving differently depending on where you're standing. On the LAN I want &lt;code&gt;db.example.net&lt;/code&gt; to mean &lt;code&gt;10.0.0.76&lt;/code&gt;; everywhere else it should keep meaning the public address. Two small overrides do it. A static DNS entry on the MikroTik (&lt;code&gt;db.example.net → 10.0.0.76&lt;/code&gt;) catches anything using the router as its resolver, and a matching &lt;code&gt;local-data&lt;/code&gt; line in the Unbound instance that actually serves the &lt;code&gt;10.1.1.0/24&lt;/code&gt; segment catches the rest:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;local-zone: "db.example.net." transparent
local-data: "db.example.net. IN A 10.0.0.76"
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Now every home machine reaches the database over the tunnel, by name, with &lt;strong&gt;zero application changes&lt;/strong&gt; — the code doesn't know or care that the address it gets back is private. The backup job that used to copy dumps across the public internet now runs entirely inside the tunnel.&lt;/p&gt;
&lt;p&gt;One caveat worth stating because it bit me for ten confused minutes: split-horizon is &lt;em&gt;per resolver&lt;/em&gt;. My main workstation sits on a different subnet — &lt;code&gt;192.168.0.x&lt;/code&gt;, behind a different router with a different upstream resolver — and it never sees the LAN's Unbound, so it kept resolving the public address and connecting the old way. A DNS horizon only covers the clients that actually ask the resolver you edited. Map your resolvers before you trust the trick.&lt;/p&gt;
&lt;h3&gt;The gotcha everyone eventually hits: MTU&lt;/h3&gt;
&lt;p&gt;I promised to come back to MTU, because it is the single most common way a WireGuard tunnel "works but doesn't," and the symptom is exactly the one I &lt;em&gt;thought&lt;/em&gt; the dual-WAN bug was: the handshake succeeds, small requests fly, and then a large transfer hangs forever with no error anywhere.&lt;/p&gt;
&lt;p&gt;WireGuard wraps every packet in roughly 60–80 bytes of encapsulation, which drops the usable MTU inside the tunnel to about 1420 bytes. On a clean path this is invisible. On a path that drops oversized packets without sending the ICMP "fragmentation needed" message back — and plenty of the internet does, because plenty of the internet firewalls ICMP into oblivion — full-size data packets vanish silently while the small control packets sail through. The cure is &lt;strong&gt;MSS clamping&lt;/strong&gt;: an &lt;code&gt;iptables&lt;/code&gt; rule on the forwarding chain that rewrites the TCP maximum-segment-size of passing connections down to fit the tunnel.&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;iptables -t mangle -A FORWARD -p tcp --tcp-flags SYN,RST SYN \
  -j TCPMSS --clamp-mss-to-pmtu
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;In the interest of honesty: my home-to-AWS tunnel didn't need this. A 330 MB database dump rsync'd across it on the first attempt, full speed, no clamp. But a &lt;em&gt;second&lt;/em&gt; tunnel I stood up later — a cloud-to-cloud hop over a different path, joining a second provider into the same private fabric — reproduced the "connects fine, transfers hang" symptom perfectly, and the clamp on both ends fixed it instantly. It's path-dependent, which is exactly why it's so maddening to diagnose. Reach for it the instant authentication succeeds but bulk data stalls; it is cheap insurance and an even cheaper first guess.&lt;/p&gt;
&lt;h3&gt;What it bought&lt;/h3&gt;
&lt;p&gt;With the tunnel carrying traffic and the name resolving privately, the actual goal became a one-line change. The database's security group dropped its &lt;code&gt;0.0.0.0/0&lt;/code&gt; rule on 5432 and replaced it with the gateway and the VPC. The port that had been answering the entire internet for a year now answers exactly one place: the wire to my house. The home backup runs over the private path. My laptop talks to the database as if AWS were a closet down the hall.&lt;/p&gt;
&lt;p&gt;The bill for all of this is a &lt;code&gt;t4g.nano&lt;/code&gt; and an Elastic IP — call it a few dollars a month, much of it inside the free tier — plus a &lt;code&gt;/30&lt;/code&gt; of address space and a handful of config lines that now live in version control next to everything else I'd need to rebuild the setup from scratch. And the VPC stopped being a remote, walled-off place I reach through public endpoints. It became a routable extension of my own network, which changes what feels reasonable to build there next.&lt;/p&gt;
&lt;h3&gt;The tunnel was the easy part&lt;/h3&gt;
&lt;p&gt;Add it up and the proportions are absurd. The WireGuard configuration — the cryptography, the key exchange, the part that is genuinely hard to get right and that brilliant people spent years making bulletproof — was a dozen lines per side and worked on the first handshake. Every hour after that went to problems that had nothing to do with WireGuard: an address-space overlap I'd authored years earlier and forgotten, a load-balancing router executing old instructions faithfully into a new failure, a DNS horizon that stopped at a subnet boundary, an MTU gremlin lying in wait on the next path over.&lt;/p&gt;
&lt;p&gt;None of those are VPN problems. They're the problems a VPN &lt;em&gt;reveals&lt;/em&gt;. Two networks each grew up as the center of their own universe — chose their address ranges, their routing policies, their resolvers — with no expectation of ever meeting. The tunnel is just the introduction. Everything afterward is the negotiation between two designs that were each, locally, perfectly correct, and that turn out to disagree the moment you ask them to share a routing table.&lt;/p&gt;
&lt;p&gt;So the practical advice compresses to almost nothing. Give the tunnel its own box and its own unused &lt;code&gt;/30&lt;/code&gt;. Keep a keepalive on the side behind NAT. Pin the flow to one WAN if you have more than one. Clamp the MSS the moment large transfers stall. And, above all the rest: &lt;strong&gt;choose your private address ranges, on day one, so that home and cloud can never collide&lt;/strong&gt; — because the fifteen minutes WireGuard costs you is real, and so is the day and a half that an overlapping &lt;code&gt;/16&lt;/code&gt; will cost you somewhere down the line, long after you've forgotten you created it.&lt;/p&gt;
&lt;p&gt;The encryption is solved. The hard part was never the secret. The hard part was the addresses.&lt;/p&gt;</description><category>aws</category><category>home lab</category><category>infrastructure</category><category>iptables</category><category>mikrotik</category><category>mtu</category><category>nat</category><category>networking</category><category>routing</category><category>self-hosting</category><category>site-to-site</category><category>split-horizon dns</category><category>vpc</category><category>vpn</category><category>wireguard</category><guid>https://tinycomputers.io/posts/the-tunnel-was-the-easy-part-site-to-site-wireguard-home-to-vpc.html</guid><pubDate>Mon, 15 Jun 2026 21:30:00 GMT</pubDate></item><item><title>Crystal by Reference: Making freeze() Mean It, Then Making It Fast</title><link>https://tinycomputers.io/posts/crystal-by-reference-making-freeze-mean-it-then-making-it-fast.html?utm_source=feed&amp;utm_medium=rss&amp;utm_campaign=rss</link><dc:creator>A.C. Jokela</dc:creator><description>&lt;div class="audio-widget"&gt;
&lt;div class="audio-widget-header"&gt;
&lt;span class="audio-widget-icon"&gt;🎧&lt;/span&gt;
&lt;span class="audio-widget-label"&gt;Listen to this article&lt;/span&gt;
&lt;/div&gt;
&lt;audio controls preload="metadata"&gt;
&lt;source src="https://tinycomputers.io/crystal-by-reference-making-freeze-mean-it-then-making-it-fast_tts.mp3" type="audio/mpeg"&gt;
&lt;/source&gt;&lt;/audio&gt;
&lt;div class="audio-widget-footer"&gt;24 min · AI-generated narration&lt;/div&gt;
&lt;/div&gt;

&lt;h2&gt;Crystal by Reference: Making freeze() Mean It, Then Making It Fast&lt;/h2&gt;
&lt;p&gt;Most programming languages make some kind of promise about immutability. JavaScript has &lt;code&gt;Object.freeze()&lt;/code&gt;. Java has &lt;code&gt;final&lt;/code&gt;. Python has tuples. Rust builds half its identity on it. The promise is always the same shape: &lt;em&gt;this value will not change, and you can build on that.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;This is a story about what happens when a language makes that promise and the implementation doesn't keep it — how the holes got there, how they were found, what it took to close them, and the surprisingly large reward waiting on the other side. The language in question is &lt;a href="https://lattice-lang.org/"&gt;Lattice&lt;/a&gt;, a small interpreted language I've been building, but you don't need to know Lattice or care about it for the story to be useful. The bugs, the debugging patterns, and the performance trade-offs are the kind that show up in any system that manages memory and makes guarantees. Lattice just happens to be where I got to watch the whole arc play out in one place.&lt;/p&gt;
&lt;h3&gt;A Promise in Three Lines&lt;/h3&gt;
&lt;p&gt;The one piece of background you need: Lattice is built around a metaphor of crystallization. Values start out &lt;em&gt;fluid&lt;/em&gt; — mutable, workable — and can be &lt;em&gt;frozen&lt;/em&gt; into immutable &lt;em&gt;crystal&lt;/em&gt;. It's the same idea as &lt;code&gt;const&lt;/code&gt; or &lt;code&gt;Object.freeze()&lt;/code&gt;, but as a runtime lifecycle you can observe and control, and it's &lt;a href="https://tinycomputers.io/posts/introducing-lattice-a-crystallization-based-programming-language.html"&gt;the central concept of the language&lt;/a&gt;. Freezing is the thing Lattice is &lt;em&gt;about&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;Which makes these three lines embarrassing:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;flux a = [1, 2, 3]    // a mutable array
freeze(a)             // now immutable... supposedly
a[0] = 99             // prints [99, 2, 3]
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;That third line should be a runtime error. On the released version of the language, it just... worked. The frozen array changed. No error, no warning, nothing.&lt;/p&gt;
&lt;p&gt;I didn't find this because a user complained. I found it while reviewing the design for a performance feature — which, it turns out, is one of the most reliable ways to find soundness bugs. The feature was going to &lt;em&gt;share&lt;/em&gt; frozen data instead of copying it, and its entire safety argument was one sentence: frozen values can't change, so letting many parts of the program point at the same frozen value is safe. Before betting the memory model on that sentence, I tested it. The sentence was false.&lt;/p&gt;
&lt;h3&gt;How a Promise Breaks&lt;/h3&gt;
&lt;p&gt;It's worth dwelling on &lt;em&gt;how&lt;/em&gt; this happens, because it isn't carelessness — it's structure.&lt;/p&gt;
&lt;p&gt;Lattice has three separate execution engines that are supposed to behave identically: a simple tree-walking interpreter (the original), a bytecode virtual machine (the default — the thing that actually runs your code), and a register-based VM (an experiment in going faster). Three implementations of one language means every rule has to be enforced three times. And "frozen values reject mutation" isn't one rule in one place — it's a &lt;em&gt;cross-cutting concern&lt;/em&gt;. Arrays are assigned through one code path, map keys through another, globals through a third. There are dozens of built-in methods that modify their target: &lt;code&gt;push&lt;/code&gt;, &lt;code&gt;remove&lt;/code&gt;, &lt;code&gt;fill&lt;/code&gt;, &lt;code&gt;resize&lt;/code&gt;. Every one of those is a door, and the guard has to be standing at every door, in every engine.&lt;/p&gt;
&lt;p&gt;The audit found doors standing wide open everywhere, and — this is the telling part — &lt;em&gt;different&lt;/em&gt; doors in each engine. The bytecode VM checked local variables but not globals. The tree-walker checked maps but not arrays. The file containing all the mutating built-in methods had &lt;strong&gt;zero&lt;/strong&gt; immutability checks in it, anywhere, for any type, on any engine — so writing bytes into a frozen buffer worked everywhere. Lattice's partial-freeze feature (freeze this map, except leave this one key writable) kept its exemptions in a side table that a later full freeze never cleared, so an exemption, once granted, was permanent. The one engine that mostly enforced things had its own subtle inversion: a key &lt;em&gt;missing&lt;/em&gt; from the side table was treated as exempt rather than frozen.&lt;/p&gt;
&lt;p&gt;The most honest summary: each engine enforced the promise wherever its author happened to be thinking about the promise that day. Nobody had ever sat down and enumerated the doors.&lt;/p&gt;
&lt;p&gt;And one door had something worse than a missing guard behind it. Calling &lt;code&gt;.remove()&lt;/code&gt; on a frozen map didn't return an error on the tree-walker — it crashed the whole process with a double-free, a memory-corruption bug. The missing immutability check had been quietly standing in front of a memory-safety bug the whole time. Hold that thought; it becomes a theme.&lt;/p&gt;
&lt;p&gt;The fix wasn't clever and that's the point. Write down every door first: a matrix of nineteen small test programs, each run against all three engines, asserting that frozen things reject mutation and exempted things don't, &lt;em&gt;before&lt;/em&gt; fixing anything. Then station guards until the matrix is green. Where possible, replace scattered per-door checks with one chokepoint — all those mutating built-in methods now get rejected by a single shared classifier that all three engines consult before running any method, so the next method someone adds is guarded by default instead of by memory. The review of that change caught one engine sneaking around the chokepoint through an undocumented alias of &lt;code&gt;remove&lt;/code&gt; — which tells you the chokepoint was worth building.&lt;/p&gt;
&lt;p&gt;The enforcement work shipped as v0.5.0, and the version number was itself a decision worth a sentence: these were bug fixes, which argues for a patch release, but a patch number tells users "upgrade blindly," and this release deliberately breaks any program that was mutating frozen values and getting away with it. That's a minor bump and a bolded line in the release notes. Version numbers are communication, not bookkeeping.&lt;/p&gt;
&lt;h3&gt;The Reward: Stop Copying Things That Can't Change&lt;/h3&gt;
&lt;p&gt;Here's why all of that was act one and not the whole story.&lt;/p&gt;
&lt;p&gt;Lattice, like a lot of languages that want to make shared-state bugs impossible, copies aggressively. Pass a map to a function: copy. Send an array to another thread over a channel: copy. Spawn a thread that uses data from the parent: copy everything it touches. This is a perfectly honest design — there's no spooky action at a distance because there's no sharing — and profiling real programs showed it was also, by far, the dominant cost. Not the interpreter loop. Not allocation. &lt;em&gt;Copying data that nothing was ever going to modify.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Read that sentence next to the language's central promise and the opportunity is obvious. A frozen value can't change — now provably, on every engine. Copying a thing that cannot change is pure waste. Other ecosystems have versions of this insight: Clojure's persistent data structures share internal nodes precisely because they're immutable; Rust's &lt;code&gt;Arc&lt;/code&gt; exists to share read-only data across threads; copy-on-write strings were a whole era of C++. The common thread is always the same bargain — &lt;strong&gt;immutability, if it's actually enforced, is a license to share.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;So act two: when you freeze a container in Lattice now, the runtime &lt;em&gt;materializes&lt;/em&gt; it — takes one full snapshot of the whole structure into a sealed, self-contained memory region with an atomic reference count. From then on, "copying" that frozen value means bumping the count and handing out a 72-byte handle. Pass it to a function: a count bump. Send it across a channel to another thread: a count bump, where there used to be two full deep copies. When the last handle goes away, the region's memory is returned, all at once. Thawing a value back to mutable does a real copy — so the language's isolation model is untouched; you can never mutate something someone else can see.&lt;/p&gt;
&lt;p&gt;Not everything participates. Tiny values — numbers, short strings — keep the old behavior because copying eight bytes is cheaper than refcount traffic. Values containing closures or other inherently-shared machinery are excluded by a classifier and quietly fall back to the old copying freeze, with identical semantics. And freezing itself got &lt;em&gt;more&lt;/em&gt; expensive: that one-time snapshot is real work, about 1.6x on a freeze-heavy microbenchmark, which is now watched by an automated regression gate so it can't silently grow. You pay once at the freeze, and you stop paying forever after.&lt;/p&gt;
&lt;p&gt;The payoff, measured on the default engine:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Aliasing a frozen 200,000-element array 2,000 times: &lt;strong&gt;0.03 seconds, versus 3.49 seconds&lt;/strong&gt; with sharing disabled. About 116x.&lt;/li&gt;
&lt;li&gt;Sending a frozen 100,000-element array to another thread: &lt;strong&gt;0.06 versus 2.14 seconds.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Four threads sending and two receiving 80,000 messages of frozen data: memory usage flat at ~21 MB whether you run half or all of it — nothing accumulating, nothing leaking, verified under AddressSanitizer.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;The Bugs That Were Already There&lt;/h3&gt;
&lt;p&gt;The implementation rolled out in stages — first the machinery with nothing connected to it, then the tree-walker, then the default VM — and every stage went through independent adversarial review before merging: one reviewer checking the work against the design, another reading every changed line with a single hostile question in mind (&lt;em&gt;does everyone who frees this still own it?&lt;/em&gt;), and a third rebuilding everything from scratch and trying to break it with programs. Every stage, without exception, the review found a real bug. Two of them are worth retelling because neither was actually new — and that's what makes them interesting.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The crash that had been shipping for months.&lt;/strong&gt; During the tree-walker integration, a reviewer constructed an innocuous-looking program — freeze an array of strings, run it through an iterator with a little callback — and the process aborted. The cause: the iterator code was handing values to callbacks &lt;em&gt;and then freeing those values again afterward&lt;/em&gt;, even though the callback machinery had already taken ownership and freed them. A double-free. Here's the kicker: the same program, with the freeze removed, &lt;strong&gt;crashed the previous released version of the language too.&lt;/strong&gt; This bug predated the entire project. It had been shipping for months, invisible, because the test suite happened to exercise iterators with integers — which the memory manager doesn't track — instead of strings. The new reference counts didn't create the bug. They made it &lt;em&gt;loud&lt;/em&gt;: a refcount hitting zero twice trips an assertion immediately, where a heap double-free corrupts quietly and crashes somewhere else, later, if at all.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The leak that used to be invisible.&lt;/strong&gt; On the default VM, the reviewer found that error handling — &lt;code&gt;try&lt;/code&gt;/&lt;code&gt;catch&lt;/code&gt;, error propagation — threw away in-flight values during stack unwinding without releasing them. Before sharing, each abandoned value leaked a private copy: a small, bounded, invisible heap leak that nobody had noticed in years. After sharing, each abandoned value held a reference count forever — a &lt;code&gt;catch&lt;/code&gt; block in a loop would pin megabytes of supposedly-reclaimable frozen data permanently. The proof-of-concept accumulated 1,500 stranded references in 300 caught errors. Same code path, same bug, years old; the new machinery just converted it from &lt;em&gt;invisible&lt;/em&gt; to &lt;em&gt;alarmed&lt;/em&gt;. The fix releases everything between the old and new stack positions, exactly once — and incidentally fixed the years-old copy leak too.&lt;/p&gt;
&lt;p&gt;There's a general lesson in this pair, and it's the thing I'd most want a reader to take away even if they never touch Lattice: &lt;strong&gt;strict resource accounting is a bug detector for bugs you already have.&lt;/strong&gt; A system that deep-copies everywhere is &lt;em&gt;forgiving&lt;/em&gt; — ownership mistakes cost you a leaked copy or a redundant copy, and nothing ever screams. The moment you introduce sharing with exact reference counts, every pre-existing ownership mistake in the codebase becomes a fire alarm. It feels like the new feature is breaking everything. It's doing the opposite: it's telling you what was already broken.&lt;/p&gt;
&lt;h3&gt;What Actually Caught the Bugs&lt;/h3&gt;
&lt;p&gt;None of these bugs were caught by the test suite being green. The suite was green the whole time — that's the uncomfortable part. They were caught by process choices that I'd defend for any project of this shape:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Write the failure matrix before the fix.&lt;/strong&gt; The nineteen-test enforcement matrix, written before any guard was added, is what turned "I think there are holes" into a punch list, and it's what proves the holes stay closed on all three engines forever after.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Build a kill switch that proves equivalence.&lt;/strong&gt; The sharing machinery has an environment variable that disables every sharing path at runtime, so the whole system degrades to old-fashioned copying. CI runs the entire test suite both ways and requires identical results. Sharing is supposed to be invisible to program behavior; the oracle makes "supposed to" a checked property instead of a hope. When the two modes disagree, you've found a bug by construction.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Pay someone to be hostile.&lt;/strong&gt; Every merge went through review whose explicit job was to break the change, not to approve it — including constructing crashing programs, not just reading diffs. I'll be honest that much of this was orchestrated with LLM agents running the inventories, implementation, and reviews in parallel (a post for another day), but the methodological point doesn't depend on the tooling: the adversarial pass found a shippable bug at every single stage of this project. A green suite tests what you thought to test. An adversary tests what you didn't.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Keep redundant implementations honestly redundant.&lt;/strong&gt; Three engines is an expensive luxury, and this project is the best argument I have for it: nearly every bug here was visible as a &lt;em&gt;disagreement&lt;/em&gt; between engines before it was visible as a failure in any one of them. When three implementations of the same rule diverge, at least two of them are telling you something true.&lt;/p&gt;
&lt;h3&gt;Where It Stands&lt;/h3&gt;
&lt;p&gt;As I write this, the sharing work is live on two of the three engines, with the third in progress, followed by a hardening pass under ThreadSanitizer and a proper benchmark accounting. The enforcement work — the part that makes the language's central promise true — shipped in v0.5.0 across all thirteen platforms Lattice builds for, along with unified channel-send rules and a small milestone for the self-hosted compiler.&lt;/p&gt;
&lt;p&gt;The shape of the whole project is the part I keep turning over. The performance feature was only possible because the semantics were enforced. Enforcing the semantics surfaced a memory-corruption bug hiding behind a missing error check. Building the performance feature surfaced &lt;em&gt;more&lt;/em&gt; pre-existing bugs, because exact accounting converts silent corruption into immediate alarms. At every step, the work of making the promise true paid for itself in bugs found — before the optimization saved a single microsecond.&lt;/p&gt;
&lt;p&gt;Immutability that the runtime actually guarantees isn't just a correctness feature, and it isn't just a performance feature. It's a foundation that makes both kinds of claims checkable. Most promises in software are like that: the value isn't in making them. It's in building the machinery that would notice if they were false.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;Lattice is open source at &lt;a href="https://lattice-lang.org/"&gt;lattice-lang.org&lt;/a&gt;. It compiles and runs on macOS, Linux, Windows, and the BSDs with nothing beyond a C11 compiler, and you can try it in your browser at the &lt;a href="https://lattice-lang.org/playground.html"&gt;playground&lt;/a&gt;. If you want the deeper technical history, see the earlier posts on &lt;a href="https://tinycomputers.io/posts/mutability-as-a-first-class-concept-the-lattice-phase-system.html"&gt;the phase system&lt;/a&gt; and &lt;a href="https://tinycomputers.io/posts/a-stack-based-bytecode-vm-for-lattice.html"&gt;the bytecode VM&lt;/a&gt;.&lt;/p&gt;</description><category>debugging</category><category>immutability</category><category>language design</category><category>lattice</category><category>memory management</category><category>performance</category><category>programming languages</category><category>software engineering</category><category>testing</category><guid>https://tinycomputers.io/posts/crystal-by-reference-making-freeze-mean-it-then-making-it-fast.html</guid><pubDate>Fri, 12 Jun 2026 02:00:00 GMT</pubDate></item></channel></rss>