7.5 Using SimicsFS with FUSE 7.7 Using FTP service
Simics User's Guide  /  II Feature Overview  /  7 Moving Data in and out of the Simulation  / 

7.6 Using TFTP

It is possible to transfer files from the host environment to the target (simulated) machine by using the TFTP feature provided by the service-node. Since TFTP executes in lockstep, with only one packet acknowledged at a time, it is slower than for example FTP, but it reliably transports files between the host and target machines.

It is assumed that a service node has been created and connected to the Ethernet device through an Ethernet link. The following example presents how TFTP is used on a target machine which is running Linux and has the tftp program installed. Furthermore, the target machine in this example is using the IP address 10.10.0.10 and the service node uses 10.10.0.1.

Creating a service node and connecting it to the target machine can be done with the connect-real-network command. This will also set up port forwarding to the real network, even though this is not a requirement for using TFTP:

simics> connect-real-network 10.10.0.10

After booting the target machine into Linux the first step is to bring up the network interface that is connected to the service node. At the target prompt, issue:

joe@computer: ~# ifconfig eth0 10.10.0.10 up

To transfer the file myfile.txt from the host machine, issue:

joe@computer: ~# tftp -l myfile.txt -g 10.10.0.1

The directory that the service node uses to find files downloaded by the target can be changed with the <service-node>.set-tftp-directory command. This also controls where uploaded files are saved. The default is to search the Simics path, starting with the current working directory of the Simics process. The search path can be changed with the add-directory command and can be viewed with the list-directories command.

7.5 Using SimicsFS with FUSE 7.7 Using FTP service