Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Sign in
F
FMC TDC 1ns 5cha
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 1
    • Issues 1
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 1
    • Merge Requests 1
  • Wiki
    • Wiki
  • image/svg+xml
    Discourse
    • Discourse
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Commits
  • Issue Boards
  • Projects
  • FMC TDC 1ns 5cha
  • Wiki
  • How to set up the spec and fmc tdc with epics

How to set up the spec and fmc tdc with epics

Last edited by Hiroshi Kaji Oct 13, 2022
Page history
This is an old version of this page. You can view the most recent version or browse the history.
  1. Install the ubuntu 18.04 LTS to the carrier PC.
    Please make sure that the operation is confirmed only with ubuntu 18.04 LTS.
    It is not confirmed, for example, 18.04.2 LTS and so on.
    After installation, to avoid the karnel update, /etc/apt/apt.conf.d/20auto-upgareds should be changed as follows:
    from
    APT::Periodic::Update-Package-Lists "1";
    APT::Periodic::Unattended-Upgrade "1";

    to
    APT::Periodic::Update-Package-Lists "0";
    APT::Periodic::Unattended-Upgrade "0";

  1. Install the low-latency karnel
    $ sudo apt install linux-image-4.15.0-20-lowlatency
    $ sudo reboot

  1. Install the related packages those will be used later.
    $ sudo apt install -y build-essential libelf-dev libreadline-dev linux-headers-$(uname -r)
    $ sudo apt install -y automake autoconf subversion git mokutil openssh-server vim net-tools

  1. Install the KEK version of fmc-tdc-sw
    Downloard fmc-tdc-sw from the KEK repository.
    4.1 Create wr directory under /opt and unpack the tar ball.
    $ cd /opt
    $ sudo mkdir wr
    $ sudo chown wr
    $ cd wr
    $ mv ~/Downloads/fmc-tdc-sw-kek220427-rev0.tar.gz .
    $ tar xzf fmc-tdc-sw-kek220427-rev0.tar.gz

    4.2 Build them
    $ cd fmc-tdc-sw
    $ make
    $ sudo make modules_install
    $ sudo depmod

    4.3 Setup to load the karnel module when it is booted.
    $ sudo vi /etc/modules-load.d/modules.conf
    # /etc/modules: kernel modules to load at boot time.
    #
    # This file contains the names of kernel modules that should be loaded
    # at boot time, one per line. Lines beginning with "#" are ignored.
    spec <- add
    zio <- add
    fmc_tdc <- add

    4.4 Prepare the gateware
    $ cd /lib/firmware
    $ sudo mkdir -p fmc
    $ cd fmc
    $ wget https://ohwr.org/project/wr-starting-kit/wikis/uploads/0858d4af81f393459a1a2aa3f981c913/wr-starting-kit-v3.1_bin.tar.gz
    $ tar xzf wr-starting-kit-v3.1_bin.tar.gz
    $ wget https://ohwr.org/project/fmc-tdc-1ns-5cha-gw/uploads/6705af969418c0c18454dbf63cbc6a04/spec-fmc-tdc-v7.0.bin
    $ sudo cp spec-fmc-tdc-v7.0.bin spec-fmc-tdc.bin

  1. Install EPICS R3.15.8
    5.1 Download EPICS R.3.15.8 under /opt
    $ cd /opt
    $ sudo mkdir -p epics
    $ sudo chown epics
    $ cd epics
    $ mkdir R3-15-8
    $ cd R3-15-8
    $ wget https://epics.anl.gov/download/base/base-3.15.8.tar.gz
    $ tar xzf base-3.15.8.tar.gz
    $ mv base-3.15.8 base

    5.2 Edit CONFIG_SITE
    $ cd base
    $ vi configure/CONFIG_SITE

    Set USE_POSIX_THREAD_PRIORITY_SCHEDULING to be "YES"
    USE_POSIX_THREAD_PRIORITY_SCHEDULING = YES
    5.3 Build it
    $ export EPICS_BASE=$PWD
    $ export EPICS_HOST_ARCH=linux-x86_64
    $ make

  1. Install the EPICS device support of FMC-TDC
    Download the device support from the KEK repository
    6.1 Unpack it under /opt/epics/R3-15-8/modules
    $ cd /opt/epics/R3-15-8
    $ mkdir modules
    $ mv ~/Downloads/devWrtdc-220427-rev1.tar.gz .
    $ tar xzf devWrtdc-220427-rev1.tar.gz

    6.2 Build it
    $ cd devWrtdc
    $ make

How to use the device support, please refer to this.

Clone repository
  • Board performance
  • Documents
  • Home
  • News
  • Releases
  • Cern
  • How to set up the spec and fmc dio with epics
  • How to set up the spec and fmc tdc with epics
  • How to use the epics device support for fmc dio
  • How to use the epics device support of fmc tdc
  • Literature
  • Originalsystemspec
  • Release v8
  • Users
  • Documents
    • Images
More Pages

New Wiki Page

Tip: You can specify the full path for the new file. We will automatically create any missing directories.