Do this on lcls-pc83236
Preparing git keys
#add this to bash_profile PATH="/afs/slac/g/reseng/git/git/bin:$PATH"
#this isn't complete. need more info on setting up git keys
eval $(ssh-agent) #may need to be done every ssh session
ssh-add #may need to be done every ssh session
Building Rogue
git clone https://github.com/slaclab/rogue.git
cd rogue
source setup_template.sh
eval $(ssh-agent)
ssh-add (maybe with "-K"?)
git submodule init
git submodule update
make
Some applications are not built by default. cd to directory and make.
Building Firmware
git clone https://github.com/slaclab/lcls2-pcie-apps.git
git submodule init
git submodule update
source /afs/slac/g/reseng/xilinx/vivado_2017.3/Vivado/2017.3/settings64.sh #this isn't working on 1/31/2018. sourcing below instead
source lcls2-pcie-apps/firmware/setup_env_slac.sh
if you want to store the output of "make" on your local machine: in the "firmware/" directory, "ln -s /u1/sioan/build ."
cd firmware/targets/TimeToolKcu1500
make
Making Vivado communicate with board over USB/JTAG
Do this to program with flash chips on the KCU1500 for the first time. Before programming lspci will show:
02:00.0 Serial controller: Xilinx Corporation Device 8638 (rev ff)
After programming powercycle the machine. Then lspci will show:
02:00.0 Signal processing controller: SLAC National Accelerator Lab PPA-REG Device 2030
#https://www.xilinx.com/support/answers/59128.html
1) Disconnect all Xilinx USB cables from the host computer.
2) Open a shell or terminal console.
3) Extract the driver script and its support files to a local drive of the machine where the cable will be used by typing:
#must cd to directory. Can't run install_drivers from arbitrary directory.
cd /afs/slac.stanford.edu/g/reseng/xilinx/vivado_2017.4/Vivado/2017.4/data/xicom/cable_drivers/lin64/install_script/install_drivers/
sudo ./install_drivers
#now vivado hardware manager will see the kcu1500 board.
#instructions to program using vivado hardware manager in link below
Larry has some slides on how to program the flash chips (mt25qu512) on the KCU1500 via USB/JTAG:
Programming FPGA over PCI
Before doing this, build/install the driver using the instructions here:
https://github.com/slaclab/lcls2-pcie-apps
Use dataPromLoad utility.