Ethercat installation from repositories - how to step by step

More
13 Jul 2024 21:47 #305111 by rodw

Looking at the above post, I don't recall installing headers separately. Maybe that is it.

These are also needed to install anything with dkms like the Realtek r8168-dkms network driver.
The following user(s) said Thank You: NickH

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

More
14 Jul 2024 20:17 #305166 by endian
hello rod,
can you help me locate ethercat-master folder from where is installed ethercat-master on your hybrid.iso file... I need to change network drivers if it is possible... is it possible to change it please?

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

More
14 Jul 2024 20:56 #305170 by rodw
I don/t install anything, we just set up the ethercat repositories in /etc/apt here
github.com/LinuxCNC/linuxcnc-live-build/...worm/config/archives
 
The following user(s) said Thank You: endian

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

More
23 Jul 2024 03:44 #305884 by NickH
So having reinstalled I'm back to the point of halcmd loadusr running, and 'show pins' showing the two entries from RodW' ethercat-conf, but none of my pins showing. Running 'ethercat sIaves -v' shows nothing also; I have one servo connected.
Maybe my ethernet connection though I'm sure I have the right interface in ethercat.conf. Any ideas?

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

More
27 Jul 2024 19:34 #306192 by zylos146
Endian, the issue you're experiencing with

dpkg: error processing package ethercat-dkms (--configure):
 installed ethercat-dkms package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of ethercat-master:
 ethercat-master depends on ethercat-dkms; however:
  Package ethercat-dkms is not configured yet.

Is because the ethercat-dkms package was recently broken it appears (July 26th)
The deb file is missing the fake_lib folder inside, but the Makefile/configure scripts are expecting it to still exist.
You can see this in the `/var/lib/dkms/ethercat-dkms/1.6.1/build/make.log`

I had to manually download the fake_lib from the origin `gitlab.com/etherlab.org/ethercat`
I then had to move it into `/var/lib/dkms/ethercat-dkms/1.6.1/source`, run `sudo make`, then run `sudo dpkg --configure ethercat-dkms` to forcibly re-configure the dkms package.

I then ran the standard linuxcnc-ethercat install and it no longer complained about the DKMS package.

For a more proper fix, you'll need to wait for the package maintainer to release a new package version without the issue.

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

More
28 Jul 2024 13:53 - 28 Jul 2024 13:57 #306237 by AndriySM
   good morning, I'm new to linuxcnc, I tried following all the steps described in the guide but I can't install ethercat on linuxcnc, I always get the same errorWhat could it be that it can't find the necessary files. Where am I wrong
Attachments:
Last edit: 28 Jul 2024 13:57 by AndriySM.

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

More
28 Jul 2024 14:15 #306238 by tommylight
1. Does the PC have an internet connection?
2. Do in a terminal " sudo apt update " before trying to install

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

More
28 Jul 2024 16:20 #306245 by AndriySM
Yes, the PC has an internet connection, running the sudo apt update command, which I did before, gives me this error
Attachments:

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

More
28 Jul 2024 17:18 #306248 by rodw
There appears to be something broken at ethercat themselves.

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

More
28 Jul 2024 18:14 #306255 by rodw

There appears to be something broken at ethercat themselves.

I have raised an issue with them
gitlab.com/etherlab.org/ethercat/-/issues/131
The following user(s) said Thank You: sharp_reaper, jjdege, AndriySM, NickH

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

Time to create page: 0.185 seconds
Powered by Kunena Forum