As per instructions on Initial Setup/Installation — FireSim 1.18.0 documentation
Setup: openssh server, cable drivers, xdma, xvsec, +ssh keys.
For XDMA+XVSEC kernel drivers use : Local FPGA System Setup — FireSim HEAD documentation
NOTE: there are TWO separate repos for these drivers ! The XVSEC maintained by Xilinx does not work for recent kernel versions, its maintained by a separate alternate github source.
sudo modprobe -r xocl to remove xilinx xrt driver
sudo modprobe xdma [+xvsec] these two drivers and ensure they are present when you ‘lsmod’
try sudo reboot the machine if you did a sudo make install of the drivers and they should auto run and pick up the card after a reboot.
BASICALLY,lspci -v should reveal something like:
Often the Xilinx PCIe drivers xocl, xclmgmt attaches itself at 08:00.0 and 08:00.1 and the Serial controller drops away. It is UNCLEAR why the serial jtag controller doesn not get picked up. JJust keep reloading/unloading drivers and rebooting until it appears as above. It is annoying to say the least !
sudo dmesg to see the xdma log, and check in /dev that there are /dev/xdma* files. A kernel driver may be loaded but it is not bound to a device unless it has something in /dev directory.
FURTHER: DO NOT run /opt/xilinx/xrt/setup.sh to load the PCIe drivers xocl and xclmgmt as this will cause havoc. If this happens remove xocl, xclmgmt and sudo reboot the machine !!!!
Note: this is attached to the SERIAL controller, e.g. JTAG as the cable is plugged into Alveo u200 as well as the machine
Put the following into a runtime script it will be needed to be sourced often:
cd ~/.ssh
ssh-agent -s > AGENT_VARS
source AGENT_VARS
ssh-add firesim.pem
cd ~/chipyard/sims/firesim # assumed location of chipyard repo
Make sure you can: ‘ssh localhost printenv’ with no passwords asked for.
In the .bashrc add the following to ensure that vivado is enabled:
locations are assumed above, adjust as required.
--
You received this message because you are subscribed to the Google Groups "FireSim" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firesim+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/firesim/b3498113-3a0d-4e06-87da-951ceb1ab979n%40googlegroups.com.