... | ... | @@ -9,16 +9,19 @@ to |
|
|
**APT::Periodic::Update-Package-Lists "0";
|
|
|
APT::Periodic::Unattended-Upgrade "0";**
|
|
|
|
|
|
---
|
|
|
2. Install the low-latency karnel
|
|
|
**$ sudo apt install linux-image-4.15.0-20-lowlatency
|
|
|
$ sudo reboot**
|
|
|
|
|
|
---
|
|
|
3. 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**
|
|
|
|
|
|
|
|
|
---
|
|
|
4. Install the KEK version of fmc-tdc-sw
|
|
|
Downloard fmc-tdc-sw from https://cerldev.kek.jp/trac/EpicsUsersJP/attachment/wiki/epics/fmc_tdc/fmc-tdc-sw-kek220427-rev0.tar.gz
|
|
|
Downloard fmc-tdc-sw from [the KEK repository](https://cerldev.kek.jp/trac/EpicsUsersJP/attachment/wiki/epics/fmc_tdc/fmc-tdc-sw-kek220427-rev0.tar.gz).
|
|
|
4.1 Create **wr** directory under **/opt** and unpack the tar ball.
|
|
|
**$ cd /opt
|
|
|
$ sudo mkdir wr
|
... | ... | @@ -33,11 +36,55 @@ $ 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.
|
|
|
# /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 a |
|
|
\ No newline at end of file |
|
|
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**
|
|
|
|
|
|
---
|
|
|
5. Install EPICS R3.15.8
|
|
|
5.1 Download EPICS R.3.15.8 under **/opt**
|
|
|
**$ cd /opt
|
|
|
$ sudo mkdir -p epics
|
|
|
$ sudo chown <user name> 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**
|
|
|
|
|
|
---
|
|
|
6. Install the EPICS device support of FMC-TDC
|
|
|
Download the device support from [the KEK repository](https://cerldev.kek.jp/trac/EpicsUsersJP/attachment/wiki/epics/fmc_tdc/devWrtdc-220427-rev1.tar.gz)
|
|
|
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](). |
|
|
\ No newline at end of file |