Ethercat installation from repositories - how to step by step

More
24 Aug 2024 19:13 #308552 by zmrdko

Hi Rod,

I followed these instructions several times  and, everything worked perfectly. Tried to install today and I get an error saying that no public key is available. Any idea if something has something changed? This is a fresh install of the Debian buster Linuxcnc iso.

Kind regards,
Dan
 

run this:
sudo mkdir -p /usr/local/share/keyrings/
wget -O- https://build.opensuse.org/projects/science:EtherLab/signing_keys/download?kind=gpg | gpg --dearmor | sudo dd of=/etc/apt/trusted.gpg.d/science_EtherLab.gpg
sudo tee -a /etc/apt/sources.list.d/ighvh.sources > /dev/null <<EOT
Types: deb
Signed-By: /etc/apt/trusted.gpg.d/science_EtherLab.gpg
Suites: ./
URIs: http://download.opensuse.org/repositories/science:/EtherLab/Debian_12/
EOT
sudo apt update
sudo apt install -y linux-headers-$(uname -r) ethercat-master linuxcnc-ethercat

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

More
26 Aug 2024 05:49 #308661 by seyad
 I am using your recent image only but i con't able to intall ethercat -master following this
Attachments:

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

More
26 Aug 2024 06:12 #308666 by rodw
The following user(s) said Thank You: seyad

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

More
26 Aug 2024 09:40 - 26 Aug 2024 10:57 #308684 by seyad
how can i resolve it..?when i  try to download manualy but it is shows 404 page not found
 
Attachments:
Last edit: 26 Aug 2024 10:57 by seyad.

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

More
27 Aug 2024 08:31 #308779 by rodw
Looks like ARM is not supported in their repo; You will need to compile from source

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

More
28 Aug 2024 20:46 #308912 by bucky
Just had this issue the other day. I don't think you have to compile from source if you don't want to. I'm on a Raspberry Pi 5.

It looks like EtherLab changed the name of their distribution repo from IgH to EtherLab. Check out the new location on this page under the Debian section.
etherlab.org/en_GB/getting-started

Relevant instructions:
export KEYRING=/usr/share/keyrings/etherlab.gpg
curl -fsSL download.opensuse.org/repositories/scien...ebian_12/Release.key | gpg --dearmor | sudo tee "$KEYRING" >/dev/null
echo "deb [signed-by=$KEYRING] download.opensuse.org/repositories/science:/EtherLab/Debian_12/ ./" | sudo tee /etc/apt/sources.list.d/etherlab.list > /dev/null
sudo apt-get update

You will have to remove the sources list of IgH if you don't want errors during apt updates.

I don't know if you guys rebuild images between releases, but if it's possible to remove the IgH repo in favor of the EtherLab it may be helpful.
The following user(s) said Thank You: hectormhr

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

More
05 Sep 2024 09:03 #309397 by Sakhalin_Cat
Hello.
Today I reinstalled the Ethercat driver with the command "sudo apt install ethercat-master libethercat-dev linuxcnc-ethercat". Before that I deleted the old driver that was installed in the system.
Now the system does not work and gives an error as in the photo. Please help me with advice on what I should do to restore the system's functionality. Previously, there was driver 1.5.2.
Thank you, I really hope for your quick help.
Attachments:

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

More
05 Sep 2024 16:36 #309432 by zmrdko
just a guess, try:

sudo dpkg-reconfigure ethercat-dkms

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

More
06 Sep 2024 02:48 - 06 Sep 2024 03:24 #309483 by Sakhalin_Cat
Last edit: 06 Sep 2024 03:24 by Sakhalin_Cat.

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

More
06 Sep 2024 17:35 #309514 by COFHAL
I have a question: I have already installed ethecat and linuxcnc-ethercat. With the command sudo systemctl status ethercat.service I see that the service is running. With the command ethercat master I try to see which master is configured and I get the error: Failed to obtain number of masters: ioctl() version magic is differing: /dev/EtherCAT0: 37, ethercat tool: 30

The question is: do I necessarily have to have a device connected that supports ETHERCAT to confirm that I have everything installed correctly, or why does this error appear and how to solve it?

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

Time to create page: 0.199 seconds
Powered by Kunena Forum