fpgas-verify: running it¶
You have installed fpgas-verify and want to run the check, or part of it, and set how the host runs it.
Every fpgas-verify page is listed in fpgas-verify.
Running it¶
What you need¶
the packages for your board installed (Installing)
sudoon the host
Steps¶
1. Run the check. Nothing is sent to the site: --no-publish makes sure.
sudo fpgas-verify --no-publish
2. To run one test on its own, name it: the names are in What the check tests on each board and, for an Acorn, What an Acorn check tests. The report then goes to stdout.
sudo fpgas-verify --no-publish --test TEST
Check¶
The summary, on stderr, starts with fpgas-verify: pass. The board’s line (two spaces in, the board’s name
first) ends in pass. So does the line of each test that ran (four spaces in, the test’s name first).
Other lines four spaces in are not tests:
on an Acorn, a test that does not apply (
not run), and a flash slot’smatch;a flash note (
flash none: …,flash not read back: …);left running, and aWARNING.
Reading the result shows a whole pass.
If it fails¶
Reading the result says what each result and each line mean.
Common failures lists the messages and what to do about each.
fpgas-<board>-debug(packagefpgas-online-<board>-debug) loads one test’s design and shows all its output.
Next¶
Identity and labels: who the board is, and its labels.
The commands and settings below.
Commands and settings¶
sudo fpgas-verify # check this host's board, as the boot does
sudo fpgas-arty-verify # check the Arty, whatever this host is set up for
sudo fpgas-arty-verify --test ddr # run one test; the JSON report goes to stdout
sudo fpgas-acorn-verify --test pcie-link --test flash # only some tests (these two only read)
sudo fpgas-verify --update # after flashing or swapping a board on purpose
fpgas-verify --list # the installed boards, and which this host checks
sudo fpgas-verify --identify # who the board is, as JSON (see "Identity and labels")
sudo fpgas-verify --label --out labels.pdf # this Pi's and its board's labels, made by rpi-hwid
sudo fpgas-arty-debug test ddr # load the DDR design and run its test, all output live
sudo fpgas-acorn-debug identify # the same as fpgas-acorn-verify --identify
--identify and --label are described in Identity and labels.
Run them with
sudo;--help,--listandfpgas-<board>-debug listdo not need it.Nothing is sent anywhere unless a file says
[verify] publish = on(next tofpga-board, below). A host that only has the packages installed publishes nothing, at boot or by hand; its summary says so in one line (not published: no file says ...), and there is no error. The fpgas.online Pi root sets it in/etc/fpgas-verify/fleet.ini, so a fleet Pi tells its site how the check went; there,--no-publishis how a run by hand stays private. Each transcript of Reading the result shows the line that says whether it was published.--testruns part of the check. It is never published, never recorded, and its report goes to stdout unless--reportsays otherwise.Only one command uses a board at a time. A second one prints
waiting for another user of the <board> to finish...and waits. Looking for a NeTV2 drives its JTAG pins, so the check andfpgas-netv2-debug detecttake its lock for that too, waiting as for the check, and let it go before the check takes it again.The locks are files:
/run/fpgas-online/<board>.lock, and the Acorn’s/run/lock/fpgas-acorn.lock(shared withfpgas-acorn-flash). The packages’/usr/lib/tmpfiles.d/fpgas-online-*.confcreate them at boot, root-owned and 0644, so no other user can create one first. A lock file that cannot be opened is an error naming the file and its owner: remove it, or reboot.Which board a host checks is
[verify] fpga-board = <board>orauto, in*.inifiles: the board’s package puts one in/usr/share/fpgas-online/verify/mode.d/; one in/etc/fpgas-verify/overrides it.[verify] publish = onin the same files makes the check tell the fleet how it went. It is off unless a file says so; a value that is neitheronnoroff, or two files that disagree, is an error and nothing is sent. Accepted values areon,yes,true,1andoff,no,false,0, as forpower-cycle-check. Every report and summary says whether the run was published and why:"publish": {"on": true, "configured_by": "/etc/fpgas-verify/fleet.ini"}andpublished to the fleet: ..., or"publish": {"on": false, "why": "..."}andnot published: .... On a fleet Pi,not published: no file ...injournalctl -b -u fpgas-verifymeans the root lost itsfleet.ini.[verify] power-cycle-check = onin the same files switches on the Acorn’s power-cycle check. It is off unless a file says so: the fpgas.online Pi root sets it in/etc/fpgas-verify/; elsewhere it stays off.Options for the boot run go in
FPGAS_VERIFY_ARGSin/etc/default/fpgas-verify. The package installs that file with every line a comment (it is whatEnvironmentFile=insystemctl cat fpgas-verifynames), so the boot run is plainfpgas-verifyuntil you edit it. It is a configuration file: an upgrade keeps your edit.From a checkout, without installing:
PYTHONPATH=verify/src python3 -m fpgas_online_verify --help(its output:--help).