Ethercat installation from repositories - how to step by step

More
1 year 9 months ago #320317 by rodw
my bad. seems its not compatibleBuilding initial module for 6.12.11
Error! Bad return status for module build on kernel: 6.12.11 (aarch64)
Consult /var/lib/dkms/ethercat-dkms/1.6.2/build/make.log for more information.
dpkg: error processing package ethercat-dkms (--configure):
installed ethercat-dkms package post-installation script subprocess returned error exit status 10Possibly report a issue in Etherlabs gitlab

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

More
1 year 9 months ago #320318 by bananun
Thank you for the reply! Sorry for the perhaps stupid questions, this is the first time for me with linuxcnc, ethercat and linux in general basically...

However I guess that means that the Etherlabs people have to do some kind of update for it to be compatible?

I guess I will continue on the 6.1.69 image from Cornholio then. I was able to update it to lcnc 2.9.4 and install ethercat through you guides (would not have been possible without them, so huge thank you!), and I guess it does not really matter to have the latest kernel right?

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

More
1 year 8 months ago #320348 by Martin.L
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.

More
1 year 8 months ago #320358 by rodw
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.

More
1 year 8 months ago - 1 year 8 months ago #320681 by jm_mt
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.
Code:
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
Code:
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?
Code:
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
Code:
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
Code:
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: 1 year 8 months ago by jm_mt.

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

More
1 year 8 months ago #320689 by unknown
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

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

Time to create page: 1.874 seconds
Powered by Kunena Forum