From 398fe98af51abedc26f523a389bcda3d027d64c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Sandstr=C3=B6m?= Date: Fri, 13 Sep 2024 11:56:13 +0200 Subject: [PATCH] Add readme --- AutoStart/S10-ecmc-python-venv | 4 +--- AutoStart/S10-eth-irq-prio | 8 ++++++-- README.md | 29 +++++++++++++++++++++++++++++ 3 files changed, 36 insertions(+), 5 deletions(-) create mode 100644 README.md diff --git a/AutoStart/S10-ecmc-python-venv b/AutoStart/S10-ecmc-python-venv index 9121ba2..3760021 100755 --- a/AutoStart/S10-ecmc-python-venv +++ b/AutoStart/S10-ecmc-python-venv @@ -1,5 +1,3 @@ #!/bin/bash -cp -r /ioc/ecmc_python_venv/.venv /tmp/ - - +cp -r /ioc/NeedfulThings/ecmc_python_venv/.venv /tmp/ diff --git a/AutoStart/S10-eth-irq-prio b/AutoStart/S10-eth-irq-prio index afa6a52..d55f6e6 100755 --- a/AutoStart/S10-eth-irq-prio +++ b/AutoStart/S10-eth-irq-prio @@ -3,5 +3,9 @@ #echo "I am in ${0}" # set IRQ priority=92 for all EtherCAT kernel threads (default is 50) -/usr/local/bin/set-irq-threads-priority.sh enp2s0 92 -/usr/local/bin/set-irq-threads-priority.sh enp4s0 92 +# This is only working if generic driver is in use. If igb, which is default, then ignore any errors from the below +source /etc/ethercat.conf +for dev in $LINK_DEVICES +do + usr/local/bin/set-irq-threads-priority.sh $dev 92 +done diff --git a/README.md b/README.md new file mode 100644 index 0000000..34d37f8 --- /dev/null +++ b/README.md @@ -0,0 +1,29 @@ +# ecmc server cfg +Repo containing cfg for **ecmc servers**, only **ecmc servers**. + +**THE SETTINGS IN THIS REPO IS ONLY SUPPOSED TO BE A TEMPLATE AND WILL NOT WORK FOR ALL MACHINES** + +**THE PERSON COMMISSIONING THE SERVER IS RESPONSIBLE FOR THE SETTINGS** + +## Usage + +Clone the repository to the host: +``` +cd /ioc/hosts/ +git clone git@git.psi.ch:motion/ecmc_server_cfg.git cfg + +# then check the settings are valid + +``` +## Note on IGB driver + +The file ETHERCATDRVR defines what devices to use: +``` +DEVICE_MODULES="igb generic" +``` +The default setup is that igb-driver will be used if possible and fallback to generic otherwise. + +The "S10-eth-irq-prio" script will only have effect if generic driver is used. In the default case when igb-drivber is used the script might give some error messages but should not affect anything in a negative way. + + +