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