A failing Acorn test on a Raspberry Pi 5

The check of your Acorn on a Raspberry Pi 5 printed a failing line, and you want to know which wire it means.

From a failing line to the wire

Find the failing line in the table, then the wire in the two cavity pictures under it. The number in a cavity is the number on the wire’s flag.

To move a wire, the cable goes through the same checks as when the cable was built, before any boot:

  1. Power off the Raspberry Pi 5: unplug its power, and its network cable if it is powered over PoE.

  2. Take the card out and pull both plugs from its sockets.

  3. Move the wire.

  4. Check that cable’s plug contacts against its housing with the meter, as when the cable was built:

  5. Run the bench check, with the card out: How to check the cables on the bench (Raspberry Pi 5).

  6. Fit the cables: How to fit the cables and the card (Raspberry Pi 5).

  7. Boot the Pi and run the check again.

One test can be run on its own: sudo fpgas-acorn-verify --test jtag, or --test p2-serial. Each prints the usual summary, then the whole report as JSON.

The failing line

Look at

pcie-link fail: link is x2, expected x1 (or a speed)

the M.2 seat; or the setup’s expected figures are not this host’s

jtag fail: no device on the P1 JTAG chain

the P1 cable is not plugged in, or TCK, TMS or TDO is open or on the wrong pin

jtag fail: P1 JTAG chain has …, expected one …

another device answers, or the card is not the variant the host expects

jtag fail: device DNA over P1 JTAG reads 0x0: the DNA port is not being read (or reads 0x1ffffffffffffff), openFPGALoader --read-dna read no device DNA over P1 JTAG, or device DNA over JTAG … is not the one over BAR0 …

TDI: the IDCODE read worked without it

p2-uart fail: no UARTBone reply on /dev/ttyAMA0 (P2 K2/J2)

the serial pair: open, or crossed; p2-serial says which

p2-serial fail: J2 -> GPIO14: the FPGA drove 1, the Pi read 0; K2 -> GPIO15: the FPGA drove 0, the Pi read 1; … with the 01 and 10 lines swapped and 00 and 11 right

J2 and K2 are crossed: wires 2 and 3 of the P2 cable are in each other’s cavity. Take both terminals out of the housing and put each in the other’s cavity (the P2 cavity picture below)

the same p2-serial fail, on a P2 cable built from an older version of these pages, whose P2 picture had wire 2 as J2 and wire 3 as K2

that version had J2 and K2 at each other’s position in the Acorn’s socket: swap the two terminals as in the row above

p2-serial or p2-gpio naming one of its two signals only (J2 or K2; J5 or H5)

that one wire is open, or on the wrong pin. Before the FPGA drives, the test sets the Pi’s pull against the level to come, so an open wire reads the opposite of what was driven; GPIO3 (J5’s pin) has a pull-up of its own on the Pi, so an open J5 wire reads 1 whatever is driven

p2-gpio fail: J5 -> GPIO3: …; H5 -> GPIO4: … with the 01 and 10 lines swapped and 00 and 11 right

J5 and H5 are crossed: wires 4 and 5 of the P2 cable are in each other’s cavity. Take both terminals out of the housing and put each in the other’s cavity (the P2 cavity picture below)

The two cavity pictures are the ones the cables were built from, shown again to find a wire’s cavity. Their notes about cutting, marking and the meter check belong to building the cables.

Which wire goes in which cavity, P1 cable Which wire goes in which cavity, P1 cable

Which wire goes in which cavity, P2 cable Which wire goes in which cavity, P2 cable

p2-serial and p2-gpio print what was driven and what was read, eight lines for two wires. The two digits are the two signals: the right-hand digit is J2 (or J5), the left-hand one K2 (or H5).

A crossed pair. The p2-serial test drives each wire as a plain pin, first from the FPGA and then from the host. The line FPGA drives 01 raises J2, which should arrive on GPIO14; J2 arrives on GPIO15:

    p2-serial  fail: J2 -> GPIO14: the FPGA drove 1, the Pi read 0; K2 -> GPIO15: the FPGA drove 0, the Pi read 1; J2 -> GPIO14: the FPGA drove 0, the Pi read 1; K2 -> GPIO15: the FPGA drove 1, the Pi read 0; GPIO14 -> J2: the Pi drove 1, the FPGA read 0; GPIO15 -> K2: the Pi drove 0, the FPGA read 1; GPIO14 -> J2: the Pi drove 0, the FPGA read 1; GPIO15 -> K2: the Pi drove 1, the FPGA read 0; the UARTBone does not answer on /dev/ttyAMA0 after the switch (no fpgas.online SoC answered at 1200 baud after a break)
        FPGA drives 00: Pi reads GPIO14=0 GPIO15=0
        FPGA drives 01: Pi reads GPIO14=0 GPIO15=1
        FPGA drives 10: Pi reads GPIO14=1 GPIO15=0
        FPGA drives 11: Pi reads GPIO14=1 GPIO15=1
        Pi drives 00: FPGA reads 00
        Pi drives 01: FPGA reads 10
        Pi drives 10: FPGA reads 01
        Pi drives 11: FPGA reads 11

One open wire, a J5 wire that does not reach GPIO3. GPIO3 reads 1 whatever the FPGA drives. The Pi’s own pull-up on GPIO3 wins over the test’s pull-down. On GPIO4 an open wire would read the opposite of what was driven. On this card the FPGA read J5 as 1 whatever the Pi drove, and H5 and GPIO4 follow each other:

    p2-gpio    fail: J5 -> GPIO3: the FPGA drove 0, the Pi read 1; J5 -> GPIO3: the FPGA drove 0, the Pi read 1; GPIO3 -> J5: the Pi drove 0, the FPGA read 1; GPIO3 -> J5: the Pi drove 0, the FPGA read 1
        FPGA drives 00: Pi reads GPIO3=1 GPIO4=0
        FPGA drives 01: Pi reads GPIO3=1 GPIO4=0
        FPGA drives 10: Pi reads GPIO3=1 GPIO4=1
        FPGA drives 11: Pi reads GPIO3=1 GPIO4=1
        Pi drives 00: FPGA reads 01
        Pi drives 01: FPGA reads 01
        Pi drives 10: FPGA reads 11
        Pi drives 11: FPGA reads 11

A correctly wired pair reads back what was driven: FPGA drives 01: Pi reads GPIO14=1 GPIO15=0, Pi drives 01: FPGA reads 01, and so on for every pattern.

A failing line that is not in the table above is not about a wire of the cables. Other Acorn check messages on a Raspberry Pi 5 has every other message the check gives about an Acorn.