Steps To Build

We need to get host and xclbin files ready before run mining.

Build Host

To build ethminer host:

source /opt/xilinx/xrt/setup.sh
./build.sh build_host

Download or Build Xclbin Files

We need two xclbin files to run mining: dag_gen_kernel.xclbin and ethash_kernel.xclbin. They could be downloaded from Xilinx website or built with Vitis. We recommend downloading them because building them locally might takes 10+ hours.

To download xclbins from Xilinx:

./build.sh get_xclbin

To build xclbins locally:

./build.sh build_daggen
./build.sh build_ethash

How to run mining

To run mining online, we need to prepare a wallet address, a identifier for your miner and mining pool address.

./build.sh mine <wallet address> <identifier name> <mining pool address>