How to update the operational image of an Acorn¶
You have an Acorn that runs the fpgas.online Acorn design from flash and want to write another operational image to it. This page covers a Raspberry Pi 5. It does not cover the first install, which is How to install the fpgas.online images on an Acorn.
This procedure is waiting for its run: test-designs issue #223.
What you need¶
The Acorn running the fpgas.online Acorn design from flash, and the flash tool
fpgas-acorn-flashfrom How to install the Acorn packages.The replacement image as
sqrl_acorn_operational.bin, and its.bit, kept on your own machine. Every power cycle clears/home/pi, so the steps copy them again.The load command of How to run JTAG by hand on an Acorn on a Raspberry Pi 5.
The rescan command of How to check an Acorn’s PCIe link by hand on a Raspberry Pi 5.
Steps¶
Copy the
.bitandsqrl_acorn_operational.bininto/home/pion the Pi, and run every command there. Test the image first: detach the endpoint, load the.bitinto SRAM over JTAG, bring PCIe back and check it.At the switch, PoE-cycle the host’s port and wait more than 90 s. The card runs its flash image again, not the test load of step 1.
On the Pi, keep what the flash holds:
sudo fpgas-acorn-flash dump backup.binreads all 32 MiB in about a minute.On the Pi, run
sudo chown pi backup.bin. From your own machine, copy it off withscp pi@HOST:backup.bin ., adding the options yoursshlogin needs. Check that it arrived.Copy
sqrl_acorn_operational.bininto/home/piagain, because the cycle in step 2 cleared it. On the Pi, write the image withsudo fpgas-acorn-flash write sqrl_acorn_operational.bin 0x400000 --idcode 0x3636093. On a CLE-101 the IDCODE is0x3631093.At the switch, PoE-cycle the host’s port and wait more than 90 s.
Copy
sqrl_acorn_operational.bininto/home/piagain. On the Pi, check that the slot holds the image of step 5:sudo fpgas-acorn-flash verify sqrl_acorn_operational.bin 0x400000.
Warning
Do not write the flash with litepcie_util flash_write. It checks nothing before it writes, and without an offset it writes 0x0, the golden slot. The flash tool fpgas-acorn-flash checks the image against the slot and refuses 0x0 without --i-know-this-writes-golden.
Check¶
Step 7 passes, and lspci -nn -s 0001:01:00.0 lists the design’s ID 10ee:7021 without any JTAG load.
If it fails¶
The image does not boot, or the card does not come back. Follow How to recover an Acorn with a bad image.
fpgas-acorn-flashrefuses to start, because thelitepciemodule is loaded. Unload it withsudo rmmod litepcie, then run the step again.fpgas-acorn-flashrefuses the write. The image does not match the slot. The operational slot wants the flavour with the watchdog and the IDCODE of the part that is there.