在主机与 QEMU 上运行的 Linux 之间交换文件 - 2022.1 Chinese

Vitis 统一软件平台文档 嵌入式软件开发 (UG1400)

Document ID
UG1400
Release Date
2022-04-26
Version
2022.1 简体中文
XSCT tfile 可用于与 Linux 中运行的 tcf-agent 进行通信以便传输文件。要在主机与 QEMU 中的 Linux 之间交换文件,请执行以下步骤:
  1. Vitis IDE 中选中Xilinx > Start/Stop Emulator(赛灵思 > 启动/停止仿真器)以启动 QEMU。。这将启动 QEMU 以启动 Linux。当 Linux 完成启动后,tcf-agent 会在后端运行。tcf-agent 必须包含在 PetaLinux 的 Linux 根文件系统配置中。
  2. 启动 XSCT 并使用以下命令交换文件:
    1. 使用 XSCT 连接到 tcf-agent:
      connect -host 127.0.0.1 -port 1440
      注释: 1440 是由 QEMU 转发的端口。
    2. 将文件从主机复制到目标:
      tfile copy -from-host <host_path> <target_path>
    3. 将文件从目标复制到主机:
      tfile copy -to-host <target_path> <host_path>