1
0
mirror of https://github.com/corundum/corundum.git synced 2025-02-06 08:38:23 +08:00

25 lines
998 B
Markdown
Raw Normal View History

2020-07-12 11:33:18 -07:00
# Corundum mqnic for Alveo U280
## Introduction
This design targets the Xilinx Alveo U280 FPGA board.
* FPGA: xcu280-fsvh2892-2L-e
* PHY: 10G BASE-R PHY IP core and internal GTY transceivers
* RAM: 32 GB DDR4 2400 (2x 2G x72 DIMM)
* HBM: 8GB HBM2
2020-07-12 11:33:18 -07:00
## Quick start
2020-07-12 11:33:18 -07:00
### Build FPGA bitstream
2020-07-12 11:33:18 -07:00
Run `make` in the `fpga` subdirectory to build the bitstream. Ensure that the Xilinx Vivado toolchain components are in PATH.
2020-07-12 11:33:18 -07:00
### Build driver and userspace tools
2020-07-12 11:33:18 -07:00
On the host system, run `make` in `modules/mqnic` to build the driver. Ensure the headers for the running kernel are installed, otherwise the driver cannot be compiled. Then, run `make` in `utils` to build the userspace tools.
2020-07-12 11:33:18 -07:00
### Testing
2020-07-12 11:33:18 -07:00
Run `make program` to program the board with Vivado. Then, reboot the machine to re-enumerate the PCIe bus. Finally, load the driver on the host system with `insmod mqnic.ko`. Check `dmesg` for output from driver initialization, and run `mqnic-dump -d /dev/mqnic0` to dump the internal state.