- Configuring LinuxCNC
- Advanced Configuration
- EtherCAT
- Ethercat installation from repositories - how to step by step
Ethercat installation from repositories - how to step by step
- rodw
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 12054
- Thank you received: 4114
21 Jun 2026 10:21 #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
-
- Away
- Elite Member
-
Less
More
- Posts: 308
- Thank you received: 367
21 Jun 2026 12:15 #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?
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 errorIs your /etc/ethercat.conf properly set?
Please Log in or Create an account to join the conversation.
- spumco
- Offline
- Platinum Member
-
Less
More
- Posts: 2126
- Thank you received: 882
21 Jun 2026 17:44 #347195
by spumco
Replied by spumco on topic Ethercat installation from repositories - how to step by step
[Forum/internet is being really unresponsive, bear with me]
Thanks gents for having a look. Here's the terminal outputs:
You need to use sudo for systemctl and journalctl. Can you redo and share?
mill@debian:~$ sudo systemctl status -q 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 Sun 2026-06-21 13:00:19 EDT; 3min 25s ago
Invocation: bb278d36cbc64d1186f8e477d0791bc9
Process: 3561 ExecStart=/usr/sbin/ethercatctl start (code=exited, status=1/FAILURE)
Main PID: 3561 (code=exited, status=1/FAILURE)
Mem peak: 1.7M
CPU: 38ms
Jun 21 13:00:19 debian systemd[1]: Starting ethercat.service - EtherCAT Master Kernel Modules...
Jun 21 13:00:19 debian ethercatctl[3568]: modprobe: FATAL: Module ec_master not found in directory /lib/modules/6.12.86+deb13-rt-amd64
Jun 21 13:00:19 debian systemd[1]: ethercat.service: Main process exited, code=exited, status=1/FAILURE
Jun 21 13:00:19 debian systemd[1]: ethercat.service: Failed with result 'exit-code'.
Jun 21 13:00:19 debian systemd[1]: Failed to start ethercat.service - EtherCAT Master Kernel Modules.
mill@debian:~$ 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@debian:~$ sudo journalctl -xeu ethercat.service
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: www.debian.org/support
░░
░░ The unit ethercat.service has entered the 'failed' state with result 'exit-code'.
Jun 21 13:00:19 debian systemd[1]: Failed to start ethercat.service - EtherCAT Master Kernel Modules.
░░ Subject: A start job for unit ethercat.service has failed
░░ Defined-By: systemd
░░ Support: www.debian.org/support
░░
░░ A start job for unit ethercat.service has finished with a failure.
░░
░░ The job identifier is 3344 and the job result is failed.
Jun 21 13:03:54 debian systemd[1]: Starting ethercat.service - EtherCAT Master Kernel Modules...
░░ Subject: A start job for unit ethercat.service has begun execution
░░ Defined-By: systemd
░░ Support: www.debian.org/support
░░
░░ A start job for unit ethercat.service has begun execution.
░░
░░ The job identifier is 3574.
Jun 21 13:03:54 debian ethercatctl[3652]: modprobe: FATAL: Module ec_master not found in directory /lib/modules/6.12.86+deb13-rt-amd64
Jun 21 13:03:54 debian systemd[1]: ethercat.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: www.debian.org/support
░░
░░ An ExecStart= process belonging to unit ethercat.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
Jun 21 13:03:54 debian systemd[1]: ethercat.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: www.debian.org/support
░░
░░ The unit ethercat.service has entered the 'failed' state with result 'exit-code'.
Jun 21 13:03:54 debian systemd[1]: Failed to start ethercat.service - EtherCAT Master Kernel Modules.
░░ Subject: A start job for unit ethercat.service has failed
░░ Defined-By: systemd
░░ Support: www.debian.org/support
░░
░░ A start job for unit ethercat.service has finished with a failure.
░░
░░ The job identifier is 3574 and the job result is failed.
Is your /etc/ethercat.conf properly set?
Yes. Added MAC addr for enp2s0 and "generic"
check the output of these command
So it looks like something didn't get installed properly despite just pasting the linuxcnc-ethercat apt stuff from GH instructions.
Thanks gents for having a look. Here's the terminal outputs:
You need to use sudo for systemctl and journalctl. Can you redo and share?
Warning: Spoiler!
mill@debian:~$ sudo systemctl status -q 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 Sun 2026-06-21 13:00:19 EDT; 3min 25s ago
Invocation: bb278d36cbc64d1186f8e477d0791bc9
Process: 3561 ExecStart=/usr/sbin/ethercatctl start (code=exited, status=1/FAILURE)
Main PID: 3561 (code=exited, status=1/FAILURE)
Mem peak: 1.7M
CPU: 38ms
Jun 21 13:00:19 debian systemd[1]: Starting ethercat.service - EtherCAT Master Kernel Modules...
Jun 21 13:00:19 debian ethercatctl[3568]: modprobe: FATAL: Module ec_master not found in directory /lib/modules/6.12.86+deb13-rt-amd64
Jun 21 13:00:19 debian systemd[1]: ethercat.service: Main process exited, code=exited, status=1/FAILURE
Jun 21 13:00:19 debian systemd[1]: ethercat.service: Failed with result 'exit-code'.
Jun 21 13:00:19 debian systemd[1]: Failed to start ethercat.service - EtherCAT Master Kernel Modules.
mill@debian:~$ 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@debian:~$ sudo journalctl -xeu ethercat.service
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: www.debian.org/support
░░
░░ The unit ethercat.service has entered the 'failed' state with result 'exit-code'.
Jun 21 13:00:19 debian systemd[1]: Failed to start ethercat.service - EtherCAT Master Kernel Modules.
░░ Subject: A start job for unit ethercat.service has failed
░░ Defined-By: systemd
░░ Support: www.debian.org/support
░░
░░ A start job for unit ethercat.service has finished with a failure.
░░
░░ The job identifier is 3344 and the job result is failed.
Jun 21 13:03:54 debian systemd[1]: Starting ethercat.service - EtherCAT Master Kernel Modules...
░░ Subject: A start job for unit ethercat.service has begun execution
░░ Defined-By: systemd
░░ Support: www.debian.org/support
░░
░░ A start job for unit ethercat.service has begun execution.
░░
░░ The job identifier is 3574.
Jun 21 13:03:54 debian ethercatctl[3652]: modprobe: FATAL: Module ec_master not found in directory /lib/modules/6.12.86+deb13-rt-amd64
Jun 21 13:03:54 debian systemd[1]: ethercat.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: www.debian.org/support
░░
░░ An ExecStart= process belonging to unit ethercat.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
Jun 21 13:03:54 debian systemd[1]: ethercat.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: www.debian.org/support
░░
░░ The unit ethercat.service has entered the 'failed' state with result 'exit-code'.
Jun 21 13:03:54 debian systemd[1]: Failed to start ethercat.service - EtherCAT Master Kernel Modules.
░░ Subject: A start job for unit ethercat.service has failed
░░ Defined-By: systemd
░░ Support: www.debian.org/support
░░
░░ A start job for unit ethercat.service has finished with a failure.
░░
░░ The job identifier is 3574 and the job result is failed.
Is your /etc/ethercat.conf properly set?
Yes. Added MAC addr for enp2s0 and "generic"
check the output of these command
mill@debian:~$ sudo dkms status | grep -i ethercat
[sudo] password for mill:
ethercat/1.6.9: added
mill@debian:~$ uname -r
6.12.86+deb13-rt-amd64
mill@debian:~$ lsmod | grep ec_
typec_ucsi 69632 1 ucsi_acpi
typec 114688 1 typec_ucsi
roles 16384 1 typec_ucsi
usb_common 16384 3 xhci_hcd,usbcore,typec_ucsi
mill@debian:~$ sudo modprobe ec_master
modprobe: FATAL: Module ec_master not found in directory /lib/modules/6.12.86+deb13-rt-amd64
So it looks like something didn't get installed properly despite just pasting the linuxcnc-ethercat apt stuff from GH instructions.
Please Log in or Create an account to join the conversation.
- spumco
- Offline
- Platinum Member
-
Less
More
- Posts: 2126
- Thank you received: 882
21 Jun 2026 17:48 #347196
by spumco
Replied by spumco on topic Ethercat installation from repositories - how to step by step
Further terminal output after trying to re-install ethercat-master below:
mill@debian:~$ sudo apt-get install linuxcnc-ethercat ethercat-master
[sudo] password for mill:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
linuxcnc-ethercat is already the newest version (1.41.1-3+deb13u1).
ethercat-master is already the newest version (1:1.6.9-2+deb13u1).
The following package was automatically installed and is no longer required:
libwoff1
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up linux-image-6.12.86+deb13-amd64 (6.12.86-1) ...
/etc/kernel/postinst.d/dkms:
Sign command: /lib/modules/6.12.86+deb13-amd64/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Autoinstall of module ethercat/1.6.9 for kernel 6.12.86+deb13-amd64 (x86_64)
Building module(s)...(bad exit status: 127)
Failed command:
./bootstrap && ./configure --with-linux-dir=/lib/modules/6.12.86+deb13-amd64/build --enable-generic --enable-8139too --enable-e100 --enable-e1000 --enable-e1000e --enable-r8169 --enable-igb --enable-igc --enable-genet --disable-stmmac-pci --disable-dwmac-intel --disable-ccat --disable-eoe --enable-cycles --enable-hrtimer --disable-rtdm --disable-debug-if --disable-debug-ring --disable-regalias --disable-tty --disable-wildcards --enable-sii-assign --enable-rt-syslog && make modules
Error! Bad return status for module build on kernel: 6.12.86+deb13-amd64 (x86_64)
Consult /var/lib/dkms/ethercat/1.6.9/build/make.log for more information.
Autoinstall on 6.12.86+deb13-amd64 succeeded for module(s) r8125.
Autoinstall on 6.12.86+deb13-amd64 failed for module(s) ethercat(10).
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
run-parts: /etc/kernel/postinst.d/dkms exited with return code 1
dpkg: error processing package linux-image-6.12.86+deb13-amd64 (--configure):
installed linux-image-6.12.86+deb13-amd64 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of linux-headers-6.12.86+deb13-amd64:
linux-headers-6.12.86+deb13-amd64 depends on linux-image-6.12.86+deb13-amd64 (= 6.12.86-1) | linux-image-6.12.86+deb13-amd64-unsigned (= 6.12.86-1); however:
Package linux-image-6.12.86+deb13-amd64 is not configured yet.
Package linux-image-6.12.86+deb13-amd64-unsigned is not installed.
dpkg: error processing package linux-headers-6.12.86+deb13-amd64 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-headers-amd64:
linux-headers-amd64 depends on linux-headers-6.12.86+deb13-amd64 (= 6.12.86-1); however:
Package linux-headers-6.12.86+deb13-amd64 is not configured yet.
dpkg: error processing package linux-headers-amd64 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-6.12.86+deb13-amd64
linux-headers-6.12.86+deb13-amd64
linux-headers-amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
mill@debian:~$
Warning: Spoiler!
mill@debian:~$ sudo apt-get install linuxcnc-ethercat ethercat-master
[sudo] password for mill:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
linuxcnc-ethercat is already the newest version (1.41.1-3+deb13u1).
ethercat-master is already the newest version (1:1.6.9-2+deb13u1).
The following package was automatically installed and is no longer required:
libwoff1
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up linux-image-6.12.86+deb13-amd64 (6.12.86-1) ...
/etc/kernel/postinst.d/dkms:
Sign command: /lib/modules/6.12.86+deb13-amd64/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Autoinstall of module ethercat/1.6.9 for kernel 6.12.86+deb13-amd64 (x86_64)
Building module(s)...(bad exit status: 127)
Failed command:
./bootstrap && ./configure --with-linux-dir=/lib/modules/6.12.86+deb13-amd64/build --enable-generic --enable-8139too --enable-e100 --enable-e1000 --enable-e1000e --enable-r8169 --enable-igb --enable-igc --enable-genet --disable-stmmac-pci --disable-dwmac-intel --disable-ccat --disable-eoe --enable-cycles --enable-hrtimer --disable-rtdm --disable-debug-if --disable-debug-ring --disable-regalias --disable-tty --disable-wildcards --enable-sii-assign --enable-rt-syslog && make modules
Error! Bad return status for module build on kernel: 6.12.86+deb13-amd64 (x86_64)
Consult /var/lib/dkms/ethercat/1.6.9/build/make.log for more information.
Autoinstall on 6.12.86+deb13-amd64 succeeded for module(s) r8125.
Autoinstall on 6.12.86+deb13-amd64 failed for module(s) ethercat(10).
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
run-parts: /etc/kernel/postinst.d/dkms exited with return code 1
dpkg: error processing package linux-image-6.12.86+deb13-amd64 (--configure):
installed linux-image-6.12.86+deb13-amd64 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of linux-headers-6.12.86+deb13-amd64:
linux-headers-6.12.86+deb13-amd64 depends on linux-image-6.12.86+deb13-amd64 (= 6.12.86-1) | linux-image-6.12.86+deb13-amd64-unsigned (= 6.12.86-1); however:
Package linux-image-6.12.86+deb13-amd64 is not configured yet.
Package linux-image-6.12.86+deb13-amd64-unsigned is not installed.
dpkg: error processing package linux-headers-6.12.86+deb13-amd64 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-headers-amd64:
linux-headers-amd64 depends on linux-headers-6.12.86+deb13-amd64 (= 6.12.86-1); however:
Package linux-headers-6.12.86+deb13-amd64 is not configured yet.
dpkg: error processing package linux-headers-amd64 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-6.12.86+deb13-amd64
linux-headers-6.12.86+deb13-amd64
linux-headers-amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
mill@debian:~$
Please Log in or Create an account to join the conversation.
- spumco
- Offline
- Platinum Member
-
Less
More
- Posts: 2126
- Thank you received: 882
21 Jun 2026 18:14 #347197
by spumco
Replied by spumco on topic Ethercat installation from repositories - how to step by step
And the contents of make.log referenced in the "Error!" line in last post:
DKMS (dkms-3.2.2) make.log for ethercat/1.6.9 for kernel 6.12.86+deb13-amd64 (x86_64)
Sun Jun 21 13:46:11 EDT 2026
Building module(s)
# command: ./bootstrap && ./configure --with-linux-dir=/lib/modules/6.12.86+deb13-amd64/build --enable-generic --enable-8139too --enable-e100 --enable-e1000 --enable-e1000e --enable-r8169 --enable-igb --enable-igc --enable-genet --disable-stmmac-pci --disable-dwmac-intel --disable-ccat --disable-eoe --enable-cycles --enable-hrtimer --disable-rtdm --disable-debug-if --disable-debug-ring --disable-regalias --disable-tty --disable-wildcards --enable-sii-assign --enable-rt-syslog && make modules
+ touch ChangeLog
+ mkdir -p m4
+ autoreconf -i
./bootstrap: line 32: autoreconf: command not found
# exit code: 127
# elapsed time: 00:00:00Please Log in or Create an account to join the conversation.
- grandixximo
-
- Away
- Elite Member
-
Less
More
- Posts: 308
- Thank you received: 367
22 Jun 2026 02:29 - 22 Jun 2026 02:50 #347203
by grandixximo
Replied by grandixximo on topic Ethercat installation from repositories - how to step by step
try the commands below
This is mostly due to missing dependencies, I will add the additional dependencies to the package, should not happen next time.
sudo apt install autoconf automake libtool pkg-config linux-headers-$(uname -r)
sudo apt --fix-broken install # clears half-configured linux-image/headers
sudo dkms autoinstall
dkms status | grep ethercat # want "installed", not "added"
sudo modprobe ec_master
sudo systemctl start ethercat.serviceThis is mostly due to missing dependencies, I will add the additional dependencies to the package, should not happen next time.
Last edit: 22 Jun 2026 02:50 by grandixximo.
The following user(s) said Thank You: spumco
Please Log in or Create an account to join the conversation.
- spumco
- Offline
- Platinum Member
-
Less
More
- Posts: 2126
- Thank you received: 882
22 Jun 2026 03:53 #347206
by spumco
Replied by spumco on topic Ethercat installation from repositories - how to step by step
That seems to have worked, sort of.
I got the following errors while pasting the commands:
Autoinstall of module ethercat/1.6.9 for kernel 6.12.86+deb13-amd64 (x86_64)
Building module(s)...(bad exit status: 2)
Failed command:
./bootstrap && ./configure --with-linux-dir=/lib/modules/6.12.86+deb13-amd64/bui
ld --enable-generic --enable-8139too --enable-e100 --enable-e1000 --enable-e1000
e --enable-r8169 --enable-igb --enable-igc --enable-genet --disable-stmmac-pci -
-disable-dwmac-intel --disable-ccat --disable-eoe --enable-cycles --enable-hrtim
er --disable-rtdm --disable-debug-if --disable-debug-ring --disable-regalias --d
isable-tty --disable-wildcards --enable-sii-assign --enable-rt-syslog && make mo
dules
Error! Bad return status for module build on kernel: 6.12.86+deb13-amd64 (x86_64
)
Consult /var/lib/dkms/ethercat/1.6.9/build/make.log for more information.
Autoinstall on 6.12.86+deb13-amd64 succeeded for module(s) r8125.
Autoinstall on 6.12.86+deb13-amd64 failed for module(s) ethercat(10).
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
run-parts: /etc/kernel/postinst.d/dkms exited with return code 1
dpkg: error processing package linux-image-6.12.86+deb13-amd64 (--configure):
installed linux-image-6.12.86+deb13-amd64 package post-installation script subp
rocess returned error exit status 1
Setting up pkg-config:amd64 (1.8.1-4) ...
Setting up autoconf (2.72-3.1) ...
dpkg: dependency problems prevent configuration of linux-headers-6.12.86+deb13-a
md64:
linux-headers-6.12.86+deb13-amd64 depends on linux-image-6.12.86+deb13-amd64 (=
6.12.86-1) | linux-image-6.12.86+deb13-amd64-unsigned (= 6.12.86-1); however:
Package linux-image-6.12.86+deb13-amd64 is not configured yet.
Package linux-image-6.12.86+deb13-amd64-unsigned is not installed.
dpkg: error processing package linux-headers-6.12.86+deb13-amd64 (--configure):
dependency problems - leaving unconfigured
Setting up automake (1:1.17-4) ...
update-alternatives: using /usr/bin/automake-1.17 to provide /usr/bin/automake (
automake) in auto mode
Setting up libtool (2.5.4-4) ...
dpkg: dependency problems prevent configuration of linux-headers-amd64:
linux-headers-amd64 depends on linux-headers-6.12.86+deb13-amd64 (= 6.12.86-1);
however:
Package linux-headers-6.12.86+deb13-amd64 is not configured yet.
dpkg: error processing package linux-headers-amd64 (--configure):
dependency problems - leaving unconfigured
Setting up libltdl-dev:amd64 (2.5.4-4) ...
Processing triggers for man-db (2.13.1-1) ...
Errors were encountered while processing:
linux-image-6.12.86+deb13-amd64
linux-headers-6.12.86+deb13-amd64
linux-headers-amd64
Error: Sub-process /usr/bin/dpkg returned an error code (1)
fix-broken install and dkms autoinstall seemed to have worked (no errors)
dkms status | grep ethercat reported "installed"
systemctl status ethercat.service:
mill@debian:~$ sudo systemctl status ethercat.service
● ethercat.service - EtherCAT Master Kernel Modules
Loaded: loaded (/usr/lib/systemd/system/ethercat.service; enabled; preset:>
Active: active (exited) since Sun 2026-06-21 23:43:00 EDT; 40s ago
Invocation: 71389f5f0cfc46638c2ba1a9cbb27890
Process: 20473 ExecStart=/usr/sbin/ethercatctl start (code=exited, status=0>
Main PID: 20473 (code=exited, status=0/SUCCESS)
Mem peak: 2M
CPU: 59ms
Jun 21 23:43:00 debian systemd[1]: Starting ethercat.service - EtherCAT Master >
Jun 21 23:43:00 debian systemd[1]: Finished ethercat.service - EtherCAT Master >
But final commands got an error:
I got the following errors while pasting the commands:
Warning: Spoiler!
Autoinstall of module ethercat/1.6.9 for kernel 6.12.86+deb13-amd64 (x86_64)
Building module(s)...(bad exit status: 2)
Failed command:
./bootstrap && ./configure --with-linux-dir=/lib/modules/6.12.86+deb13-amd64/bui
ld --enable-generic --enable-8139too --enable-e100 --enable-e1000 --enable-e1000
e --enable-r8169 --enable-igb --enable-igc --enable-genet --disable-stmmac-pci -
-disable-dwmac-intel --disable-ccat --disable-eoe --enable-cycles --enable-hrtim
er --disable-rtdm --disable-debug-if --disable-debug-ring --disable-regalias --d
isable-tty --disable-wildcards --enable-sii-assign --enable-rt-syslog && make mo
dules
Error! Bad return status for module build on kernel: 6.12.86+deb13-amd64 (x86_64
)
Consult /var/lib/dkms/ethercat/1.6.9/build/make.log for more information.
Autoinstall on 6.12.86+deb13-amd64 succeeded for module(s) r8125.
Autoinstall on 6.12.86+deb13-amd64 failed for module(s) ethercat(10).
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
run-parts: /etc/kernel/postinst.d/dkms exited with return code 1
dpkg: error processing package linux-image-6.12.86+deb13-amd64 (--configure):
installed linux-image-6.12.86+deb13-amd64 package post-installation script subp
rocess returned error exit status 1
Setting up pkg-config:amd64 (1.8.1-4) ...
Setting up autoconf (2.72-3.1) ...
dpkg: dependency problems prevent configuration of linux-headers-6.12.86+deb13-a
md64:
linux-headers-6.12.86+deb13-amd64 depends on linux-image-6.12.86+deb13-amd64 (=
6.12.86-1) | linux-image-6.12.86+deb13-amd64-unsigned (= 6.12.86-1); however:
Package linux-image-6.12.86+deb13-amd64 is not configured yet.
Package linux-image-6.12.86+deb13-amd64-unsigned is not installed.
dpkg: error processing package linux-headers-6.12.86+deb13-amd64 (--configure):
dependency problems - leaving unconfigured
Setting up automake (1:1.17-4) ...
update-alternatives: using /usr/bin/automake-1.17 to provide /usr/bin/automake (
automake) in auto mode
Setting up libtool (2.5.4-4) ...
dpkg: dependency problems prevent configuration of linux-headers-amd64:
linux-headers-amd64 depends on linux-headers-6.12.86+deb13-amd64 (= 6.12.86-1);
however:
Package linux-headers-6.12.86+deb13-amd64 is not configured yet.
dpkg: error processing package linux-headers-amd64 (--configure):
dependency problems - leaving unconfigured
Setting up libltdl-dev:amd64 (2.5.4-4) ...
Processing triggers for man-db (2.13.1-1) ...
Errors were encountered while processing:
linux-image-6.12.86+deb13-amd64
linux-headers-6.12.86+deb13-amd64
linux-headers-amd64
Error: Sub-process /usr/bin/dpkg returned an error code (1)
fix-broken install and dkms autoinstall seemed to have worked (no errors)
dkms status | grep ethercat reported "installed"
systemctl status ethercat.service:
Warning: Spoiler!
mill@debian:~$ sudo systemctl status ethercat.service
● ethercat.service - EtherCAT Master Kernel Modules
Loaded: loaded (/usr/lib/systemd/system/ethercat.service; enabled; preset:>
Active: active (exited) since Sun 2026-06-21 23:43:00 EDT; 40s ago
Invocation: 71389f5f0cfc46638c2ba1a9cbb27890
Process: 20473 ExecStart=/usr/sbin/ethercatctl start (code=exited, status=0>
Main PID: 20473 (code=exited, status=0/SUCCESS)
Mem peak: 2M
CPU: 59ms
Jun 21 23:43:00 debian systemd[1]: Starting ethercat.service - EtherCAT Master >
Jun 21 23:43:00 debian systemd[1]: Finished ethercat.service - EtherCAT Master >
But final commands got an error:
mill@debian:~$ sudo chmod 666 /dev/EtherCAT0
chmod: cannot access '/dev/EtherCAT0': No such file or directory
mill@debian:~$ ethercat slaves
Failed to obtain number of masters: Failed to open master device /dev/EtherCAT0: No such file or directory
I wonder if the "dev" folder is for a RIP install?Please Log in or Create an account to join the conversation.
- spumco
- Offline
- Platinum Member
-
Less
More
- Posts: 2126
- Thank you received: 882
22 Jun 2026 04:08 #347207
by spumco
Replied by spumco on topic Ethercat installation from repositories - how to step by step
sudo apt update and upgrade seems to have fixed whatever was wrong.
after reboot:
mill@debian:~$ sudo systemctl start ethercat.service
[sudo] password for mill:
mill@debian:~$ ethercat slaves
0 0:0 INIT E AS715N_sAxis_V0.10
1 0:1 INIT E AS715N_sAxis_V0.10
2 0:2 INIT E AS715N_sAxis_V0.10
3 0:3 INIT E AS715N_sAxis_V0.10
I think I'm in business.
Thanks a ton for the assistance.
after reboot:
mill@debian:~$ sudo systemctl start ethercat.service
[sudo] password for mill:
mill@debian:~$ ethercat slaves
0 0:0 INIT E AS715N_sAxis_V0.10
1 0:1 INIT E AS715N_sAxis_V0.10
2 0:2 INIT E AS715N_sAxis_V0.10
3 0:3 INIT E AS715N_sAxis_V0.10
I think I'm in business.
Thanks a ton for the assistance.
The following user(s) said Thank You: grandixximo, rodw
Please Log in or Create an account to join the conversation.
- rodw
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 12054
- Thank you received: 4114
22 Jun 2026 05:23 #347210
by rodw
Replied by rodw on topic Ethercat installation from repositories - how to step by step
Spumco, great work. If you have to manually start the service each time. sounds like you overlooked the udev rules in the first post, Sorry about the formatting errors but its an awful post to edit
sudo geany /etc/udev/rules.d/99-ethercat.rules
and the following code block.
sudo geany /etc/udev/rules.d/99-ethercat.rules
and the following code block.
The following user(s) said Thank You: spumco
Please Log in or Create an account to join the conversation.
- spumco
- Offline
- Platinum Member
-
Less
More
- Posts: 2126
- Thank you received: 882
22 Jun 2026 10:38 #347216
by spumco
I just stopped when I got the errors starting ethercat service for the first time. Bulldozing ahead past errors has not served me well in the past, despite my habitual attempts.
Replied by spumco on topic Ethercat installation from repositories - how to step by step
Rod - I hadn't actually gotten to that section of the installation yet. The first 'ethercat slaves' check is before the 99-ethercat.rules line.Spumco, great work. If you have to manually start the service each time. sounds like you overlooked the udev rules in the first post, Sorry about the formatting errors but its an awful post to edit
sudo geany /etc/udev/rules.d/99-ethercat.rules
and the following code block.
I just stopped when I got the errors starting ethercat service for the first time. Bulldozing ahead past errors has not served me well in the past, despite my habitual attempts.
The following user(s) said Thank You: rodw
Please Log in or Create an account to join the conversation.
- Configuring LinuxCNC
- Advanced Configuration
- EtherCAT
- Ethercat installation from repositories - how to step by step
Time to create page: 0.180 seconds