Ethercat installation from repositories - how to step by step

More
3 years 2 months ago #277399 by rodw
UPDATE: The first post has been updated following upstream changes. It also covers addidional steps required to build DKMS drivers if you have Secure boot (UEFI) enabled on your PC. 

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

More
3 years 2 months ago #277417 by Psylocke
Hi Rodw,

I tryed the steps in the update post. Everythings looks fine till the install ethercat-master.
After 'sudo apt install ethercat-master' i get E: Unable to locate package ethercat-master.

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

More
3 years 2 months ago #277426 by rodw

Hi Rodw,

I tryed the steps in the update post. Everythings looks fine till the install ethercat-master.
After 'sudo apt install ethercat-master' i get E: Unable to locate package ethercat-master.
Did you create the /etc/apt/sources.list.d/ighvh.sources file?
did you do sudo apt update?
What distro are you using? Bookworm? or another?

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

More
3 years 2 months ago - 3 years 2 months ago #277433 by Psylocke
Hi Rodw,

Thank you for the very fast respond, i've been struggling for already more than a week to get a working rpi4+linuxcnc+ethercat. I did this several times with several distro's ans several notes. The rpi4 with linuxcnc under -rt is running, installing the needed ethercat despite without result. As i want to retrofit a 3+2 axis milling machine i want to use more profession drives with ethercat.

So here is the info:

Yes, i created the /etc/apt/sources.list.d/ighvh.sources file. I copied the shown data as instructed.

Raspberry Pi 4 Model B Rev 1.5

Linux rpi4-20230612 6.1.0-10-rt-arm64 #1 SMP PREEMPT_RT Debian 6.1.38-2 (2023-07-27) aarch64 GNU/Linux

PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL=" www.debian.org/ "
SUPPORT_URL=" www.debian.org/support "
BUG_REPORT_URL=" bugs.debian.org/ "

Here my screen no errors till ethercat instruction:
nc@rpi4-20230612:~$ sudo nano /etc/apt/sources.list.d/ighvh.sources
cnc@rpi4-20230612:~$ sudo apt update
Hit:1 security.debian.org/debian-security bookworm-security InRelease
Hit:2 deb.debian.org/debian bookworm InRelease                          
Hit:3 deb.debian.org/debian bookworm-updates InRelease                  
Get:4 download.opensuse.org/repositories/home:...herLabDKMS/Debian_12 ./ InRelease [1586 B]
Fetched 1586 B in 2s (1003 B/s)                                                
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
cnc@rpi4-20230612:~$ sudo apt install -y linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
linux-headers-6.1.0-10-rt-arm64 is already the newest version (6.1.38-2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
cnc@rpi4-20230612:~$ sudo apt install ethercat-master
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package ethercat-master

 
Last edit: 3 years 2 months ago by Psylocke.

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

More
3 years 2 months ago - 3 years 2 months ago #277438 by rodw
I don't think the Pi is supported in the EtherCAT repos anymore. You may be able to build from source. That explains why it can't find an appropriate package. Go to their main site and read carefully. Its all described there and on their git.
Last edit: 3 years 2 months ago by rodw.

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

More
3 years 2 months ago #277439 by Psylocke
It matters less to me to use Raspberry Pi or "PC" based system. I like to build on a solid foundation. So that I can at least go ahead with this for a while. I am a novice on Linux but want to learn to can use LinuxCNC. But i have to be honest i will be never an expert.

What would you advise given the future of LinuxCNC?

Thanks in advance.

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

Time to create page: 1.501 seconds
Powered by Kunena Forum