- 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:
LockLinkReady 1 RemLinkReady 1 - 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...
- If already done, skip to "Check out branch"
- https://github.com/slaclab/epix
- CHECK OUT BRANCH: that is "actively" being updated
Code Block language bash title Checking 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 title If having trouble with $ git pull... Code Block language bash # 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: Another first time step... need to unzip UNZIP: Another first time step... need to unzip
Code Block language bash title hold # Will remove source files, but don't worry they are version controlled $ gunzip *
- Actually loading the MCS file...
Code Block language bash title Loading 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 abut warnings, if you get an error, find a firmware engineer to help...
- If written correctly
- ignore errors after this...
- Checking if MCS file is there
STEP 2: Check if Firmware has been loaded correctly
- $ python epix10kaDAQ.py
- GitHashShort is more important