You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 9
Next »
Step-by-step guide to login and clone the Git repository on RedHawk machine
Method 1:
Note: Following method gives the git-lfs space error
- Step 1: How to do pslogin:
- ssh to pslogin: "ssh username@pslogin.slac.stanford.edu"
- After pslogin user can clone the git project repository in pslogin space (This space will be shared between pslogin and RedHawk machine)
- Step 2: How to shh to RedHawk machine:
- ssh to RedHawk from "pslogin": "ssh psstuart"
- This step will connect the user with RedHawk machine
- Once the user logs into RedHawk machine, the user can see the same project repository cloned during the first step.
Method 2:
- Step 1: ssh to pslogin: "ssh username@pslogin.slac.stanford.edu" or "ssh pslogin -Y"
- Step 2: ssh to RedHawk from "pslogin": "ssh psstuart"
- This step will connect the user with RedHawk machine
- Step 3: Once the user logs into RedHawk machine, user can clone the git repo by typing following command.
How to load the firmware programming files into RedHawk machine
- User cannot build the firmware on RedHawk machine because Vivado doesn't support the RedHawk machine distro.
- User can just build it on Ubuntu then use the python script to program the generated .MCS file. To do that pleaseAD follow following steps:
- Step 1: Go to Ubuntu server and build the firmware. For more information on how to build the firmware of your project please follow the link given in Related articles.
- Step 2: Once the FPGA programming files are ready. Copy those files to RedHawk machine by using following command.
How to reprogram the PCIe firmware via Rogue software
- Step 1: To setup the rogue environment please follow the following command.
- Step 2: Go to software folder by typing following command.
- Step 3: Run the PCIe firmware update script
$ python scripts/updatePcieFpga.py --path <PATH_TO_IMAGE_DIR>
where <PATH_TO_IMAGE_DIR> is path to image directory (example: ../firmware/targets/SnlBesKcu1500/images/)
Select image number when following message is shown:
Rogue/pyrogue version v5.10.0. https://github.com/slaclab/rogue
Basedir = /afs/slac.stanford.edu/g/controls/development/users/ktkim/Project/EdgeML/snl-bes-dev/firmware/submodules/axi-pcie-core/scripts
Start: Started zmqServer on ports 9099-9101
#########################################
Current Firmware Loaded on the PCIe card:
#########################################
Path = PcieTop.AxiPcieCore.AxiVersion
FwVersion = 0x1010000
UpTime = 0:56:11
GitHash = 0x35cdbac182394d890796f4114e5a85f7e9a87966
XilinxDnaId = 0x4002000101181bc40480a145
FwTarget = SnlBesKcu1500
BuildEnv = Vivado v2021.1
BuildServer = rdsrv317 (Ubuntu 20.04.3 LTS)
BuildDate = Thu 09 Dec 2021 12:33:26 PM PST
Builder = ruckman
#########################################
0 : ../../assets/SnlBesKcu1500/v1.1.0/SnlBesKcu1500-0x01010000-20211209123326-ruckman-35cdbac
1 : Exit
Enter image to program into the PCIe card's PROM: <IMAGE_NUMBER>
- Step 4: Reboot the RedHawk machine
- Step 3: open the scripts/devGui.py file and comment the default port number.
![](/download/attachments/363452604/image2022-11-28_16-26-19.png?version=1&modificationDate=1669681580000&api=v2)
- Step 4: Go back to the software folder and run the
Related articles
How to build firmware for the project: https://github.com/slaclab/snl-bes-dev