Case study: board bring-up

Two AD9361 radios on one ZCU102, brought up with nobody in the lab

A second AD-FMCOMMS3 card on the ZCU102's second FMC connector, so one board can send and receive on two frequencies at once. Pins generated from the vendor's tables, every test started from a clean reset, a recovery boot path rehearsed, and the driver fixed until the full suite passed with no manual set-up.

Ran on our side. A ZCU102 with two AD-FMCOMMS3 cards that we operate remotely, driven by scripts from our desktop. No customer code or customer machines were involved.

53/53card-0 signals reproduced from the vendor tables, proving the pin generator
~50 sfrom a JTAG reset back to a known stock boot
1 of 8combinations of three card-1 settings gives 20/20: each one is needed
R1–R8full suite passing, both cards on the air at once

Card 1 shares SPI0's clock and data lines with card 0 on its own chip select, as the vendor's two-chip FMCOMMS5 design does. Each card keeps its own 40 MHz crystal, so the two data clocks are unrelated: the reason for the clock-domain fix found in simulation before the first board run.

Top view of a green ZCU102 board with a fan over the FPGA and two blue AD-FMCOMMS3-EBZ radio cards plugged in side by side along its right edge.
The real board: one of our ZCU102s with two AD-FMCOMMS3-EBZ cards, one on each FMC connector (the two blue cards on the right). The fan sits over the XCZU9EG. Photo: BitExact Labs; serial and address labels blurred.

Pins generated, not typed

Card 1's 53 signals on HPC1 come from a script that reads Analog Devices' FMC tables (hdl 2022_R2) and the carrier's pinout. Before it was trusted for card 1, it had to reproduce the vendor's own constraint file for card 0.

  • 53/53card 0 on HPC0 identical to ADI's fmcomms2/zcu102 constraints, pin and properties
  • 51/51shared positions identical to ADI's fmcomms5/zcu102 design on HPC1
  • 0pins shared with card 0 or the carrier; no pin used twice
  • allP/N ports on one true differential pair in one bank; data clock on a global-clock pin
  • 1.798 VFMC VADJ read back on the board before card 1 went in (1.8 V LVDS / LVCMOS18 banks)
Full card-1 pin table (53 signals)
PortAD9361FMC pinFMC netFPGA pinStandard

Runtime first: every failure undone by the next reset

  1. reset

    JTAG reset of the processing systemThe board returns to the stock openwifi boot from its SD card in about 50 s.

  2. load

    Bitstream through fpga_managerThe two-radio design is loaded from Linux at run time.

  3. overlay

    Card 1 added as a device-tree overlayThrough configfs, without touching the boot files.

  4. driver

    Driver modules loadedBuilt for the board's own kernel and checked for version magic and symbols first.

  5. test

    Registers, loopback, IQ captureThen the board is reset again. Nothing on the SD card changes.

A recovery boot, rehearsed before it was needed

If the boot files were ever bad, the board could not reach the stock image. So a JTAG boot path was built from the two-radio hardware export: PMU firmware and FSBL built with xsct, then a script sets JTAG boot mode, resets the processing system and downloads PMU firmware, FSBL, bitstream, ARM trusted firmware and u-boot. Linux comes up about 60 s later from the card's kernel.

The first rehearsal reported success too early and the board stopped responding: the script never removed the isolation between the processing system and the programmable logic. The agent found it, fixed the script, and the second run passed with the same test results as an SD boot.

Three settings, each one needed

Card 1's radio loopback first received 0 of 20 frames: the driver configured card 1 differently from card 0. Three settings were missing. Rather than assume all three mattered, every combination was run, each from a fresh boot.

Settings: AD9361 state machine in FDD, TX1 attenuation 0 dB, DAC data source DMA. 20 frames over card 1's radio self loop, each combination from a fresh boot with a driver that applied none of the three. All or nothing: with all three, 20/20 byte-exact with good FCS; with any one missing, 0/20. The muted-receiver control gave 0 every time. The driver now applies all three itself.

Where it stands

With the fixed driver, the full stage R suite (R1–R8) passes with no manual set-up. It includes link 1 alone through the FPGA, both links combined through the FPGA, card 1 over the radio with a muted control, and both cards transmitting over the air at once in combining mode, every frame byte-exact with a good FCS.

Not claimed here. These are clean channels with no lost frames: they show both radios and the combined receiver working on the board. The combining gain under loss is measured separately and is reported only when final.

A board that only works when someone is beside it?

We script bring-up so it runs remotely, starts clean every time and can recover itself.

Leo Zhang, PhD, BitExact Labs
leo@bitexactlabs.com · WeChat leocheungZR