fpgas-verify: reading the result¶
You have run fpgas-verify and want to know what its result and summary mean. More examples of failing
results are in more results.
Every fpgas-verify page is listed in fpgas-verify.
Reading the result¶
There is one result: pass or fail. A fail is named for its worst cause:
Result |
Pass or fail |
Means |
|---|---|---|
|
pass |
every test passed, and the board and its flash are the ones recorded |
|
fail |
a different board, or a different flash, from the recorded state |
|
fail |
a test failed, or the board runs a design that is not ours ( |
|
fail |
no board found (with |
|
fail |
the check itself could not run: a missing tool, a damaged package, no configuration |
Only
passexits 0. Anything else also leavesfpgas-verify.servicefailed.The check goes on after a fault wherever it can, so the report lists every fault it found.
The summary goes to stderr; at boot, to the journal (
journalctl -b -u fpgas-verify). It has two parts:every test in the order it ran, with its result, and a failed test’s last 8 output lines;
for a check that did not pass, a plain conclusion, last, so it is what is left on the terminal. It holds, in order:
RESULT:and what it means, with the check’s reason on the next line when it has one;each board with how many tests passed, failed and were not run, and under it:
a
fault:line for each thing wrong that is no one test’s (the board runs SQRL’s image, say);a
failed:line for each failed test, with its reason;a
not run:line for the tests that did not run, and why (a test that does not apply to the setup isnot run, and is not a failure);a
warning (not why it did not pass):line for each warning;
a
changed:line for each board or flash that differs from what was last recorded;What to do:, chosen from the faults found (for achanged:line that was meant, it says to accept the change withsudo fpgas-verify --update);where the JSON report is.
A reason is always one line, however long, so it can be searched for as it is (Common failures).
The JSON report is in
/run/fpgas-online/verify.json. It is replaced whole (written beside itself and renamed), so a reader sees the old report or the new one, never part of one. A--reportpath that is a symlink, a device or a pipe is written through instead, not replaced.
pass: an Acorn on the Pi 5 setup (the summary its report gives):
$ sudo fpgas-verify --no-publish
fpgas-verify: pass (mode auto, auto: USB/PCI IDs)
not published: --no-publish
acorn cle-215+: pass
pcie-link pass
pcie-bar0 pass
rp1-pio pass
jtag pass
flash pass
ddr pass
p2-uart pass
p2-serial pass
scratch pass
p2-gpio pass
flash 0x000000 match
flash 0x400000 match
state recorded (first run) in /var/lib/fpgas-online/verify-state.json
fail, a Compute Blade: a Compute Blade with a CM5 and an Acorn CLE-101 still on SQRL’s factory image, as
sudo fpgas-verify --no-publish prints it. Two things are wrong, and
neither is the installation: the card has not been converted, and on this setup the JTAG test cannot have its
TMS pin (fpgas.online-test-designs issue 127: on a Compute Blade the JTAG test cannot have GPIO14 while the serial port holds it).
$ sudo fpgas-verify --no-publish
******************************************************************************
*** FPGA VERIFY: FAIL ******************************************************
fpgas-verify: fail (mode acorn, configured: acorn)
not published: --no-publish
acorn cle-101: fail
unconverted: runs SQRL's factory image, not the fpgas.online design
pcie-link pass
rp1-pio pass
jtag fail: P1 JTAG: openFPGALoader --detect failed (exit -6) before scanning the JTAG chain: openFPGALoader: line-request.c:199: gpiod_line_request_set_values_subset: Assertion `request' failed.
openFPGALoader: line-request.c:199: gpiod_line_request_set_values_subset: Assertion `request' failed.
pcie-bar0 not run: unconverted: runs SQRL's factory image, not the fpgas.online design
flash not run: unconverted: runs SQRL's factory image, not the fpgas.online design
ddr not run: unconverted: runs SQRL's factory image, not the fpgas.online design
p2-uart not run: the board does not run a known build
p2-serial not run: unconverted: runs SQRL's factory image, not the fpgas.online design
scratch not run: unconverted: runs SQRL's factory image, not the fpgas.online design
p2-gpio not run: J5 and H5 are not wired on the Compute Blade setup
state recorded (first run) in /var/lib/fpgas-online/verify-state.json
RESULT: FAIL: a board did not pass.
acorn cle-101: fail (2 tests passed, 1 failed, 7 not run)
fault: unconverted: runs SQRL's factory image, not the fpgas.online design
failed: jtag: P1 JTAG: openFPGALoader --detect failed (exit -6) before scanning the JTAG chain: openFPGALoader: line-request.c:199: gpiod_line_request_set_values_subset: Assertion `request' failed.
not run: pcie-bar0, flash, ddr, p2-serial, scratch: unconverted: runs SQRL's factory image, not the fpgas.online design
not run: p2-uart: the board does not run a known build
not run: p2-gpio: J5 and H5 are not wired on the Compute Blade setup
What to do:
* The Acorn still runs the image it was sold with, not the fpgas.online one,
so only its PCIe link and its JTAG could be tested. On a Compute Blade, do
not load a design into the card or convert it. The one time a design was
loaded into a card on a blade, the card's PCIe endpoint did not come back:
neither a bus rescan nor a root-complex re-probe restored it
(fpgas.online-test-designs issue 241, the record of what has been run on
an Acorn on a Compute Blade):
https://github.com/fpgas-online/fpgas.online-test-designs/issues/241 To
test JTAG on a blade:
https://docs.fpgas.online/en/latest/boards/acorn/checks/compute-blade-jtag.html
* openFPGALoader could not have one of the JTAG pins, because a driver holds
it (on a Compute Blade the serial port holds GPIO14, which is also the
JTAG TMS wire). The check cannot test JTAG on such a host while that
driver holds the pin (fpgas.online-test-designs issue 127, on a Compute
Blade the JTAG test cannot have GPIO14 while the serial port holds it):
https://github.com/fpgas-online/fpgas.online-test-designs/issues/127
* To look at the acorn board yourself: sudo fpgas-acorn-debug --help (sudo
apt install fpgas-online-acorn-debug)
* What each message means:
https://docs.fpgas.online/en/latest/verify/common-failures.html#common-failures
The whole report, for a program to read (JSON): /run/fpgas-online/verify.json
******************************************************************************