How to install EtherLab EtherCAT master on Ubuntu 24.04
This short instruction shows you how to install the EtherLab EtherCAT master, also known as the IgH EtherCAT Master.
Add the repository:
install_etherlab_ethercat.sh
curl -fsSL https://download.opensuse.org/repositories/science:/EtherLab/Debian_12/Release.key | gpg --dearmor | sudo tee "/usr/share/keyrings/etherlab.gpg" >/dev/null
sudo echo "deb [signed-by=/usr/share/keyrings/etherlab.gpg] https://download.opensuse.org/repositories/science:/EtherLab/xUbuntu_24.04/ ./" | sudo tee /etc/apt/sources.list.d/etherlab.list
sudo apt updateNow install the EtherCAT master from the repository we just installed
install_ethercat_master.sh
sudo apt install ethercat-masterIn case you also need the development headers, install them using
install_libethercat_dev.sh
sudo apt install libethercat-devFor more info, see the EtherLab page
How to configure the EtherCAT Master
Now open /etc/ethercat.conf and set MASTER0_DEVICE to the name of your network interface.
This typically cannot be the same network interface you’re using for internet or other purposes. You can find the name of your network interfaces using ifconfig.
ethercat_conf_setting.sh
MASTER0_DEVICE="enx00e04c680004"Now you can (re)start the EtherCAT master using
restart_ethercat.sh
sudo systemctl restart ethercatCheck out similar posts by category:
EtherCAT
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow