Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
fpgas.online
fpgas.online
  • User documentation
    • Sites
      • The welland site
      • The ps1 site
    • Roadmap
    • Using a board
      • Acorn
        • An Acorn on fpgas.online
        • How to load a design onto an Acorn from its board page
      • Tiny Tapeout FPGA demo board
        • A Tiny Tapeout FPGA demo board on fpgas.online
        • How to run a bundled design
        • How to load your own bitstream
        • The bundled designs
      • NeTV2
        • A NeTV2 on fpgas.online
        • How to load a design onto a NeTV2 from its board page
      • Fomu EVT
        • A Fomu EVT on fpgas.online
      • Arty A7
        • An Arty A7 on fpgas.online
        • How to load a design onto an Arty A7 from its board page
      • Tiny Tapeout chip demo boards
        • The Tiny Tapeout chip demo boards on fpgas.online
        • How to select a design on a Tiny Tapeout chip demo board
      • The board page on welland and ps1
      • How to reset a board
      • The camera on a board
    • How to reach a board with your own ssh client
    • How to log in to a host at ps1
  • Admin documentation
    • How the system works
      • Setup
      • Netboot and the NFS root
        • Updating the NFS root
        • A Pi not booting
        • What is in the NFS root
        • The EEPROM lock
        • Historical tooling
        • Sources
      • Network and power
        • Power-cycling a board
        • Converging the switches
        • Checking isolation
        • The PoE scripts
        • Sources
      • What runs on a Pi host
        • Services
        • Units shipped by fpgas-online-setup-pi
        • Boot-time configuration
        • Models and serial consoles
        • Camera
        • Sources
      • The gateways
        • The gateway host
          • Deploying a gateway
          • Rebuilding a gateway
          • Certificates at welland
          • Services
          • Sources
        • The welland gateway
        • The ps1 gateway and switch
        • What a site needs from its upstream network
          • The uplink and inbound IPv4
          • IPv6 and DNS
          • Outbound, from the gateway
      • The web application
      • The Tiny Tapeout stack
    • How to maintain it
      • Accounts and logins at welland
        • The gateway, tweed
        • The Pi NFS root
        • Logging in
        • Adding or removing a person
        • Where the keys come from
        • Verifying access
      • Bootloader EEPROM: upgrade and lock
        • Raspberry Pi 5: check, upgrade, lock
          • Check it
          • Upgrade: what you need
          • Step 1: make the card
          • Step 2: network cable out
          • Step 3: join the WP pads
          • Step 4: card and cable in
          • Step 5: undo, cable back in
          • Step 6: read it back
        • Compute Module in a Compute Blade
      • Orange Pi H3 hosts
        • Reading and recovering
        • Adding and deploying
        • The hub host
        • Why they boot this way
      • Verifying a deployment
    • How to set up sites and devices
      • Boards
        • Digilent Arty A7
          • Overview
            • The Arty A7 board
            • Arty A7 specifications
            • Programming an Arty A7
            • Arty A7 references
          • Set one up
            • Arty A7 wiring to a Raspberry Pi
            • How to load a design onto an Arty A7
            • How to write a design into an Arty A7’s flash
            • How to install the Arty A7 packages
          • Checks
            • How to run the Arty A7 UART test by hand
            • How to run the Arty A7 GPIO loopback test by hand
        • Kosagi NeTV2
          • Overview
            • The NeTV2 board
            • NeTV2 specifications
            • Programming a NeTV2
            • NeTV2 references
          • Set one up
            • NeTV2 wiring to a Raspberry Pi
            • How to install the NeTV2 packages
            • How to load a design into a NeTV2 on a Raspberry Pi 3B+
            • How to load a design into a NeTV2 on a Raspberry Pi 5
            • How to write a design into a NeTV2’s flash
            • How to free a NeTV2’s serial port before a test
          • Checks
        • SQRL Acorn and LiteFury
          • Overview
            • The Acorn card
            • Acorn specifications
            • Programming an Acorn
            • The fpgas.online Acorn design
            • The camera over an Acorn
            • Acorn references
          • Which one do I have
          • Set one up
            • On a Raspberry Pi 5
              • The two cables on a Raspberry Pi 5
                • Parts and tools for the Raspberry Pi 5 cables
                • How to prepare the JTAG cable’s wires (Raspberry Pi 5)
                • How to fill the JTAG cable’s housing (Raspberry Pi 5)
                • How to prepare the UART cable’s wires (Raspberry Pi 5)
                • How to fill the UART cable’s housing (Raspberry Pi 5)
                • How to check the cables on the bench (Raspberry Pi 5)
              • How to fit the cables and the card (Raspberry Pi 5)
              • A Raspberry Pi 5’s settings for an Acorn
              • Acorn wiring on a Raspberry Pi 5
              • The serial port, the console and JTAG on a Raspberry Pi 5
            • On a Compute Blade
              • The two cables on a Compute Blade
                • Parts and tools for the Compute Blade cables
                • How to prepare the JTAG cable’s wires (Compute Blade)
                • How to fill the JTAG cable’s housing (Compute Blade)
                • How to prepare the UART cable’s wires (Compute Blade)
                • How to fill the UART cable’s housing (Compute Blade)
                • How to check the cables on the bench (Compute Blade)
              • How to fit the cables and the card (Compute Blade)
              • A Compute Blade’s pins and settings for an Acorn
              • Acorn wiring on a Compute Blade
              • The line JTAG and the serial port share on a Compute Blade
            • How to install the Acorn packages
            • How to install the fpgas.online images on an Acorn
            • How to update the operational image of an Acorn
            • How to generate multiboot bitstreams by hand
            • Reaching an Acorn’s flash through PCIe
          • Checks
            • How to run the Acorn check on a Raspberry Pi 5
            • How to run the Acorn check on a Compute Blade
              • How to make a Compute Blade boot ready for JTAG
            • Tests by hand
              • How to run JTAG by hand on an Acorn on a Raspberry Pi 5
              • How to run JTAG by hand on an Acorn on a Compute Blade
              • How to check an Acorn’s PCIe link by hand on a Raspberry Pi 5
              • How to check an Acorn’s PCIe link by hand on a Compute Blade
              • How to run the pin ID test on an Acorn on a Raspberry Pi 5
              • How to run the pin ID test on an Acorn on a Compute Blade
              • How to run the Acorn UART and GPIO loopback on a Raspberry Pi 5
            • What the Acorn check tests
              • The Acorn check
              • Acorn tests and their wires on a Raspberry Pi 5
              • Acorn tests and their wires on a Compute Blade
              • The Acorn DDR memory test
              • The Acorn Wishbone bridges test
              • JTAG loads and the PCIe endpoint
          • Troubleshooting
            • A failing Acorn test on a Raspberry Pi 5
            • Other Acorn check messages on a Raspberry Pi 5
            • Acorn wiring faults on a Raspberry Pi 5
            • A failing Acorn test on a Compute Blade
            • Other Acorn check messages on a Compute Blade
            • Acorn wiring faults on a Compute Blade
            • How to recover an Acorn with a bad image
        • Fomu EVT
          • Overview
            • The Fomu EVT board
            • Fomu EVT specifications
            • Programming a Fomu EVT
            • USB analysers for the Fomu EVT
            • Fomu EVT references
          • Set one up
            • Fomu EVT wiring to a Raspberry Pi
            • How to install the Fomu packages
            • How to load a design onto a Fomu EVT with openFPGALoader
          • Checks
            • How to stop the serial login console before a Fomu UART test
          • Troubleshooting
            • Fomu EVT programming faults
            • Fomu EVT test faults
        • Tiny Tapeout FPGA demo board
          • Overview
            • The Tiny Tapeout FPGA demo board
            • Tiny Tapeout FPGA demo board specifications
            • Tiny Tapeout FPGA demo board pin mapping
            • Programming a Tiny Tapeout FPGA demo board
            • Serial port ownership on a Tiny Tapeout FPGA demo board
            • The firmware on a Tiny Tapeout FPGA demo board
            • Tiny Tapeout FPGA demo board references
          • Set one up
            • Tiny Tapeout FPGA demo board wiring to a Raspberry Pi
            • How to install the Tiny Tapeout FPGA packages
            • How to stop the fpgas-tt daemon and start it again
          • Checks
            • Tiny Tapeout FPGA demo board test designs
          • Troubleshooting
            • Tiny Tapeout FPGA demo board faults
            • Tiny Tapeout FPGA demo board faults on the Raspberry Pi
        • Tiny Tapeout chip demo boards
          • Overview
            • The Tiny Tapeout chip demo boards
            • Tiny Tapeout shuttles and their demo boards
            • Tiny Tapeout chip demo board references
          • Set one up
            • Tiny Tapeout chip demo board wiring to a Raspberry Pi
            • How to free a Tiny Tapeout board’s serial port from fpgas-tt
      • fpgas-verify: checking an FPGA board from its Raspberry Pi
        • Installing
        • Running it
        • Identity and labels
        • Reading the result
        • Reading the result: more
        • --help
        • What each check tests
        • Each check, one by one
        • TT FPGA
        • Acorn
        • Acorn: power-cycle check
        • JTAG IDCODE and DNA
        • Checking an Acorn's wiring
        • Common failures
        • The report and state
      • Packages
  • Developer documentation
    • About these docs
      • The structure of the documentation
      • What a page contains
      • Review and verification of a page
      • References on writing documentation
      • Where each limit comes from
    • Repositories
    • Contributing to these docs
    • Board identity
    • Open items on these pages
  • Resources
    • PMOD interface
    • Raspberry Pi PMOD HAT
    • Tiny Tapeout PMOD layouts
    • The pin-id design
      • How to scan an Arty A7’s wiring with the pin-id design
      • Pin-id scanner options
      • How to add a board to the pin-id design
Back to top
View this page
Edit this page

How to check an Acorn’s PCIe link by hand on a Raspberry Pi 5¶

You have an Acorn on a Raspberry Pi 5 and want to load the fpgas.online design and bring the card back.

The boot check does the reading part by itself (pcie-link, pcie-bar0): Acorn tests and their wires on a Raspberry Pi 5. The design is built for the CLE-215+, the CLE-215 and the CLE-101. On a Compute Blade the addresses and the way back differ: How to check an Acorn’s PCIe link by hand on a Compute Blade.

What you need¶

  • An Acorn in the M.2 slot of a Pi 5 with the M.2 HAT, where the card is at 0001:01:00.0.

  • The JTAG wiring of Acorn wiring on a Raspberry Pi 5, and openFPGALoader with the libgpiod cable.

  • The fpgas.online Acorn design’s .bit file in SOC:

    The design these steps load is the fpgas.online Acorn design, the only design a package installs. fpgas-online-acorn-bitstreams puts it in /usr/share/fpgas-online/acorn-pcie/images/, for each variant (cle-215p, cle-215, cle-101) as acorn-<variant>-sqrl_acorn.bit for a JTAG load, beside the two flash images. Put its name in SOC once per shell; the example is a CLE-101, so put another card’s variant in place of cle-101, here and in the release file names of the loopback and pin-ID designs:

    $ SOC=/usr/share/fpgas-online/acorn-pcie/images/acorn-cle-101-sqrl_acorn.bit
    

