Computers using CentOS7 for the ITk Strips DAQ are setup with the following. Note that digilent but -more annoying- National Instruments support is poor and the following lists packages providing a working setup with kernels 3.10.0* but slight deviations could break things.

Steps to reproduce the installation on a 'fresh' CentOS machine:

  • install libstdc++-4.8.5-28.el7_5.1.i686 (or whatever compatible in i686)
  • install http://files.digilent.com/Software/Adept2/digilent.adept.utilities-2.2.1.x86_64.rpm
  • install http://files.digilent.com/Software/Adept2+Runtime/2.19.2/digilent.adept.runtime-2.19.2.x86_64.rpm
  • put "[ni-software-2018] \n name=NI Linux Desktop Software \n enabled=1 \n baseurl=https://download.ni.com/ni-linux-desktop/2018.07/rpm/ni/el7 \n gpgcheck=0" in /etc/yum.repos.d/ni-software-2018.repo
  • get http://download.ni.com/support/softlib/multifunction_daq/nidaqmxbase/15.0/linux/nidaqmxbase-15.0.0.iso, http://download.ni.com/support/softlib/gpib/linux/15.1/patch/NI4882-15.1.1f0.iso, http://download.ni.com/support/softlib/kal/17.5.1/NIKAL175.iso, http://download.ni.com/support/softlib/visa/NI-VISA/15.5/Linux/NI-VISA-15.5.0.iso and http://download.ni.com/support/softlib/visa/NI-VISA/17.0/Linux/NI-VISA-17.0.0.iso to install (you need to mount -o loop the iso and untar the files):
    • ni-488.2-enetfirmwareupdate.x86_64 18.0.0.49152-0+f0
    • ni-apal-errors.noarch 17.0.0.49152-0+f0
    • ni-avahi-client.x86_64 18.1.0.49152-0+f0
    • ni-kal.noarch 17.0.0.49152-0+f0
    • ni-mdbg.i386 17.0.0.49152-0+f0
    • ni-mdbg.x86_64 17.0.0.49152-0+f0
    • ni-mdbg-errors.noarch 17.0.0.49152-0+f0
    • ni-mdbg-nikalmod.x86_64 17.0.0.49152-0+f0
    • ni-mxdf.i386 17.0.0.49152-0+f0
    • ni-mxdf.x86_64 17.0.0.49152-0+f0
    • ni-mxdf-errors.noarch 17.0.0.49152-0+f0
    • ni-mxdf-nikalmod.x86_64 17.0.0.49152-0+f0
    • ni-networkdiscoverysvc.x86_64 18.1.0.49152-0+f0
    • ni-orb.i386 17.0.0.49152-0+f0
    • ni-orb.x86_64 17.0.0.49152-0+f0
    • ni-orb-errors.noarch 17.0.0.49152-0+f0
    • ni-orb-nikalmod.x86_64 17.0.0.49152-0+f0
    • ni-pal.i386 17.0.0.49152-0+f0
    • ni-pal.x86_64 17.0.0.49152-0+f0
    • ni-pal-errors.noarch 17.0.0.49152-0+f0
    • ni-pal-nikalmod.x86_64 17.0.0.49152-0+f0
    • ni-pxipf-errors.noarch 17.0.0.49152-0+f0
    • ni-pxirm.x86_64 17.0.0.49155-0+f3
    • ni-pxirm-nikalmod.x86_64 17.0.0.49155-0+f3
    • ni-pxirm-resources.noarch 17.0.0.49155-0+f3
    • ni-software-2018.noarch 18.0.1.49153-0+f1.el7
    • ni-sysapi.x86_64 18.1.0.49153-0+f1
    • ni-syscfg-runtime.x86_64 18.1.0.49152-0+f0
    • ni-visa-sysapi.i386 17.0.0.49152-0+f0
    • ni-visa-sysapi.x86_64 17.0.0.49152-0+f0
    • ni-wsrepl.x86_64 18.1.0.49152-0+f0
    • ni4882ki.x86_64 15.1.0-f0
    • nicurli.i386 18.0.0-f0
    • nicurli.x86_64 18.0.0-f0
    • nidaqmxbase-board-support.x86_64 15.0.0-f1
    • nidaqmxbase-cinterface.x86_64 15.0.0-f1
    • nidaqmxbase-common.x86_64 15.0.0-f1
    • nidaqmxbase-usb-support.x86_64 15.0.0-f1
    • nidimi.i386 17.0.0-f0
    • nidimi.x86_64 17.0.0-f0
    • nidimki.x86_64 17.0.0-f0
    • niiotracei.i386 15.0.0-f0
    • nimdnsresponder.i386 17.0.0-f0
    • nipalki.noarch 17.0.0.49152-0+f0
    • nipxipfi.i386 15.0.0-f0
    • nipxipfki.x86_64 15.0.0-f0
    • nipxirmi.i386 2.8.0-f0
    • nirocoerri.i386 17.0.0-f1
    • nispyi.i386 2.8.1-f0
    • nispylogsupp.i386 17.0.0-f0
    • nispylogsupp.x86_64 17.0.0-f0
    • nisslcerts.noarch 18.0.0-3.0
    • nissli.i386 18.0.0-f0
    • nissli.x86_64 18.0.0-f0
    • nisvcloc.noarch 17.0.0-1
    • niswactions.x86_64 18.1.0.49153-0+f1
    • nitargetcfgi.x86_64 5.0.0.49153-f1
    • nivisa.i386 15.5.0-f0
    • nivisa.x86_64 15.5.0-f0
    • nivisa-config.i386 15.5.0-f0
    • nivisa-devel.i386 15.5.0-f0
    • nivisak.x86_64 15.5.0-f0
    • nivisaserver.i386 15.5.0-f0
  • something like mkdir NI4882-15.1.1f0 ; mount -o loop NI4882-15.1.1f0.iso NI4882-15.1.1f0 ; mkdir NIKAL175 ; mount -o loop NIKAL175.iso NIKAL175 ; mkdir nidaqmxbase-15.0.0 ; mount -o loop nidaqmxbase-15.0.0.iso nidaqmxbase-15.0.0 ; mkdir NI-VISA-15.5.0 ; mount -o loop NI-VISA-15.5.0.iso NI-VISA-15.5.0 ; mkdir NI-VISA-17.0.0 ; mount -o loop NI-VISA-17.0.0.iso NI-VISA-17.0.0 ; tar xzf NI4882-15.1.1f0/NI4882-15.1.1f0.tar.gz ; tar xzf NIKAL175/nikal-17.5.1f0.tar.gz ; tar xzf NI-VISA-15.5.0/nivisa-15.5.0f1.tar.gz ; tar xzf NI-VISA-17.0.0/nivisa-17.0.0f1.tar.gz ; cp nidaqmxbase-15.0.0/*.rpm rpms/ ; cd NI-VISA-15.5.0 ; ./INSTALL ; cd ../NI-VISA-17.0.0 ; ./INSTALL ; cd ../rpms ; yum install ni-488.2-enetfirmwareupdate-18.0.0.49152-0+f0.x86_64 ni-avahi-client-18.1.0.49152-0+f0.x86_64 ni-networkdiscoverysvc-18.1.0.49152-0+f0.x86_64 ni-software-2018-18.0.1.49153-0+f1.el7.noarch ni-sysapi-18.1.0.49153-0+f1.x86_64 ni-syscfg-runtime-18.1.0.49152-0+f0.x86_64 ni-wsrepl-18.1.0.49152-0+f0.x86_64 nicurli-18.0.0-f0.i386 nicurli-18.0.0-f0.x86_64 nisslcerts-18.0.0-3.0.noarch nissli-18.0.0-f0.i386 nissli-18.0.0-f0.x86_64 niswactions-18.1.0.49153-0+f1.x86_64 ni-apal-errors-17.0.0.49152-0+f0.noarch.rpm ni-kal-17.5.1.49152-0+f0.noarch.rpm ni-mdbg-17.0.0.49152-0+f0.i386.rpm ni-mdbg-17.0.0.49152-0+f0.x86_64.rpm ni-mdbg-errors-17.0.0.49152-0+f0.noarch.rpm ni-mdbg-nikalmod-17.0.0.49152-0+f0.x86_64.rpm ni-mxdf-17.0.0.49152-0+f0.i386.rpm ni-mxdf-17.0.0.49152-0+f0.x86_64.rpm ni-mxdf-errors-17.0.0.49152-0+f0.noarch.rpm ni-mxdf-nikalmod-17.0.0.49152-0+f0.x86_64.rpm ni-orb-17.0.0.49152-0+f0.i386.rpm ni-orb-17.0.0.49152-0+f0.x86_64.rpm ni-orb-errors-17.0.0.49152-0+f0.noarch.rpm ni-orb-nikalmod-17.0.0.49152-0+f0.x86_64.rpm ni-pal-17.0.0.49152-0+f0.i386.rpm ni-pal-17.0.0.49152-0+f0.x86_64.rpm ni-pal-errors-17.0.0.49152-0+f0.noarch.rpm ni-pal-nikalmod-17.0.0.49152-0+f0.x86_64.rpm ni-pxipf-errors-17.0.0.49152-0+f0.noarch.rpm ni-pxirm-17.0.0.49155-0+f3.x86_64.rpm ni-pxirm-nikalmod-17.0.0.49155-0+f3.x86_64.rpm ni-pxirm-resources-17.0.0.49155-0+f3.noarch.rpm ni-visa-sysapi-17.0.0.49152-0+f0.i386.rpm ni-visa-sysapi-17.0.0.49152-0+f0.x86_64.rpm nidaqmxbase-board-support-15.0.0-f1.x86_64.rpm nidaqmxbase-cinterface-15.0.0-f1.x86_64.rpm nidaqmxbase-common-15.0.0-f1.x86_64.rpm nidaqmxbase-usb-support-15.0.0-f1.x86_64.rpm nidimi-17.0.0-f0.i386.rpm nidimi-17.0.0-f0.x86_64.rpm nidimki-17.0.0-f0.x86_64.rpm niiotracei-15.0.0-f0.i386.rpm nimdnsresponder-17.0.0-f0.i386.rpm nipalki-17.0.0.49152-0+f0.noarch.rpm nipxipfi-15.0.0-f0.i386.rpm nipxipfki-15.0.0-f0.x86_64.rpm nipxirmi-2.8.0-f0.i386.rpm nirocoerri-17.0.0-f1.i386.rpm nispyi-2.8.1-f0.i386.rpm nispylogsupp-17.0.0-f0.i386.rpm nispylogsupp-17.0.0-f0.x86_64.rpm nisvcloc-17.0.0-1.noarch.rpm nivisa-15.5.0-f0.i386.rpm nivisa-15.5.0-f0.x86_64.rpm nivisa-config-15.5.0-f0.i386.rpm nivisa-devel-15.5.0-f0.i386.rpm nivisak-15.5.0-f0.x86_64.rpm nivisaserver-15.5.0-f0.i386.rpm ni4882ki-15.1.0-f0.x86_64.rpm labview-2015-rte-15.0.0-2.x86_64.rpm labview-2014-rte-14.0.1-4.i386.rpm labview-2014-rte-14.0.1-4.x86_64.rpm labview-2015-rte-32bit-15.0.1-8.i386.rpm libXinerama.i686
  • we also sometimes need the 32 bits version of libGL.so.1 : yum install mesa-libGL-17.2.3-8.20171019.el7.i686
  • run updateNIDrivers (it should compile nikal and produce /lib/modules/3.10.*.x86_64/kernel/natinst/nipal/nipalk.ko)
  • Run sudo chmod 666 /dev/tty*
  • Run ausearch -c 'abrt-hook-ccpp' --raw | audit2allow -M my-abrthookccpp ; semodule -i my-abrthookccpp.pp

To install ITSDAQ:

  • Set the following env vars:
    • export ITSDAQ_LOCATION=TORONTO_B161
    • export SCTDAQ_ROOT=/home/utstripsdaq/itsdaq-sw
    • export SCTDAQ_VAR=/home/utstripsdaq/itsdaq-sw
    • export SCT_DAQ_ROOT=$SCTDAQ_ROOT
    • export SCTDB_USER=oarn
  • python waf configure --enable-visa --with-rootsys $ROOTSYS --with-boost=/usr/lib64/
  • python waf build
  • python waf install
(seems to work fine with root-5.34.36) the wscript file may need to be changed so that visa_libpath = ["/usr/local/lib64"]
  • mkdir etc data results ps

To setup the hsioPipe:

  • Put inside /usr/bin/hsiopipe_d (you need to adjust the username and the eth interface name):
#!/bin/sh
chmod +666 /dev/tty*
rm /tmp/toHsio /tmp/frHsio
mkfifo /tmp/toHsio
mkfifo /tmp/frHsio
chmod ugo+rw /tmp/toHsio /tmp/frHsio
/home/utstripsdaq/itsdaq-sw/bin/hsioPipe --eth enp7s0,e0:dd:cc:bb:aa:00 --file /tmp/toHsio,/tmp/frHsio
  • chmod +x /usr/bin/hsiopipe_d
  • Put in /etc/systemd/system/hsiopipe.service :
[Unit]
Description=Starts communication with ATLYS interface
Wants=network-online.target
After=network.target network-online.target

[Service]
Type=oneshot
ExecStart=/usr/bin/hsiopipe_d

[Install]
WantedBy=multi-user.target
  • Run "systemctl enable hsiopipe ; systemctl start hsiopipe"

-- OlivierArnaez - 2018-11-27

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r4 - 2018-11-28 - OlivierArnaez
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback