How to run the Acorn check on a Raspberry Pi 5¶
You have an Acorn on a Raspberry Pi 5, its two cables built and fitted, and want to know whether the wiring is right.
Log in to the Pi 5 first. At welland, the board’s page on https://welland.fpgas.online/fpgas/ shows its ssh command under “Use your own ssh client”.
What you need¶
a Raspberry Pi 5 with the Acorn and both cables fitted (How to fit the cables and the card (Raspberry Pi 5))
a terminal on the Pi, and
sudothereon a Pi that does not boot the fleet’s root: a network that reaches
apt.fpgas.onlineandfpgas.online, where the packages come from
Steps¶
1. Install the Acorn’s packages, on a Pi that does not have them. A Raspberry Pi 5 that boots the fleet’s root has them, and has run the check once at this boot: go to the next step. On a Pi whose root file system is in memory (overlayroot=tmpfs), what you install is gone at the next boot.
# 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. Run the check. Nothing is sent to the site: --no-publish makes sure. On a Pi that boots the fleet’s root, journalctl -b -u fpgas-verify -o cat prints what the check at this boot said.
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:.
A pass, here as fpgas-verify prints it (on a host set up for an Acorn the two programs print the same):
$ 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
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 Raspberry Pi 5 goes from the line to the wire.Any other message: Other Acorn check messages on a Raspberry Pi 5.
Next¶
Acorn tests and their wires on a Raspberry Pi 5: which test uses which wire.
The Acorn check: what the check is, and what it does to the card.