Expert Documentation: Difference between revisions

From GammaSphere DAQ
Jump to navigation Jump to search
No edit summary
No edit summary
Line 27: Line 27:
   svn export .....
   svn export .....


You will be in /home/rpdgs which is the shared home directory for all the RPs. Don't try to compile there. To compile, go to any of the network booted RPs and and do it from there. You only need to do it on one of the RPs because the home diretory is shared.
You will be in /home/rpdgs on piserver1 which is the shared home directory for all the RPs. Don't try to compile etc there. To compile, go to any of the network booted RPs and and do it from there. You only need to do it on one of the RPs because the home diretory is shared.
 
. Because the RPs share the home directory we have set them up to execute unique setup files based on the IP of the RPs. E.g., on sbxpp the file (in the shared home directory) softIOC.192.168.203.149 is executed. In this file we can start the softIOC with the EPICS databases appropriate for this RP.

Revision as of 16:17, March 18, 2022

ANL Digitizer Firmware for Experts

This document presupposes that the reader is already familiar with the overall design of the firmware and associated terminology.

Go back to Advanced User Guides

Go back to Digital Gammasphere and the SBX Upgrade

piserver instructions

. The piserver runs on the Ubuntu machine called piserver1. To start the server: log in on piserver1 as user dgs and check whether the server is already running (try ps ax | grep piserver| grep -v grep). If it is not and you want to start it, type

 sudo piserver &

The piserver window will show up. In this window you can control the 'environment' of the RPs

. To add another raspberry pi to be under the control of the piserver, click on the clients on the piserver, then click add. Power off RP your want to add, take out the SD card and power it up again. It should show up with its mac address in the window where you can enable it. now cycle the power of the RP again and it should come up as a client of the piserver

. To modify the OS of the RPs, click on software in the piserver and then click on the OS. After that the 'shell' is awailable. E.g., to run raspi-config you would type

 SUDO_USER=dgs raspi-config

where the first part signifies that we change something in the OS for user rpdgs the default user we have on the network booted RPs. (For reasons we don't understand, we cannot use the user name 'pi' for a user on these RPs). You shuld not use raspi-config on the individual RPs.

. The network booted RPs cannot see world outside of onenet (not sure why they restrict network access like that). So to e.g., install a new version of the DGS EPICS softIOC do

 ssh rpdgs@piserver
 svn export .....

You will be in /home/rpdgs on piserver1 which is the shared home directory for all the RPs. Don't try to compile etc there. To compile, go to any of the network booted RPs and and do it from there. You only need to do it on one of the RPs because the home diretory is shared.

. Because the RPs share the home directory we have set them up to execute unique setup files based on the IP of the RPs. E.g., on sbxpp the file (in the shared home directory) softIOC.192.168.203.149 is executed. In this file we can start the softIOC with the EPICS databases appropriate for this RP.