Steps¶

  1. On the Pi, list the card with lspci; it shows one line, whose ID says which image it runs.

    $ lspci -nn -s 0001:01:00.0
    

    The line after the address says which image the card runs:

    The factory Sqrl firmware:
      Processing accelerators [1200]: Squirrels Research Labs Acorn CLE-215+ [1e24:021f]
      Processing accelerators [1200]: Squirrels Research Labs Acorn CLE-101 [1e24:0101]
    The vendor (RHS Research) XDMA sample image:
      Processing accelerators [1200]: Xilinx Corporation 7-Series FPGA Hard PCIe block (AXI/debug) [10ee:7011]
    The fpgas.online Acorn design (or any LiteX x1 PCIe design):
      Memory controller [0580]: Xilinx Corporation Device [10ee:7021]
    
  2. On the Pi, detach the card’s PCIe endpoint before any JTAG load (why); the card no longer shows in lspci.

    $ echo 1 | sudo tee /sys/bus/pci/devices/0001:01:00.0/remove
    
  3. On the Pi, make sure gpiochip0 is the header’s GPIO chip, because the libgpiod cable opens gpiochip0.

    The header’s GPIO chip is the one gpiodetect lists as pinctrl-rp1; its number varies from 11 to 15. Where the Acorn packages are installed, the boot check makes gpiochip0 a link to it when gpiochip0 is missing. The link is gone at each reboot. Check which chip gpiochip0 is:

    $ sudo gpiodetect
    $ ls -l /dev/gpiochip0
    

    Skip the link if ls -l shows -> gpiochipN with N the number of pinctrl-rp1, or gpiodetect lists gpiochip0 itself as pinctrl-rp1. If /dev/gpiochip0 is missing or another chip, link it. The line below is for gpiochip15: put your chip’s number in place of 15.

    $ sudo ln -sfn /dev/gpiochip15 /dev/gpiochip0
    
  4. On the Pi, load the design into SRAM; the load’s last line ends with done 1.

    $ openFPGALoader --cable libgpiod --pins 10:9:11:8 $SOC
    
  5. On the Pi, rescan the bus; the link is up the moment the load finishes, so the rescan enumerates the card.

    $ echo 1 | sudo tee /sys/bus/pci/rescan
    
  6. On the Pi, list the Xilinx devices; the card is back, as the LitePCIe default for one lane.

    $ lspci -nn -d 10ee:
    

