Setup MIDAS experiment: Difference between revisions

From DaqWiki
Jump to navigation Jump to search
mNo edit summary
m (51 revisions imported)
 
(49 intermediate revisions by the same user not shown)
Line 1: Line 1:
<h2>Prepare the user account</h2>
#REDIRECT https://midas.triumf.ca/MidasWiki/index.php/Setup_MIDAS_experiment
<ul>
        <li>Setup the user account for running this instance of midas. For machines part of the LADD cluster, follow these <a href="http://daq-plone.triumf.ca/SM/docs/local/NewLaddUser">instructions</a></li>
        <li>Add following text to .cshrc
<pre>#!/bin/echo You must source
 
setenv LANG C
setenv SVN_EDITOR "emacs -nw"
setenv CVS_RSH ssh
setenv MIDASSYS $HOME/packages/midas
setenv ROOTSYS  $HOME/packages/root
setenv MIDAS_EXPTAB $HOME/online/exptab
 
setenv PATH .:$HOME/online/bin:$MIDASSYS/linux/bin:$HOME/packages/roody/bin:$ROOTSYS/bin:$PATH
 
#end</pre>
</li><li>
<br /></li>
        <li>mkdir $HOME/packages</li>
        <li>Logout and login again, for .cshrc changes to take effect</li></ul>
 
<h2>Install ROOT</h2>
<ul>
        <li>Identify the Linux version: RH9 (Red Hat Linux 9), FC3 (Fedora Core 3), RHEL4/SL4 (Red Hat Enterprise LInux 4/Scientific Linux 4): more /etc/redhat-release</li>
        <li>cd $HOME/packages</li>
        <li>ln -s /triumfcs/trshare/olchansk/root/root_vNNN_VVV root, where NNN is the latest available version of ROOT ("ls -l /triumfcs/trshare/olchansk/root") and VVV is the Linux version code (RH9, FC3, SL4, etc). For example: /triumfcs/trshare/olchansk/root/root_v5.10.00_SL40
        </li><li>Check that ROOT works: "echo $ROOTSYS", "$ROOTSYS/bin/root"</li></ul>
<h2>Install MIDAS</h2>
<ul>
        <li>cd $HOME/packages</li>
        <li>svn co svn+ssh://svn@savannah.psi.ch/repos/meg/midas/trunk midas, password "svn". (password has to be entered twice)</li>
        <li>svn co svn+ssh://svn@savannah.psi.ch/repos/meg/mxml/trunk mxml</li>
        <li>cd midas</li>
        <li>make</li>
        <li>check that linux/bin/odbedit has been created</li></ul>
<h2>Install ROOTANA</h2>
<ul>
      <li>cd $HOME/packages</li>
      <li>svn checkout https://ladd00.triumf.ca/svn/rootana/trunk rootana (say "p" to accept the ladd00 ssl certificate, use username "svn", password "svn")<br /></li>
        <li>cd rootana</li>
        <li>make</li></ul>
<h2>Install ROODY</h2>
<ul>
      <li>cd $HOME/packages</li>
      <li>svn checkout https://ladd00.triumf.ca/svn/roody/trunk roody<br /></li>
        <li>cd roody</li>
        <li>make</li>
        <li>$HOME/packages/roody/bin/roody, run the program</li></ul>
<h2><br /></h2>
<h2>Install VMIC VME driver (universe-II pci/vme bridge)<br /></h2>
<ul>
        <li>login as root (ssh root@localhost)</li>
        <li>get latest version of vmic driver from ladd00: scp username@ladd00:/home/olchansk/daq/vmisft-7433-NNN-KOMMM.tar.gz .</li>
        <li>tar xzvf vmisft-7433-3.5-KO2.tar.gz</li>
        <li>chown -R root.root vmisft-7433-3.5-KO2</li>
        <li>cd vmisft-7433-3.5-KO2</li>
        <li>cd vme_universe</li>
        <li>make</li>
        <li>make install</li>
        <li>cd ..</li>
        <li>make</li>
        <li>edit /etc/rc.local, add these lines:
<pre>modprobe vme_universe
mkdir -p /dev/bus/vme
mknod /dev/bus/vme/ctl c 221 8
chmod a+wr /dev/bus/vme/ctl</pre>
</li>
        <li>run "modprobe vme_universe", run "lsmod" to check that the vme_universe module was loaded</li>
        <li>run "ls -l /dev/bus/vme/ctl" to check that the VME device file exists, it should be "crw-rw-rw-  1 root root 221, 8 Feb 17 15:47 /dev/bus/vme/ctl"</li></ul>
<p>&nbsp;</p>
<h2>Install GEF VME driver (tsi148 pci/vme bridge)<br /></h2>
<ul><li>login as root (ssh root@localhost)</li><li>yum install kernel-devel<br /></li><li>get latest version of the driver from ladd00: scp username@ladd00:/home/olchansk/daq/v7865/v7865-sdk-linux-R01.00-KONNN.tar.gz<br /></li><li>tar xzvf v7865-sdk-linux-R01.00-KO6.tar.gz<br /></li><li>chown -R root.root v7865-sdk-linux-R01.00-KO6<br /></li><li>cd v7865-sdk-linux-R01.00-KO6/gefvme/module</li><li>make</li><li>make install</li><li>cd $HOME</li><li>edit /etc/rc.local, verify that it has these 2 lines:<br />
<pre>modprobe gefvme
sh /root/gefvme-makedevs</pre>
</li><li>run "modprobe gefvme", run "lsmod" to check that the gefvme module was loaded</li><li>run
"/home/olchansk/daq/vme/vmescan_gef.exe" to check that vme access works.</li><br /></ul>

Latest revision as of 09:19, 2 February 2022