Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  • REF
  • STEP 1 (only good if you know the firmware and can program over fiber)

    • Skip to step 10: Assuming optical cable is plugged in correctly

      • At command prompt: 

        $ cat /proc/pgpcard_0

      • Scroll up to Lane 0: Should see:

        LockLinkReady1
        RemLinkReady1
        • Power cycle, but if tries of theat does not work...
        • Lane 0 is hard coded into firmware: Move the optical quad connection in back of the computer & try again
    • Where is firmware located?
      • EPIX Repo --> ~/IC_projects/epix/firmware/targets/Epix10ka/images
      • (FIRST TIME ONLY) CLONE: Have to clone the repo first...
    • CHECK OUT BRANCH: that is "actively" being updated
      • Code Block
        languagebash
        titleChecking out branch
        $ cd IC_projects/epix
        # where I have my local git repo
        $ git checkout rogue_v5.14
        $ git branch
        # make sure you see that you're in branch rogue_v5.14
        $ git pull
        # make sure "Already up to date."
      • Expand
        titleIf having trouble with $ git pull...
        Code Block
        languagebash
        # note the $ is command line prompt
        $ cd IC_projects/epix
        $ git fetch
        $ git submodule update --force
    • Repo is setup, rogue version is specified, have script for programing over fiber
      • Checking if MCS file is there
        • $ cd firmware/targets/Epix10ka/images/
      • Load the MCS file, but make sure number is same as firmware: See ePix Notes (Dan's) 
        • Expand
          title(FIRST TIME ONLY) UNZIP:

          UNZIP: Another first time step... need to unzip

          Code Block
          languagebash
          titlehold
          # Will remove source files, but don't worry they are version controlled 
          $ gunzip *
        • Actually loading the MCS file...
          • Code Block
            languagebash
            titleLoading MCS
            $ cd ~/IC_projects/epix/software/Epix/
            $ source setup_template.sh
            $ cd scripts/
            $ python epixGen2LoadFpga.py --mcs=../../../firmware/targets/Epix10ka/images/Epix10ka-0xE2040002-20210715112919-mkwiatko-328bae7.mcs
            # Don't worry about warnings, if you get an error, find a firmware engineer to help
          • If written correctly
            • ignore errors after this...
            • Image Added
            • POWER CYCLE! IT IS EASIER!!!
  • STEP 2: Check if Firmware has been loaded correctly

    • $ python epix10kaDAQ.py
    • image2023-2-27_11-0-16.png
    • GitHashShort is more important