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

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

Document ID
Release Date
2023.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 Vitis > 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 -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>