-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Gordon Crone edited this page May 19, 2023
·
10 revisions
- Create a work area based on nightly release NT23-02-18
- Checkout the
developbranch of these packages - Checkout the
gcrone/no-dalbranch of these packages - Checkout the
gcrone/Resourcebranch of these packages - Update the
sourcecode/dbt-build-order.cmakefile to build the OKS packages (okssystem,oksdbinterfaces,oks,genconfig,oksutils,oksconfig,dbe and dunedaqdal) andcoremanagerbeforeappfwkandcpuburnerafterappfwk. - Set the environment variable
TDAQ_DB_PATH(see below). This must be done before building so that the code generation from OKS schema can find the schema of included packages. -
dbt-buildthe code.
TDAQ_DB_PATH is a a colon : separated list of paths to search for OKS configuration files. Currently to find all the necessary schema files it should include all the packages that have schema. In the sourcecode directory where you cloned the packages. If you want to keep your configuration data separate, you can add a directory of your choice to the end of the list:
export TDAQ_DB_PATH=${PWD}/dunedaqdal:${PWD}/cpuburner:${HOME}/configs
Copy the file cpuburner/data/burn.data.xml and edit it with the OKS database editor dbe_main.
See the notes in the README in the gcrone/coremanager branch of dunedaqdal.
Create a session directory for the configuration with an empty data subdirectory (nanorc will complain if it can't find the data directory).
mkdir -p burn/data
Add a boot.json like the following to the session directory:
{
"apps": {
"burner-1": {
"exec": "daq_application_ssh",
"host": "burner",
"port": 3333
}
},
"env": {
"DUNEDAQ_ERS_DEBUG_LEVEL": "getenv_ifset",
"DUNEDAQ_ERS_ERROR": "erstrace,throttle,lstdout",
"DUNEDAQ_ERS_FATAL": "erstrace,lstdout",
"DUNEDAQ_ERS_INFO": "erstrace,throttle,lstdout",
"DUNEDAQ_ERS_VERBOSITY_LEVEL": "getenv:1",
"DUNEDAQ_ERS_WARNING": "erstrace,throttle,lstdout",
"TDAQ_DB_PATH": "getenv"
},
"exec": {
"daq_application_ssh": {
"args": [
"--name",
"{APP_NAME}",
"-c",
"{CMD_FAC}",
"-i",
"{INFO_SVC}",
"--configurationService",
"oksconfig:data/burn.data.xml"
],
"cmd": "daq_application",
"comment": "Application profile using PATH variables (lower start time)",
"env": {
"CET_PLUGIN_PATH": "getenv",
"CMD_FAC": "rest://localhost:{APP_PORT}",
"CONNECTION_PORT": "5000",
"CONNECTION_SERVER": "127.0.0.1",
"DETCHANNELMAPS_SHARE": "getenv",
"DUNEDAQ_SHARE_PATH": "getenv",
"INFO_SVC": "file://info_{APP_NAME}_{APP_PORT}.json",
"LD_LIBRARY_PATH": "getenv",
"PATH": "getenv",
"TIMING_SHARE": "getenv",
"TRACE_FILE": "getenv:/tmp/trace_buffer_{APP_HOST}_{DUNEDAQ_PARTITION}"
}
}
},
"external_connections": [],
"hosts-ctrl": {
"burner": "localhost"
},
"hosts-data": {
"burner": "localhost"
},
"response_listener": {
"port": 56789
}
}
nanorc burn burner-session