Advanced Search

Search Results (Searched for: raspberry)

  • jm_mt
  • jm_mt
05 Feb 2025 01:30 - 05 Feb 2025 02:33

Ethercat installation from repositories - how to step by step

Category: EtherCAT

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.
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.
Displaying 616 - 616 out of 616 results.
Time to create page: 0.916 seconds
Powered by Kunena Forum