- Posts: 19
- Thank you received: 0
Ethercat installation from repositories - how to step by step
more /var/lib/dkms/ethercat-dkms/1.6.9/build/make.log
CC [M] /var/lib/dkms/ethercat-dkms/1.6.9/build/devices/stmmac/dwmac-intel-6.12-ethercat.o
/var/lib/dkms/ethercat-dkms/1.6.9/build/devices/stmmac/dwmac-intel-6.12-ethercat.c: In function ‘intel_mgbe_common_data’:
/var/lib/dkms/ethercat-dkms/1.6.9/build/devices/stmmac/dwmac-intel-6.12-ethercat.c:615:15: error: ‘struct plat_stmmacenet_data’ has no member named ‘msi_lpi_vec’; did you mean ‘msi_mac_vec’?
615 | plat->msi_lpi_vec = 28;
| ^~~~~~~~~~~
| msi_mac_vec
/var/lib/dkms/ethercat-dkms/1.6.9/build/devices/stmmac/dwmac-intel-6.12-ethercat.c: In function ‘stmmac_config_multi_msi’:
/var/lib/dkms/ethercat-dkms/1.6.9/build/devices/stmmac/dwmac-intel-6.12-ethercat.c:1001:19: error: ‘struct plat_stmmacenet_data’ has no member named ‘msi_lpi_vec’; did you mean ‘msi_mac_vec’?
1001 | if (plat->msi_lpi_vec < STMMAC_MSI_VEC_MAX)
| ^~~~~~~~~~~
| msi_mac_vec
/var/lib/dkms/ethercat-dkms/1.6.9/build/devices/stmmac/dwmac-intel-6.12-ethercat.c:1002:59: error: ‘struct plat_stmmacenet_data’ has no member named ‘msi_lpi_vec’; did you mean ‘msi_mac_vec’?
1002 | res->lpi_irq = pci_irq_vector(pdev, plat->msi_lpi_vec);
| ^~~~~~~~~~~
| msi_mac_vec
/var/lib/dkms/ethercat-dkms/1.6.9/build/devices/stmmac/dwmac-intel-6.12-ethercat.c: In function ‘intel_eth_pci_probe’:
/var/lib/dkms/ethercat-dkms/1.6.9/build/devices/stmmac/dwmac-intel-6.12-ethercat.c:1084:15: error: ‘struct plat_stmmacenet_data’ has no member named ‘msi_lpi_vec’; did you mean ‘msi_mac_vec’?
1084 | plat->msi_lpi_vec = STMMAC_MSI_VEC_MAX;
| ^~~~~~~~~~~
| msi_mac_vec
make[5]: *** [/usr/src/linux-headers-6.12.86+deb13-common-rt/scripts/Makefile.build:234: /var/lib/dkms/ethercat-dkms/1.6.9/build/devices/stmmac/dwmac-intel-6.12-ethercat.o] Error 1
make[4]: *** [/usr/src/linux-headers-6.12.86+deb13-common-rt/scripts/Makefile.build:471: /var/lib/dkms/ethercat-dkms/1.6.9/build/devices/stmmac] Error 2
make[3]: *** [/usr/src/linux-headers-6.12.86+deb13-common-rt/scripts/Makefile.build:471: /var/lib/dkms/ethercat-dkms/1.6.9/build/devices] Error 2
make[2]: *** [/usr/src/linux-headers-6.12.86+deb13-common-rt/Makefile:1981: /var/lib/dkms/ethercat-dkms/1.6.9/build] Error 2
make[1]: *** [/usr/src/linux-headers-6.12.86+deb13-common-rt/Makefile:236: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.12.86+deb13-rt-amd64'
make: *** [Makefile:963: modules] Error 2
# exit code: 2
# elapsed time: 00:03:42
Please Log in to join the conversation.
And follow this process which I have tested with 2.98 in the last week or so.
github.com/linuxcnc-ethercat/apt
This is going to become the official repository and Ethercat version to use for linuxcnc
Please Log in to join the conversation.
Failed command:
./configure --enable-sii-assign --disable-rt-syslog --disable-tool --disable-userlib --enable-generic --enable-ccat --disable-tty --with-linux-dir=/lib/modules/6.12.86+deb13-rt-amd64/build --enable-e1000 --enable-igb --disable-igbvf --disable-ixgbevf --enable-igc --enable-e1000e --enable-8139too --enable-e100 --enable-r8169 --disable-stmmac-pci --enable-dwmac-intel --disable-genet && make modules
Error! Bad return status for module build on kernel: 6.12.86+deb13-rt-amd64 (x86_64)
Consult /var/lib/dkms/ethercat-dkms/1.6.9/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 10
Setting up libltdl-dev:amd64 (2.5.4-4) ...
dpkg: dependency problems prevent configuration of ethercat-master:
ethercat-master depends on ethercat-dkms; however:
Package ethercat-dkms is not configured yet.
dpkg: error processing package ethercat-master (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linuxcnc-ethercat:
linuxcnc-ethercat depends on etherlabmaster | ethercat-master; however:
Package etherlabmaster is not installed.
Package ethercat-master is not configured yet.
dpkg: error processing package linuxcnc-ethercat (--configure):
dependency problems - leaving unconfigured
Processing triggers for man-db (2.13.1-1) ...
Processing triggers for libc-bin (2.41-12+deb13u3) ...
Errors were encountered while processing:
ethercat-dkms
ethercat-master
linuxcnc-ethercat
E: Sub-process /usr/bin/dpkg returned an error code (1)
Please Log in to join the conversation.
Thanks, this repo works for me on 2.9.8 (the default is in the file /etc/apt/sources.list.d/science_EtherLab.list and gives errors)And follow this process which I have tested with 2.98 in the last week or so.
github.com/linuxcnc-ethercat/apt
Please Log in to join the conversation.
Please Log in to join the conversation.
There was some talk of publishing a new 2.9.x version to fix some bugs. If that is the case, I will send in a PR to update the repos in the installer based on the link above.
Please Log in to join the conversation.
Please Log in to join the conversation.
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 to join the conversation.
Please Log in to join the conversation.
- 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:
Can anyone interpret the error and help me with a path forward?
Please Log in to join the conversation.
