Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Step 1: Go to software folder by typing following command.
    • cd user_project/software
  • Step 2: To setup the rogue environment please follow the following command.
    • pskube-minion03 ~$ bash
      bash-4.2$ source ~ruckman/anaconda3/etc/profile.d/conda.sh
      bash-4.2$ conda activate rogue_v5.15.3
      (rogue_v5.15.3) bash-4.2$
    • This will activate the conda rogue enviroment
  • 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 by typing following command
    • sudo reboot
  • Step 5: ssh to RedHawk from "pslogin": "ssh psstuart"
  • Step 6: Reload the driver by following steps:
    • $ sudo /u1/aes-stream-drivers/data_dev/driver/load
      $ cat /proc/datadev_0
      -------------- Axi Version ----------------
           Firmware Version : 0x3
                 ScratchPad : 0x0
              Up Time Count : 3292321
                  Device ID : 0x0
                   Git Hash : 0000000000000000000000000000000000000000
                  DNA Value : 0x00000000430a12684ec7d10100008004
               Build String : DrpTDetSemi: Vivado v2018.2, pslab01.slac.stanford.edu (x86_64), Built Wed Aug 14 22:34:06 PDT 2019 by weaver

      $ cat /u1/aes-stream-drivers/data_dev/driver/load
      #!/bin/sh
      
      # set up the proper kernel build environment)
      cd /lib/modules/$(uname -r)/build; ./ccur-config -c -n
      
      # build kernel loadable module
      cd /u1/aes-stream-drivers/data_dev/driver; make clean; make
      
      # add new driver
      /sbin/insmod /u1/aes-stream-drivers/data_dev/driver/datadev.ko cfgSize=0x200000 cfgRxCount=256 cfgTxCount=16 || exit 1
      
      # give appropriate group/permissions
      chmod 666 /dev/datadev*

How to install the Rogue With Anaconda

  • Step 1: Go to https://www.anaconda.com/download to get the latest version of anaconda. Example steps for installing anaconda are included below:
    • $ wget https://repo.anaconda.com/archive/Anaconda3-2020.07-Linux-x86_64.sh
      $ bash Anaconda3-2020.07-Linux-x86_64.sh

  • Step 2: Use the following command to add anaconda to your environment. This can be added to your .bash_profile.
    • $ source /path/to/my/anaconda3/etc/profile.d/conda.sh

      Creating A Rogue Environment

  • Step 3: The next step is to create an anaconda environment which includes the Rogue package.
    • $ conda create -n rogue_5.15.3 -c tidair-packages -c conda-forge -c pydm-tag -c tidair-tag rogue=v5.15.3 h5py
    • If you already have an anaconda environment that you would like to install Rogue into:
      • $ conda install -c tidair-tag -c tidair-packages -c conda-forge rogue
        The above commands will install the latest version of Rogue from the master branch. 

...