How to run the Acorn check on a Compute Blade¶
You have an Acorn on a Compute Blade, its two cables built and fitted, and want to know what the check says about the wiring.
On a Compute Blade the check cannot prove the cables while the card is not converted: The Acorn check says why. The bench check with a meter, before fitting, is what the cables rest on: How to check the cables on the bench (Compute Blade).
Log in to the blade first. At ps1:
Work out the blade’s port. It is
1NN22, whereNNis the number in the blade’s name:11622for pi16 at ps1.Connect as
pifrom your own machine.sshprints a banner that holds the password, then asks for it.$ ssh -p 11622 pi@ps1.fpgas.online
Type the password from the banner. The blade’s shell prompt appears, and
sudotakes the same password.
What you need¶
a Compute Blade with a Compute Module 5, the Acorn and both cables fitted (How to fit the cables and the card (Compute Blade)). Do not run the check on a blade with a Compute Module 4 (the record of what is open there)
a computer with ssh, on a network that reaches the blade
on the blade: a network that reaches
apt.fpgas.onlineandfpgas.online, where the packages come from
Steps¶
1. Install the Acorn’s packages. A Compute Blade that boots from the network has its root file system in memory (overlayroot=tmpfs). What you install is gone at the next boot, and so is the check that would run at boot. So install after each boot. Ask the site operator before you reboot a blade: a reboot ends a visitor’s session on it, the same harm as a power-off.
# 1. The two apt repositories the packages come from.
sudo install -d -m0755 /etc/apt/keyrings
sudo curl -fsSL --remove-on-error -o /etc/apt/keyrings/apt.gpg https://apt.fpgas.online/apt.gpg
echo "deb [signed-by=/etc/apt/keyrings/apt.gpg] https://apt.fpgas.online/$(. /etc/os-release; echo $VERSION_CODENAME)/ ./" \
| sudo tee /etc/apt/sources.list.d/apt.list
sudo curl -fsSL --remove-on-error -o /etc/apt/keyrings/fpgas.online-fpga-tools.gpg \
https://fpgas.online/fpgas.online-fpga-tools/fpgas.online-fpga-tools.gpg
echo "deb [signed-by=/etc/apt/keyrings/fpgas.online-fpga-tools.gpg] https://fpgas.online/fpgas.online-fpga-tools/$(. /etc/os-release; echo $VERSION_CODENAME)/ ./" \
| sudo tee /etc/apt/sources.list.d/fpgas.online-fpga-tools.list
ls -l /etc/apt/keyrings/apt.gpg /etc/apt/keyrings/fpgas.online-fpga-tools.gpg
# 2. The Acorn's packages.
sudo apt update
sudo apt install fpgas-online-acorn
# 3. What is installed, and which board this host is set up to check.
fpgas-verify --list
Part 1 is safe to run again: each line replaces the file it writes. Its last line lists the two keys, each about 1.2 kB. If ls says No such file or directory for one, or its size is far from that, run that key’s curl line again, then parts 2 and 3.
2. In a boot with the header’s serial port off, check GPIO14 before the check runs. The checks are steps 7 and 8 of How to make a Compute Blade boot ready for JTAG. Step 7 checks that GPIO14 is free, and step 8 checks that nothing on the card drives GPIO14. If either fails, do not run the check in that boot: something holds or drives the JTAG TMS wire. In a boot with the port on, go to the next step: jtag fails there without running the JTAG tool.
3. Run the check. Nothing is sent to the site: --no-publish makes sure.
sudo fpgas-acorn-verify --no-publish
Check¶
There is one result, pass or fail, and only a pass exits 0. The summary on the terminal lists every test in the order it ran, with its result. A check that did not pass ends with RESULT:. Under RESULT: come a failed: line for each failed test, a not run: line for the tests that did not run and why, and What to do:.
On a Compute Blade the result is fail: The Acorn check says why. On a host set up for an Acorn, fpgas-verify and fpgas-acorn-verify print the same. This is what a Compute Blade with a Compute Module 5 prints in a boot with the header’s serial port on. The card is an Acorn CLE-101, on the image it was sold with:
$ 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
******************************************************************************
A blade whose own name does not resolve prints sudo: unable to resolve host … before the output. It does not change the result.
A card on the vendor’s XDMA sample image gets the same tests as one on SQRL’s image (version 0.0.post1220 or newer). On the XDMA sample image, pcie-link and rp1-pio pass, jtag fails as above, and the rest are not run. The card’s summary line reads acorn -: fail, naming no variant, and the first What to do: line says the board runs Xilinx’s XDMA sample design.
A pass lists every test with pass and ends there, with no RESULT: part. On a Compute Blade p2-gpio stays not run, because J5 and H5 are not wired.
If it fails¶
apt updatesays a repositoryis not signed: its key is missing, empty or wrong. On trixie a missing key givesFailed to parse keyring "/etc/apt/keyrings/apt.gpg"andNo such file or directory. An empty or wrong one givesMissing key 878EC72910E22EA0E989EAA9BEB0EC3124E538E4, which is needed to verify signature.On bookworm apt saysNO_PUBKEYand the key’s ID. Run part 1 of step 1 again, check itslsline, then parts 2 and 3.A failing
jtagorp2-…line: A failing Acorn test on a Compute Blade goes from the line to the wire.Any other message: Other Acorn check messages on a Compute Blade.
Next¶
Acorn tests and their wires on a Compute Blade: which test uses which wire.
The Acorn check: what the check is, and what it does to the card.
How to make a Compute Blade boot ready for JTAG: the boot in which
jtagcan run.