Exchanging Files between Host Machine and Linux Running on QEMU - 2021.2 English

Vitis Unified Software Platform Documentation: Embedded Software Development (UG1400)

Document ID
UG1400
Release Date
2021-12-15
Version
2021.2 English
XSCT tfile can be used to communicate with the tcf-agent running in Linux to transfer files. To exchange file between host machine and Linux in QEMU, follow these steps:
  1. Launch QEMU from the Vitis IDE by selecting Xilinx > Start/Stop Emulator. QEMU is launched to boot Linux. The tcf-agent runs in the backend when Linux finishes booting. It is required to include the tcf-agent in the Linux root file system configuration in PetaLinux.
  2. Launch XSCT and use the following commands to exchange file:
    1. Connect to the tcf-agent using XSCT:
      connect -host 127.0.0.1 -port 1440
      Note: 1440 is port forwarded by QEMU.
    2. Copy file from host to target:
      tfile copy -from-host <host_path> <target_path>
    3. Copy file from target to host:
      tfile copy -to-host <target_path> <host_path>