- Create a github account:
- On the Linux machine that you will clone the github from, generate a SSH key (if not already done)
https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/
- Add a new SSH key to your GitHub account
https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/
- Setup for large filesystems on github
$ git lfs install
- Verify that you have git version 2.13.0 (or later) installed
$ git version
git version 2.13.0
- Verify that you have git-lfs version 2.1.1 (or later) installed
$ git-lfs version
git-lfs/2.1.1
$ git clone --recursive [email protected]:slaclab/atlas-rd53-fmc-dev
Note: For KC705, using the SGMII on the Marvel PHY J29: Jumper over pins 2-3 (non-default) J30: Jumper over pins 2-3 (non-default) J64: No jumper (default)
- Setup Xilinx licensing
If you are on the SLAC network, here's how to setup the Xilinx licensing
$ source atlas-rd53-fmc-dev/firmware/setup_env_slac.sh
- Go to the target directory and make the firmware:
$ cd atlas-rd53-fmc-dev/firmware/targets/AtlasRd53FmcXilinxKc705_RJ45_1GbE/
$ make
- Optional: Review the results in GUI mode
$ make gui
Note: For KC705, using the QSPI (not BPI) for booting from PROM. J3 needs to have the jumper installed SW13 needs to be in the "00001" position to set FPGA.M[2:0] = "001"
- Setup Xilinx licensing
If you are on the SLAC network, here's how to setup the Xilinx licensing
$ source atlas-rd53-fmc-dev/firmware/setup_env_slac.sh
- Go to the target directory and make the firmware:
$ cd atlas-rd53-fmc-dev/firmware/targets/AtlasRd53FmcXilinxKc705Pcie/
$ make
- Optional: Review the results in GUI mode
$ make gui
- Setup Xilinx licensing
If you are on the SLAC network, here's how to setup the Xilinx licensing
$ source atlas-rd53-fmc-dev/firmware/setup_env_slac.sh
- Go to the target directory and make the firmware:
$ cd atlas-rd53-fmc-dev/firmware/targets/AtlasRd53FmcXilinxKcu105_RJ45_1GbE/
$ make
- Optional: Review the results in GUI mode
$ make gui
- Setup Xilinx licensing
If you are on the SLAC network, here's how to setup the Xilinx licensing
$ source atlas-rd53-fmc-dev/firmware/setup_env_slac.sh
- Go to the target directory and make the firmware:
$ cd atlas-rd53-fmc-dev/firmware/targets/AtlasRd53FmcXilinxKcu105Pcie/
$ make
- Optional: Review the results in GUI mode
$ make gui
- Setup Xilinx licensing
If you are on the SLAC network, here's how to setup the Xilinx licensing
$ source atlas-rd53-fmc-dev/firmware/setup_env_slac.sh
- Go to the target directory and make the firmware:
$ cd atlas-rd53-fmc-dev/firmware/targets/AtlasRd53FmcXilinxZcu102/
$ make
- Optional: Review the results in GUI mode
$ make gui
# Confirm that you have the board the computer with VID=1a4a ("SLAC") and PID=2030 ("AXI Stream DAQ")
$ lspci -nn | grep SLAC
04:00.0 Signal processing controller [1180]: SLAC National Accelerator Lab TID-AIR AXI Stream DAQ PCIe card [1a4a:2030]
# Clone the driver github repo:
$ git clone --recursive https://github.com/slaclab/aes-stream-drivers
# Go to the driver directory
$ cd aes-stream-drivers/data_dev/driver/
# Build the driver
$ make
# Load the driver
$ sudo /sbin/insmod ./datadev.ko cfgSize=0x50000 cfgRxCount=256 cfgTxCount=16
# Give appropriate group/permissions
$ sudo chmod 666 /dev/data_dev*
# Check for the loaded device
$ cat /proc/data_dev0
- Setup the rogue environment
# Go to software directory
$ cd atlas-rd53-fmc-dev/software
# Activate Rogue conda Environment
$ source /path/to/my/anaconda3/etc/profile.d/conda.sh
$ conda activate rogue_env
- Launch the GUI:
$ python3 scripts/guiPcie.py --hwType eth --ip <IP_ADDRRESS>
- Setup the rogue environment
# Go to software directory
$ cd atlas-rd53-fmc-dev/software
# Activate Rogue conda Environment
$ source /path/to/my/anaconda3/etc/profile.d/conda.sh
$ conda activate rogue_env
- Launch the GUI:
$ python3 scripts/guiPcie.py --hwType pcie
Note: For KC705, using the QSPI (not BPI) for booting from PROM. J3 needs to have the jumper installed SW13 needs to be in the "00001" position to set FPGA.M[2:0] = "001"
- Setup the rogue environment
# Go to software directory
$ cd atlas-rd53-fmc-dev/software
# Activate Rogue conda Environment
$ source /path/to/my/anaconda3/etc/profile.d/conda.sh
$ conda activate rogue_env
- Run the FEB firmware update script:
$ python3 scripts/updatePcieProm.py --path <PATH_TO_IMAGE_DIR>
where <PATH_TO_IMAGE_DIR> is path to image directory (example: ../firmware/targets/AtlasRd53FmcXilinxKc705/images/)
- Reboot the computer
sudo reboot