XRT icon indicating copy to clipboard operation
XRT copied to clipboard

How to start mpd.service

Open lsyLearn opened this issue 1 year ago • 2 comments

I installed the XRT on ubuntu20.04 when I run /opt/xilinx/xrt/bin/xbmgmt examine, I can get

XRT Version : 2.14.354 Branch : 2022.2 Hash : 43926231f7183688add2dccfd391b36a1f000bea Hash Date : 2022-10-08 09:49:58 XOCL : unknown, unknown XCLMGMT : unknown, unknown WARNING: xclmgmt version is unknown. Is xclmgmt driver loaded? Or is MSD/MPD running?

Devices present 0 devices found BDF : Shell Platform UUID Device ID Device Ready*

  • Devices that are not ready will have reduced functionality when using XRT tools

It says I need to start the mpd service,when I run systemctl status mpd, I can get

● mpd.service - Xilinx Management Proxy Daemon (MPD) Loaded: loaded (/etc/systemd/system/mpd.service; enabled; vendor preset: enabled) Active: inactive (dead) Condition: start condition failed at Fri 2023-05-19 14:31:34 CST; 51min ago

May 19 14:31:13 lenovo systemd[1]: Condition check resulted in Xilinx Management Proxy Daemon (MPD) being skipped.

so, I run cat /etc/systemd/system/mpd.service :

[Unit] Description=Xilinx Management Proxy Daemon (MPD) Wants=network-online.target After=network-online.target ConditionDirectoryNotEmpty=/dev/xfpga

[Service] Type=simple ExecStart=/opt/xilinx/xrt/bin/mpd Restart=on-failure

[Install] WantedBy=multi-user.target

I find that /dev/xfpga needs to exist in my environment,but I don't have the relevant files in my environment ls /dev/xfpga

ls: cannot access '/dev/xfpga': No such file or directory

So, how do I get the mpd service to start.

run ls /dev/ | grep xdma

`xdma0_c2h_0 xdma0_c2h_1 xdma0_c2h_2 xdma0_c2h_3 xdma0_control xdma0_events_0 ...

run lspci | grep Xilinx

06:00.0 Serial controller: Xilinx Corporation Device 903f

lsyLearn avatar May 19 '23 07:05 lsyLearn