How to run Tutorial 1: Component-based Development on Real FPGA development board

Recently, with the help of aolivarez and waltersdom, I tested that my third-party FGPA development board can use the ZCU102 solution. I now want to implement x86 (ubuntu) and FPGA data transmission interconnection based on network cables. I remembered Tutorial 1: Component-based Development, which is a good example. I want to port the original running on xsim to the real physical development board. What else do I need to do besides replacing xsim with zcu102 when compiling? At present, I found the bitstream file about zcu102 in the artifacts folder.
I have a few doubts now.

  1. If I only want to run HDL on the zynq series development board, do I still need to compile the arm platform (e.g. xilinx24_1_aarch64)?
  2. Do I need to run the ocpiremote command in the project folder to send the sandbox (fpga serve package) file to the FPGA development board?
  3. Do I also need to start additional services or configure ports, configuration scripts, etc. in the zynq development board?
  4. I want RCC to execute in ubuntu20_04, HDL to execute on the FPGA development board, there are relevant sample documents for reference?

Thank you very much for your selfless help!

  1. Yes, the reason for that is that the command line utilities and kernel module need be cross compiled and running on the zcu102 arm for it facilitate the data transfer.

  2. Yes, by using ocpiremote load and ocpiremote start will make the RCC and HDL platforms available to your host.

  3. No, if you have your development host setup properly you do not need to setup any additional items on the zynq development board

  4. There are two different ways to let OpenCPI know where you want a worker to run. The first way is to utilize ocpirun , the -P flag can be used to specify which platform you want the worker to run. For more information you can look at man pages for ocpirun. The second way is to add XML attributes to the application XML by added Platform xml attribute to the component instance.

For example ocpidev run application DemoApp.xml --run-arg=' -Psource=zcu102

thank you,aolivarez!

hi,aolivarez:
I have now successfully checked the platform of zcu102.


When I run tutorial1 now, directly executing ocpidev run application DemoApp.xml will get stuck. I follow the command you gaveocpidev run application DemoApp.xml --run-arg = '-Psource = zcu102 to prompt that there is no --run-arg parameter.