The bench steps for a hardware run of a crate version
An appendix to milestone 1035 (a crate names the version that ran on hardware). The main page is complete without it. These steps follow the bench procedure of milestone 159 (a real hardware entropy source: the JH7110's TRNG). The network boot of milestone 257 (boot radon over the network, so the microSD card stops being the tax on every experiment) replaces its card. A person runs them at the board; an agent can drive the host side and read the result.
The maintainers keep the bench's unit-specific details off-tree: which serial device is the board's, which outlet powers it, and which outlets and hubs must never lose power. Read those before touching anything.
What it needs
- A VisionFive 2 with its serial console on UART0 (header pins 6, 8 and 10, 115200 8N1), the
boot-mode switches on QSPI, and a microSD card that carries the network-first boot script
script/board-image --tftpwrites. A boot from that card printsnife: tftp server is <address>. - A host on the board's local network with the toolchain from
script/setup, UDP port 69 free and a clean checkout of nife.
The steps
-
Choose the nife commit. Check out
origin/main, or the commit on it that bumped the pins, with no local changes:git fetch origin && git checkout --detach origin/main && git status --short git rev-parse HEADgit status --shortprints nothing. Record the commit. Its three manifests (kernel/Cargo.toml,components/Cargo.toml,crates/machine_discovery/Cargo.toml) state the crate'sversionandrev, and the judge in step 6 checks that therevis the commit of the tagv<version>. -
Build.
script/board-image --tftp. It builds the archive and then the kernel, in that order, so the two are one measured pair, and it writes them undertarget/board/. Record the SHA-256 oftarget/board/nife-vf2.imgandtarget/board/nife-initial-ramdisk.img(shasum -a 256on macOS,sha256sumon Linux). -
Serve and watch. In two terminals:
script/board-netboot script/board-console --port <device> --until selftest --for 5m --log target/1035-boot-1.log -
First boot. Power the board on from off. The log shows
nife: payload came from net, then the boot tour.board-consolestops once the self-test verdict prints. If the log showspayload came from cardinstead, the board booted an older kernel from the card; the judge refuses that boot because itstrue_random_number_generatorline names another crate commit or none. Fix the network and boot again. -
Second boot. Power the board off, wait ten seconds, start
board-consoleagain with--log target/1035-boot-2.log, and power it on. Two cold boots are what make condition 6 (the first draws differ across boots) mean that the device reseeds per boot. -
Judge.
python3 -I helpers/crate_hardware_run.py judge target/1035-boot-1.log target/1035-boot-2.log \ --nife-commit <the commit from step 1>It prints one row per condition of the main page's definition and ends
PASSorFAIL, N problem(s). Each boot's line reads like this, and its last clause names the crate:self-test : true_random_number_generator ok JH7110 TRNG at 0x1600c000 (tree says disabled): report 0x524e475550, STAT 0x00040308 (256-bit: all eight RAND words are the answer), draws 32/32 bytes, first 625b4bc8.., differ true; bring-up 1637 us, 64 bytes in 102 us (627450 bytes/s); crate jh7110_entropy 0.3.0-pre.1 at 497d3ec4f0b4d7fc36634dee47d1afd56eb22485A
FAILEDline, or one the judge refuses, goes to milestone 159's table of what each line means before anyone theorizes. -
Record. Commit the two logs under
bench/<board>-<date>/with aREADME-1035.mdthat names the nife commit, the crate version and commit, the two image hashes and the judge's output. Put each boot'strue_random_number_generatorline, the nife commit and the crate version in the main page's block. Only then does the crate's README name the version.
What the log holds
A board log carries the board's serial number, its MAC addresses and private local addresses. The
runs of milestone 1049 (jh7110_entropy is ready to publish: the release review's findings)
committed theirs as the board printed them. The person may instead trim those lines first, and the
bench README then says so. The judge reads only the banner and the true_random_number_generator lines.