Ethercat installation from repositories - how to step by step

More
09 Aug 2023 13:07 - 09 Aug 2023 13:08 #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: 09 Aug 2023 13:08 by rodw.

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

More
09 Aug 2023 13:30 #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.

More
09 Aug 2023 19:15 #277459 by rodw
I would suggest a normal x86 PC with 4 cores, 4 GB RAM (eg Celeron J1900 or above). I3 and I5 seem OK too
My 16 core i7 on my desk is way over the top :)

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

More
09 Aug 2023 19:19 #277462 by tommylight

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

More
09 Aug 2023 19:25 #277464 by Psylocke
Thanks rodw,

I will proceed with my "old" laptop i7!!, 12 GB RAM. Its my old Autodesk Inventor laptop. It will do.  

Thanks for your nice work on the forum.
The following user(s) said Thank You: rodw

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

More
09 Aug 2023 23:32 #277486 by rodw

16 core i7 ???

I think technically its 8 core, 16 threads but it reports in with 16 on linux (including in htop). Frightened me!
All I wanted to do was get rid of Windows!

 
 
Attachments:
The following user(s) said Thank You: tommylight

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

More
10 Aug 2023 00:01 #277488 by tommylight
Oh an 10700, that has 8 P cores and 8 E cores, meaning 8 performance and 8 efficient cores.
That was just another Intel f@k up as for a while those 8E cores could not be used under Windows and caused stability issues, lasted nearly a full year till they figured out how to use those.
Not that they do much anyway, but they do help a bit.
I have gone full AMD several years back, will not buy Intel ever again.
They (and AMD not being able to compete for quite a while) single handily retarded PC advancement for nearly 20 years.
For anyone wanting to rant about this, don't, just have a look how far have graphic chips gone in that time frame.
The following user(s) said Thank You: rodw

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

More
10 Aug 2023 02:58 - 10 Aug 2023 03:37 #277499 by buzzFab

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.

 

Rod, Thanks for the update. I am trying again from the start on a i7 hp g2 mini. I have come across an error while compiling


cnc@cnc:~/dev/linuxcnc-ethercat$ sudo make install
make[1]: Entering directory '/home/cnc/dev/linuxcnc-ethercat/src'
mkdir -p /usr/lib/linuxcnc/modules
make[2]: Entering directory '/home/cnc/dev/linuxcnc-ethercat/src'
gcc -o lcec_conf.o -Os -g -I. -I/build/linuxcnc-vf7ZID/linuxcnc-2.9.0~pre1+git20230208.f1270d6ed7/src/include -DUSPACE -fno-fast-math -mieee-fp -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/usr/include/linuxcnc -DSIM -fPIC -URTAPI -U__MODULE__ -DULAPI -Os -c lcec_conf.c
In file included from lcec_conf.c:31:
lcec_conf.h:22:10: fatal error: ecrt.h: No such file or directory
22 | #include "ecrt.h"
| ^~~~~~~~
compilation terminated.
make[2]: *** [user.mk:22: lcec_conf.o] Error 1
make[2]: Leaving directory '/home/cnc/dev/linuxcnc-ethercat/src'
make[1]: *** [Makefile:11: install] Error 2
make[1]: Leaving directory '/home/cnc/dev/linuxcnc-ethercat/src'
make: *** [Makefile:11: install] Error 2
cnc@cnc:~/dev/linuxcnc-ethercat$ sudo find / -name "ecrt.h"
find: ‘/run/user/1000/doc’: Permission denied
/usr/src/ethercat-dkms-1.5.2/include/ecrt.h
cnc@cnc:~/dev/linuxcnc-ethercat$


I read the part you wrote "becasue you have not installed halcompile (in shipped in linuxcnc-uspace-dev)" but I for sure installed linuxcnc-uspace-dev. As you can see from the error, there is trouble finding ecrt.h even though the find command shows the file here /usr/src/ethercat-dkms-1.5.2/include/ecrt.h.

***EDIT... I forgot mention that i did try the spoiler and it didnt change anything also i tried adding a symbolic link with this line but the error is still the same
sudo ln -s /usr/src/ethercat-dkms-1.5.2/include/

Do you know where i should go from here?
thanks
Last edit: 10 Aug 2023 03:37 by buzzFab.

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

More
10 Aug 2023 03:51 - 10 Aug 2023 03:51 #277500 by rodw
I think you need to also install libethercat-dev and maybe also libethercat
I took them out but at a guess the header files will be in the -dev package

I have not got that far yet. Waiting for a NIC to arrive today but a semi trailer just fell off its prime mover right in front of our building :(
Last edit: 10 Aug 2023 03:51 by rodw.

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

More
10 Aug 2023 09:55 #277520 by rodw
The iGh guys let me know that their DKMS drivers have finally made it to their mainstream repository and they hope to get them into Debian eventually.

The instructions we have here should remain  pretty stable once we sort out buzzFab's problem.
 

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

Time to create page: 0.195 seconds
Powered by Kunena Forum