There are other methods for transferring data in and out of the simulation. If the agent is not already present on the target machine, one of them must be used first to copy the agent software.
Here is an example of transferring the agent to the target using USB.
Follow the preparation steps to launch the simulator and reach prompt in the target machine.
Create and connect a virtual USB disk using the agent disk images provided in base package.
simics> $usb_img = "%simics%/targets/common/images/simics_agent_binaries.img"
simics> load-module usb-comp
simics> new-usb-disk-comp file = $usb_img name = usb_disk
simics> usb_disk.connect-to board
Connecting usb_disk.usb_host to board.mb.sb.usb_port[10]
Start the simulation:
simics> run
running>
Next we need to find the device in Linux so that it can be mounted.
We do this by looking for
usb-Vtech_Turbo_Disk_tm__200435132207e9526048-0:0-part1.
under /dev/disk/by-id using the target console.
# readlink -f /dev/disk/by-id/usb-Vtech_Turbo_Disk_tm__200435132207e9526048-0:0-part1
/dev/sdd1
We see that the device corresponding to the USB disk is /dev/sdd1.
Now we can mount it the USB disk, and copy /media/simics_agent_x86_linux64 to the target machine.
# mount /dev/sdd1 /media
# find /media -name simics_agent_x86_linux64
/media/simics_agent_x86_linux64
# cp /media/simics_agent_x86_linux64 .
# ls ./simics_agent_x86_linux64