- Posts: 5
- Thank you received: 1
Ethercat installation from repositories - how to step by step
- SoloRev
- Offline
- New Member
-
Less
More
4 months 1 week ago #347154
by SoloRev
Replied by SoloRev on topic Ethercat installation from repositories - how to step by step
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
. stop any kernel update with
basically wildcard the 6.12 string on both sides to prevent anything related to the kernel from being updated.
Code:
sudo apt upgrade
Code:
sudo apt-mark hold *6.12*
Please Log in or Create an account to join the conversation.
- rodw
- Offline
- Platinum Member
-
Less
More
- Posts: 12170
- Thank you received: 4153
4 months 1 week ago #347160
by rodw
Replied by rodw on topic Ethercat installation from repositories - how to step by step
Did you try the revised instructions in the first post?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]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.
- SoloRev
- Offline
- New Member
-
Less
More
- Posts: 5
- Thank you received: 1
4 months 1 week ago #347173
by SoloRev
Replied by SoloRev on topic Ethercat installation from repositories - how to step by step
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.
- spumco
- Offline
- Platinum Member
-
Less
More
- Posts: 2180
- Thank you received: 905
4 months 1 week ago #347177
by spumco
Replied by spumco on topic Ethercat installation from repositories - how to step by step
Tried a fresh install from scratch and running in to an error during ethercat installation.
got a failure starting start ethercat.service:
Can anyone interpret the error and help me with a path forward?
- 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.
- rodw
- Offline
- Platinum Member
-
Less
More
- Posts: 12170
- Thank you received: 4153
4 months 1 week ago #347185
by rodw
Replied by rodw on topic Ethercat installation from repositories - how to step by step
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?
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.
- grandixximo
- Offline
- Platinum Member
-
Less
More
- Posts: 350
- Thank you received: 410
4 months 1 week ago #347189
by grandixximo
Replied by grandixximo on topic Ethercat installation from repositories - how to step by step
check the output of these command
Is your /etc/ethercat.conf properly set?
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