A failing Acorn test on a Compute Blade

The check of your Acorn on a Compute Blade 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. Ask the site operator, then power off the Compute Blade: unplug its PoE cable, and a USB-C cable if one is plugged in.

  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 (Compute Blade).

  6. Fit the cables: How to fit the cables and the card (Compute Blade).

  7. Ask the site operator, then boot the blade. The install is gone after the boot, so install the packages again, as in How to run the Acorn check on a Compute Blade. Then run the check again.

One test can be run on its own: sudo fpgas-acorn-verify --no-publish --test p2-serial, or sudo fpgas-acorn-verify --no-publish --test jtag. Run --test jtag only in a boot with the header’s serial port off. Run --test jtag only after steps 7 and 8 of How to make a Compute Blade boot ready for JTAG pass. Step 7 checks that GPIO14 is free, and step 8 checks that nothing on the card drives GPIO14.

In a boot with the header’s serial port off, the same goes for the whole check, which runs jtag too. The whole check: How to run the Acorn check on a Compute Blade. 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

jtag fail: … GPIO14 (TMS) is held by … (uart0): the kernel does not hand out a pin that is held …

not a wire: the serial port holds GPIO14, which is also TMS, so JTAG cannot run in a boot that has the header’s serial port on (kernel 6.18). How to make a Compute Blade boot ready for JTAG gives a boot with that port off

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 470 Ω resistor stays in wire 3 (J2)

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 with the resistor 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. Then the 470 Ω resistor is in K2’s wire: move it into wire 3 (J2), as the resistor step of the P2 cable’s build page does

p2-serial naming one of its two signals only (J2 or K2)

that one wire is open, or on the wrong pin. Before the FPGA drives, the test sets the host’s pull against the level to come, so an open wire reads the opposite of what was driven. When you then check the J2 wire with a meter, set it to ohms: a good J2 wire reads close to 470 Ω end to end, and a continuity buzzer usually stays silent through that

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 prints 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, the left-hand one K2.

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 Compute Blade has every other message the check gives about an Acorn.