tfilecan 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:
- Launch QEMU from the Vitis IDE by selecting . 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.
- Launch XSCT and use the following commands to exchange file:
- Connect to the tcf-agent using
connect -host 127.0.0.1 -port 1440Note: 1440 is port forwarded by QEMU.
- Copy file from host to
tfile copy -from-host <host_path> <target_path>
- Copy file from target to
tfile copy -to-host <target_path> <host_path>
- Connect to the tcf-agent using XSCT: