- Configuring LinuxCNC
- Advanced Configuration
- EtherCAT
- Ethercat installation from repositories - how to step by step
Ethercat installation from repositories - how to step by step
- Martin.L
- Offline
- Junior Member
-
Less
More
- Posts: 33
- Thank you received: 2
01 Feb 2025 20:35 #320348
by Martin.L
Replied by Martin.L on topic Ethercat installation from repositories - how to step by step
I think it's time to update the first post of this thread, It's not working straight forward anymore even with 2.9.3, I had to jump on the last post to find a way to let it work. Also tried 2.9.4 and it's not working. Thanks for your time, when it works It's so satisfying
Please Log in or Create an account to join the conversation.
- rodw
-
Topic Author
- Away
- Platinum Member
-
Less
More
- Posts: 11085
- Thank you received: 3681
01 Feb 2025 22:20 #320358
by rodw
Replied by rodw on topic Ethercat installation from repositories - how to step by step
the only reason why Cornholio used 6.12 kernel was to get the latest kernel in the hope that support or the Pi5 was better but the earlier one was pretty good anyway. The default Debian uses kernel 6.1 so it is bleeding edge. Ethercat includes custom kernel components so it might not work on the bleeding edge.
The following user(s) said Thank You: bananun
Please Log in or Create an account to join the conversation.
- jm_mt
- Offline
- New Member
-
Less
More
- Posts: 1
- Thank you received: 0
05 Feb 2025 01:30 - 05 Feb 2025 02:33 #320681
by jm_mt
Replied by jm_mt on topic Ethercat installation from repositories - how to step by step
Is it safe to say the Linux Raspberrypi 6.12.11 #1 SMP PREEMPT_RT doesn't work with Etherlab Ethercat Master version 1.6.2. Trying to setup EtherCat on Pi5 with Debian.
I have issues starting the ethercat service.
Here's what shows in the journal
Looks like some files are missing or can't be found when trying to install the modules?
This seems to the affect other command later like sudo modprobe ethercat. When this run it returns
Almost looks like the module never gets built or compiled correctly?
EtherCAT's kernel module (.ko) doesn't appear in the modules when trying to search for it
This returns not found
I think tomorrow I'm just gonna try everything again with an old kernel version, just to get started.
I have issues starting the ethercat service.
sudo systemctl enable ethercat
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.
Here's what shows in the journal
Feb 05 12:13:12 raspberrypi ethercatctl[53739]: ERROR: No network cards for EtherCAT specified.
Feb 05 12:13:12 raspberrypi ethercatctl[53739]: Please edit /etc/ethercat.conf with root permissions and set MASTER0_DEVICE variable to either a network interface name (like eth0) or to a MAC addre>
Feb 05 12:13:12 raspberrypi systemd[1]: ethercat.service: Main process exited, code=exited, status=1/FAILURE
Looks like some files are missing or can't be found when trying to install the modules?
sudo make modules_install
returns
cnc@raspberrypi:~/ethercat$ sudo make modules_install make -C "/usr/src/linux-headers-6.12.11" M="/home/cnc/ethercat" INSTALL_MOD_DIR="ethercat" modules_install make[1]: Entering directory '/usr/src/linux-headers-6.12.11' INSTALL /lib/modules/6.12.11/ethercat/examples/mini/ec_mini.ko SIGN /lib/modules/6.12.11/ethercat/examples/mini/ec_mini.ko At main.c:171: - SSL error:FFFFFFFF80000002:system library::No such file or directory: ../crypto/bio/bss_file.c:67 - SSL error:10000080:BIO routines::no such file: ../crypto/bio/bss_file.c:75 sign-file: ./certs/signing_key.pem XZ /lib/modules/6.12.11/ethercat/examples/mini/ec_mini.ko.xz INSTALL /lib/modules/6.12.11/ethercat/master/ec_master.ko SIGN /lib/modules/6.12.11/ethercat/master/ec_master.ko At main.c:171: - SSL error:FFFFFFFF80000002:system library::No such file or directory: ../crypto/bio/bss_file.c:67 - SSL error:10000080:BIO routines::no such file: ../crypto/bio/bss_file.c:75 sign-file: ./certs/signing_key.pem XZ /lib/modules/6.12.11/ethercat/master/ec_master.ko.xz INSTALL /lib/modules/6.12.11/ethercat/devices/ec_generic.ko SIGN /lib/modules/6.12.11/ethercat/devices/ec_generic.ko At main.c:171: - SSL error:FFFFFFFF80000002:system library::No such file or directory: ../crypto/bio/bss_file.c:67 - SSL error:10000080:BIO routines::no such file: ../crypto/bio/bss_file.c:75 sign-file: ./certs/signing_key.pem XZ /lib/modules/6.12.11/ethercat/devices/ec_generic.ko.xz DEPMOD /lib/modules/6.12.11 Warning: modules_install: missing 'System.map' file. Skipping depmod. make[1]: Leaving directory '/usr/src/linux-headers-6.12.11'
This seems to the affect other command later like sudo modprobe ethercat. When this run it returns
modprobe: FATAL: Module ethercat not found in directory /lib/modules/6.12.11
Almost looks like the module never gets built or compiled correctly?
EtherCAT's kernel module (.ko) doesn't appear in the modules when trying to search for it
sudo find /lib/modules/$(uname -r) -name "ethercat.ko"
This returns not found
I think tomorrow I'm just gonna try everything again with an old kernel version, just to get started.
Last edit: 05 Feb 2025 02:33 by jm_mt.
Please Log in or Create an account to join the conversation.
- unknown
- Offline
- Elite Member
-
Less
More
- Posts: 228
- Thank you received: 80
05 Feb 2025 02:20 #320689
by unknown
Replied by unknown on topic Ethercat installation from repositories - how to step by step
No you'll need to use the RPi with a 6.1.x kernel, which should work. Rod has raised the issue regarding Ethercat not supporting 6.12 (anything higher than 6.1 I'd guess).
That's the trap when releasing a new image, some will want the latest kernel and then some, like yourself will require an earlier version. Can't keep everyone happy.
Sorry for any confusion and such, Ethercat is too rich for me, but once it's all sorted I'll be sure to test the Ethercat install works, wont be able to test any actual hardware but the actual install and building of modules I'll test.
And a final thanks for actually supplying the messages and such, much much better than "doesn't work".
Cheers
Rob
That's the trap when releasing a new image, some will want the latest kernel and then some, like yourself will require an earlier version. Can't keep everyone happy.
Sorry for any confusion and such, Ethercat is too rich for me, but once it's all sorted I'll be sure to test the Ethercat install works, wont be able to test any actual hardware but the actual install and building of modules I'll test.
And a final thanks for actually supplying the messages and such, much much better than "doesn't work".
Cheers
Rob
Please Log in or Create an account to join the conversation.
- Khan
- Offline
- New Member
-
Less
More
- Posts: 6
- Thank you received: 0
23 Feb 2025 00:51 - 23 Feb 2025 04:41 #322329
by Khan
Replied by Khan on topic Ethercat installation from repositories - how to step by step
Hello,
i followed the instructions, and successfully installed everything, what are the next steps to get the system up and running i am using L7 Ethercat leadshine servos, i have no idea how to setup cia402, this is my first time dealing with linux, need help
i followed the instructions, and successfully installed everything, what are the next steps to get the system up and running i am using L7 Ethercat leadshine servos, i have no idea how to setup cia402, this is my first time dealing with linux, need help

Last edit: 23 Feb 2025 04:41 by Khan.
Please Log in or Create an account to join the conversation.
- PabloSancez
- Offline
- New Member
-
Less
More
- Posts: 2
- Thank you received: 0
01 Mar 2025 17:40 #322947
by PabloSancez
Replied by PabloSancez on topic Ethercat installation from repositories - how to step by step
Please Log in or Create an account to join the conversation.
- rodw
-
Topic Author
- Away
- Platinum Member
-
Less
More
- Posts: 11085
- Thank you received: 3681
01 Mar 2025 17:58 #322951
by rodw
Replied by rodw on topic Ethercat installation from repositories - how to step by step
Their key changed a while ago. You should not get this with 2.9.4
Otherwise there is a script on another sticky threads to fix this.
Otherwise there is a script on another sticky threads to fix this.
Please Log in or Create an account to join the conversation.
- PabloSancez
- Offline
- New Member
-
Less
More
- Posts: 2
- Thank you received: 0
01 Mar 2025 19:37 #322957
by PabloSancez
Replied by PabloSancez on topic Ethercat installation from repositories - how to step by step
I get it in version 2.9.4.
everything worked during the day, broke in the evening.
how can I fix this?
where to find "sticky threads"
everything worked during the day, broke in the evening.
how can I fix this?
where to find "sticky threads"
Please Log in or Create an account to join the conversation.
- rodw
-
Topic Author
- Away
- Platinum Member
-
Less
More
- Posts: 11085
- Thank you received: 3681
01 Mar 2025 22:42 #322968
by rodw
Replied by rodw on topic Ethercat installation from repositories - how to step by step
try: sudo apt update and try again
It just worked for me. do you have internet access?
the script is here but you should not need it
forum.linuxcnc.org/ethercat/53785-instal...thercat-repositories
It just worked for me. do you have internet access?
the script is here but you should not need it
forum.linuxcnc.org/ethercat/53785-instal...thercat-repositories
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.118 seconds