Check¶

Step 6 shows the fpgas.online design’s ID.

Xilinx Corporation Device [10ee:7021]

If it fails¶

  • The Acorn is not in step 1: the M.2 card or the HAT’s FPC cable is loose; reseat both and read dmesg | grep -i pci.

  • The Pi reboots or SSH drops during the load: the endpoint was still enumerated; detach it (step 2) before every load.

  • Step 6 shows nothing: the card did not link; re-probe the slot’s root complex with the lines below, then run step 6 again.

  • bind fails with No such device, and the driver logs link down: the link was down, so the root port 0001:00:00.0 is gone. Load a design that links (or openFPGALoader --reset), then bind again.

  • The card still does not link: check that the build’s I/O report has the lane on B10 and B6.

The re-probe finds the platform device behind the slot, 1000110000.pcie, then unbinds and binds it. lspci -nn -s 0001:01:00.0 then shows the card:

$ RC=$(readlink -f /sys/bus/pci/devices/0001:00:00.0 | grep -o '[0-9a-f]*\.pcie')
$ echo $RC | sudo tee /sys/bus/platform/drivers/brcm-pcie/unbind
$ echo $RC | sudo tee /sys/bus/platform/drivers/brcm-pcie/bind
$ lspci -nn -s 0001:01:00.0
0001:01:00.0 Memory controller [0580]: Xilinx Corporation Device [10ee:7021]

Next¶

  • How to run JTAG by hand on an Acorn on a Raspberry Pi 5

  • JTAG loads and the PCIe endpoint

  • How to recover an Acorn with a bad image

Next
How to check an Acorn’s PCIe link by hand on a Compute Blade
Previous
How to run JTAG by hand on an Acorn on a Compute Blade
Copyright © 2026, Tim 'mithro' Ansell
Made with Sphinx and @pradyunsg's Furo
On this page
  • How to check an Acorn’s PCIe link by hand on a Raspberry Pi 5
    • What you need
    • Steps
    • Check
    • If it fails
    • Next