Ethercat installation from repositories - how to step by step

More
4 months 1 week ago #347154 by SoloRev
The issue seems to be DKMS failing with the latest debian kernel. I couldn’t figure out how to uninstall the kernel but I was able to stop it from being installed on a new system. Before you do a 
Code:
sudo apt upgrade
. stop any kernel update with 
Code:
sudo apt-mark hold *6.12*
basically wildcard the 6.12 string on both sides to prevent anything related to the kernel from being updated. 

Please Log in or Create an account to join the conversation.

More
4 months 1 week ago #347160 by rodw

The issue seems to be DKMS failing with the latest debian kernel. I couldn’t figure out how to uninstall the kernel but I was able to stop it from being installed on a new system. Before you do a 
Code:
sudo apt upgrade. stop any kernel update with [code]sudo apt-mark hold *6.12* basically wildcard the 6.12 string on both sides to prevent anything related to the kernel from being updated. 
[/code]
Did you try the revised instructions in the first post?

Please Log in or Create an account to join the conversation.

More
4 months 1 week ago #347173 by SoloRev
I didn’t see that the instructions were changed. I’ll have a go at those on a new system. that one is being heavily used for testing now.

Please Log in or Create an account to join the conversation.

More
4 months 1 week ago #347177 by spumco
Tried a fresh install from scratch and running in to an error during ethercat installation.
  • LCNC ISO installed ok
  • Updated realtek NIC driver OK - latency and network speed good, no issues.
  • Followed first post in this thread, removed iGh repo
  • Updated ethercat.conf via geany with MAC address of port (enp2S0)

got a failure starting start ethercat.service:
Code:
sudo systemctl enable ethercat.service Synchronizing state of ethercat.service with SysV service script with /usr/lib/systemd/systemd-sysv-install. Executing: /usr/lib/systemd/systemd-sysv-install enable ethercat mill@mill:~$ sudo systemctl start ethercat.service Job for ethercat.service failed because the control process exited with error code. See "systemctl status ethercat.service" and "journalctl -xeu ethercat.service" for details. mill@mill:~$ systemctl status ethercat.service × ethercat.service - EtherCAT Master Kernel Modules      Loaded: loaded (/usr/lib/systemd/system/ethercat.service; enabled; preset: enabled)      Active: failed (Result: exit-code) since Sat 2026-06-20 14:38:57 EDT; 26s ago  Invocation: 1f3d48bc0cb741a787b3ce8d8d781907     Process: 2624 ExecStart=/usr/sbin/ethercatctl start (code=exited, status=1/FAILURE)    Main PID: 2624 (code=exited, status=1/FAILURE)    Mem peak: 2M         CPU: 43ms mill@mill:~$ journalctl -xeu ethercat.service Hint: You are currently not seeing messages from other users and the system.       Users in groups 'adm', 'systemd-journal' can see all messages.       Pass -q to turn off this notice.

Can anyone interpret the error and help me with a path forward?

Please Log in or Create an account to join the conversation.

More
4 months 1 week ago #347185 by rodw
I've never seen the sysv error before. 
Odd others have got the new method working already.
You need to use sudo for systemctl and journalctl. Can you redo and share?

Please Log in or Create an account to join the conversation.

More
4 months 1 week ago #347189 by grandixximo
check the output of these command

Code:
systemctl status ethercat.service sudo journalctl -xeu ethercat.service --no-pager dkms status | grep -i ethercat        # module built for running kernel? uname -r                              # running kernel matches? lsmod | grep ec_                     # loaded? sudo modprobe ec_master              # manual load - shows real error


Is your /etc/ethercat.conf properly set?

Please Log in or Create an account to join the conversation.

Time to create page: 3.153 seconds
Powered by Kunena Forum