Advanced > CPU Configuration > CPU1 InformationSet all groups to 8x8 from Auto (if you know the slot you could set only that one). flx-info lspci should show two devices. Turn IOMMU off
Advanced > NB Configuration > IOMMUSwitch to disabled from auto
sudo yum updateInstall some extra packages:
dnf config-manager --set-enabled crb
sudo dnf install epel-release
sudo yum install cmake librdmacm-utils libuuid-devel lm_sensors
sudo dnf install htop
sudo dnf install swig clang pybind11-devel sudo dnf install zbar-libs libdmtxSetup firefox to delete user logins:
source /opt/Xilinx/Vivado_Lab/2024.2/settings64.sh
CVMFS_QUOTA_LIMIT=10000Maybe need to change CVMFS timeout / DNS settings. Getting a lot of input/output errors, which randomly appeared and stopped. /var/log/messages say it can't resolve cvmfs host names and keeps switching
alias cm_setup='source /cvmfs/atlas.cern.ch/repo/sw/tdaq/tools/cmake_tdaq/bin/cm_setup.sh'Now this should work, but it will be slow, but we don't actually set this up for the felix sw below, it does it's own setup. If this ends up too slow a container might be an option: https://atlas-tdaq-sw-releases.web.cern.ch/HOWTOS/Containers/
wget https://atlas-project-felix.web.cern.ch/atlas-project-felix/user/dist/software/drivers/releases/el9/felix-drivers-04-20-00/tdaq_sw_for_Flx-4.20.0-2dkms.noarch.rpmThe Usual setup script is now here:
sudo dnf install tdaq_sw_for_Flx-4.20.0-2dkms.noarch.rpm
/etc/init.d/drivers_flx startThis should have made a derivers_flx_sd.service in /etc/systemd/system to automatically start the drivers at boot. If not make one as below: Let's make this a service that starts on boot. Add the following to /etc/systemd/system/flx_derivers.service
[Unit]Run:
Description=Start drivers for the FELIX card
[Service]
Type=oneshot
ExecStart=/etc/init.d/drivers_flx start
ExecStart=/etc/init.d/drivers_flx sttop
RemainAfterExit=yes
[Install]WantedBy=multi-user.target
sudo systemctl daemon-reload.
sudo systemctl enable my_script.service
sudo systemctl start my_script.service
sudo systemctl status my_script.service
git submodule initsource setup.sh from main directory Follow instructions in repo to build lpgbt interface: https://gitlab.cern.ch/BNL-ATLAS/larphase2/feb2/libflx-lpgbt
git submodule update
.....
make -j
dnf --enablerepo=crb install swigFrom FEB2 directory. Note cmake command is modified from repo to point to correct places, turn off docs, and turn off ROOT. In libflx-lpgbt below, make a setup.sh script with the following and run source ./setup.sh (the ./ is important otherwise it seems to find something else in the path)
if [ ! -z "$PS1" ]; then #only active in interactive modelibflx-lpgbt is compiling with pybind11 after an edit to the cmake file:
export REGMAP_VERSION=0x0400
export FELIXSWROOT=/home/atlas/FEB2/felix-distribution
#source $FELIXSWROOT/setup.sh
fi
--- a/pybind11/CMakeLists.txt +++ b/pybind11/CMakeLists.txt @@ -1,8 +1,9 @@ ###################### lpGBTlib python binding ############################ IF(BUILD_WITH_PYBIND11) - message(STATUS "Building with pybind11 Python bindings") - find_package(Python COMPONENTS Interpreter Development) - find_package(pybind11 CONFIG) + message(STATUS "Building with pybind11 Python bindings") + find_package(Python 3.11 COMPONENTS Interpreter Development) + message($python) + find_package(pybind11 2.10 CONFIG)Then proceed to build
source ./setup.sh mkdir libflx-lpgbt cd libflx-lpgbt git clone https://gitlab.cern.ch/BNL-ATLAS/larphase2/feb2/libflx-lpgbt.git mkdir build install cd build cmake -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_BUILD_TYPE=RELEASE -DBUILD_DOC=OFF -DBUILD_WITH_ROOT=OFF -DBUILD_TESTEXEC=ON -DBUILD_WITH_PYBIND11=ON -DBUILD_WITH_SWIG=OFF ../libflx-lpgbtAdd the install directory/pyFlxlpGBT to the python path, add this to the setup.sh file above in libflx-lpgbt
export PYTHONPATH=$PYTHONPATH:/home/atlas/FEB2/libflx-lpgbt/install/pyFlxlpGBT
FEB2 MTP | Squid Cable | Breakout Box | FELIX MTP | FELIX LINK Channel | FEB2 Channels |
2 | 11 | 6a | 0_11 | 1 | lpGBT13 |
2 | 12 | 12a | 0_11 | 1 | lpGBT13 |
2 | 5 | 6b | 0_11 | 0 | lpGBT12 |
2 | 6 | 12b | 0_11 | 0 | lpGBT12 |
1 | 10 | 1a | 0_11 | 2 | 54--59 |
1 | 9 | 1b | 0_11 | 3 | 48--53 |
1 | 8 | 2a | 0_11 | 4 | |
1 | 7 | 2b | 0_11 | 5 | |
1 | 6 | 3a | 0_11 | 6 | |
1 | 5 | 3b | 0_11 | 7 | |
1 | 4 | 4a | 0_11 | 8 | |
1 | 3 | 4b | 0_11 | 9 | |
1 | 2 | 5a | 0_11 | 10 | |
1 | 1 | 5b | 0_11 | 11 | 0--5 |
3 | 11 | 1a | 12_23 | 23 | 124--127 |
3 | 10 | 1b | 12_23 | 22 | 118--123 |
3 | 9 | 2a | 12_23 | 21 | |
3 | 8 | 2b | 12_23 | 20 | |
3 | 7 | 3a | 12_23 | 19 | |
3 | 6 | 3b | 12_23 | 18 | |
3 | 5 | 4a | 12_23 | 17 | |
3 | 4 | 4b | 12_23 | 16 | |
3 | 3 | 5a | 12_23 | 15 | |
3 | 2 | 5b | 12_23 | 14 | |
3 | 1 | 6a | 12_23 | 13 | |
1 | 11 | 6b | 12_23 | 12 | 60--63 |
curl -LsSf https://astral.sh/uv/install.sh | sh mkdir FEB2 cd FEB2Clone gui repo
git clone https://gitlab.cern.ch/feb2/gui-new.gitvenv setup
--