fpgas-verify: what an Acorn check tests¶
You have an Acorn and want to know what its check does, test by test. The details of the tests (ddr step
by step, not_run, the driver unbound, the pins put back) are in the Acorn’s tests in detail.
Every fpgas-verify page is listed in fpgas-verify.
Acorn¶
The Acorn check (suite.py,
check.py,
links.py,
bist.py) tests the board as it booted from its
flash:
It loads nothing, never writes the flash and never reconfigures the FPGA.
It runs every test it can, in the order below; a fault in one does not stop the others.
Nothing is sent to the BARs of a board whose PCI IDs are not ours.
On ours, nothing past the identifier read is sent over BAR0 or the P2 UART unless that identifier is a build of the installed release. The CSR addresses then come from that build’s
csr.json; one that puts a CSR the check uses outside the 64 KiB of BAR0 it maps is anerror.
Which board it is, from the PCI IDs alone:
PCI IDs |
Is |
Result |
|---|---|---|
|
the fpgas.online Acorn SoC |
tested |
|
an Acorn on SQRL’s factory image |
|
|
the vendor XDMA sample (an Acorn or a NeTV2) |
|
|
a PCIe Screamer running PCILeech |
|
|
a stock Xilinx XDMA design (most likely a PicoEVB) |
|
any other Xilinx or SQRL ID |
not a design we built |
|
The two boards that are not Acorns are reported as xilinx-pcie, followed by what their IDs say (for example xilinx-pcie PCIe Screamer (PCILeech image): fail), not as acorn, and the fpga-verified fleet event’s board0 says xilinx-pcie - fail. The report keeps "board": "acorn", the check that found them, and so do the progress events (fpga-board-found, fpga-board-identified).
Which setup the host is. The Acorn has two setups, each wired its own way:
Host ( |
Setup |
JTAG |
GPIO chip |
J5 / H5 |
|---|---|---|---|---|
|
Pi 5 with the Waveshare HAT |
|
|
GPIO3 / GPIO4 |
|
Compute Blade |
|
|
not wired |
|
Compute Blade |
|
|
not wired |
Both use openFPGALoader’s
libgpiodcable, and the P2 UART is/dev/ttyAMA0.Any other host is an
error; the tests that do not need the wiring still run.On a Compute Blade J2 shares GPIO14 with TMS, through 470 Ω. So after the
jtagtest GPIO14 goes back to its UART function. On a Compute Module 5 with kernel 6.18 the kernel does not lend GPIO14 while the serial port has it: with the serial port on,jtagfails saying so, without running openFPGALoader (fpgas.online-test-designs issue 127: on a Compute Blade the JTAG test cannot have GPIO14 while the serial port holds it).
The result:
It is
passonly when every test passes.A board running its golden image fails: the operational slot did not boot.
A Pi with no Acorn is
missing. That is fatal, since the host was set up for one.changedcompares the PCI slot and IDs, the device DNA, the flash’s identity and the sha256 of each slot. So a flash rewritten since the last run (byfpgas-acorn-flash write, say) is fatal untilsudo fpgas-verify --update.
The expected data, one copy each, in the repository and installed by fpgas-online-acorn-tools:
File |
Holds |
In the repository |
Installed |
|---|---|---|---|
|
each setup’s wiring: which Pi GPIO each P1/P2 signal lands on, the JTAG cable and pins, the UART, and which hosts are that setup |
|
|
|
the figures the board must meet: PCIe link speed and width per setup, XADC ranges, and the least DRAM write and read bandwidth per variant |
the same |
From a checkout, the check reads them from the repository.
The tests, in the order they run:
Test |
Over |
Passes when |
|---|---|---|
|
sysfs |
|
|
BAR0 |
the operational build runs (the golden build means the operational slot did not boot), the flash identifies itself and its SFDP header can be read (a flash with no SFDP passes), the device DNA is neither all zeros nor all ones, and the XADC temperature and VCCINT, VCCAUX and VCCBRAM are in range |
|
the Pi’s kernel |
Pi 5 / CM5 (BCM2712) only, not run elsewhere: |
|
P1 |
|
|
BAR0 |
both 4 MiB slots (golden at |
|
BAR0 |
after the BIOS console is read out, the DRAM BIST makes two passes over the whole DRAM: no errors, and write and read bandwidth at least the variant’s minimum; details: the |
|
P2 |
the UARTBone identifier at 1200 baud is BAR0’s; at 921600 baud the identifier, DNA and XADC readings are right and the DNA is BAR0’s. The link is left at 1200 baud |
|
BAR0 and the Pi’s GPIO |
J2/K2, borrowed from the UART by the |
|
BAR0 and P2 |
the |
|
BAR0 and the Pi’s GPIO |
Pi 5 setup only: J5/H5 carry 0 and 1 both ways, FPGA to Pi and Pi to FPGA |
|
BAR0 |
the FPGA restarted since the last check: see The Acorn’s power-cycle check (opt-in) |