roadmap NOT-STARTED

239. radon's device tree does not describe the TRNG, so a working driver never runs

The premise in that title is false and the title is kept anyway, because milestone 241 (what a fourth board would have to be for, so that GICv3 is bought rather than justified) cites this milestone by that name. The sections below say what is actually true of the board that runs milestone 159 (a real hardware entropy source: the JH7110's TRNG). The token follows milestone 218's (every boot of the VisionFive 2 needs a human typing four commands into U-Boot) precedent. The route is built and has not run on radon, so the status says what the outcome is rather than what was built.

Everything that does not need the board is built, host-tested and merged; what remains is two commands at a U-Boot prompt and one boot, and QEMU cannot stand in, because the virt machine has no JH7110 anything.

In brief. radon booted nife hands-free on 2026-09-03 (milestone 218 (every boot of the VisionFive 2 needs a human typing four commands into U-Boot)) and the tour reported:

hw entropy  : skipped (this machine's tree describes no starfive,jh7110-trng; QEMU virt has none)

The line was true. The conclusion drawn from it, that the tree omits the device, was not. The tree radon hands us does describe the TRNG. It describes it under a different node name and a different compatible string, and calls it disabled.

What it actually is

fdt addr ${fdtcontroladdr} hands nife the vendor U-Boot's own control device tree: U-Boot 2021.10, Build: jenkins-VF2_515_Branch_SDK_Release-24, dated Feb 12 2023, from the board's own banner in crates/serial_console/tests/fixtures/captured/vf2-2026-09-01-manual-boot.log. That tree is compiled from arch/riscv/dts/jh7110.dtsi in StarFive's U-Boot fork (starfive-tech/u-boot, branch JH7110_VisionFive2_devel, commit bfbdce9b86a2, 2023-01-06, the last change to that file before the flashed firmware's build date, read 2026-09-03; unchanged at that branch's head). The file declares the node as trng@1600C000 (upper-case C), with compatible = "starfive,trng", a four-cell reg window of 0x4000 bytes at 0x1600C000, interrupt 30, two clocks named hclk and miscahb_clk, one reset, and status set to disabled. Mainline Linux spells the same device rng@1600c000, compatible = "starfive,jh7110-trng", and that is what crates/jh7110_entropy was written against.

Every observation from the bench holds, and none of them meant what it was read to mean.

What was seen on 2026-09-03 What it was read as What it was
fdt print /soc/rng@1600c000 -> FDT_ERR_NOTFOUND no such device in the tree no such path: the node is trng, not rng, and its unit address carries an upper-case C, so /soc/trng@1600c000 misses too
fdt list /soc -> 56 nodes, no random number generator the device is absent trng@1600C000 is one of the 56; it was not recognized
crypto@16000000 and sec_dma@16008000 present, their neighbor absent a specific omission, so a firmware build choice both are spelled identically in the two trees, so both matched a reader's eye where the third did not
hw entropy : skipped (... describes no starfive,jh7110-trng ...) the tree names no TRNG the tree names no starfive,jh7110-trng, which is a narrower claim than the sentence reads as, and it was the exact truth

The three shapes of fix this block was minted with are all answers to a question that was not the question. Loading a fuller DTB from the card, carrying an overlay, and accepting the vendor tree's limits all assume a missing node. Nothing is missing.

Why the vendor tree spells it that way, which decides whether to trust it

starfive,trng is not a different device and it is not a different register block. It is a stale fork, and there are two pieces of evidence rather than an argument:

And the status = "disabled" is U-Boot's, not the board's. StarFive's Linux enables the identical node from jh7110-common.dtsi (&trng { status = "okay"; };), along with &crypto and &sec_dma. U-Boot marks it disabled because U-Boot has no driver for it.

What was built, and the one decision inside it

machine_discovery::jh7110::entropy::discover tries mainline's starfive,jh7110-trng first and the vendor's starfive,trng second, reads every property against the string that matched, and carries two new facts out: which spelling it was, and what the node's status says.

status is reported and not acted on, which is the decision. Refusing a node the firmware calls disabled would be correct device-tree semantics and wrong here, and this tree already has the reason written down in the other direction. The same DTB marks the S7 monitor core status = "okay" and claims it has an Sv39 MMU, and both are false (notes/visionfive2.md, "Second bench stop"). A tree that lies about status in one direction has not earned obedience in the other. So the boot tour's failure line now carries the tree's own two words (tree says starfive,trng, status disabled) beside the bring-up diagnostic, because those two facts together are what triage needs. An all-zero register window on a node the firmware calls disabled is a clock or a reset nobody ungated. That is milestone 220's (a clock and reset controller, because the first real device needs one) territory rather than a driver bug.

The skip line names both strings now. The old wording was the exact truth and was still read as a stronger claim than it made, which is a defect in the line rather than in the reader. Observed on a riscv64 boot under QEMU on 2026-09-03 (script/soak --arch riscv64), which is the only machine available to say it:

hw entropy  : skipped (this machine's tree names no TRNG: neither starfive,jh7110-trng nor the vendor U-Boot's starfive,trng; QEMU virt has neither)

The fixture is transcribed, not captured: crates/machine_discovery/tests/fixtures/jh7110-trng-vendor-uboot.dts, from the firmware's own source at the commit above, wrapped in the /soc node with the two-cell #address-cells/#size-cells that were measured off the board and are already committed in crates/machine_discovery/tests/fixtures/visionfive2-uboot-control.dts. dtc warns simple-bus unit address format error, expected "1600c000" when compiling it, which is the upper-case C being genuinely irregular rather than a transcription slip.

What is left, and it is a bench session

Nothing in this milestone has run on radon. The board was powered off when the work was done and there was no bench session. Two commands and one boot settle all of it.

  1. At the StarFive # prompt, with a serial terminal that can type (screen /dev/cu.usbmodem* 115200; script/board-console deliberately cannot type):

    StarFive # fdt addr ${fdtcontroladdr}
    StarFive # fdt print /soc/trng@1600C000
    

    The upper-case C is required and is the whole reason the first attempt missed. If that path is not found, fall back to fdt list /soc and read the whole list rather than scanning it for a word.

  2. Then let the board boot normally (the card's boot.scr.uimg needs nothing typed) and read the hw entropy line, which is the last line of the tour before the banner.

What comes back What it means
fdt print shows the node, compatible = "starfive,trng", status = "disabled" The finding above is confirmed. Whatever the hw entropy line then says is about the device, not about the tree
hw entropy : JH7110 TRNG at 0x1600c000 served 32+32 bytes ... Milestone 159's line, and fatal risk 6 answered. Record it whole; the tree question is closed and this block is BUILT
hw entropy : FAILED: ... (tree says starfive,trng, status disabled): ... bring-up diagnostic 0x0000000000000000 ... The node was found and the register window read as nothing. The expected outcome if the firmware never ungated the block's clocks or deasserted its reset, which is exactly what status = "disabled" predicts. This routes to milestone 220, not back here
hw entropy : FAILED: ... bring-up diagnostic 0x<nonzero> ... The device answered and the driver's sequence is wrong. Milestone 159's own table decodes the word
hw entropy : skipped (... neither starfive,jh7110-trng nor the vendor U-Boot's starfive,trng ...) The node really is absent from the running firmware's tree, whatever its source says, and this block's three original shapes of fix come back. Capture the tree (fdt print to a file, or the raw dump route notes/visionfive2.md's PLIC fixture used) before deciding anything
fdt print finds the node but the boot still skips A discovery bug, not a tree question. The fixture test says the decode works on this shape, so suspect the /soc wrapper's cells or a node deeper than the device_tree_blob package's MAXIMUM_DEPTH of 64

Follow-on

BUGS

Index row

the title's premise is false and the block says so: the vendor U-Boot's tree describes the device as trng@1600C000, compatible = "starfive,trng", status = "disabled", where mainline says rng@1600c000/starfive,jh7110-trng. discover now matches both spellings and carries the status it found. A route was taken 2026-09-03 and radon was powered off, so like milestone 218 the token says what the outcome is rather than what was built; the block carries the two commands that settle it